Script Accessors


Overview


EntityAccessor

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

LivingEntityAccessor extends EntityAccessor

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

WorldAccessor

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

BlockStateAccessor

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

DamageSourceAccessor

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

AbilityAccessor

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

ConditionAccessor

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

CompoundNBTAccessor

Function Return Type Parameters
getCompound CompoundNBTAccessor key - String
getUniqueId String key - String
getIntArray int[] key - String
getLongArray long[] key - String
getByteArray byte[] key - String
putUniqueId CompoundNBTAccessor key - String
value - String
putIntArray CompoundNBTAccessor key - String
value - int[]
putLongArray CompoundNBTAccessor key - String
value - long[]
getTagId byte key - String
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
type - int
contains boolean key - String
merge CompoundNBTAccessor otherTag - CompoundNBTAccessor
copy CompoundNBTAccessor /
putString CompoundNBTAccessor key - String
value - String
getString String key - String
putByteArray CompoundNBTAccessor key - String
value - byte[]
getUniqueIdWithUtil String key - String
getValue Object /

Vector3dAccessor

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

MaterialAccessor

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

ItemStackAccessor

Function Return Type Parameters
getNbtTag CompoundNBTAccessor /
setCount ItemStackAccessor count - int
getMaxDamage int /
getDamage int /
isDamaged boolean /
setDamage ItemStackAccessor damage - int
getMaxStackSize int /
isEmpty boolean /
split ItemStackAccessor amount - int
copy ItemStackAccessor /
getCount int /
getItem String /
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 /