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

LivingEntityAccessor extends EntityAccessor

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

WorldAccessor

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

BlockStateAccessor

Function Return Type Parameters
getProperty Object property - Object
getBlock String /
getPropertyByName Property name - String
getMaterial MaterialAccessor /
withProperty BlockStateAccessor property - Object
value - Comparable
isAir boolean world - WorldAccessor
x - int
y - int
z - int
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[] /
getAdditionalNbtData CompoundNBTAccessor /
isUnlocked boolean /
getContainerId String /
getValue Object /

ConditionAccessor

Function Return Type Parameters
getType String /
getData Object key - String
setData boolean key - String
value - Object
getAbility AbilityAccessor /
isInverted boolean /
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
type - int
contains boolean key - String
merge CompoundNBTAccessor otherTag - CompoundNBTAccessor
copy CompoundNBTAccessor /
getString String key - String
putByteArray CompoundNBTAccessor key - String
value - byte[]
getUniqueId String key - String
getUniqueIdWithUtil String key - String
getIntArray int[] key - String
getByteArray byte[] key - String
getLongArray long[] key - String
getCompound CompoundNBTAccessor key - String
putString CompoundNBTAccessor key - String
value - String
putUniqueId CompoundNBTAccessor key - String
value - String
putLongArray CompoundNBTAccessor key - String
value - long[]
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 factorX - double
factorY - double
factorZ - double
mul Vector3dAccessor vector - Vector3dAccessor
getZ double /
getY double /
getX double /
subtract Vector3dAccessor vector - Vector3dAccessor
subtract Vector3dAccessor x - double
y - double
z - double
inverse Vector3dAccessor /
dotProduct double vector - Vector3dAccessor
crossProduct Vector3dAccessor vector - Vector3dAccessor
distanceTo double vector - Vector3dAccessor
squareDistanceTo double x - double
y - double
z - double
squareDistanceTo double vector - Vector3dAccessor
rotateYaw Vector3dAccessor yaw - float
rotatePitch Vector3dAccessor pitch - float
lengthSquared double /
subtractReverse Vector3dAccessor vector - Vector3dAccessor
getValue Object /

MaterialAccessor

Function Return Type Parameters
isOpaque boolean /
isFlammable boolean /
isLiquid boolean /
blocksMovement boolean /
isSolid boolean /
isReplaceable boolean /
getPushReaction String /
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 /
getNbtTag CompoundNBTAccessor /
isDamaged boolean /
getDamage int /
getMaxDamage int /
setDamage ItemStackAccessor damage - int
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 /