Class Keys
Keys used throughout the API.-
Field Summary
FieldsModifier and TypeFieldDescriptionThePotionEffectTypes.ABSORPTIONamount of aLivingentity.The acceleration of aDamagingProjectile.static final Key<Value<ItemStackSnapshot>>The item aLivingentity is currently using.Whether aPlayers affects spawning.The age (in ticks) of an entity.The anger level of aZombifiedPiglin.static final Key<WeightedCollectionValue<PotionEffect>>The set ofPotionEffects applied on use of anItemStack.static final Key<ListValue<Enchantment>>The enchantments applied to anItemStack.static final Key<Value<ArmorMaterial>>TheArmorMaterialof an armorItemStack.static final Key<Value<AttachmentSurface>>The attachmentAttachmentSurfaceof a button or leverBlockStateThe damage dealt by anArrowEntityon impact.The time of aRavageris considered attacking.The author of aItemTypes.WRITTEN_BOOKItemStack.Remaining ticks of the auto spin attack aLivingis doing.TheAxisdirection of aBlockState.The ticks until aAgeableturns into an adult.static final Key<ListValue<BannerPatternLayer>>TheBannerPatternLayers of aBanner.The width of the physical form of anEntity.The base vehicle a passenger is riding at the moment.The target entity of aGuardianbeam.The default temperature of a 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 aArmorStandorLiving.The ticks until anAnimalcan breed again.The burntime of anItemStackfuel in a furnace.Whether anAnimalcan breed.Whether aFallingBlockcan drop as an item.Whether aHumanoidcan fly.Whether aLivingentity may change blocks.Whether aFallingBlockwill damage anEntityit lands on.Whether aRaidercan join a raid.Whether aBoatcan move on land.Whether aFallingBlockwill place itself upon landing.The number of candles within a candle block.The current casting time of aSpellcaster.The type of aCat.Whether aServerPlayercan will see colours sent in messages.static final Key<Value<ChatVisibility>>The types of chat aServerPlayercan see.static final Key<Value<ChestAttachmentType>>The rotation of theBodyParts.CHEST.A command stored in aCommandBlockorCommandBlockMinecart.static final Key<Value<ComparatorMode>>The connected directions of aBlockState.The amount of ticks aHopperhas to wait before transferring the next item.The creator, usually of anEntity.The currentSpellTypeaSpellcasteris casting.static final Key<MapValue<EntityType<?>,Double>> The damage dealt towards entities of a specificEntityTypeby aArrowEntity.The resource pack model index of anItemStack.The damage absorbed by an armorItemStack.How much damage aFallingBlockdeals toLivingentities it hits per block fallen.The distance at which aBlockStatewill decay.The destroy speed of aBlockStatesBlockType.The detonator of aPrimedTNT.Whether exact teleport location should be used with aEndGateway.static final Key<Value<HandPreference>>The dominantHandPreferenceof anAgententity.TheDoorHingeof a doorBlockState.static final Key<Value<DripstoneSegment>>The type of dripstone a certainBlockTypes.DRIPSTONE_BLOCKrepresents.The remaining duration (in ticks) of anAreaEffectCloud.The amount of ticks the duration of anAreaEffectCloudis increased or reduced when it applies its effect.The time aPandahas been eating (in ticks)The efficiency of anItemStacktool.The time (in ticks) until aChickenlays anItemTypes.EGG.The age (in ticks) of anEndGatewaystatic final Key<Value<EntityArchetype>>TheEntityArchetypeto spawn from any spawn egg, such as aItemTypes.ZOMBIE_SPAWN_EGGorItemTypes.CREEPER_SPAWN_EGG.static final Key<Value<EntityType<?>>>Theentity typeof a spawn egg, which may be one of several based onItemTypes.ZOMBIE_SPAWN_EGG, etc.static final Key<Value<EquipmentType>>TheEquipmentTypethat the target inventory supports.The current level of exhaustion of aHumanoid.The amount of experience aPlayerhas or anExperienceOrbcontains.The total experience aPlayerrequires to advance from his current level to the next one.The current level aPlayerhas.The amount of experience aPlayerhas collected towards the next level.The eye height of anEntity.The eye position of anEntity.The distance anEntityhas fallen.The amount of ticks aFallingBlockhas been falling for.The delay in ticks until theEntitywill be damaged by the fire.The amount of ticks anEntityis still burning.static final Key<ListValue<FireworkEffect>>The flight duration of aFireworkRocketstatic final Key<Value<FireworkShape>>The time aUserfirst joined on the Server.static final Key<Value<FluidStackSnapshot>>TheFluidStackSnapshotcontained 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 anPlayerflies.The food level of aHumanoid.The type of aFox.Represents theKeyfor the amount of fuel left in aBrewingStandorFurnaceBlockEntityorFurnaceMinecartThe time (in ticks) aFusedExplosive's fuse will burn before the explosion.TheGameModeaServerPlayerhas.static final Key<Value<GameProfile>>The player represented by aBlockTypes.PLAYER_HEAD(andBlockTypes.PLAYER_WALL_HEAD)BlockStateor aItemTypes.PLAYER_HEADItemStack.The generation of aItemTypes.WRITTEN_BOOKItemStack.Whether aSignhas glowing text (from dying withItemTypes.GLOW_INK_SAC).The "growth stage" state of aBlockState.Whether anArmorStand's arms are visible.Whether anArmorStandhas a visible base plate.Whether aBlockTypes.CAVE_VINESorBlockTypes.CAVE_VINES_PLANThas glow berries.Whether aPackHorsehas a chest.Whether aTurtlecurrently has an egg.Whether aDolphinhas a fish.Whether anArmorStandis a "marker" stand.Whether a giant mushroomBlockStatehas pores on theDirection.DOWNdirection.Whether a giant mushroomBlockStatehas pores on theDirection.EASTdirection.Whether a giant mushroomBlockStatehas pores on theDirection.NORTHdirection.Whether a giant mushroomBlockStatehas pores on theDirection.SOUTHdirection.Whether a giant mushroomBlockStatehas pores on theDirection.UPdirection.Whether a giant mushroomBlockStatehas pores on theDirection.WESTdirection.Whether a server player has viewed the credits.The rotation of aLiving's orArmorStand's head.static final Key<Value<EndCrystal>>TheEndCrystalcurrently healing anEnderDragon.ALiving's orEndCrystal's current health.The value aServerPlayers max-health (excluding absorption) in the GUI will scale to.The height of the physical form of anEntity.TheItemTypeaBlockStaterepresents.Whether the attributes of anItemStackare hidden.Whether theBREAKABLE_BLOCK_TYPESof anItemStackare hidden.Whether thePLACEABLE_BLOCK_TYPESof anItemStackare hidden.Whether theAPPLIED_ENCHANTMENTSof anItemStackare hidden.Whether miscellaneous values of anItemStackare hidden.WhetherIS_UNBREAKABLEstate of anItemStackis hidden.static final Key<Value<HorseColor>>TheHorseColorof aHorse.static final Key<Value<HorseStyle>>TheHorseStyleof aHorse.Whether a fence gateBlockStateis in a wall.The inaccuracy of anItemStackthat launchesProjectiles.Whether anItemwill not despawn for an infinite time.Whether anItemhas an infinite pickup delay.static final Key<Value<InstrumentType>>Whether aBlockTypes.DAYLIGHT_DETECTORBlockStateis inverted.The amount of ticks anEntitywill remain invulnerable for.Whether anEntityis invulnerable.Whether anAgeableis considered an adult.Whether aBlazeis currently burning.Whether anAgents AI is enabled.Whether an entity is currently aggressive.Whether aBlockStateis "attached" to another block.Whether aLivingis doing an auto spin attack (doable with theEnchantmentTypes.RIPTIDEenchantment.)Whether an entity is begging for food.WhetherRaiders are currently celebrating.Whether aCreeperis charged.Whether aPillageris charging it's crossbow.Whether aSpideris currently climbing.Whether aBlockStateis connected to theDirection.EAST.Whether aBlockStateis connected to theDirection.NORTH.Whether aBlockStateis connected to theDirection.SOUTH.Whether aBlockStateis connected to theDirection.UP.Whether aBlockStateis connected to theDirection.WEST.Whether anArrowwill cause a critical hit.Whether aFoxis currently crouching.Whether a custom name is visible on anEntity.Whether aFoxis currently defending.Whether aBlockStateis disarmed.Whether an entity is eating.Whether aPlayeris flying with anItemTypes.ELYTRA.Whether a pistonBlockStateis currently extended.Whether aFoxis currently faceplanted.Whether aBlockStateis filled.Whether aBlockStateis flammable.Whether anEntityis flying.Whether an entity is frightened.Whether the block at theServerLocationis a full block.Whether anEntityhas a glowing outline.WhetherTurtleis proceeding to it'shome position.Whether something is affected by gravity.Whether a lantern block is hanging.Whether aCatis hissing.Whether aRavageris immobilized.Whether aBoatis currently inBlockTypes.WATER.Whether aServerLocationis indirectly powered.Whether aFoxis currently interested in something.Whether anEntityis currently invisible.Whether aVindicatoris exhibiting "johnny" behavior.Whether aTurtleis currently digging to lay an egg.Whether aPatrolleris the leader.Whether aBlockStateis lit.Whether aCatis lying down.Whether aPandais lying on it's back.Whether a bedBlockStateis occupied.Whether aMinecartis on it's rail ReadonlyWhether a door/fencegate/trapdoorBlockStateis open.Whether aBlockStateis passable (can be walked through).Whether aPatrolleris currently patrolling.Whether anEntityor leavesBlockStatewill be prevented from despawning/decaying.static final Key<MapValue<EquipmentType,Boolean>> Whether players are prevented from placing items from an equipment slot on anArmorStandWhether aFoxis currently pouncing.Whether aBlockStateis powered.Whether aFusedExplosiveis currently primed.Whether aCatis purring.Whether aCatis relaxed.Whether aBlockStatecan be replaced by a player without breaking it first.Whether aRavageris roaring.Whether aPandais rolling around.Whether an entity is saddled.Whether anEndermanis screaming.Whether aSheepis sheared.Whether anEntityis silent.Whether aPlayer'ssleeping status is ignored when checking whether to skip the night due to players sleeping.Whether anArmorStandis small.Whether anEntityis sneaking.Whether aPandais sneezing.Whether aBlockTypes.DIRTBlockStateis snowy.Whether aBlockStateis solid.Whether anEntityis sprinting.Whether aPolarBearis currently standing.Whether aRavageris stunned.Whether aBlockStateis 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 anArmorStandWhether aTameableAnimalis currently tamedWhether aTurtleis currently traveling.Whether anItemStackorBlockStateis unbreakable.Whether aPandais unhappy.Whehter aBlockStateis waterlogged.The durability of anItemStack.static final Key<Value<ItemRarity>>The rarity of an item.static final Key<Value<ItemStackSnapshot>>The knockback strength applied by anArrowEntity.The output yielded by the last command of aCommandBlockorCommandBlockMinecart.The last damage aLivingreceived.The last time aUserjoined on the server.The last time aUserhas been playing on the server.The amount of layers aBlockStatehas.The holder of a leashedAgente.g.The rotation of anArmorStand's left arm.The rotation of anArmorStand's left leg.The amount of ticks till aVexstarts taking damage due to living too long.The amount of light that emitted by aBlockState.AServerPlayer's client language.The token used to lock aCarrierBlockEntity.static final Key<Value<ServerLocation>>A lodestone location, used withItemTypes.COMPASS.The displayed description ("lore") text of anItemStack.static final Key<SetValue<MapDecoration>>static final Key<Value<ResourceKey>>static final Key<Value<MatterType>>The matter state of aBlockStateReadonlyThe maximum air supply aLivingmay have.The maximum amount of ticks aFurnaceBlockEntitycan burn with the currently used fuel item.The total time the currentItemStackin aFurnaceBlockEntityhas to be cooked.The maximum durability of anItemStack.The maximum exhuastion of aHumanoid.The maximum damage aFallingBlockcan deal.The maximum food level of aHumanoid.The maximum health of aLiving.The maximum number of entities around aMobSpawner.The maximum saturation of aHumanoid.The maximum amount of ticks between two batches of entities spawned by aMobSpawner.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.The represented block's offset of aMinecartLike.The moisture value of aBlockTypes.FARMLANDBlockState.static final Key<Value<MooshroomType>>The type of aMooshroom.static final Key<Value<WeightedSerializableObject<EntityArchetype>>>The next entity that will be spawned by aMobSpawner.The pitch of aBlockTypes.NOTE_BLOCKBlockState.The notifier, usually of anEntity.The deceleration aBoatwhile it hasPASSENGERS.Whether anEntityis currently considered to be on the ground.static final Key<Value<Orientation>>TheOrientationof anItemFrame.The content of aItemTypes.WRITTEN_BOOKItemStack.static final Key<Value<ParrotType>>static final Key<Value<ParticleEffect>>The particle type of anAreaEffectCloud.The amount of ticks aFurnaceBlockEntityhas been cooking the current item for.The entities that act as passengers for anEntity.ATropicalFish's pattern color.static final Key<Value<PhantomPhase>>The pickup delay (in ticks) of anItem.static final Key<Value<PickupRule>>ThePickupRuleof anArrowEntity.static final Key<Value<PistonType>>The piston type of a pistonBlockStateTODO dataholderPiston.The block types anItemStackmay be placed on.The content of aItemTypes.WRITABLE_BOOKItemStack.The plugin that created anInventorystatic final Key<Value<PortionType>>ThePortionTypeof aBlockState.The potential max speed of aMinecart.static final Key<ListValue<PotionEffect>>The potion effects that are present on anEntitystatic final Key<Value<PotionType>>The potion type of anItemStack.The signal power of aBlockState.The previousGameModeof aServerPlayer.static final Key<Value<PotionEffectType>>ABeacon's primary effect.static final Key<Value<ProfessionType>>static final Key<Value<RabbitType>>The type of aRabbit.The radius of anAreaEffectCloud.The amount the radius of anAreaEffectCloudgrows or shrinks each time it applies its effect.The amount the radius of anAreaEffectCloudgrows or shrinks per tick.The wave number of a raid aRaideris in.static final Key<Value<RailDirection>>TheRailDirectionof aBlockState.The delay (in ticks) after which anAreaEffectCloudwill reapply its effect on a previously affectedEntity.The redstone delay on aBlockTypes.REPEATERBlockState.The amount of air aLivinghas left.The remaining amount of ticks the current brewing process of aBrewingStandwill take.Represents theKeyfor the remaining number of ticks to pass before another attempt to spawn entities is made by aMobSpawner.The amount of food a foodItemStackrestores when eaten.The amount of saturation a foodItemStackprovides when eaten.static final Key<Value<InstrumentType>>How close aPlayerhas to be around theMobSpawnerin order for it to attempt to spawn entities.static final Key<MapValue<ResourceKey,RespawnLocation>> The rotation of anArmorStand's right arm.The rotation of anArmorStand's right leg.The time aRavageris roaring.The current saturation of aPlayer.The "scale" for the size of anEntity.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.static final Key<Value<ProjectileSource>>The shooter of aProjectile.Whether aEndCrystalshould show its bottom bedrock platform.The lines displayed on aSign.The size of aSlime.The "moisture" state of aDolphin.The parts of aServerPlayerskin that should be displayed.static final Key<Value<ProfileProperty>>The skin of aHumanoid.The skylight value at aServerLocation.static final Key<Value<SlabPortion>>TheSlabPortionof aBlockState.The sleep timer of aPlayer.The position of aSlotwithin aGridInventory.The side of a particularSlot, for use in querying "sided inventories".Whether aMinecartslows down when it has noPASSENGERS.The time aPandahas been sneezing (in ticks)How many entities aMobSpawnerhas spawned so far.How far away from theMobSpawnerthe entities spawned by it may appear.static final Key<WeightedCollectionValue<EntityArchetype>>The list ofEntityArchetypes able to be spawned by aMobSpawner.static final Key<Value<StairShape>>TheStairShapeof aBlockState.static final Key<ListValue<Enchantment>>The enchantments stored on anItemStack.ALlamas carrying strength.The author of a structure from aStructureBlock.Whether aStructureBlockshould ignore entities when saving a structure.The integrity of aStructureBlock.static final Key<Value<StructureMode>>The mode of aStructureBlock.The position of aStructureBlock.Whether aStructureBlockis powered.The seed of aStructureBlockWhether aStructureBlockshould make allBlockTypes.AIR,BlockTypes.CAVE_AIR,BlockTypes.STRUCTURE_VOIDvisible.Whether aStructureBlockshows the bounding box.The size of aStructureBlocks structure.The amount of "stuck arrows" in aLiving.The time (in ticks) aRavageris stunned.The amount of successful executions of a command stored in aCommandBlockorCommandBlockMinecart.Whether aBlockStateis suspended.The swiftness of anEntitye.g.The tamer of aTameableAnimalorHorseLike.The targeted entity either by anAgentand it'sGoalExecutorTypes.TARGETselector or by aFishingBobberorShulkerBullet.A target location.A target block position.The remaining fuse time in ticks of aFusedExplosive.The tilt of aBlockTypes.BIG_DRIPLEAFblock, as triggered by player motion.Whether aCommandBlockdoes track its output.static final Key<ListValue<TradeOffer>>TheTradeOffers offered by aTrader.Whether anEntityis transient.static final Key<Value<TropicalFishShape>>ATropicalFish's shape.The time aPandahas been unhappy (in ticks)TheUUIDof a custom inventory.The deceleration aBoatwhile it does not havePASSENGERS.Whether aBlockTypes.TNTBlockStateis unstable.Whether aBlockTypes.POINTED_DRIPSTONEis facing up or down.Whether changes toSKIN_PROFILE_PROPERTYshould be reflected in an entity'sGameProfile.static final Key<Value<VanishState>>TheVanishStateof anEntity.The vehicle anEntityis riding.The velocity of anEntity.The client view distance of aServerPlayer.static final Key<Value<VillagerType>>The type of aVillagerorZombieVillager.The duration in ticks after which anAreaEffectCloudwill begin to apply its effect to entities.Whether a thrownEyeOfEnderwill shatter.static final Key<Value<WireAttachmentType>>TheWireAttachmentTypeof aBlockTypes.REDSTONE_WIREBlockStatefor its neighboring block to theDirection.EAST.static final Key<Value<WireAttachmentType>>TheWireAttachmentTypeof aBlockTypes.REDSTONE_WIREBlockStatefor its neighboring block to theDirection.NORTH.static final Key<Value<WireAttachmentType>>TheWireAttachmentTypeof aBlockTypes.REDSTONE_WIREBlockStatefor its neighboring block to theDirection.SOUTH.static final Key<Value<WireAttachmentType>>TheWireAttachmentTypeof aBlockTypes.REDSTONE_WIREBlockStatefor its neighboring block to theDirection.WEST.static final Key<MapValue<Direction,WireAttachmentType>> The entities targeted by the threeWitherheads. -
Method Summary
-
Field Details
-
ABSORPTION
ThePotionEffectTypes.ABSORPTIONamount of aLivingentity. -
ACCELERATION
The acceleration of aDamagingProjectile. -
ACTIVE_ITEM
The item aLivingentity 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
ItemStackSnapshot.isEmpty(). -
AFFECTS_SPAWNING
Whether aPlayers affects spawning.A
Playerwho does not affect spawning will be treated as a spectator in regards to spawning. AMobSpawnerwill 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
-
ANGER_LEVEL
The anger level of aZombifiedPiglin.Unlike
IS_ANGRY, the aggressiveness represented by this key may fade over time and the entity will become peaceful again once its anger reaches its minimum. -
APPLICABLE_POTION_EFFECTS
The set ofPotionEffects applied on use of anItemStack. Readonly -
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_BOOKs) use theSTORED_ENCHANTMENTSkey instead.) -
ARMOR_MATERIAL
TheArmorMaterialof an armorItemStack. Readonly -
ART_TYPE
-
ATTACHMENT_SURFACE
The attachmentAttachmentSurfaceof a button or leverBlockState -
ATTACK_DAMAGE
The damage dealt by anArrowEntityon impact. -
ATTACK_TIME
The time of aRavageris considered attacking. -
AUTO_SPIN_ATTACK_TICKS
Remaining ticks of the auto spin attack aLivingis doing.- See Also:
-
AUTHOR
The author of aItemTypes.WRITTEN_BOOKItemStack. -
AXIS
TheAxisdirection of aBlockState. -
BABY_TICKS
The ticks until aAgeableturns into an adult. -
BANNER_PATTERN_LAYERS
TheBannerPatternLayers of aBanner. -
BASE_SIZE
-
BASE_VEHICLE
-
BEAM_TARGET_ENTITY
The target entity of aGuardianbeam. -
BIOME_TEMPERATURE
The default temperature of a 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. -
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 aArmorStandorLiving.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
-
BREAKABLE_BLOCK_TYPES
-
BREEDER
-
BREEDING_COOLDOWN
-
BURN_TIME
-
CAN_BREED
Whether anAnimalcan breed. In Vanilla, animals can breed if theirBREEDING_COOLDOWNis equal to 0. -
CAN_DROP_AS_ITEM
Whether aFallingBlockcan drop as an item. -
CAN_FLY
-
CAN_GRIEF
Whether aLivingentity may change blocks. This mostly applies toEndermanorCreepers, but also to some projectiles likeFireballEntitys orWitherSkull. -
CAN_HARVEST
-
CAN_HURT_ENTITIES
Whether aFallingBlockwill damage anEntityit lands on. -
CAN_JOIN_RAID
Whether aRaidercan join a raid. -
CAN_MOVE_ON_LAND
Whether aBoatcan move on land. -
CAN_PLACE_AS_BLOCK
Whether aFallingBlockwill place itself upon landing. -
CANDLES
The number of candles within a candle block. -
CASTING_TIME
The current casting time of aSpellcaster. -
CAT_TYPE
The type of aCat. -
CHAT_COLORS_ENABLED
Whether aServerPlayercan will see colours sent in messages. -
CHAT_VISIBILITY
The types of chat aServerPlayercan see. -
CHEST_ATTACHMENT_TYPE
-
CHEST_ROTATION
The rotation of theBodyParts.CHEST. -
COLOR
TheColorof anItemStacke.g.
or anItemTypes.LEATHER_CHESTPLATEorItemTypes.POTIONcustom colorAreaEffectCloud. -
COMMAND
A command stored in aCommandBlockorCommandBlockMinecart. -
COMPARATOR_MODE
-
CONNECTED_DIRECTIONS
The connected directions of aBlockState.e.g.
BlockTypes.GLASS_PANE,BlockTypes.IRON_BARS,BlockTypes.CHEST, -
CONTAINER_ITEM
The containerItemTypeof anItemStack. e.g.ItemTypes.BUCKETfor aItemTypes.WATER_BUCKETstack. Readonly -
COOLDOWN
The amount of ticks aHopperhas to wait before transferring the next item. (in Vanilla this is 8 ticks) or The amount of ticks aEndGatewayhas to wait for the next teleportation. -
CREATOR
The creator, usually of anEntity. It is up to the implementation to define. -
CURRENT_SPELL
The currentSpellTypeaSpellcasteris casting. -
CUSTOM_ATTACK_DAMAGE
The damage dealt towards entities of a specificEntityTypeby aArrowEntity.Note that in events, the damage defined for the provided
EntityTypewill take priority over the "default" damage as defined fromArrowEntity.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,ItemStackorBlockEntity.If no custom name is set the dataholder may still have a
DISPLAY_NAME -
DAMAGE_ABSORPTION
The damage absorbed by an armorItemStack. Readonly -
DAMAGE_PER_BLOCK
How much damage aFallingBlockdeals toLivingentities it hits per block fallen.This damage is capped by
MAX_FALL_DAMAGE. -
DECAY_DISTANCE
The distance at which aBlockStatewill 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,ItemStackorBlockEntity.To change a display name set a
CUSTOM_NAMEinstead.On an
Entity, this represents a combination ofCUSTOM_NAME(if set), scoreboard info, and any click data.On an
ItemStack, this represents theCUSTOM_NAMEor if not set theItemTypes translation.On a
BlockEntity, this usually represents the name displayed in itsContainer -
DOMINANT_HAND
The dominantHandPreferenceof anAgententity.NOTE: For
Players is this key read-only, theHandPreferenceof a player can not be changed server-side. -
DOOR_HINGE
TheDoorHingeof a doorBlockState. -
DO_EXACT_TELEPORT
Whether exact teleport location should be used with aEndGateway. -
DRIPSTONE_SEGMENT
The type of dripstone a certainBlockTypes.DRIPSTONE_BLOCKrepresents. -
DURATION
The remaining duration (in ticks) of anAreaEffectCloud. -
DURATION_ON_USE
The amount of ticks the duration of anAreaEffectCloudis increased or reduced when it applies its effect. -
DYE_COLOR
The color of a dyeableBlockState,ItemStackor entity likeCats. or The baseDyeColorof aBannerorTropicalFish. -
EATING_TIME
The time aPandahas been eating (in ticks) -
EFFICIENCY
The efficiency of anItemStacktool. Affects mining speed of supported materials.CAN_HARVESTReadonly -
EGG_TIME
The time (in ticks) until aChickenlays 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.
-
END_GATEWAY_AGE
The age (in ticks) of anEndGateway -
ENTITY_TYPE
Theentity typeof 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 thearchetypeby usingENTITY_TO_SPAWN.- See Also:
-
ENTITY_TO_SPAWN
TheEntityArchetypeto spawn from any spawn egg, such as aItemTypes.ZOMBIE_SPAWN_EGGorItemTypes.CREEPER_SPAWN_EGG.The
ENTITY_TYPEis not guaranteed to be the same as theEntityArchetype.type()returned, but the spawned entity will be based on theEntityArchetypereturned here. -
EQUIPMENT_TYPE
TheEquipmentTypethat the target inventory supports. This usually applies toEquipmentSlots. or TheEquipmentTypeof anItemStackReadonly -
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 aPlayerhas or anExperienceOrbcontains. -
EXPERIENCE_FROM_START_OF_LEVEL
The total experience aPlayerrequires to advance from his current level to the next one. Readonly -
EXPERIENCE_LEVEL
The current level aPlayerhas. -
EXPERIENCE_SINCE_LEVEL
The amount of experience aPlayerhas 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 anEntityhas fallen. -
FALL_TIME
The amount of ticks aFallingBlockhas been falling for. -
FIREWORK_EFFECTS
-
FIREWORK_FLIGHT_MODIFIER
The flight duration of aFireworkRocketThe 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 theEntitywill be damaged by the fire. -
FIRE_TICKS
The amount of ticks anEntityis still burning. -
FIRST_DATE_JOINED
The time aUserfirst joined on the Server. -
FIRST_TRUSTED
-
FLUID_ITEM_STACK
TheFluidStackSnapshotcontained 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 anPlayerflies. -
FOOD_LEVEL
-
FOX_TYPE
The type of aFox. -
FUEL
Represents theKeyfor the amount of fuel left in aBrewingStandorFurnaceBlockEntityorFurnaceMinecartOne
ItemTypes.BLAZE_POWDERadds 20 fuel to the brewing stand.The fuel value corresponds with the number of batches of potions that can be brewed.
See
BURN_TIMEfor the burn time added by a fuelItemStackto a furnace -
FUSE_DURATION
The time (in ticks) aFusedExplosive's fuse will burn before the explosion. -
GAME_MODE
TheGameModeaServerPlayerhas. -
GAME_PROFILE
The player represented by aBlockTypes.PLAYER_HEAD(andBlockTypes.PLAYER_WALL_HEAD)BlockStateor aItemTypes.PLAYER_HEADItemStack.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_BOOKItemStack. Depending on the book's generation it may be impossible to copy it. -
GLOWING_TEXT
Whether aSignhas glowing text (from dying withItemTypes.GLOW_INK_SAC). -
GROWTH_STAGE
-
HAS_ARMS
Whether anArmorStand's arms are visible. -
HAS_BASE_PLATE
Whether anArmorStandhas a visible base plate. -
HAS_BERRIES
Whether aBlockTypes.CAVE_VINESorBlockTypes.CAVE_VINES_PLANThas glow berries. -
HAS_CHEST
Whether aPackHorsehas a chest. -
HAS_EGG
Whether aTurtlecurrently has an egg. -
HAS_FISH
Whether aDolphinhas 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 anArmorStandis 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_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
TheEndCrystalcurrently 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
Playersin 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 aServerPlayers 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
TheItemTypeaBlockStaterepresents. Readonly -
HIDDEN_GENE
-
HIDE_ATTRIBUTES
Whether the attributes of anItemStackare hidden. -
HIDE_CAN_DESTROY
Whether theBREAKABLE_BLOCK_TYPESof anItemStackare hidden. -
HIDE_CAN_PLACE
Whether thePLACEABLE_BLOCK_TYPESof anItemStackare hidden. -
HIDE_ENCHANTMENTS
Whether theAPPLIED_ENCHANTMENTSof anItemStackare hidden. -
HIDE_MISCELLANEOUS
Whether miscellaneous values of anItemStackare hidden. e.g. potion effects or shield pattern info -
HIDE_UNBREAKABLE
WhetherIS_UNBREAKABLEstate of anItemStackis hidden. -
HOME_POSITION
-
HORSE_COLOR
TheHorseColorof aHorse. -
HORSE_STYLE
TheHorseStyleof aHorse. -
INACCURACY
The inaccuracy of anItemStackthat launchesProjectiles.An inaccuracy of 0 means perfect accuracy. Inaccuracy of 1 is the default for most vanilla items.
-
INFINITE_DESPAWN_DELAY
Whether anItemwill not despawn for an infinite time. -
INFINITE_PICKUP_DELAY
Whether anItemhas an infinite pickup delay. -
INSTRUMENT_TYPE
-
INVERTED
Whether aBlockTypes.DAYLIGHT_DETECTORBlockStateis inverted. -
INVULNERABILITY_TICKS
The amount of ticks anEntitywill remain invulnerable for. -
INVULNERABLE
Whether anEntityis invulnerable.This does not protect from the void, players in creative mode, and manual killing like the /kill command.
-
IN_WALL
Whether a fence gateBlockStateis in a wall. -
IS_ADULT
Whether anAgeableis considered an adult. -
IS_AFLAME
Whether aBlazeis currently burning.Unlike
FIRE_TICKS, the burning effect will not damage the burning entity. -
IS_AI_ENABLED
Whether anAgents AI is enabled. -
IS_ANGRY
Whether an entity is currently aggressive. e.g.wolvesorZombifiedPiglin -
IS_ATTACHED
Whether aBlockStateis "attached" to another block. -
IS_AUTO_SPIN_ATTACK
Whether aLivingis doing an auto spin attack (doable with theEnchantmentTypes.RIPTIDEenchantment.)- See Also:
-
IS_BEGGING_FOR_FOOD
-
IS_CELEBRATING
WhetherRaiders are currently celebrating. -
IS_CHARGED
Whether aCreeperis charged. -
IS_CHARGING_CROSSBOW
Whether aPillageris charging it's crossbow. -
IS_CLIMBING
Whether aSpideris currently climbing. -
IS_CONNECTED_EAST
-
IS_CONNECTED_NORTH
-
IS_CONNECTED_SOUTH
-
IS_CONNECTED_UP
-
IS_CONNECTED_WEST
-
IS_CRITICAL_HIT
Whether anArrowwill cause a critical hit. -
IS_CROUCHING
Whether aFoxis currently crouching. -
IS_CUSTOM_NAME_VISIBLE
Whether a custom name is visible on anEntity. -
IS_DEFENDING
Whether aFoxis currently defending. -
IS_DISARMED
-
IS_EATING
Whether an entity is eating. e.g.Panda -
IS_EFFECT_ONLY
-
IS_ELYTRA_FLYING
Whether aPlayeris flying with anItemTypes.ELYTRA. -
IS_EXTENDED
Whether a pistonBlockStateis currently extended. TODOPiston? -
IS_FACEPLANTED
Whether aFoxis currently faceplanted. -
IS_FILLED
Whether aBlockStateis filled.e.g.
BlockTypes.END_PORTAL_FRAMEs. -
IS_FLAMMABLE
Whether aBlockStateis flammable. Readonly -
IS_FLYING
-
IS_FRIGHTENED
Whether an entity is frightened.In vanilla,
Pandas that have aPanda.knownGene()ofPandaGenes.WORRIEDand are in aworldwhoseWeatherTypeis currently aWeatherTypes.THUNDERare considered "frightened". -
IS_FULL_BLOCK
Whether the block at theServerLocationis a full block. -
IS_GLOWING
Whether anEntityhas a glowing outline. -
IS_GOING_HOME
WhetherTurtleis proceeding to it'shome position. -
IS_GRAVITY_AFFECTED
Whether something is affected by gravity. e.g.Entitys andBlockStates Readonly(BlockState.class) -
IS_HANGING
Whether a lantern block is hanging. -
IS_HISSING
Whether aCatis hissing. -
IS_IMMOBILIZED
Whether aRavageris immobilized. Readonly -
IS_INDIRECTLY_POWERED
Whether aServerLocationis indirectly powered. Readonly -
IS_INTERESTED
Whether aFoxis currently interested in something. -
IS_INVISIBLE
Whether anEntityis 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 aBoatis currently inBlockTypes.WATER. Readonly -
IS_JOHNNY
Whether aVindicatoris exhibiting "johnny" behavior. -
IS_LAYING_EGG
Whether aTurtleis currently digging to lay an egg. -
IS_LEADER
Whether aPatrolleris the leader. -
IS_LIT
Whether aBlockStateis lit. e.g.BlockTypes.FURNACE,BlockTypes.CAMPFIREorBlockTypes.REDSTONE_TORCH. -
IS_LYING_DOWN
Whether aCatis lying down.In vanilla, a cat lies down near its owner when the owner goes to sleep.
-
IS_LYING_ON_BACK
Whether aPandais lying on it's back. -
IS_OCCUPIED
Whether a bedBlockStateis occupied. e.g.BlockTypes.WHITE_BED. -
IS_ON_RAIL
Whether aMinecartis on it's rail Readonly -
IS_OPEN
Whether a door/fencegate/trapdoorBlockStateis open. -
IS_PASSABLE
Whether aBlockStateis passable (can be walked through). Readonly -
IS_PATROLLING
Whether aPatrolleris currently patrolling. -
IS_PERSISTENT
Whether anEntityor leavesBlockStatewill 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 aFoxis currently pouncing. -
IS_POWERED
Whether aBlockStateis 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 aFusedExplosiveis currently primed. Readonly -
IS_PURRING
Whether aCatis purring. -
IS_RELAXED
Whether aCatis relaxed.In vanilla, a cat relaxes before lying down.
-
IS_REPLACEABLE
Whether aBlockStatecan be replaced by a player without breaking it first. e.g.BlockTypes.WATERReadonly -
IS_ROARING
Whether aRavageris roaring. Readonly -
IS_ROLLING_AROUND
Whether aPandais rolling around. -
IS_SADDLED
-
IS_SCREAMING
Whether anEndermanis screaming. -
IS_SHEARED
Whether aSheepis sheared. -
IS_SILENT
Whether anEntityis silent.A silent entity will not emit sounds or make noises.
-
IS_SITTING
-
IS_SLEEPING
-
IS_SLEEPING_IGNORED
Whether aPlayer'ssleeping 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 anArmorStandis small. -
IS_SNEAKING
Whether anEntityis sneaking.Sneaking entities generally move slower and do not make walking sounds.
-
IS_SNEEZING
Whether aPandais sneezing. -
IS_SNOWY
Whether aBlockTypes.DIRTBlockStateis snowy. -
IS_SOLID
Whether aBlockStateis solid. Readonly -
IS_SPRINTING
Whether anEntityis sprinting. -
IS_STANDING
Whether aPolarBearis currently standing. -
IS_STUNNED
Whether aRavageris stunned. Readonly -
IS_SURROGATE_BLOCK
Whether aBlockStateis 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 aTameableAnimalis currently tamed -
IS_TRADING
-
IS_TRAVELING
Whether aTurtleis currently traveling. -
IS_TRUSTING
-
IS_UNBREAKABLE
Whether anItemStackorBlockStateis unbreakable.Setting this to
Readonly(BlockState.class)truewill prevent the item stack'sITEM_DURABILITYfrom changing. -
IS_UNHAPPY
Whether aPandais unhappy. -
IS_WATERLOGGED
Whehter aBlockStateis waterlogged. -
IS_WET
-
ITEM_DURABILITY
The durability of anItemStack.MAX_DURABILITY -
ITEM_RARITY
The rarity of an item. -
ITEM_STACK_SNAPSHOT
-
KNOCKBACK_STRENGTH
The knockback strength applied by anArrowEntity.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 aCommandBlockorCommandBlockMinecart. -
LAST_DAMAGE_RECEIVED
The last damage aLivingreceived. -
LAST_DATE_JOINED
The last time aUserjoined on the server. -
LAST_DATE_PLAYED
The last time aUserhas 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 aVexstarts 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 pegged at 0 and the Vex will not take any damage.
-
LIGHT_EMISSION
The amount of light that emitted by aBlockState. Readonly -
LLAMA_TYPE
-
LOCALE
AServerPlayer's client language. -
LOCK_TOKEN
The token used to lock aCarrierBlockEntity. Or the token on anItemStackto unlock it. -
LODESTONE
A lodestone location, used withItemTypes.COMPASS. -
LORE
-
MAP_CANVAS
-
MAP_DECORATIONS
-
MAP_INFO
Represents theKeyfor theMapInfoof anItemStackof 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 theKeyfor whether a map updates from players for aMapInfo. By default this is false. Can be used in combination withMAP_CANVASto create custom static map. See Minecraft Wiki - Map Locking -
MAP_SCALE
- See Also:
-
MAP_TRACKS_PLAYERS
-
MAP_UNLIMITED_TRACKING
-
MAP_WORLD
-
MATTER_TYPE
The matter state of aBlockStateReadonly -
MAX_AIR
The maximum air supply aLivingmay have.For the current amount of air, check
REMAINING_AIR. -
MAX_BURN_TIME
The maximum amount of ticks aFurnaceBlockEntitycan burn with the currently used fuel item. -
MAX_COOK_TIME
The total time the currentItemStackin aFurnaceBlockEntityhas to be cooked. -
MAX_DURABILITY
The maximum durability of anItemStack.ITEM_DURABILITYReadonly -
MAX_EXHAUSTION
The maximum exhuastion of aHumanoid. Readonly.- See Also:
-
MAX_FALL_DAMAGE
The maximum damage aFallingBlockcan deal. -
MAX_FOOD_LEVEL
The maximum food level of aHumanoid. Readonly.- See Also:
-
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 around aMobSpawner. A spawner will not spawn entities if there are more entities around 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. -
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. -
MOISTURE
The moisture value of aBlockTypes.FARMLANDBlockState. -
MOOSHROOM_TYPE
The type of aMooshroom. -
MUSIC_DISC
-
NEXT_ENTITY_TO_SPAWN
The next entity that will be spawned by aMobSpawner.Normally the entities to be spawned are determined by a random value applied to the
SPAWNABLE_ENTITIESweighted collection. If this value exists, it will override the random spawn with a definite one. -
NOTE_PITCH
The pitch of aBlockTypes.NOTE_BLOCKBlockState. -
NOTIFIER
The notifier, usually of anEntity. It is up to the implementation to define. -
OCCUPIED_DECELERATION
The deceleration aBoatwhile it hasPASSENGERS. -
ON_GROUND
Whether anEntityis currently considered to be on the ground. Readonly -
ORIENTATION
TheOrientationof anItemFrame. -
PAGES
The content of aItemTypes.WRITTEN_BOOKItemStack.Use
PLAIN_PAGESif you wish to inspect the contents of aItemTypes.WRITABLE_BOOK. -
PARROT_TYPE
-
PARTICLE_EFFECT
The particle type of anAreaEffectCloud.Only a few
ParticleOptions will be usable for this effect for specificParticleTypes and not everyParticleTypewill be applicable. -
PASSED_COOK_TIME
The amount of ticks aFurnaceBlockEntityhas 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. -
PHANTOM_PHASE
-
PICKUP_DELAY
The pickup delay (in ticks) of anItem. -
PICKUP_RULE
ThePickupRuleof anArrowEntity. -
PISTON_TYPE
The piston type of a pistonBlockStateTODO dataholderPiston. -
PLACEABLE_BLOCK_TYPES
The block types anItemStackmay be placed on. -
PLAIN_PAGES
The content of aItemTypes.WRITABLE_BOOKItemStack.Use
PAGESif 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_BLOCKorBlockTypes.RED_MUSHROOM_BLOCKBlockState. SeeHAS_PORES_UP,HAS_PORES_DOWN,HAS_PORES_NORTH,HAS_PORES_EAST,HAS_PORES_SOUTH,HAS_PORES_WEST. -
PORTION_TYPE
ThePortionTypeof aBlockState. e.g.BlockTypes.OAK_DOOR,BlockTypes.ROSE_BUSHorBlockTypes.WHITE_BEDFor slabs useSLAB_PORTIONinstead -
POTENTIAL_MAX_SPEED
The potential max speed of aMinecart. -
POTION_EFFECTS
The potion effects that are present on anEntityor applied by an
AreaEffectCloudorArrowEntityor 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_PLATEetc. -
PREVIOUS_GAME_MODE
The previousGameModeof aServerPlayer. Readonly. -
PRIMARY_POTION_EFFECT_TYPE
ABeacon's primary effect. -
PROFESSION_TYPE
-
PROFESSION_LEVEL
-
RABBIT_TYPE
The type of aRabbit. -
RADIUS
The radius of anAreaEffectCloud. -
RADIUS_ON_USE
The amount the radius of anAreaEffectCloudgrows or shrinks each time it applies its effect. -
RADIUS_PER_TICK
The amount the radius of anAreaEffectCloudgrows or shrinks per tick. -
RAID_WAVE
The wave number of a raid aRaideris in. Readonly but mutable -
RAIL_DIRECTION
TheRailDirectionof aBlockState. -
REAPPLICATION_DELAY
The delay (in ticks) after which anAreaEffectCloudwill reapply its effect on a previously affectedEntity. -
REDSTONE_DELAY
The redstone delay on aBlockTypes.REPEATERBlockState. -
REMAINING_AIR
The amount of air aLivinghas left. -
REMAINING_BREW_TIME
The remaining amount of ticks the current brewing process of aBrewingStandwill take.If nothing is being brewed, the remaining brew time will be 0.
-
REMAINING_SPAWN_DELAY
Represents theKeyfor the remaining number of ticks to pass before another attempt to spawn entities is made by aMobSpawner. -
REPLENISHED_FOOD
The amount of food a foodItemStackrestores when eaten. Readonly -
REPLENISHED_SATURATION
The amount of saturation a foodItemStackprovides when eaten. Readonly -
REPRESENTED_INSTRUMENT
-
REQUIRED_PLAYER_RANGE
How close aPlayerhas to be around theMobSpawnerin order for it to attempt to spawn entities. -
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 aRavageris 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. -
SCULK_SENSOR_STATE
The triggering state of aBlockTypes.SCULK_SENSOR. -
SECONDARY_POTION_EFFECT_TYPE
ABeacon's secondary effect. -
SECOND_TRUSTED
-
SHOOTER
The shooter of aProjectile. -
SHOW_BOTTOM
Whether aEndCrystalshould show its bottom bedrock platform. -
SIGN_LINES
The lines displayed on aSign. -
SIZE
-
SKIN_PARTS
The parts of aServerPlayerskin that should be displayed.This is a read-only value, set by the client.
-
SKIN_PROFILE_PROPERTY
The skin of aHumanoid.Skins can only be manipulated by supplying the UUID of a player having that skin. The binary skin data is signed by Mojang so fully customized skins are not possible.
Readonly (Player) -
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.DRYOUTwith a value of 1 per tick until death. -
SKY_LIGHT
The skylight value at aServerLocation. For the blocklight seeBLOCK_LIGHT. Readonly -
SLAB_PORTION
TheSlabPortionof aBlockState. -
SLEEP_TIMER
The sleep timer of aPlayer. -
SLOT_INDEX
-
SLOT_POSITION
The position of aSlotwithin aGridInventory. Readonly -
SLOT_SIDE
The side of a particularSlot, for use in querying "sided inventories". Readonly -
SLOWS_UNOCCUPIED
Whether aMinecartslows down when it has noPASSENGERS. -
SNEEZING_TIME
The time aPandahas been sneezing (in ticks) -
SPAWNABLE_ENTITIES
The list ofEntityArchetypes able to be spawned by aMobSpawner. -
SPAWN_COUNT
How many entities aMobSpawnerhas spawned so far. -
SPAWN_RANGE
How far away from theMobSpawnerthe entities spawned by it may appear. -
SPECTATOR_TARGET
-
STAIR_SHAPE
TheStairShapeof aBlockState. -
STATISTICS
-
STORED_ENCHANTMENTS
The enchantments stored on anItemStack.Stored enchantments are meant to be transferred. Usually this key applies to
ItemTypes.ENCHANTED_BOOKItemStacks. Enchantments affecting the item stack are retrieved viaAPPLIED_ENCHANTMENTSinstead. -
STRENGTH
ALlamas 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 aStructureBlockshould 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 aStructureBlockis powered. -
STRUCTURE_SEED
The seed of aStructureBlock -
STRUCTURE_SHOW_AIR
Whether aStructureBlockshould make allBlockTypes.AIR,BlockTypes.CAVE_AIR,BlockTypes.STRUCTURE_VOIDvisible. -
STRUCTURE_SHOW_BOUNDING_BOX
Whether aStructureBlockshows the bounding box. -
STRUCTURE_SIZE
The size of aStructureBlocks structure. -
STUCK_ARROWS
The amount of "stuck arrows" in aLiving. -
STUNNED_TIME
The time (in ticks) aRavageris stunned. -
SUCCESS_COUNT
The amount of successful executions of a command stored in aCommandBlockorCommandBlockMinecart. -
SUSPENDED
Whether aBlockStateis suspended. -
SWIFTNESS
-
TAMER
The tamer of aTameableAnimalorHorseLike. -
TARGET_ENTITY
The targeted entity either by anAgentand it'sGoalExecutorTypes.TARGETselector or by aFishingBobberorShulkerBullet. -
TARGET_LOCATION
A target location. e.g. AnEyeOfEndertarget 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 aEndGatewayor anEndCrystal's beam target. -
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_DRIPLEAFblock, as triggered by player motion. -
TOOL_TYPE
-
TRACKS_OUTPUT
Whether aCommandBlockdoes track its output.If this is set, the output of the most recent execution can be retrieved using
LAST_COMMAND_OUTPUT. -
TRADE_OFFERS
TheTradeOffers offered by aTrader. -
TRANSIENT
Whether anEntityis 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. -
TROPICAL_FISH_SHAPE
ATropicalFish's shape. -
UNHAPPY_TIME
The time aPandahas been unhappy (in ticks) -
UNIQUE_ID
TheUUIDof a custom inventory. -
UNOCCUPIED_DECELERATION
The deceleration aBoatwhile it does not havePASSENGERS. -
UNSTABLE
Whether aBlockTypes.TNTBlockStateis unstable. -
UP_OR_DOWN
Whether aBlockTypes.POINTED_DRIPSTONEis facing up or down.Only supports
Direction.UPorDirection.DOWN -
UPDATE_GAME_PROFILE
Whether changes toSKIN_PROFILE_PROPERTYshould be reflected in an entity'sGameProfile. -
VANISH_STATE
TheVanishStateof 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
Entityridden by other entities (seePASSENGERSwill cause problems. -
VEHICLE
The vehicle anEntityis 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. Read-only.This value represents the radius (around the player) in unit chunks.
-
VILLAGER_TYPE
The type of aVillagerorZombieVillager. -
WAIT_TIME
The duration in ticks after which anAreaEffectCloudwill begin to apply its effect to entities. -
WALKING_SPEED
-
WILL_SHATTER
Whether a thrownEyeOfEnderwill shatter. -
WIRE_ATTACHMENTS
-
WIRE_ATTACHMENT_EAST
TheWireAttachmentTypeof aBlockTypes.REDSTONE_WIREBlockStatefor its neighboring block to theDirection.EAST. -
WIRE_ATTACHMENT_NORTH
TheWireAttachmentTypeof aBlockTypes.REDSTONE_WIREBlockStatefor its neighboring block to theDirection.NORTH. -
WIRE_ATTACHMENT_SOUTH
TheWireAttachmentTypeof aBlockTypes.REDSTONE_WIREBlockStatefor its neighboring block to theDirection.SOUTH. -
WIRE_ATTACHMENT_WEST
TheWireAttachmentTypeof aBlockTypes.REDSTONE_WIREBlockStatefor its neighboring block to theDirection.WEST. -
WITHER_TARGETS
-
WOLOLO_TARGET
-