Class Keys
Key
s used throughout the API.-
Field Summary
Modifier and TypeFieldDescriptionThePotionEffectTypes.ABSORPTION
amount of aLiving
entity.The acceleration of aAcceleratingProjectile
.static final Key
<Value<ItemStackSnapshot>> The item aLiving
entity is currently using.Whether aPlayer
s affects spawning.The age (in ticks) of an entity.static final Key
<Value<SoundConfig.Additional>> The additional ambient sound settings in aBiome
ReadonlyThe ambient lightning of aWorldType
.static final Key
<Value<SoundConfig.Mood>> The ambient mood settings in aBiome
Readonlystatic final Key
<Value<ParticleConfig>> The ambient particle settings in aBiome
ReadonlyThe ambient sound in aBiome
ReadonlyThe anger level of aAngerable
.static final Key
<WeightedCollectionValue<PotionEffect>> The set ofPotionEffect
s applied on use of anItemStack
.static final Key
<ListValue<Enchantment>> The enchantments applied to anItemStack
.static final Key
<Value<ArmorMaterial>> TheArmorMaterial
of an armorItemStack
.static final Key
<Value<AttachmentSurface>> The attachmentAttachmentSurface
of a button or leverBlockState
The damage dealt by anArrowLike
on impact.The time of aRavager
is considered attacking.The author of aItemTypes.WRITTEN_BOOK
ItemStack
.The attack damage of the auto spin attack aLiving
is doing.Remaining ticks of the auto spin attack aLiving
is doing.static final Key
<Value<ItemStackSnapshot>> The ItemStack of the auto spin attack aLiving
is doing.TheAxis
direction of aBlockState
.The ticks until aAgeable
turns into an adult.static final Key
<Value<SoundConfig.BackgroundMusic>> The background music settings in aBiome
Readonlystatic final Key
<ListValue<BannerPatternLayer>> TheBannerPatternLayer
s of aBanner
.The width of the physical form of anEntity
.The base vehicle a passenger is riding at the moment.The target entity of aGuardian
beam.Whether aWorldType
allows using beds.static final Key
<Value<BillboardType>> TheBillboardType
of aDisplayEntity
.The default temperature of aBiome
or the biome at a specificServerLocation
.The blast resistance of aBlockState
.The amount of light that is emitted by the surrounding blocks at a blockServerLocation
.static final Key
<Value<BlockState>> The temperature at a specificServerLocation
.The type of the boat.The rotation of specific body parts of aArmorStand
orLiving
.The width of the interactable form of anEntity
.The height of the interactable form of anEntity
.The ticks until anAnimal
can breed again.The burntime of anItemStack
fuel in a furnace.Whether aBlockState
can be lit on fire by things like spreading lava, or sometimes aServerLocation
to be directionally specific.Whether anItemStack
can always be eaten.Whether anAnimal
can breed.Whether aFallingBlock
can drop as an item.Whether aHumanoid
can fly.Whether aLiving
entity may change blocks.Whether aFallingBlock
will damage anEntity
it lands on.Whether aRaider
can join a raid.Whether aBoat
can move on land.Whether aFallingBlock
will place itself upon landing.The number of candles within a candle block.static final Key
<MapValue<CarvingStep, List<Carver>>> The carvers of aBiome
used during world generation.The current casting time of aSpellcaster
.The type of aCat
.static final Key
<ListValue<ItemStackSnapshot>> The projectiles stored in anItemTypes.CROSSBOW
.Whether aServerPlayer
can will see colours sent in messages.static final Key
<Value<ChatVisibility>> The types of chat aServerPlayer
can see.static final Key
<Value<ChestAttachmentType>> The rotation of theBodyParts.CHEST
.static final Key
<Value<ChunkGenerator>> The chunk generator of aWorldTemplate
ReadonlyA command stored in aCommandBlock
orCommandBlockMinecart
.Whether commands can be run in a world of aWorldTemplate
orServerWorldProperties
Readonlystatic final Key
<Value<ComparatorMode>> The connected directions of aBlockState
.The amount of ticks aHopper
has to wait before transferring the next item.The creator, usually of anEntity
.The currentSpellType
aSpellcaster
is casting.static final Key
<MapValue<EntityType<?>, Double>> The damage dealt towards entities of a specificEntityType
by aArrowLike
.The resource pack model index of anItemStack
.static final Key
<ListValue<PotionEffect>> The custom potion effects that are stored on anItemStack
.The currently trading customer with thisMerchant
.The damage absorbed by an armorItemStack
.How much damage aFallingBlock
deals toLiving
entities it hits per block fallen.The distance at which aBlockState
will decay.The destroy speed of aBlockState
sBlockType
.The detonator of aPrimedTNT
.Whether exact teleport location should be used with aEndGateway
.static final Key
<Value<HandPreference>> The dominantHandPreference
of anAgent
entity.TheDoorHinge
of a doorBlockState
.static final Key
<Value<DripstoneSegment>> The type of dripstone a certainBlockTypes.DRIPSTONE_BLOCK
represents.The remaining duration (in ticks) of anAreaEffectCloud
.The amount of ticks the duration of anAreaEffectCloud
is increased or reduced when it applies its effect.The efficiency of anItemStack
tool.The time (in ticks) until aChicken
lays anItemTypes.EGG
.Whether the glint effect on anItemStack
is shown.The age (in ticks) of anEndGateway
static final Key
<Value<EntityArchetype>> TheEntityArchetype
to spawn from any spawn egg, such as aItemTypes.ZOMBIE_SPAWN_EGG
orItemTypes.CREEPER_SPAWN_EGG
.static final Key
<Value<EntityType<?>>> Theentity type
of a spawn egg, which may be one of several based onItemTypes.ZOMBIE_SPAWN_EGG
, etc.static final Key
<Value<EquipmentType>> TheEquipmentType
that the target inventory supports.The current level of exhaustion of aHumanoid
.The amount of experience aPlayer
has or anExperienceOrb
contains.The total experience aPlayer
requires to advance from his current level to the next one.The current level aPlayer
has.The amount of experience aPlayer
has collected towards the next level.The eye height of anEntity
.The eye position of anEntity
.The distance anEntity
has fallen.The amount of ticks aFallingBlock
has been falling for.static final Key
<MapValue<DecorationStep, List<PlacedFeature>>> The features to place during decoration steps during world generation for aBiome
ReadonlyThe delay in ticks until theEntity
will be damaged by the fire.Whether anItemStack
will burn in fire.The amount of ticks anEntity
is still burning.static final Key
<ListValue<FireworkEffect>> The flight duration of aFireworkRocket
static final Key
<Value<FireworkShape>> The time aUser
first joined on the Server.static final Key
<Value<MinecraftDayTime>> static final Key
<Value<FluidStackSnapshot>> TheFluidStackSnapshot
contained within an item container.The fluid level of a liquidBlockState
.static final Key
<MapValue<Direction, List<FluidStackSnapshot>>> The directional tank information.The speed at which anPlayer
flies.The color of fog in aBiome
.The color override for foliage in aBiome
.The food level of aHumanoid
.The type of aFox
.The type of aFrog
.The time (in ticks) anEntity
is frozen.Represents theKey
for the amount of fuel left in aBrewingStand
orFurnaceBlockEntity
orFurnaceMinecart
The time (in ticks) aFusedExplosive
's fuse will burn before the explosion.static final Key
<Value<GameProfile>> The player represented by aBlockTypes.PLAYER_HEAD
(andBlockTypes.PLAYER_WALL_HEAD
)BlockState
or aItemTypes.PLAYER_HEAD
ItemStack
.The generation of aItemTypes.WRITTEN_BOOK
ItemStack
.Whether aSign.SignText
has glowing text (from dying withItemTypes.GLOW_INK_SAC
).The color override for grass in aBiome
.static final Key
<Value<GrassColorModifier>> The grass color modifier in aBiome
.The "growth stage" state of aBlockState
.Whether world of aWorldTemplate
orWorldProperties
is in hardcore mode.Whether anArmorStand
's arms are visible.Whether anArmorStand
has a visible base plate.Whether aBlockTypes.CAVE_VINES
orBlockTypes.CAVE_VINES_PLANT
has glow berries.Whether aWorldType
generates aworld
with a ceiling at some pre-determined y value composed ofBlockTypes.BEDROCK
.Whether aPackHorse
has a chest.Whether theTextDisplay
has a default background.Whether aTurtle
currently has an egg.Whether aDolphin
has a fish.Whether anArmorStand
is a "marker" stand.Whether a giant mushroomBlockState
has pores on theDirection.DOWN
direction.Whether a giant mushroomBlockState
has pores on theDirection.EAST
direction.Whether a giant mushroomBlockState
has pores on theDirection.NORTH
direction.Whether a giant mushroomBlockState
has pores on theDirection.SOUTH
direction.Whether a giant mushroomBlockState
has pores on theDirection.UP
direction.Whether a giant mushroomBlockState
has pores on theDirection.WEST
direction.Whether aBiome
hasPrecipitation
.Whether theTextDisplay
has a shadow.Whether a server player has viewed the credits.The rotation of aLiving
's orArmorStand
's head.static final Key
<Value<EndCrystal>> TheEndCrystal
currently healing anEnderDragon
.ALiving
's orEndCrystal
's current health.The value aServerPlayer
s max-health (excluding absorption) in the GUI will scale to.The height of the physical form of anEntity
.TheItemType
aBlockState
represents.Whether the attributes of anItemStack
are hidden.Whether theBREAKABLE_BLOCK_TYPES
of anItemStack
are hidden.Whether thePLACEABLE_BLOCK_TYPES
of anItemStack
are hidden.Whether theAPPLIED_ENCHANTMENTS
of anItemStack
are hidden.Whether miscellaneous values of anItemStack
are hidden.Whether theSTORED_ENCHANTMENTS
of anItemStack
are hidden.Whether the tooltip of anItemStack
is hidden.WhetherIS_UNBREAKABLE
state of anItemStack
is hidden.static final Key
<Value<HorseColor>> TheHorseColor
of aHorse
.static final Key
<Value<HorseStyle>> TheHorseStyle
of aHorse
.The humidity of aBiome
.Whether a fence gateBlockState
is in a wall.The inaccuracy of anItemStack
that launchesProjectile
s.Whether a world of aServerWorldProperties
was initialized.static final Key
<Value<InstrumentType>> Whether a projectileItemStack
would be intangible when fired.The interpolation delay of aDisplayEntity
The interpolation duration of aDisplayEntity
Whether aBlockTypes.DAYLIGHT_DETECTOR
BlockState
is inverted.The amount of ticks anEntity
will remain invulnerable for.Whether anEntity
is invulnerable.Whether aLiving
is considered an adult.Whether aBlaze
is currently burning.Whether anAgent
s AI is enabled.Whether aAngerable
is currently aggressive.Whether aBlockState
is "attached" to another block.Whether aLiving
is doing an auto spin attack (doable with theEnchantmentTypes.RIPTIDE
enchantment.)Whether an entity is begging for food.WhetherRaider
s are currently celebrating.Whether aCreeper
is charged.Whether aPillager
is charging it's crossbow.Whether aSpider
is currently climbing.Whether aBlockState
is connected to theDirection.EAST
.Whether aBlockState
is connected to theDirection.NORTH
.Whether aBlockState
is connected to theDirection.SOUTH
.Whether aBlockState
is connected to theDirection.UP
.Whether aBlockState
is connected to theDirection.WEST
.Whether anArrow
will cause a critical hit.Whether aFox
is currently crouching.Whether a custom name is visible on anEntity
.Whether aFox
is currently defending.Whether aBlockState
is disarmed.Whether an entity is eating.Whether aLightningBolt
is harmful to otherentities
.Whether aPlayer
is flying with anItemTypes.ELYTRA
.Whether a pistonBlockState
is currently extended.Whether aFox
is currently faceplanted.Whether aBlockState
is filled.Whether aBlockState
is flammable.Whether anEntity
is flying.Whether an entity is frightened.Whether the block at theServerLocation
is a full block.Whether anEntity
has a glowing outline.WhetherTurtle
is proceeding to it'shome position
.Whether something is affected by gravity.Whether a lantern block is hanging.Whether aCat
is hissing.Whether aRavager
is immobilized.Whether aBoat
is currently inBlockTypes.WATER
.Whether aServerLocation
is indirectly powered.Whether aFox
is currently interested in something.Whether anEntity
is currently invisible.Whether aVindicator
is exhibiting "johnny" behavior.Whether aTurtle
is currently digging to lay an egg.Whether aPatroller
is the leader.Whether aBlockState
is lit.Whether a world of aWorldTemplate
orServerWorldProperties
is supposed to be loaded at startup.Whether aCat
is lying down.Whether aPanda
is lying on it's back.Whether a bedBlockState
is occupied.Whether aMinecart
is on it's rail ReadonlyWhether a door/fencegate/trapdoorBlockState
is open.Whether aBlockState
is passable (can be walked through).Whether aPatroller
is currently patrolling.Whether anEntity
or leavesBlockState
will be prevented from despawning/decaying.static final Key
<MapValue<EquipmentType, Boolean>> Whether players are prevented from placing items from an equipment slot on anArmorStand
Whether aFox
is currently pouncing.Whether aBlockState
is powered.Whether aFusedExplosive
is currently primed.Whether aCat
is purring.Whether aCat
is relaxed.Whether aBlockState
can be replaced by a player without breaking it first.Whether aRavager
is roaring.Whether aPanda
is rolling around.Whether an entity is saddled.Whether anEnderman
is screaming.Whether aSheep
is sheared.Whether anEntity
is silent.Whether aPlayer's
sleeping status is ignored when checking whether to skip the night due to players sleeping.Whether anArmorStand
is small.Whether anEntity
is sneaking.Whether aPanda
is sneezing.Whether aBlockTypes.DIRT
BlockState
is snowy.Whether aBlockState
is solid.Whether anEntity
is sprinting.Whether aPolarBear
is currently standing.Whether aRavager
is stunned.Whether aBlockState
is a surrogate block for a block that was provided in an environment (almost always modded), that the block type provider no longer exists.static final Key
<MapValue<EquipmentType, Boolean>> Whether players are prevented from taking items from an equipment slot on anArmorStand
Whether aTameableAnimal
is currently tamedWhether aTurtle
is currently traveling.Whether anItemStack
orBlockState
is unbreakable.Whether aPanda
is unhappy.Whehter aBlockState
is waterlogged.static final Key
<Value<ItemDisplayType>> Thedisplay type
of aItemDisplay
.The durability of anItemStack
.The default item name of anItemStack
.static final Key
<Value<ItemRarity>> The rarity of an item.static final Key
<Value<ItemStackSnapshot>> The custom knockback strength applied by anArrowLike
.The output yielded by the last command of aCommandBlock
orCommandBlockMinecart
.The last damage aLiving
received.The last time aUser
joined on the server.The last time aUser
has been playing on the server.The amount of layers aBlockState
has.The holder of a leashedEntity
e.g.The rotation of anArmorStand
's left arm.The rotation of anArmorStand
's left leg.The amount of ticks till aVex
starts taking damage due to living too long.The amount of light that emitted by aBlockState
.The maximum line width of aTextDisplay
.AServerPlayer
's client language.The token used to lock aCarrierBlockEntity
.static final Key
<Value<ServerLocation>> A lodestone location, used withItemTypes.COMPASS
.Whether to remove thetarget location
when theBlockTypes.LODESTONE
at that location is removed.The displayed description ("lore") text of anItemStack
.static final Key
<SetValue<MapDecoration>> static final Key
<Value<ResourceKey>> TheMatrix4d
of aDisplayEntity
static final Key
<Value<MatterType>> The matter state of aBlockState
ReadonlyThe maximum air supply aLiving
may have.The maximum amount of ticks aFurnaceBlockEntity
can burn with the currently used fuel item.The total time the currentItemStack
in aFurnaceBlockEntity
has to be cooked.The maximum durability of anItemStack
.The maximum exhuastion of aHumanoid
.The maximum damage aFallingBlock
can deal.The maximum food level of aHumanoid
.The frozen time after which anEntity
is completely frozen.The max growth stage of aBlockState
.The maximum health of aLiving
.The maximum number of entities tracked by aMobSpawner
orTrialSpawner
The maximum saturation of aHumanoid
.The maximum amount of ticks between two batches of entities spawned by aMobSpawner
orTrialSpawner
The max speed of aBoat
.The maximum stack size of slots in an inventory.The minimum amount of ticks between two batches of entities spawned by aMobSpawner
orTrialSpawner
The represented block's offset of aMinecartLike
.The moisture value of aBlockTypes.FARMLAND
BlockState
.static final Key
<Value<MooshroomType>> The type of aMooshroom
.static final Key
<MapValue<EntityType<?>, NaturalSpawnCost>> The cost settings forNATURAL_SPAWNERS
in aBiome
.static final Key
<MapValue<EntityCategory, List<NaturalSpawner>>> The settings for entities that can naturally spawn in aBiome
.Whether aWorldType
is considered natural.static final Key
<Value<EntityArchetype>> The next entity that will be spawned by aMobSpawner
orTrialSpawner
static final Key
<Value<ResourceKey>> The pitch of aBlockTypes.NOTE_BLOCK
BlockState
.The notifier, usually of anEntity
.The deceleration aBoat
while it hasPASSENGERS
.Whether anEntity
is currently considered to be on the ground.The opacity of aTextDisplay
.static final Key
<Value<Orientation>> TheOrientation
of anItemFrame
.The owner of aOwnable
.The content of aItemTypes.WRITTEN_BOOK
ItemStack
.static final Key
<Value<ParrotType>> static final Key
<Value<ParticleEffect>> The particle type of anAreaEffectCloud
.The amount of ticks aFurnaceBlockEntity
has been cooking the current item for.The entities that act as passengers for anEntity
.ATropicalFish
's pattern color.Whether spawn logic is performed on a world of aWorldTemplate
orServerWorldProperties
SeeServerWorldProperties.performsSpawnLogic()
.static final Key
<Value<PhantomPhase>> The pickup delay (in ticks) of anItem
.static final Key
<Value<PickupRule>> ThePickupRule
of anArrowLike
.Whether aWorldType
is safe forPiglin
to not transform intoZombifiedPiglin
over time in aworld
of that type Readonlystatic final Key
<Value<PistonType>> The piston type of a pistonBlockState
TODO dataholderPiston
.The block types anItemStack
may be placed on.The content of aItemTypes.WRITABLE_BOOK
ItemStack
.The plugin that created anInventory
static final Key
<Value<PortalLogic>> ThePortalLogic
anEntity
is currently in.static final Key
<Value<PortionType>> ThePortionType
of aBlockState
.Thedecoration
for aDecoratedPot
.Thedecoration
for aDecoratedPot
.Thedecoration
for aDecoratedPot
.Thedecoration
for aDecoratedPot
.The potential max speed of aMinecart
.static final Key
<ListValue<PotionEffect>> The potion effects that are present on anEntity
static final Key
<Value<PotionType>> The potion type of anItemStack
.The signal power of aBlockState
.static final Key
<Value<Precipitation>> The defaultPrecipitation
type of aBiome
.The previousGameMode
of aServerPlayer
.static final Key
<Value<PotionEffectType>> ABeacon
's primary effect.static final Key
<Value<ProfessionType>> static final Key
<Value<PushReaction>> Whether pvp combat is enabled in a world of aWorldTemplate
orServerWorldProperties
Readonlystatic final Key
<Value<RabbitType>> The type of aRabbit
.The radius of anAreaEffectCloud
.The amount the radius of anAreaEffectCloud
grows or shrinks each time it applies its effect.The amount the radius of anAreaEffectCloud
grows or shrinks per tick.The wave number of a raid aRaider
is in.static final Key
<Value<RailDirection>> TheRailDirection
of aBlockState
.The delay (in ticks) after which anAreaEffectCloud
will reapply its effect on a previously affectedEntity
.The redstone delay on aBlockTypes.REPEATER
BlockState
.The amount of air aLiving
has left.The remaining amount of ticks the current brewing process of aBrewingStand
will take.Represents theKey
for the remaining number of ticks to pass before another attempt to spawn entities is made by aMobSpawner
orTrialSpawner
The additional experience cost required to modify anItemStack
in anBlockTypes.ANVIL
.The amount of food a foodItemStack
restores when eaten.The amount of saturation a foodItemStack
provides when eaten.static final Key
<Value<InstrumentType>> How close aPlayer
has to be around theMobSpawner
in order for it to attempt to spawn entities.Whether aWorldType
allows usingBlockTypes.RESPAWN_ANCHOR
s.static final Key
<MapValue<ResourceKey, RespawnLocation>> The rotation of anArmorStand
's right arm.The rotation of anArmorStand
's right leg.The time aRavager
is roaring.The current saturation of aPlayer
.The "scale" for the size of anEntity
.Whether aWorldType
is considered scorching hot.The scoreboard tags applied to anEntity
.static final Key
<Value<SculkSensorState>> The triggering state of aBlockTypes.SCULK_SENSOR
.static final Key
<Value<PotionEffectType>> ABeacon
's secondary effect.WhetherTextDisplay
are visible through blocks.The seed of aWorldTemplate
static final Key
<Value<SerializationBehavior>> The shadow radius of aDisplayEntity
The shadow strength duration of aDisplayEntity
static final Key
<Value<ProjectileSource>> The shooter of aProjectile
.Whether aEndCrystal
should show its bottom bedrock platform.static final Key
<Value<Sign.SignText>> static final Key
<Value<Sign.SignText>> The lines of aSign.SignText
.The size of aSlime
.The "moisture" state of aDolphin
.The parts of aServerPlayer
skin that should be displayed.static final Key
<Value<ProfileProperty>> The skin of aHumanoid
orServerPlayer
.The color of the sky in aBiome
.The skylight value at aServerLocation
.static final Key
<Value<SlabPortion>> TheSlabPortion
of aBlockState
.The sleep timer of aPlayer
.The position of aSlot
within aGridInventory
.The side of a particularSlot
, for use in querying "sided inventories".Whether aMinecart
slows down when it has noPASSENGERS
.The time aPanda
has been sneezing (in ticks)The chance for an entity to spawn in aBiome
during world generation.How many entities aMobSpawner
spawns at once.The light level needed to block monster spawning in aWorldType
.The light level range needed to block monster spawning in aWorldType
The spawn position in a world of aWorldTemplate
orWorldProperties
ReadonlyHow far away from theMobSpawner
orTrialSpawner
the entities spawned by it may appear.static final Key
<WeightedCollectionValue<EntityArchetype>> static final Key
<Value<StairShape>> TheStairShape
of aBlockState
.static final Key
<ListValue<Enchantment>> The enchantments stored on anItemStack
.ALlama
s carrying strength.The author of a structure from aStructureBlock
.Whether aStructureBlock
should ignore entities when saving a structure.The integrity of aStructureBlock
.static final Key
<Value<StructureMode>> The mode of aStructureBlock
.The position of aStructureBlock
.Whether aStructureBlock
is powered.The seed of aStructureBlock
Whether aStructureBlock
should make allBlockTypes.AIR
,BlockTypes.CAVE_AIR
,BlockTypes.STRUCTURE_VOID
visible.Whether aStructureBlock
shows the bounding box.The size of aStructureBlock
s structure.The amount of "stuck arrows" in aLiving
.The time (in ticks) aRavager
is stunned.The amount of successful executions of a command stored in aCommandBlock
orCommandBlockMinecart
.Whether aBlockState
is suspended.The swiftness of anEntity
e.g.The targeted entity either by anAgent
and it'sGoalExecutorTypes.TARGET
selector or by aFishingBobber
orShulkerBullet
.A target location.A target block position.The teleport duration of aDisplayEntity
static final Key
<Value<TemperatureModifier>> TheTemperatureModifier
of aBiome
.static final Key
<Value<TextAlignment>> TheTextAlignment
of aTextDisplay
.The backgroundColor
of aTextDisplay
.The remaining fuse time in ticks of aFusedExplosive
.The tilt of aBlockTypes.BIG_DRIPLEAF
block, as triggered by player motion.TheITEM_DURABILITY
damage anItemStack
tool takes per block.Whether aCommandBlock
does track its output.static final Key
<ListValue<TradeOffer>> TheTransform
of aDisplayEntity
Whether anEntity
is transient.static final Key
<Value<TropicalFishShape>> ATropicalFish
's shape.The time aPanda
has been unhappy (in ticks)TheUUID
of a custom inventory.The deceleration aBoat
while it does not havePASSENGERS
.Whether aBlockTypes.TNT
BlockState
is unstable.Whether aBlockTypes.POINTED_DRIPSTONE
is facing up or down.Whether changes toSKIN_PROFILE_PROPERTY
should be reflected in an entity'sGameProfile
.static final Key
<Value<VanishState>> TheVanishState
of anEntity
.The vehicle anEntity
is riding.The velocity of anEntity
.The client view distance of aServerPlayer
The view range of aDisplayEntity
static final Key
<Value<VillagerType>> The type of aVillager
orZombieVillager
.The duration in ticks after which anAreaEffectCloud
will begin to apply its effect to entities.static final Key
<MapValue<Direction, WallConnectionState>> The connection state of a wall in all four cardinal directions (north, west, east, and south).The color of water in aBiome
.The color of water fog in aBiome
.The weather of aServerWorldProperties
.Whether a thrownEyeOfEnder
will shatter.static final Key
<Value<WireAttachmentType>> TheWireAttachmentType
of aBlockTypes.REDSTONE_WIRE
BlockState
for its neighboring block to theDirection.EAST
.static final Key
<Value<WireAttachmentType>> TheWireAttachmentType
of aBlockTypes.REDSTONE_WIRE
BlockState
for its neighboring block to theDirection.NORTH
.static final Key
<Value<WireAttachmentType>> TheWireAttachmentType
of aBlockTypes.REDSTONE_WIRE
BlockState
for its neighboring block to theDirection.SOUTH
.static final Key
<Value<WireAttachmentType>> TheWireAttachmentType
of aBlockTypes.REDSTONE_WIRE
BlockState
for its neighboring block to theDirection.WEST
.static final Key
<MapValue<Direction, WireAttachmentType>> The entities targeted by the threeWither
heads.static final Key
<Value<WorldBorder>> The world border ofWorldProperties
Readonlystatic final Key
<Value<Difficulty>> The difficulty of aWorldTemplate
orWorldProperties
ReadonlyThe minimumY
coordinate of aWorldType
static final Key
<Value<WorldGenerationConfig>> The world generation config of aServerWorldProperties
ReadonlyThe height of aWorldType
The logical height of aWorldType
static final Key
<Value<WorldTypeEffect>> -
Method Summary
-
Field Details
-
ABSORPTION
ThePotionEffectTypes.ABSORPTION
amount of aLiving
entity. -
ACCELERATION
The acceleration of aAcceleratingProjectile
. -
ACTIVE_ITEM
The item aLiving
entity is currently using. For example a player eating a food or blocking with a shield.If there is no item, the snapshot will be empty. You can check this with
ItemStackLike.isEmpty()
. -
AFFECTS_SPAWNING
Whether aPlayer
s affects spawning.A
Player
who does not affect spawning will be treated as a spectator in regards to spawning. AMobSpawner
will not be activated by his presence and mobs around him may naturally despawn if there is no other Player around who affects spawning. -
AGE
The age (in ticks) of an entity. e.g. The age of anAreaEffectCloud
.Note that in vanilla this value is not persisted for most entities.
-
AIRBORNE_VELOCITY_MODIFIER
-
AMBIENT_ADDITIONAL_SOUND
The additional ambient sound settings in aBiome
Readonly -
AMBIENT_LIGHTING
The ambient lightning of aWorldType
.Affects ambient light effects in a
ServerWorld
of that type.In Vanilla, the value will be between
Readonly0.0
and1.0
-
AMBIENT_MOOD
The ambient mood settings in aBiome
Readonly -
AMBIENT_PARTICLE
The ambient particle settings in aBiome
Readonly -
AMBIENT_SOUND
The ambient sound in aBiome
Readonly -
ANGER_LEVEL
-
APPLICABLE_POTION_EFFECTS
The set ofPotionEffect
s applied on use of anItemStack
. -
APPLIED_ENCHANTMENTS
The enchantments applied to anItemStack
.This data is usually applicable to all types of armor, weapons and tools. Enchantments that are only stored on an item stack in order to be transferred to another item (like on
ItemTypes.ENCHANTED_BOOK
s) use theSTORED_ENCHANTMENTS
key instead.) -
ARMOR_MATERIAL
TheArmorMaterial
of an armorItemStack
. Readonly -
ARMOR_TRIM
-
ART_TYPE
-
ATTACHMENT_SURFACE
The attachmentAttachmentSurface
of a button or leverBlockState
-
ATTACK_DAMAGE
The damage dealt by anArrowLike
on impact. -
ATTACK_TIME
The time of aRavager
is considered attacking. -
AUTO_SPIN_ATTACK_DAMAGE
The attack damage of the auto spin attack aLiving
is doing.- See Also:
-
AUTO_SPIN_ATTACK_TICKS
Remaining ticks of the auto spin attack aLiving
is doing.- See Also:
-
AUTO_SPIN_ATTACK_WEAPON
The ItemStack of the auto spin attack aLiving
is doing.- See Also:
-
AUTHOR
The author of aItemTypes.WRITTEN_BOOK
ItemStack
. -
AXIS
TheAxis
direction of aBlockState
. -
BABY_TICKS
The ticks until aAgeable
turns into an adult. -
BACKGROUND_MUSIC
The background music settings in aBiome
Readonly -
BANNER_PATTERN_LAYERS
TheBannerPatternLayer
s of aBanner
. -
BASE_SIZE
-
BASE_VEHICLE
-
BEAM_TARGET_ENTITY
The target entity of aGuardian
beam. -
BEDS_USABLE
Whether aWorldType
allows using beds.When bed usage is not allowed beds will instead explode in a
world
of that type.Also see
ReadonlyRESPAWN_ANCHOR_USABLE
-
BILLBOARD_TYPE
TheBillboardType
of aDisplayEntity
. -
BIOME_TEMPERATURE
The default temperature of aBiome
or the biome at a specificServerLocation
. For the exact block temperature seeBLOCK_TEMPERATURE
. Readonly -
BLAST_RESISTANCE
The blast resistance of aBlockState
. Readonly -
BLOCK_LIGHT
The amount of light that is emitted by the surrounding blocks at a blockServerLocation
. The value scales normally from 0 to 1.In vanilla minecraft is this value in steps of 1/15 from 0 to 1.
For the skylight see
ReadonlySKY_LIGHT
.Or the blocklight override for a
DisplayEntity
. -
BLOCK_STATE
-
BLOCK_TEMPERATURE
The temperature at a specificServerLocation
. For the default biome temperature seeBIOME_TEMPERATURE
. Readonly -
BOAT_TYPE
The type of the boat. -
BODY_ROTATIONS
The rotation of specific body parts of aArmorStand
orLiving
.This value provides a mapping, effectively combining the data referenced by
HEAD_ROTATION
,CHEST_ROTATION
,RIGHT_ARM_ROTATION
,LEFT_ARM_ROTATION
,RIGHT_LEG_ROTATION
, andLEFT_LEG_ROTATION
. -
BOSS_BAR
-
BOUNDING_BOX_BASE_SIZE
The width of the interactable form of anEntity
.Together with
Readonly(Entity.class) expect InteractionBOUNDING_BOX_HEIGHT
this defines the size of theEntity
's bounding box. -
BOUNDING_BOX_HEIGHT
The height of the interactable form of anEntity
.Together with
Readonly(Entity.class) expect InteractionBOUNDING_BOX_BASE_SIZE
this defines the size of theEntity
's bounding box. -
BREAKABLE_BLOCK_TYPES
-
BREEDER
-
BREEDING_COOLDOWN
-
BURNABLE
Whether aBlockState
can be lit on fire by things like spreading lava, or sometimes aServerLocation
to be directionally specific. -
BURN_TIME
-
CAN_ALWAYS_EAT
Whether anItemStack
can always be eaten. -
CAN_BREED
Whether anAnimal
can breed. In Vanilla, animals can breed if theirBREEDING_COOLDOWN
is equal to 0. -
CAN_DROP_AS_ITEM
Whether aFallingBlock
can drop as an item. -
CAN_FLY
-
CAN_GRIEF
Whether aLiving
entity may change blocks. This mostly applies toEnderman
orCreeper
s, but also to some projectiles likeIgnitingProjectile
s orWitherSkull
. -
CAN_HARVEST
The set of harvestableBlockType
s with anItemStack
. SeeTOOL_RULES
for the rules resulting in this set. Readonly -
CAN_HURT_ENTITIES
Whether aFallingBlock
will damage anEntity
it lands on. -
CAN_JOIN_RAID
Whether aRaider
can join a raid. -
CAN_MOVE_ON_LAND
Whether aBoat
can move on land. -
CAN_PLACE_AS_BLOCK
Whether aFallingBlock
will place itself upon landing. -
CANDLES
The number of candles within a candle block. -
CARVERS
The carvers of aBiome
used during world generation. Readonly -
CASTING_TIME
The current casting time of aSpellcaster
. -
CAT_TYPE
The type of aCat
. -
CHARGED_PROJECTILES
The projectiles stored in anItemTypes.CROSSBOW
. -
CHAT_COLORS_ENABLED
Whether aServerPlayer
can will see colours sent in messages. -
CHAT_VISIBILITY
The types of chat aServerPlayer
can see. -
CHEST_ATTACHMENT_TYPE
-
CHEST_ROTATION
The rotation of theBodyParts.CHEST
. -
CHUNK_GENERATOR
The chunk generator of aWorldTemplate
Readonly -
COLOR
TheColor
of anItemStack
e.g.
or anItemTypes.LEATHER_CHESTPLATE
orItemTypes.POTION
custom colorAreaEffectCloud
. -
COMMAND
A command stored in aCommandBlock
orCommandBlockMinecart
. -
COMMANDS
Whether commands can be run in a world of aWorldTemplate
orServerWorldProperties
Readonly -
COMPARATOR_MODE
-
CONNECTED_DIRECTIONS
The connected directions of aBlockState
.e.g.
BlockTypes.GLASS_PANE
,BlockTypes.IRON_BARS
,BlockTypes.CHEST
, -
CONTAINER_ITEM
The containerItemType
of anItemStack
. e.g.ItemTypes.BUCKET
for aItemTypes.WATER_BUCKET
stack. Readonly -
FOOD_CONVERTS_TO
-
COOLDOWN
The amount of ticks aHopper
has to wait before transferring the next item. (in Vanilla this is 8 ticks) or The amount of ticks aEndGateway
has to wait for the next teleportation. or The amount of ticks aCrafter
has to wait for the next craft. -
COORDINATE_MULTIPLIER
-
CREATE_DRAGON_FIGHT
Overrides whether aWorldType
allows thedragon
fight mechanic to spawn.By default, the dragon only spawns in the
ReadonlyDefaultWorldKeys.THE_END
world withWorldTypes.THE_END
world type. -
CREATOR
The creator, usually of anEntity
. It is up to the implementation to define. -
CURRENT_SPELL
The currentSpellType
aSpellcaster
is casting. -
CUSTOM_ATTACK_DAMAGE
The damage dealt towards entities of a specificEntityType
by aArrowLike
.Note that in events, the damage defined for the provided
EntityType
will take priority over the "default" damage as defined fromArrowLike.attackDamage()
.Types not present in this mapping will be dealt damage to according to
ATTACK_DAMAGE
. -
CUSTOM_MODEL_DATA
The resource pack model index of anItemStack
.Resource packs can use the same index in their files to replace the item model of an ItemStack.
-
CUSTOM_NAME
The custom name of anEntity
,ItemStack
orBlockEntity
.If no custom name is set the dataholder may still have a
DISPLAY_NAME
-
CUSTOM_POTION_EFFECTS
The custom potion effects that are stored on anItemStack
. -
CUSTOMER
The currently trading customer with thisMerchant
. -
DAMAGE_ABSORPTION
The damage absorbed by an armorItemStack
. Readonly -
DAMAGE_PER_BLOCK
How much damage aFallingBlock
deals toLiving
entities it hits per block fallen.This damage is capped by
MAX_FALL_DAMAGE
. -
DECAY_DISTANCE
The distance at which aBlockState
will decay. This usually applies to leaves, for exampleBlockTypes.OAK_LEAVES
. -
DERAILED_VELOCITY_MODIFIER
-
DESPAWN_DELAY
-
DESTROY_SPEED
-
DETONATOR
The detonator of aPrimedTNT
. -
DIRECTION
-
DISPLAY_NAME
The display name of anEntity
,ItemStack
orBlockEntity
.To change a display name set a
CUSTOM_NAME
instead.On an
Entity
, this represents a combination ofCUSTOM_NAME
(if set), scoreboard info, and any click data.On an
ItemStack
, this represents theCUSTOM_NAME
or if not set theItemType
s translation.On a
BlockEntity
, this usually represents the name displayed in itsContainer
On a
WorldTemplate
orServerWorldProperties
, this represents the display name of the correspondingServerWorld
On a
TextDisplay
this is modifiable. -
DOMINANT_HAND
The dominantHandPreference
of anAgent
entity.NOTE: For
Player
s is this key read-only, theHandPreference
of a player can not be changed server-side. -
DOOR_HINGE
TheDoorHinge
of a doorBlockState
. -
DO_EXACT_TELEPORT
Whether exact teleport location should be used with aEndGateway
. -
DRIPSTONE_SEGMENT
The type of dripstone a certainBlockTypes.DRIPSTONE_BLOCK
represents. -
DURATION
The remaining duration (in ticks) of anAreaEffectCloud
. -
DURATION_ON_USE
The amount of ticks the duration of anAreaEffectCloud
is increased or reduced when it applies its effect. -
DYE_COLOR
The color of a dyeableBlockState
,ItemStack
or entity likeCat
s. or The baseDyeColor
of aBanner
orTropicalFish
. -
EATING_TIME
-
EFFICIENCY
The efficiency of anItemStack
tool. Affects mining speed of supported materials.CAN_HARVEST
Removing this from a tool makes it no longer a tool. -
EGG_TIME
The time (in ticks) until aChicken
lays anItemTypes.EGG
.Vanilla will calculate the egg timer by taking a random value between 0 (inclusive) and 6000 (exclusive) and then add that by another 6000. This unit ends up being in ticks. Once the chicken lays the egg, this calculation is ran again.
-
ENCHANTMENT_GLINT_OVERRIDE
Whether the glint effect on anItemStack
is shown. This overrides the default behaviour whenAPPLIED_ENCHANTMENTS
orSTORED_ENCHANTMENTS
are present. -
END_GATEWAY_AGE
The age (in ticks) of anEndGateway
-
ENTITY_TYPE
Theentity type
of a spawn egg, which may be one of several based onItemTypes.ZOMBIE_SPAWN_EGG
, etc. It is not guaranteed that the type of entity is the same as the one that will be spawned when used. It is likely unable to change the type of entity on anItemStack
, but it is possible to change thearchetype
by usingENTITY_TO_SPAWN
.- See Also:
-
ENTITY_TO_SPAWN
TheEntityArchetype
to spawn from any spawn egg, such as aItemTypes.ZOMBIE_SPAWN_EGG
orItemTypes.CREEPER_SPAWN_EGG
.The
ENTITY_TYPE
is not guaranteed to be the same as theEntityArchetype.type()
returned, but the spawned entity will be based on theEntityArchetype
returned here. -
EQUIPMENT_TYPE
TheEquipmentType
that the target inventory supports. This usually applies toEquipmentSlot
s. or TheEquipmentType
of anItemStack
Readonly -
EXHAUSTION
The current level of exhaustion of aHumanoid
.When the exhaustion level reaches 0, saturation is usually diminished such that saturation is decreased and then exhaustion is reset to the maximum. This type of effect occurs over time and can be modified by movements and actions performed by the
Humanoid
. -
EXPERIENCE
The amount of experience aPlayer
has or anExperienceOrb
contains. -
EXPERIENCE_FROM_START_OF_LEVEL
The total experience aPlayer
requires to advance from his current level to the next one. Readonly -
EXPERIENCE_LEVEL
The current level aPlayer
has. -
EXPERIENCE_SINCE_LEVEL
The amount of experience aPlayer
has collected towards the next level. -
EXPLOSION_RADIUS
-
EYE_HEIGHT
The eye height of anEntity
. Readonly -
EYE_POSITION
The eye position of anEntity
. Readonly -
FALL_DISTANCE
The distance anEntity
has fallen. -
FALL_TIME
The amount of ticks aFallingBlock
has been falling for. -
FEATURES
The features to place during decoration steps during world generation for aBiome
Readonly -
FIREWORK_EFFECTS
-
FIREWORK_FLIGHT_MODIFIER
The flight duration of aFireworkRocket
The duration is tiered and will stay partially random. A rocket will fly for roughly
modifier * 10 + (random number from 0 to 13)
ticks in Vanilla Minecraft. -
FIREWORK_SHAPE
-
FIRE_DAMAGE_DELAY
The delay in ticks until theEntity
will be damaged by the fire. -
FIRE_RESISTANT
Whether anItemStack
will burn in fire. -
FIRE_TICKS
The amount of ticks anEntity
is still burning. -
FIRST_DATE_JOINED
The time aUser
first joined on the Server. -
FIRST_TRUSTED
-
FIXED_TIME
The fixed time in aworld
of aWorldType
.If set the time is fixed at a particular
ReadonlyMinecraftDayTime
otherwise time flows freely. -
FLUID_ITEM_STACK
TheFluidStackSnapshot
contained within an item container. Item containers may include buckets and other mod added items. SeeCONTAINER_ITEM
-
FLUID_LEVEL
The fluid level of a liquidBlockState
. -
FLUID_TANK_CONTENTS
The directional tank information. TODO dataholder? cauldron blockstate? modded? -
FLYING_SPEED
The speed at which anPlayer
flies. -
FOG_COLOR
The color of fog in aBiome
. Readonly -
FOLIAGE_COLOR
The color override for foliage in aBiome
.Such as
BlockTypes.OAK_LEAVES
, other leaves,BlockTypes.VINE
If not present foliage color is instead determined by
ReadonlyBIOME_TEMPERATURE
andHUMIDITY
-
FOOD_LEVEL
-
FOX_TYPE
The type of aFox
. -
FROG_TYPE
The type of aFrog
. -
FROZEN_TIME
The time (in ticks) anEntity
is frozen. -
FUEL
Represents theKey
for the amount of fuel left in aBrewingStand
orFurnaceBlockEntity
orFurnaceMinecart
One
ItemTypes.BLAZE_POWDER
adds 20 fuel to the brewing stand.The fuel value corresponds with the number of batches of potions that can be brewed.
See
BURN_TIME
for the burn time added by a fuelItemStack
to a furnace -
FUSE_DURATION
The time (in ticks) aFusedExplosive
's fuse will burn before the explosion. -
GAME_MODE
-
GAME_PROFILE
The player represented by aBlockTypes.PLAYER_HEAD
(andBlockTypes.PLAYER_WALL_HEAD
)BlockState
or aItemTypes.PLAYER_HEAD
ItemStack
.The offered game profile will be set exactly, unlike in vanilla where the game profile will be resolved automatically for properties (including textures). You can obtain a game profile with properties using
GameProfileProvider.profile(org.spongepowered.api.profile.GameProfile)
. -
GENERATION
The generation of aItemTypes.WRITTEN_BOOK
ItemStack
. Depending on the book's generation it may be impossible to copy it. -
GRASS_COLOR
The color override for grass in aBiome
.Such as
BlockTypes.GRASS_BLOCK
,BlockTypes.SHORT_GRASS
,BlockTypes.TALL_GRASS
,BlockTypes.FERN
,BlockTypes.LARGE_FERN
,BlockTypes.SUGAR_CANE
If not present grass color is instead determined by
ReadonlyBIOME_TEMPERATURE
andHUMIDITY
-
GRASS_COLOR_MODIFIER
The grass color modifier in aBiome
. Readonly -
GLOWING_TEXT
Whether aSign.SignText
has glowing text (from dying withItemTypes.GLOW_INK_SAC
). When using it onSign
this refers to theSIGN_FRONT_TEXT
only. -
GROWTH_STAGE
-
HARDCORE
Whether world of aWorldTemplate
orWorldProperties
is in hardcore mode. Readonly -
HAS_ARMS
Whether anArmorStand
's arms are visible. -
HAS_BASE_PLATE
Whether anArmorStand
has a visible base plate. -
HAS_BERRIES
Whether aBlockTypes.CAVE_VINES
orBlockTypes.CAVE_VINES_PLANT
has glow berries. -
HAS_CEILING
Whether aWorldType
generates aworld
with a ceiling at some pre-determined y value composed ofBlockTypes.BEDROCK
. Most notable usage of this is for thetype
.In Vanilla, used in weather, map items, and respawning mechanics
Readonly -
HAS_CHEST
Whether aPackHorse
has a chest. -
HAS_DEFAULT_BACKGROUND
Whether theTextDisplay
has a default background. -
HAS_EGG
Whether aTurtle
currently has an egg. -
HAS_FISH
Whether aDolphin
has a fish.Dolphins will navigate to a treasure (if a structure that provides one is nearby) if they have been given a fish.
-
HAS_MARKER
Whether anArmorStand
is a "marker" stand.If
true
, the armor stand's bounding box is near impossible to see, and the armor stand can no longer be interacted with. -
HAS_PORES_DOWN
-
HAS_PORES_EAST
-
HAS_PORES_NORTH
-
HAS_PORES_SOUTH
-
HAS_PORES_UP
-
HAS_PORES_WEST
-
HAS_RAIDS
-
HAS_SKYLIGHT
-
HAS_TEXT_SHADOW
Whether theTextDisplay
has a shadow. -
HAS_VIEWED_CREDITS
Whether a server player has viewed the credits.The credits are displayed the first time a player returns to the overworld safely using an end portal.
-
HEAD_ROTATION
The rotation of aLiving
's orArmorStand
's head.The format of the rotation is represented by:
x -> pitch
-
y -> yaw
z -> roll
Note that the pitch will be the same x value returned by
Entity.rotation()
and Minecraft does not currently support head roll so the z value will always be zero. -
HEALING_CRYSTAL
TheEndCrystal
currently healing anEnderDragon
. -
HEALTH
ALiving
's orEndCrystal
's current health.The range of the health depends on the object on which this method is defined. For
Players
in Minecraft, the nominal range is between 0 and 20, inclusive, but the range can be adjusted.Convention dictates that health does not fall below 0 but this convention may be broken.
-
HEALTH_SCALE
The value aServerPlayer
s max-health (excluding absorption) in the GUI will scale to.Two health is equal to one heart displayed.
With scaling is disabled health automatically scales to
MAX_HEALTH
-
HEIGHT
-
HELD_ITEM
TheItemType
aBlockState
represents. Readonly -
HIDDEN_GENE
-
HIDE_ATTRIBUTES
Whether the attributes of anItemStack
are hidden. -
HIDE_CAN_DESTROY
Whether theBREAKABLE_BLOCK_TYPES
of anItemStack
are hidden. -
HIDE_CAN_PLACE
Whether thePLACEABLE_BLOCK_TYPES
of anItemStack
are hidden. -
HIDE_ENCHANTMENTS
Whether theAPPLIED_ENCHANTMENTS
of anItemStack
are hidden. -
HIDE_MISCELLANEOUS
Whether miscellaneous values of anItemStack
are hidden. e.g. potion effects or shield pattern info -
HIDE_STORED_ENCHANTMENTS
Whether theSTORED_ENCHANTMENTS
of anItemStack
are hidden. -
HIDE_TOOLTIP
Whether the tooltip of anItemStack
is hidden. -
HIDE_UNBREAKABLE
WhetherIS_UNBREAKABLE
state of anItemStack
is hidden. -
HOME_POSITION
-
HORSE_COLOR
TheHorseColor
of aHorse
. -
HORSE_STYLE
TheHorseStyle
of aHorse
. -
HUMIDITY
The humidity of aBiome
. Readonly -
INACCURACY
The inaccuracy of anItemStack
that launchesProjectile
s.An inaccuracy of 0 means perfect accuracy. Inaccuracy of 1 is the default for most vanilla items.
-
INFINIBURN
-
INITIALIZED
Whether a world of aServerWorldProperties
was initialized. -
INSTRUMENT_TYPE
-
INTANGIBLE_PROJECTILE
Whether a projectileItemStack
would be intangible when fired. Intangibleprojectiles
havePickupRules.CREATIVE_ONLY
. SeePICKUP_RULE
. -
INTERPOLATION_DELAY
The interpolation delay of aDisplayEntity
-
INTERPOLATION_DURATION
The interpolation duration of aDisplayEntity
-
INVENTORY
-
INVERTED
Whether aBlockTypes.DAYLIGHT_DETECTOR
BlockState
is inverted. -
INVULNERABILITY_TICKS
The amount of ticks anEntity
will remain invulnerable for. -
INVULNERABLE
Whether anEntity
is invulnerable.This does not protect from the void, players in creative mode, and manual killing like the /kill command.
-
IN_WALL
Whether a fence gateBlockState
is in a wall. -
IS_ADULT
Whether aLiving
is considered an adult. -
IS_AFLAME
Whether aBlaze
is currently burning.Unlike
FIRE_TICKS
, the burning effect will not damage the burning entity. -
IS_AI_ENABLED
Whether anAgent
s AI is enabled. -
IS_ANGRY
Whether aAngerable
is currently aggressive. -
IS_ATTACHED
Whether aBlockState
is "attached" to another block. -
IS_AUTO_SPIN_ATTACK
Whether aLiving
is doing an auto spin attack (doable with theEnchantmentTypes.RIPTIDE
enchantment.)- See Also:
-
IS_BEGGING_FOR_FOOD
-
IS_CELEBRATING
WhetherRaider
s are currently celebrating. -
IS_CHARGED
Whether aCreeper
is charged. -
IS_CHARGING_CROSSBOW
Whether aPillager
is charging it's crossbow. -
IS_CLIMBING
Whether aSpider
is currently climbing. -
IS_CONNECTED_EAST
-
IS_CONNECTED_NORTH
-
IS_CONNECTED_SOUTH
-
IS_CONNECTED_UP
-
IS_CONNECTED_WEST
-
IS_CRITICAL_HIT
Whether anArrow
will cause a critical hit. -
IS_CROUCHING
Whether aFox
is currently crouching. -
IS_CUSTOM_NAME_VISIBLE
Whether a custom name is visible on anEntity
. -
IS_DEFENDING
Whether aFox
is currently defending. -
IS_DISARMED
-
IS_EATING
Whether an entity is eating. e.g.Panda
-
IS_EFFECT_ONLY
Whether aLightningBolt
is harmful to otherentities
. Readonly -
IS_ELYTRA_FLYING
Whether aPlayer
is flying with anItemTypes.ELYTRA
. -
IS_EXTENDED
Whether a pistonBlockState
is currently extended. TODOPiston
? -
IS_FACEPLANTED
Whether aFox
is currently faceplanted. -
IS_FILLED
Whether aBlockState
is filled.e.g.
BlockTypes.END_PORTAL_FRAME
s. -
IS_FLAMMABLE
Whether aBlockState
is flammable. Readonly -
IS_FLYING
-
IS_FRIGHTENED
Whether an entity is frightened.In vanilla,
Panda
s that have aPanda.knownGene()
ofPandaGenes.WORRIED
and are in aworld
whoseWeatherType
is currently aWeatherTypes.THUNDER
are considered "frightened". -
IS_FULL_BLOCK
Whether the block at theServerLocation
is a full block. -
IS_GLOWING
Whether anEntity
has a glowing outline. -
IS_GOING_HOME
WhetherTurtle
is proceeding to it'shome position
. -
IS_GRAVITY_AFFECTED
Whether something is affected by gravity. e.g.Entity
s andBlockState
s Readonly(BlockState.class) -
IS_HANGING
Whether a lantern block is hanging. -
IS_HISSING
Whether aCat
is hissing. -
IS_IMMOBILIZED
Whether aRavager
is immobilized. Readonly -
IS_INDIRECTLY_POWERED
Whether aServerLocation
is indirectly powered. Readonly -
IS_INTERESTED
Whether aFox
is currently interested in something. -
IS_INVISIBLE
Whether anEntity
is currently invisible. This will only simply render the entity as vanished, but not prevent any entity updates being sent to clients. To fully "vanish" anEntity
, useVANISH_STATE
. -
IS_IN_WATER
Whether aBoat
is currently inBlockTypes.WATER
. Readonly -
IS_JOHNNY
Whether aVindicator
is exhibiting "johnny" behavior.- See Also:
-
IS_LAYING_EGG
Whether aTurtle
is currently digging to lay an egg. -
IS_LEADER
Whether aPatroller
is the leader. -
IS_LIT
Whether aBlockState
is lit. e.g.BlockTypes.FURNACE
,BlockTypes.CAMPFIRE
orBlockTypes.REDSTONE_TORCH
. -
IS_LOAD_ON_STARTUP
Whether a world of aWorldTemplate
orServerWorldProperties
is supposed to be loaded at startup. Readonly -
IS_LYING_DOWN
Whether aCat
is lying down.In vanilla, a cat lies down near its owner when the owner goes to sleep.
-
IS_LYING_ON_BACK
Whether aPanda
is lying on it's back. -
IS_OCCUPIED
Whether a bedBlockState
is occupied. e.g.BlockTypes.WHITE_BED
. -
IS_ON_RAIL
Whether aMinecart
is on it's rail Readonly -
IS_OPEN
Whether a door/fencegate/trapdoorBlockState
is open. -
IS_PASSABLE
Whether aBlockState
is passable (can be walked through). Readonly -
IS_PATROLLING
Whether aPatroller
is currently patrolling. -
IS_PERSISTENT
Whether anEntity
or leavesBlockState
will be prevented from despawning/decaying.In Vanilla, entities may despawn if the player moves too far from them. A persisting entity will not be removed due to no players being near it.
-
IS_PLACING_DISABLED
Whether players are prevented from placing items from an equipment slot on anArmorStand
-
IS_PLAYER_CREATED
-
IS_POUNCING
Whether aFox
is currently pouncing. -
IS_POWERED
Whether aBlockState
is powered.Applies to blocks that may be powered in order to emit a Redstone signal of consistently maximum strength, such as
BlockTypes.LEVER
,BlockTypes.OAK_BUTTON
,BlockTypes.OAK_PRESSURE_PLATE
, and their stone counterparts. -
IS_PRIMED
Whether aFusedExplosive
is currently primed. Readonly -
IS_PURRING
Whether aCat
is purring. -
IS_RELAXED
Whether aCat
is relaxed.In vanilla, a cat relaxes before lying down.
-
IS_REPLACEABLE
Whether aBlockState
can be replaced by a player without breaking it first. e.g.BlockTypes.WATER
Readonly -
IS_ROARING
Whether aRavager
is roaring. Readonly -
IS_ROLLING_AROUND
Whether aPanda
is rolling around. -
IS_SADDLED
-
IS_SCREAMING
Whether anEnderman
is screaming. -
IS_SHEARED
Whether aSheep
is sheared. -
IS_SILENT
Whether anEntity
is silent.A silent entity will not emit sounds or make noises.
-
IS_SITTING
-
IS_SLEEPING
-
IS_SLEEPING_IGNORED
Whether aPlayer's
sleeping status is ignored when checking whether to skip the night due to players sleeping. The time in a world will be advanced to day if all players in it either are sleeping or are set to ignore. -
IS_SMALL
Whether anArmorStand
is small. -
IS_SNEAKING
Whether anEntity
is sneaking.Sneaking entities generally move slower and do not make walking sounds.
-
IS_SNEEZING
Whether aPanda
is sneezing. -
IS_SNOWY
Whether aBlockTypes.DIRT
BlockState
is snowy. -
IS_SOLID
Whether aBlockState
is solid. Readonly -
IS_SPRINTING
Whether anEntity
is sprinting. -
IS_STANDING
Whether aPolarBear
is currently standing. -
IS_STUNNED
Whether aRavager
is stunned. Readonly -
IS_SURROGATE_BLOCK
Whether aBlockState
is a surrogate block for a block that was provided in an environment (almost always modded), that the block type provider no longer exists. If true this may indicate that the surrogate block functions differently than the original block. Readonly -
IS_TAKING_DISABLED
Whether players are prevented from taking items from an equipment slot on anArmorStand
-
IS_TAMED
Whether aTameableAnimal
is currently tamed -
IS_TRAVELING
Whether aTurtle
is currently traveling. -
IS_TRUSTING
-
IS_UNBREAKABLE
Whether anItemStack
orBlockState
is unbreakable.Setting this to
Readonly(BlockState.class)true
will prevent the item stack'sITEM_DURABILITY
from changing. -
IS_UNHAPPY
Whether aPanda
is unhappy. -
IS_WATERLOGGED
Whehter aBlockState
is waterlogged. -
IS_WET
-
ITEM_DISPLAY_TYPE
Thedisplay type
of aItemDisplay
. -
ITEM_DURABILITY
The durability of anItemStack
.MAX_DURABILITY
-
ITEM_NAME
The default item name of anItemStack
.May be overridden by
CUSTOM_NAME
-
ITEM_RARITY
The rarity of an item. -
ITEM_STACK_SNAPSHOT
-
KNOCKBACK_STRENGTH
The custom knockback strength applied by anArrowLike
.For the knockback provided by hits with a weapon according to the enchantment of the same name, see
APPLIED_ENCHANTMENTS
. -
KNOWN_GENE
-
LAST_ATTACKER
-
LAST_COMMAND_OUTPUT
The output yielded by the last command of aCommandBlock
orCommandBlockMinecart
. -
LAST_DAMAGE_RECEIVED
The last damage aLiving
received. -
LAST_DATE_JOINED
The last time aUser
joined on the server. -
LAST_DATE_PLAYED
The last time aUser
has been playing on the server. -
LAYER
-
LEASH_HOLDER
-
LEFT_ARM_ROTATION
The rotation of anArmorStand
's left arm. -
LEFT_LEG_ROTATION
The rotation of anArmorStand
's left leg. -
LIFE_TICKS
The amount of ticks till aVex
starts taking damage due to living too long.When this value hits 0 or lower, the Vex will receive damage and then the value will set back to 20 until the Vex dies.
If the Vex was summoned by a player, this value will be
Ticks.infinite()
-
LIGHT_EMISSION
The amount of light that emitted by aBlockState
. Readonly -
LINE_WIDTH
The maximum line width of aTextDisplay
. -
LLAMA_TYPE
-
LOCALE
AServerPlayer
's client language. -
LOCK_TOKEN
The token used to lock aCarrierBlockEntity
. Or the token on anItemStack
to unlock it. -
LODESTONE
A lodestone location, used withItemTypes.COMPASS
. -
LODESTONE_TRACKED
Whether to remove thetarget location
when theBlockTypes.LODESTONE
at that location is removed. -
LORE
-
MAP_CANVAS
-
MAP_DECORATIONS
-
MAP_INFO
Represents theKey
for theMapInfo
of anItemStack
of typeItemTypes.FILLED_MAP
.Can be null if the ItemStack was made by a plugin and hasn't been offered a MapInfo yet.
-
MAP_LOCATION
-
MAP_LOCKED
Represents theKey
for whether a map updates from players for aMapInfo
. By default this is false. Can be used in combination withMAP_CANVAS
to create custom static map. See Minecraft Wiki - Map Locking -
MAP_SCALE
- See Also:
-
MAP_TRACKS_PLAYERS
-
MAP_UNLIMITED_TRACKING
-
MAP_WORLD
-
MATRIX
TheMatrix4d
of aDisplayEntity
-
MATTER_TYPE
The matter state of aBlockState
Readonly -
MAX_AIR
The maximum air supply aLiving
may have.For the current amount of air, check
REMAINING_AIR
. -
MAX_BURN_TIME
The maximum amount of ticks aFurnaceBlockEntity
can burn with the currently used fuel item. -
MAX_COOK_TIME
The total time the currentItemStack
in aFurnaceBlockEntity
has to be cooked. -
MAX_DURABILITY
The maximum durability of anItemStack
.ITEM_DURABILITY
-
MAX_EXHAUSTION
The maximum exhuastion of aHumanoid
. Readonly.- See Also:
-
MAX_FALL_DAMAGE
The maximum damage aFallingBlock
can deal. -
MAX_FOOD_LEVEL
The maximum food level of aHumanoid
. Readonly.- See Also:
-
MAX_FROZEN_TIME
The frozen time after which anEntity
is completely frozen. Readonly.- See Also:
-
MAX_GROWTH_STAGE
-
MAX_HEALTH
The maximum health of aLiving
.The maximum health set here may affect the attribute increasing health points. The base health should be minded that it may be lower than the total maximum health of the entity.
-
MAX_NEARBY_ENTITIES
The maximum number of entities tracked by aMobSpawner
orTrialSpawner
A spawner will not spawn entities if there are more entities tracked than this value permits.
-
MAX_SATURATION
The maximum saturation of aHumanoid
. Readonly.- See Also:
-
MAX_SPAWN_DELAY
The maximum amount of ticks between two batches of entities spawned by aMobSpawner
orTrialSpawner
-
MAX_SPEED
The max speed of aBoat
. In vanilla, this is 0.4 -
MAX_STACK_SIZE
The maximum stack size of slots in an inventory. For most vanilla inventories this is 64. Readonly -
MINECART_BLOCK_OFFSET
The represented block's offset of aMinecartLike
. -
MIN_SPAWN_DELAY
The minimum amount of ticks between two batches of entities spawned by aMobSpawner
orTrialSpawner
-
MOISTURE
The moisture value of aBlockTypes.FARMLAND
BlockState
. -
MOOSHROOM_TYPE
The type of aMooshroom
. -
MUSIC_DISC
-
NATURAL_SPAWNERS
The settings for entities that can naturally spawn in aBiome
.See
ReadonlySPAWN_CHANCE
for the spawn chance during world generation -
NATURAL_SPAWNER_COST
-
NATURAL_WORLD_TYPE
Whether aWorldType
is considered natural.Natural worlds allow sleeping in beds and setting the respawn point,
ReadonlyBlockTypes.NETHER_PORTAL
portals to spawnZombifiedPiglin
andItemTypes.COMPASS
to work -
NEXT_ENTITY_TO_SPAWN
The next entity that will be spawned by aMobSpawner
orTrialSpawner
Normally the entities to be spawned are determined by a random value applied to the
SPAWNABLE_ENTITIES
weighted collection. If this value exists, it will override the random spawn with a definite one. -
NOTE_PITCH
The pitch of aBlockTypes.NOTE_BLOCK
BlockState
. -
NOTE_BLOCK_SOUND
The sound played by aItemTypes.PLAYER_HEAD
ItemStack
on aBlockTypes.NOTE_BLOCK
. Value is the key of aSoundType
. -
NOTIFIER
The notifier, usually of anEntity
. It is up to the implementation to define. -
OCCUPIED_DECELERATION
The deceleration aBoat
while it hasPASSENGERS
. -
ON_GROUND
Whether anEntity
is currently considered to be on the ground. Readonly -
OPACITY
The opacity of aTextDisplay
. 0 to 255 -
ORIENTATION
TheOrientation
of anItemFrame
. -
OWNER
The owner of aOwnable
. -
PAGES
The content of aItemTypes.WRITTEN_BOOK
ItemStack
.Use
PLAIN_PAGES
if you wish to inspect the contents of aItemTypes.WRITABLE_BOOK
. -
PARROT_TYPE
-
PARTICLE_EFFECT
The particle type of anAreaEffectCloud
.Only a few
ParticleOption
s will be usable for this effect for specificParticleType
s and not everyParticleType
will be applicable. -
PASSED_COOK_TIME
The amount of ticks aFurnaceBlockEntity
has been cooking the current item for.Once this value reaches the
MAX_COOK_TIME
, the item will be finished cooking. -
PASSENGERS
-
PATTERN_COLOR
ATropicalFish
's pattern color. -
PERFORM_SPAWN_LOGIC
Whether spawn logic is performed on a world of aWorldTemplate
orServerWorldProperties
SeeServerWorldProperties.performsSpawnLogic()
. Readonly -
PHANTOM_PHASE
-
PICKUP_DELAY
The pickup delay (in ticks) of anItem
. -
PICKUP_RULE
ThePickupRule
of anArrowLike
. -
PIGLIN_SAFE
Whether aWorldType
is safe forPiglin
to not transform intoZombifiedPiglin
over time in aworld
of that type Readonly -
PISTON_TYPE
The piston type of a pistonBlockState
TODO dataholderPiston
. -
PLACEABLE_BLOCK_TYPES
The block types anItemStack
may be placed on. -
PLAIN_PAGES
The content of aItemTypes.WRITABLE_BOOK
ItemStack
.Use
PAGES
if you wish to get the contents of aItemTypes.WRITTEN_BOOK
-
PLUGIN_CONTAINER
The plugin that created anInventory
-
PORES
The pore sides of aBlockTypes.BROWN_MUSHROOM_BLOCK
orBlockTypes.RED_MUSHROOM_BLOCK
BlockState
. SeeHAS_PORES_UP
,HAS_PORES_DOWN
,HAS_PORES_NORTH
,HAS_PORES_EAST
,HAS_PORES_SOUTH
,HAS_PORES_WEST
. -
PORTAL_LOGIC
ThePortalLogic
anEntity
is currently in. -
PORTAL
-
PORTION_TYPE
ThePortionType
of aBlockState
. e.g.BlockTypes.OAK_DOOR
,BlockTypes.ROSE_BUSH
orBlockTypes.WHITE_BED
For slabs useSLAB_PORTION
instead -
POT_FRONT_DECORATION
Thedecoration
for aDecoratedPot
.- See Also:
-
POT_LEFT_DECORATION
Thedecoration
for aDecoratedPot
.- See Also:
-
POT_RIGHT_DECORATION
Thedecoration
for aDecoratedPot
.- See Also:
-
POT_BACK_DECORATION
Thedecoration
for aDecoratedPot
.- See Also:
-
POTENTIAL_MAX_SPEED
The potential max speed of aMinecart
. -
POTION_EFFECTS
The potion effects that are present on anEntity
or applied by an
AreaEffectCloud
orArrowLike
or stored on an
ItemStack
. -
POTION_TYPE
The potion type of anItemStack
. -
POWER
The signal power of aBlockState
.Applies to blocks that may emit a Redstone signal of variable strength, such as
BlockTypes.REDSTONE_WIRE
,BlockTypes.DAYLIGHT_DETECTOR
,BlockTypes.LIGHT_WEIGHTED_PRESSURE_PLATE
etc. -
PRECIPITATION
The defaultPrecipitation
type of aBiome
. Readonly. -
HAS_PRECIPITATION
Whether aBiome
hasPrecipitation
. Readonly. -
PREVIOUS_GAME_MODE
The previousGameMode
of aServerPlayer
. Readonly. -
PRIMARY_POTION_EFFECT_TYPE
ABeacon
's primary effect. -
PROFESSION_TYPE
-
PROFESSION_LEVEL
-
PUSH_REACTION
-
PVP
Whether pvp combat is enabled in a world of aWorldTemplate
orServerWorldProperties
Readonly -
RABBIT_TYPE
The type of aRabbit
. -
RADIUS
The radius of anAreaEffectCloud
. -
RADIUS_ON_USE
The amount the radius of anAreaEffectCloud
grows or shrinks each time it applies its effect. -
RADIUS_PER_TICK
The amount the radius of anAreaEffectCloud
grows or shrinks per tick. -
RAID_WAVE
The wave number of a raid aRaider
is in. Readonly but mutable -
RAIL_DIRECTION
TheRailDirection
of aBlockState
. -
REAPPLICATION_DELAY
The delay (in ticks) after which anAreaEffectCloud
will reapply its effect on a previously affectedEntity
. -
REDSTONE_DELAY
The redstone delay on aBlockTypes.REPEATER
BlockState
. -
REMAINING_AIR
The amount of air aLiving
has left. -
REMAINING_BREW_TIME
The remaining amount of ticks the current brewing process of aBrewingStand
will take.If nothing is being brewed, the remaining brew time will be 0.
-
REMAINING_SPAWN_DELAY
Represents theKey
for the remaining number of ticks to pass before another attempt to spawn entities is made by aMobSpawner
orTrialSpawner
-
REPAIR_COST
The additional experience cost required to modify anItemStack
in anBlockTypes.ANVIL
. -
REPLENISHED_FOOD
The amount of food a foodItemStack
restores when eaten. -
REPLENISHED_SATURATION
The amount of saturation a foodItemStack
provides when eaten. -
REPRESENTED_INSTRUMENT
-
REQUIRED_PLAYER_RANGE
How close aPlayer
has to be around theMobSpawner
in order for it to attempt to spawn entities. -
RESPAWN_ANCHOR_USABLE
Whether aWorldType
allows usingBlockTypes.RESPAWN_ANCHOR
s. TODO check if trueWhen respawn anchor usage is not allowed they will instead explode in a
world
of that type.Also see
ReadonlyBEDS_USABLE
-
RESPAWN_LOCATIONS
-
RIGHT_ARM_ROTATION
The rotation of anArmorStand
's right arm. -
RIGHT_LEG_ROTATION
The rotation of anArmorStand
's right leg. -
ROARING_TIME
The time aRavager
is roaring. -
SATURATION
The current saturation of aPlayer
.When the saturation level reaches 0, the food level is usually diminished such that the food level is decreased by 1, then saturation is reset to the maximum value. This type of effect occurs over time and can be modified by movements and actions performed by the
Player
. -
SCALE
-
SCOREBOARD_TAGS
The scoreboard tags applied to anEntity
.- See Also:
-
SCORCHING
Whether aWorldType
is considered scorching hot.Affects
ReadonlyBlockTypes.WATER
,BlockTypes.WET_SPONGE
and flow ofFluidTypes.FLOWING_LAVA
-
SCULK_SENSOR_STATE
The triggering state of aBlockTypes.SCULK_SENSOR
. -
SECONDARY_POTION_EFFECT_TYPE
ABeacon
's secondary effect. -
SECOND_TRUSTED
-
SEED
The seed of aWorldTemplate
-
SEE_THROUGH_BLOCKS
WhetherTextDisplay
are visible through blocks. -
SERIALIZATION_BEHAVIOR
-
SHADOW_RADIUS
The shadow radius of aDisplayEntity
-
SHADOW_STRENGTH
The shadow strength duration of aDisplayEntity
-
SHOOTER
The shooter of aProjectile
. -
SHOW_BOTTOM
Whether aEndCrystal
should show its bottom bedrock platform. -
SIGN_LINES
-
SIGN_BACK_TEXT
-
SIGN_FRONT_TEXT
-
SIGN_WAXED
-
SIZE
-
SKIN_PARTS
The parts of aServerPlayer
skin that should be displayed.This is a read-only value, set by the client.
-
SKIN_PROFILE_PROPERTY
-
SKIN_MOISTURE
The "moisture" state of aDolphin
.Vanilla sets the dolphin's skin moisture to 2400 so long as the entity is in water, being rained on, or in a bubble column. If not, the dolphin will loose 1 moisture per tick. Once this value is 0 or below, the dolphin will be damaged via
DamageSources.DRYOUT
with a value of 1 per tick until death. -
SKY_LIGHT
The skylight value at aServerLocation
. For the blocklight seeBLOCK_LIGHT
. ReadonlyOr the skylight override for a
DisplayEntity
. -
SKY_COLOR
The color of the sky in aBiome
. Readonly -
SLAB_PORTION
TheSlabPortion
of aBlockState
. -
SLEEP_TIMER
The sleep timer of aPlayer
. -
SLOT_INDEX
-
SLOT_POSITION
The position of aSlot
within aGridInventory
. Readonly -
SLOT_SIDE
The side of a particularSlot
, for use in querying "sided inventories". Readonly -
SLOWS_UNOCCUPIED
Whether aMinecart
slows down when it has noPASSENGERS
. -
SNEEZING_TIME
The time aPanda
has been sneezing (in ticks) -
SPAWNABLE_ENTITIES
-
SPAWN_CHANCE
The chance for an entity to spawn in aBiome
during world generation.Must be between 0 and 1
Also see
ReadonlyNATURAL_SPAWNERS
-
SPAWN_COUNT
How many entities aMobSpawner
spawns at once. -
SPAWN_LIGHT_LIMIT
The light level needed to block monster spawning in aWorldType
. -
SPAWN_LIGHT_RANGE
The light level range needed to block monster spawning in aWorldType
-
SPAWN_POSITION
The spawn position in a world of aWorldTemplate
orWorldProperties
Readonly -
SPAWN_RANGE
How far away from theMobSpawner
orTrialSpawner
the entities spawned by it may appear. -
SPECTATOR_TARGET
-
STAIR_SHAPE
TheStairShape
of aBlockState
. -
STATISTICS
-
STORED_ENCHANTMENTS
The enchantments stored on anItemStack
.Stored enchantments are meant to be transferred. Usually this key applies to
ItemTypes.ENCHANTED_BOOK
ItemStack
s. Enchantments affecting the item stack are retrieved viaAPPLIED_ENCHANTMENTS
instead. -
STRENGTH
ALlama
s carrying strength. The higher the strength, the more items it can carry (effectively the size of inventory). -
STRUCTURE_AUTHOR
The author of a structure from aStructureBlock
. -
STRUCTURE_IGNORE_ENTITIES
Whether aStructureBlock
should ignore entities when saving a structure. -
STRUCTURE_INTEGRITY
The integrity of aStructureBlock
. -
STRUCTURE_MODE
The mode of aStructureBlock
. -
STRUCTURE_POSITION
The position of aStructureBlock
. -
STRUCTURE_POWERED
Whether aStructureBlock
is powered. -
STRUCTURE_SEED
The seed of aStructureBlock
-
STRUCTURE_SHOW_AIR
Whether aStructureBlock
should make allBlockTypes.AIR
,BlockTypes.CAVE_AIR
,BlockTypes.STRUCTURE_VOID
visible. -
STRUCTURE_SHOW_BOUNDING_BOX
Whether aStructureBlock
shows the bounding box. -
STRUCTURE_SIZE
The size of aStructureBlock
s structure. -
STUCK_ARROWS
The amount of "stuck arrows" in aLiving
. -
STUNNED_TIME
The time (in ticks) aRavager
is stunned. -
SUCCESS_COUNT
The amount of successful executions of a command stored in aCommandBlock
orCommandBlockMinecart
. -
SUSPENDED
Whether aBlockState
is suspended. -
SWIFTNESS
-
TARGET_ENTITY
The targeted entity either by anAgent
and it'sGoalExecutorTypes.TARGET
selector or by aFishingBobber
orShulkerBullet
. -
TARGET_LOCATION
A target location. e.g. AnEyeOfEnder
target or aPlayer
's compass. -
TARGET_POSITION
A target block position. e.g. APatroller
's patrol target, the travel position of aTurtle
, the exit portal position of aEndGateway
or anEndCrystal
's beam target. -
TELEPORT_DURATION
The teleport duration of aDisplayEntity
-
TEMPERATURE_MODIFIER
TheTemperatureModifier
of aBiome
. Readonly -
TEXT_ALIGNMENT
TheTextAlignment
of aTextDisplay
. -
TEXT_BACKGROUND_COLOR
The backgroundColor
of aTextDisplay
. -
TICKS_REMAINING
The remaining fuse time in ticks of aFusedExplosive
. This value may be set to an arbitrary value if the explosive is not primed. -
TILT
The tilt of aBlockTypes.BIG_DRIPLEAF
block, as triggered by player motion. -
TOOL_DAMAGE_PER_BLOCK
TheITEM_DURABILITY
damage anItemStack
tool takes per block. -
TOOL_RULES
-
TOOL_TYPE
-
TRACKS_OUTPUT
Whether aCommandBlock
does track its output.If this is set, the output of the most recent execution can be retrieved using
LAST_COMMAND_OUTPUT
. -
TRADE_OFFERS
-
TRANSIENT
Whether anEntity
is transient. This prevents the entity from being saved to disk. The rules for this are as follows... If the entity type says that it isn't transient then this key is readonly. If the entity type says that it is transient, then this key dictates the current state. -
TRANSFORM
TheTransform
of aDisplayEntity
-
TROPICAL_FISH_SHAPE
ATropicalFish
's shape. -
UNHAPPY_TIME
The time aPanda
has been unhappy (in ticks) -
UNIQUE_ID
TheUUID
of a custom inventory. -
UNOCCUPIED_DECELERATION
The deceleration aBoat
while it does not havePASSENGERS
. -
UNSTABLE
Whether aBlockTypes.TNT
BlockState
is unstable. -
UP_OR_DOWN
Whether aBlockTypes.POINTED_DRIPSTONE
is facing up or down.Only supports
Direction.UP
orDirection.DOWN
-
UPDATE_GAME_PROFILE
Whether changes toSKIN_PROFILE_PROPERTY
should be reflected in an entity'sGameProfile
. -
VANISH_STATE
TheVanishState
of anEntity
.The presence of a vanished entity will not be made known to a client; no packets pertaining to this entity are sent. Client-side, this entity will cease to exist. Server-side it may still be targeted by hostile entities or collide with other entities.
Vanishing an
Entity
ridden by other entities (seePASSENGERS
will cause problems. -
VEHICLE
The vehicle anEntity
is riding.Vehicles may be nested as a vehicle might itself ride another entity. To get the vehicle on bottom, use
BASE_VEHICLE
. -
VELOCITY
The velocity of anEntity
. -
VIEW_DISTANCE
The client view distance of aServerPlayer
or the view distance in a world of a
WorldTemplate
orServerWorldProperties
This value represents the radius (around the player) in unit chunks.
Readonly -
VIEW_RANGE
The view range of aDisplayEntity
-
VILLAGER_TYPE
The type of aVillager
orZombieVillager
. -
WAIT_TIME
The duration in ticks after which anAreaEffectCloud
will begin to apply its effect to entities. -
WALKING_SPEED
-
WALL_CONNECTION_STATES
The connection state of a wall in all four cardinal directions (north, west, east, and south).See
BlockStateKeys.NORTH_WALL
,BlockStateKeys.EAST_WALL
,BlockStateKeys.SOUTH_WALL
orBlockStateKeys.WEST_WALL
for the individual connections. -
WATER_COLOR
The color of water in aBiome
. Readonly -
WATER_FOG_COLOR
The color of water fog in aBiome
. Readonly -
WEATHER
The weather of aServerWorldProperties
. -
WILL_SHATTER
Whether a thrownEyeOfEnder
will shatter. -
WIRE_ATTACHMENTS
-
WIRE_ATTACHMENT_EAST
TheWireAttachmentType
of aBlockTypes.REDSTONE_WIRE
BlockState
for its neighboring block to theDirection.EAST
. -
WIRE_ATTACHMENT_NORTH
TheWireAttachmentType
of aBlockTypes.REDSTONE_WIRE
BlockState
for its neighboring block to theDirection.NORTH
. -
WIRE_ATTACHMENT_SOUTH
TheWireAttachmentType
of aBlockTypes.REDSTONE_WIRE
BlockState
for its neighboring block to theDirection.SOUTH
. -
WIRE_ATTACHMENT_WEST
TheWireAttachmentType
of aBlockTypes.REDSTONE_WIRE
BlockState
for its neighboring block to theDirection.WEST
. -
WITHER_TARGETS
-
WOLOLO_TARGET
-
WORLD_BORDER
The world border ofWorldProperties
Readonly -
WORLD_DIFFICULTY
The difficulty of aWorldTemplate
orWorldProperties
Readonly -
WORLD_FLOOR
The minimumY
coordinate of aWorldType
Blocks cannot exist at a lower
Y
value in aServerWorld
of that typeIn vanilla this is a multiple of 16 between -2032 and 2016
Also see
ReadonlyWORLD_HEIGHT
-
WORLD_GEN_CONFIG
The world generation config of aServerWorldProperties
Readonly -
WORLD_HEIGHT
The height of aWorldType
In vanilla this is a multiple of 16 between 16 and 4064.
floor+height
may not be more than 2032Also see
ReadonlyWORLD_FLOOR
-
WORLD_LOGICAL_HEIGHT
The logical height of aWorldType
Restricts teleportation via
ReadonlyItemTypes.CHORUS_FRUIT
orportal types
or portal generation to below the logical height. -
WORLD_TYPE
-
WORLD_TYPE_EFFECT
-