Script Accessors


Overview


EntityAccessor

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

LivingEntityAccessor extends EntityAccessor

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

WorldAccessor

Function Return Type Parameters
isRaining boolean /
setBlockState void block - Object
x - int
y - int
z - int
getBlockState BlockStateAccessor x - int
y - int
z - int
isThundering boolean /
isRemote boolean /
summonLightning void x - double
y - double
z - double
effectOnly - boolean
executeCommand void command - String
loadStructure void x - int
y - int
z - int
name - String
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
setRainStrength void strength - float
getDimension String /
playSound void id - String
id - String
posX - double
posY - double
posZ - double
volume - float
pitch - float
setTime void time - long
getTime long /
getValue Object /

BlockStateAccessor

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

DamageSourceAccessor

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

AbilityAccessor

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

ConditionAccessor

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

CompoundNBTAccessor

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

Vector3dAccessor

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

MaterialAccessor

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

ItemStackAccessor

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

BlockRayTraceResultAccessor

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

EntityRayTraceResultAccessor

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