Script Accessors


Overview


EntityAccessor

Function Return Type Parameters
getName String /
read void from - CompoundNBTAccessor
isAlive boolean /
setName void name - String
save void to - CompoundNBTAccessor
getType String /
getWorld WorldAccessor /
getHeight float /
getWidth float /
getPosition Vector3dAccessor /
getPosX double /
getPosY double /
getPosZ double /
noClip boolean /
extinguish void /
setYaw float yaw - float
setPitch void pitch - float
startSizeChange void size - float
sizeChangeType - String
getYaw float /
getPitch float /
setInvisible void invisible - boolean
setNoGravity void noGravity - boolean
hasNoGravity boolean /
getUUID String /
setOnFire void seconds - int
getEyeHeight float /
getPersistentData CompoundNBTAccessor /
getTicksExisted int /
isInvisible boolean /
isPlayer boolean /
isImmuneToFire boolean /
removePassengers void /
executeCommand int command - String
setRotation void yaw - float
pitch - float
rayTrace Object distance - double
blockMode - String
fluidMode - String
lookAt void target - Vector3dAccessor
sendMessage void message - String
kill void /
addMotion void x - double
y - double
z - double
setPositionAndRotation void x - double
y - double
z - double
yaw - float
pitch - float
getHorizontalFacing Direction /
setPosition void x - double
y - double
z - double
startRiding boolean entity - EntityAccessor
force - boolean
setFallDistance void fallDistance - float
isLiving boolean /
isCrouching boolean /
setNoClip void noClip - boolean
setMotion void x - double
y - double
z - double
getPassengers EntityAccessor[] /
isPassenger boolean entity - EntityAccessor
getFallDistance float /
getThreeData Object key - String
isOnGround boolean /
getLookVec Vector3dAccessor /
setSizeDirectly void size - float
sizeChangeType - String
getMotion Vector3dAccessor /
sendTranslatedMessage void translationKey - String
args - Object[]
playSoundAt void id - String
volume - float
pitch - float
getAsLiving LivingEntityAccessor /
setNameVisible void visible - boolean
stopRiding void /
getNBTData CompoundNBTAccessor /
setPlayerMotion void x - double
y - double
z - double
setThreeData boolean key - String
value - Object
getValue Object /

LivingEntityAccessor extends EntityAccessor

Function Return Type Parameters
isChild boolean /
getAbilityById AbilityAccessor abilityId - String
heal void amount - float
attackEntityFrom void sourceName - String
amount - float
getMaxHealth float /
isOnLadder boolean /
getHealth float /
setHealth void health - float
addSuperpower void superpower - String
addSuperpower void superpower - String
lifetime - int
isUndead boolean /
setMovementSpeed void speed - float
isSprinting boolean /
getAbilities AbilityAccessor[] containerId - String
getAbilities AbilityAccessor[] /
swingArm void mainHand - boolean
isSleeping boolean /
isElytraFlying boolean /
getMovementSpeed float /
getAbsorptionAmount float /
attackEntityFromPlayer void playerAttacker - LivingEntityAccessor
amount - float
attackEntityFromThrowable void throwable - EntityAccessor
@Nullable thrower - EntityAccessor
float - float
attackEntityFromExplosion void @Nullable attacker - LivingEntityAccessor
float - float
attackEntityFromMob void attacker - LivingEntityAccessor
amount - float
removeSuperpowers void /
removeSuperpower void superpower - String
getItemInSlot ItemStackAccessor slot - String
setItemInSlot void slot - String
item - Object
setSuperpower void superpower - String
setSuperpower void superpower - String
lifetime - int
getName String /
read void from - CompoundNBTAccessor
isAlive boolean /
setName void name - String
save void to - CompoundNBTAccessor
getType String /
getWorld WorldAccessor /
getHeight float /
getWidth float /
getPosition Vector3dAccessor /
getPosX double /
getPosY double /
getPosZ double /
noClip boolean /
extinguish void /
setYaw float yaw - float
setPitch void pitch - float
startSizeChange void size - float
sizeChangeType - String
getYaw float /
getPitch float /
setInvisible void invisible - boolean
setNoGravity void noGravity - boolean
hasNoGravity boolean /
getUUID String /
setOnFire void seconds - int
getEyeHeight float /
getPersistentData CompoundNBTAccessor /
getTicksExisted int /
isInvisible boolean /
isPlayer boolean /
isImmuneToFire boolean /
removePassengers void /
executeCommand int command - String
setRotation void yaw - float
pitch - float
rayTrace Object distance - double
blockMode - String
fluidMode - String
lookAt void target - Vector3dAccessor
sendMessage void message - String
kill void /
addMotion void x - double
y - double
z - double
setPositionAndRotation void x - double
y - double
z - double
yaw - float
pitch - float
getHorizontalFacing Direction /
setPosition void x - double
y - double
z - double
startRiding boolean entity - EntityAccessor
force - boolean
setFallDistance void fallDistance - float
isLiving boolean /
isCrouching boolean /
setNoClip void noClip - boolean
setMotion void x - double
y - double
z - double
getPassengers EntityAccessor[] /
isPassenger boolean entity - EntityAccessor
getFallDistance float /
getThreeData Object key - String
isOnGround boolean /
getLookVec Vector3dAccessor /
setSizeDirectly void size - float
sizeChangeType - String
getMotion Vector3dAccessor /
sendTranslatedMessage void translationKey - String
args - Object[]
playSoundAt void id - String
volume - float
pitch - float
getAsLiving LivingEntityAccessor /
setNameVisible void visible - boolean
stopRiding void /
getNBTData CompoundNBTAccessor /
setPlayerMotion void x - double
y - double
z - double
setThreeData boolean key - String
value - Object
getValue Object /

WorldAccessor

Function Return Type Parameters
setTime void time - long
getTime long /
getDimension String /
isThundering boolean /
setRainStrength void strength - float
playSound void id - String
id - String
posX - double
posY - double
posZ - double
volume - float
pitch - float
loadStructure void x - int
y - int
z - int
name - String
summonLightning void x - double
y - double
z - double
effectOnly - boolean
setBlockState void block - Object
x - int
y - int
z - int
isRemote boolean /
isRaining boolean /
executeCommand void command - String
getBlockState BlockStateAccessor x - int
y - int
z - int
getLivingEntitiesInBox LivingEntityAccessor[] x1 - double
y1 - double
z1 - double
x2 - double
y2 - double
z2 - double
getEntitiesInBox EntityAccessor[] x1 - double
y1 - double
z1 - double
x2 - double
y2 - double
z2 - double
getValue Object /

BlockStateAccessor

Function Return Type Parameters
getProperty Object property - Object
getBlock String /
withProperty BlockStateAccessor property - Object
value - Comparable
isAir boolean world - WorldAccessor
x - int
y - int
z - int
getMaterial MaterialAccessor /
getPropertyByName Property name - String
getValue Object /

DamageSourceAccessor

Function Return Type Parameters
getType String /
getImmediateSource EntityAccessor /
getTrueSource EntityAccessor /
getValue Object /

AbilityAccessor

Function Return Type Parameters
getId String /
getType String /
getData Object key - String
isEnabled boolean /
setData boolean key - String
value - Object
getConditions ConditionAccessor[] /
isUnlocked boolean /
getAdditionalNbtData CompoundNBTAccessor /
getContainerId String /
getValue Object /

ConditionAccessor

Function Return Type Parameters
getType String /
getData Object key - String
setData boolean key - String
value - Object
isInverted boolean /
getAbility AbilityAccessor /
isEnabling boolean /
getValue Object /

CompoundNBTAccessor

Function Return Type Parameters
remove CompoundNBTAccessor key - String
getBoolean boolean key - String
putBoolean CompoundNBTAccessor key - String
value - boolean
getByte byte key - String
putByte CompoundNBTAccessor key - String
value - byte
getShort short key - String
putShort CompoundNBTAccessor key - String
value - short
getInt int key - String
putInt CompoundNBTAccessor key - String
value - int
getLong long key - String
putLong CompoundNBTAccessor key - String
value - long
getFloat float key - String
putFloat CompoundNBTAccessor key - String
value - float
getDouble double key - String
putDouble CompoundNBTAccessor key - String
value - double
isEmpty boolean /
contains boolean key - String
contains boolean key - String
type - int
merge CompoundNBTAccessor otherTag - CompoundNBTAccessor
copy CompoundNBTAccessor /
getString String key - String
putByteArray CompoundNBTAccessor key - String
value - byte[]
getByteArray byte[] key - String
getIntArray int[] key - String
getLongArray long[] key - String
getCompound CompoundNBTAccessor key - String
putString CompoundNBTAccessor key - String
value - String
getUniqueId String key - String
getUniqueIdWithUtil String key - String
putLongArray CompoundNBTAccessor key - String
value - long[]
putUniqueId CompoundNBTAccessor key - String
value - String
putIntArray CompoundNBTAccessor key - String
value - int[]
getTagId byte key - String
getValue Object /

Vector3dAccessor

Function Return Type Parameters
add Vector3dAccessor x - double
y - double
z - double
add Vector3dAccessor vector - Vector3dAccessor
length double /
normalize Vector3dAccessor /
scale Vector3dAccessor scale - double
mul Vector3dAccessor vector - Vector3dAccessor
mul Vector3dAccessor factorX - double
factorY - double
factorZ - double
subtract Vector3dAccessor x - double
y - double
z - double
subtract Vector3dAccessor vector - Vector3dAccessor
getY double /
getX double /
inverse Vector3dAccessor /
subtractReverse Vector3dAccessor vector - Vector3dAccessor
distanceTo double vector - Vector3dAccessor
squareDistanceTo double vector - Vector3dAccessor
squareDistanceTo double x - double
y - double
z - double
rotatePitch Vector3dAccessor pitch - float
rotateYaw Vector3dAccessor yaw - float
getZ double /
crossProduct Vector3dAccessor vector - Vector3dAccessor
dotProduct double vector - Vector3dAccessor
lengthSquared double /
getValue Object /

MaterialAccessor

Function Return Type Parameters
isOpaque boolean /
getPushReaction String /
isLiquid boolean /
blocksMovement boolean /
isFlammable boolean /
isSolid boolean /
isReplaceable boolean /
getValue Object /

ItemStackAccessor

Function Return Type Parameters
isEmpty boolean /
split ItemStackAccessor amount - int
copy ItemStackAccessor /
getCount int /
getItem String /
setCount ItemStackAccessor count - int
getMaxStackSize int /
getMaxDamage int /
getDamage int /
setDamage ItemStackAccessor damage - int
isDamaged boolean /
getNbtTag CompoundNBTAccessor /
getValue Object /

BlockRayTraceResultAccessor

Function Return Type Parameters
getType String /
getHitVec Vector3dAccessor /
getValue Object /

EntityRayTraceResultAccessor

Function Return Type Parameters
getType String /
getEntity EntityAccessor /
getHitVec Vector3dAccessor /
getValue Object /