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

LivingEntityAccessor extends EntityAccessor

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

WorldAccessor

Function Return Type Parameters
setTime void time - long
getTime long /
getDimension String /
loadStructure void x - int
y - int
z - int
name - String
executeCommand void command - String
getBlockState BlockStateAccessor x - int
y - int
z - int
setRainStrength void strength - float
isRaining boolean /
isThundering boolean /
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
isRemote boolean /
summonLightning void x - double
y - double
z - double
effectOnly - boolean
getEntitiesInBox EntityAccessor[] x1 - double
y1 - double
z1 - double
x2 - double
y2 - double
z2 - double
getLivingEntitiesInBox LivingEntityAccessor[] 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 /
isAir boolean world - WorldAccessor
x - int
y - int
z - int
withProperty BlockStateAccessor property - Object
value - Comparable
getMaterial MaterialAccessor /
getPropertyByName Property name - String
getValue Object /

DamageSourceAccessor

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

AbilityAccessor

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

MaterialAccessor

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