0% found this document useful (0 votes)
18 views8 pages

Bedrock Entity Data Types Overview

The document defines a series of entity data types used in the CloudburstMC Bedrock protocol, including various attributes such as flags, structural integrity, color, and owner IDs. Each data type is specified with its class type and a unique identifier string. Additionally, it includes deprecated fields and comments on specific functionalities related to entities within the game.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views8 pages

Bedrock Entity Data Types Overview

The document defines a series of entity data types used in the CloudburstMC Bedrock protocol, including various attributes such as flags, structural integrity, color, and owner IDs. Each data type is specified with its class type and a unique identifier string. Additionally, it includes deprecated fields and comments on specific functionalities related to entities within the game.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

package [Link].

entity;

import [Link];
import [Link].Vector3f;
import [Link].Vector3i;
import [Link];
import [Link];
import [Link];

import [Link];
import [Link];

@UtilityClass
public class EntityDataTypes {

public static final EntityDataType<EnumSet<EntityFlag>> FLAGS = new


EntityDataType<EnumSet<EntityFlag>>([Link], "FLAGS") {
@Override
public boolean isInstance(Object value) {
return value instanceof EnumSet &&
(((EnumSet<?>) value).isEmpty() || ((Set<?>)
value).iterator().next() instanceof EntityFlag);
}
};
public static final EntityDataType<Integer> STRUCTURAL_INTEGRITY = new
EntityDataType<>([Link], "STRUCTURAL_INTEGRITY");
public static final EntityDataType<Integer> VARIANT = new
EntityDataType<>([Link], "VARIANT");
public static final EntityDataType<BlockDefinition> BLOCK = new
EntityDataType<>([Link], "BLOCK");
public static final EntityDataType<Byte> COLOR = new
EntityDataType<>([Link], "COLOR");
public static final EntityDataType<CharSequence> NAME = new
EntityDataType<>([Link], "NAME");
/**
* Unique ID of the entity that owns or created this entity.
*/
public static final EntityDataType<Long> OWNER_EID = new
EntityDataType<>([Link], "OWNER_EID");
public static final EntityDataType<Long> TARGET_EID = new
EntityDataType<>([Link], "TARGET_EID");
public static final EntityDataType<Short> AIR_SUPPLY = new
EntityDataType<>([Link], "AIR_SUPPLY");
public static final EntityDataType<Integer> EFFECT_COLOR = new
EntityDataType<>([Link], "EFFECT_COLOR");
/**
* @deprecated since v685
*/
@Deprecated
public static final EntityDataType<Byte> EFFECT_AMBIENCE = new
EntityDataType<>([Link], "EFFECT_AMBIENCE");
public static final EntityDataType<Byte> JUMP_DURATION = new
EntityDataType<>([Link], "JUMP_DURATION");
public static final EntityDataType<Integer> HURT_TICKS = new
EntityDataType<>([Link], "HURT_TICKS");
public static final EntityDataType<Integer> HURT_DIRECTION = new
EntityDataType<>([Link], "HURT_DIRECTION");
public static final EntityDataType<Float> ROW_TIME_LEFT = new
EntityDataType<>([Link], "ROW_TIME_LEFT");
public static final EntityDataType<Float> ROW_TIME_RIGHT = new
EntityDataType<>([Link], "ROW_TIME_RIGHT");
public static final EntityDataType<Integer> VALUE = new
EntityDataType<>([Link], "VALUE");
public static final EntityDataType<Byte> WITHER_SKULL_DANGEROUS = new
EntityDataType<>([Link], "WITHER_SKULL_DANGEROUS");
// Same ID shares three different types -facepalm-
public static final EntityDataType<Integer> HORSE_FLAGS = new
EntityDataType<>([Link], "HORSE_FLAGS");
public static final EntityDataType<NbtMap> DISPLAY_FIREWORK = new
EntityDataType<>([Link], "DISPLAY_FIREWORK");
public static final EntityDataType<BlockDefinition> DISPLAY_BLOCK_STATE = new
EntityDataType<>([Link], "DISPLAY_BLOCK_STATE");
public static final EntityDataType<Integer> DISPLAY_OFFSET = new
EntityDataType<>([Link], "DISPLAY_OFFSET");
public static final EntityDataType<Byte> CUSTOM_DISPLAY = new
EntityDataType<>([Link], "CUSTOM_DISPLAY");
public static final EntityDataType<Byte> HORSE_TYPE = new
EntityDataType<>([Link], "HORSE_TYPE");
public static final EntityDataType<Integer> OLD_SWELL = new
EntityDataType<>([Link], "OLD_SWELL");
public static final EntityDataType<Integer> SWELL_DIRECTION = new
EntityDataType<>([Link], "SWELL_DIRECTION");
public static final EntityDataType<Byte> CHARGE_AMOUNT = new
EntityDataType<>([Link], "CHARGE_AMOUNT");
/**
* @deprecated since v827
*/
public static final EntityDataType<BlockDefinition> CARRY_BLOCK_STATE = new
EntityDataType<>([Link], "CARRY_BLOCK_STATE");
public static final EntityDataType<Byte> CLIENT_EVENT = new
EntityDataType<>([Link], "CLIENT_EVENT");
public static final EntityDataType<Boolean> USING_ITEM = new
EntityDataType<>([Link], "USING_ITEM");
public static final EntityDataType<Byte> PLAYER_FLAGS = new
EntityDataType<>([Link], "PLAYER_FLAGS");
public static final EntityDataType<Integer> PLAYER_INDEX = new
EntityDataType<>([Link], "PLAYER_INDEX");
public static final EntityDataType<Vector3i> BED_POSITION = new
EntityDataType<>([Link], "BED_POSITION");
/**
* Power of fireball (x-axis)
*/
public static final EntityDataType<Float> FIREBALL_POWER_X = new
EntityDataType<>([Link], "FIREBALL_POWER_X");
/**
* Power of fireball (y-axis)
*/
public static final EntityDataType<Float> FIREBALL_POWER_Y = new
EntityDataType<>([Link], "FIREBALL_POWER_Y");
/**
* Power of fireball (z-axis)
*/
public static final EntityDataType<Float> FIREBALL_POWER_Z = new
EntityDataType<>([Link], "FIREBALL_POWER_Z");
/**
* Potion aux value used for an Arrow's trail. (Equal to the potion ID - 1)
*/
public static final EntityDataType<Byte> AUX_POWER = new
EntityDataType<>([Link], "AUX_POWER");
public static final EntityDataType<Float> FISH_X = new
EntityDataType<>([Link], "FISH_X");
public static final EntityDataType<Float> FISH_Z = new
EntityDataType<>([Link], "FISH_Z");
public static final EntityDataType<Float> FISH_ANGLE = new
EntityDataType<>([Link], "FISH_ANGLE");
public static final EntityDataType<Short> AUX_VALUE_DATA = new
EntityDataType<>([Link], "AUX_VALUE_DATA");
/**
* Unique ID for the entity who holds a leash to the current entity.
*/
public static final EntityDataType<Long> LEASH_HOLDER = new
EntityDataType<>([Link], "LEASH_HOLDER");
/**
* Set the scale of this entity.
* 1 is the default size defined by {@code EntityDataType#WIDTH} and {@code
EntityDataType#HEIGHT}.
*/
public static final EntityDataType<Float> SCALE = new
EntityDataType<>([Link], "SCALE");
public static final EntityDataType<Boolean> HAS_NPC = new
EntityDataType<>([Link], "HAS_NPC");
public static final EntityDataType<String> NPC_DATA = new
EntityDataType<>([Link], "NPC_DATA");
public static final EntityDataType<String> ACTIONS = new
EntityDataType<>([Link], "ACTIONS");
public static final EntityDataType<Short> AIR_SUPPLY_MAX = new
EntityDataType<>([Link], "AIR_SUPPLY_MAX");
public static final EntityDataType<Integer> MARK_VARIANT = new
EntityDataType<>([Link], "MARK_VARIANT");
public static final EntityDataType<Byte> CONTAINER_TYPE = new
EntityDataType<>([Link], "CONTAINER_TYPE");
public static final EntityDataType<Integer> CONTAINER_SIZE = new
EntityDataType<>([Link], "CONTAINER_SIZE");
public static final EntityDataType<Integer> CONTAINER_STRENGTH_MODIFIER = new
EntityDataType<>([Link], "CONTAINER_STRENGTH_MODIFIER");
/**
* Target position of Ender Crystal beam.
*/
public static final EntityDataType<Vector3i> BLOCK_TARGET_POS = new
EntityDataType<>([Link], "BLOCK_TARGET_POS");
public static final EntityDataType<Integer> WITHER_INVULNERABLE_TICKS = new
EntityDataType<>([Link], "WITHER_INVULNERABLE_TICKS");
/**
* Unique entity ID to target for the left head of a Wither.
*/
public static final EntityDataType<Long> WITHER_TARGET_A = new
EntityDataType<>([Link], "WITHER_TARGET_A");
/**
* Unique entity ID to target for the middle head of a Wither.
*/
public static final EntityDataType<Long> WITHER_TARGET_B = new
EntityDataType<>([Link], "WITHER_TARGET_B");
/**
* Unique entity ID to target for the right head of a Wither.
*/
public static final EntityDataType<Long> WITHER_TARGET_C = new
EntityDataType<>([Link], "WITHER_TARGET_C");
public static final EntityDataType<Short> WITHER_AERIAL_ATTACK = new
EntityDataType<>([Link], "WITHER_AERIAL_ATTACK");
public static final EntityDataType<Float> WIDTH = new
EntityDataType<>([Link], "WIDTH");
public static final EntityDataType<Float> HEIGHT = new
EntityDataType<>([Link], "HEIGHT");
public static final EntityDataType<Integer> FUSE_TIME = new
EntityDataType<>([Link], "FUSE_TIME");
public static final EntityDataType<Vector3f> SEAT_OFFSET = new
EntityDataType<>([Link], "SEAT_OFFSET");
public static final EntityDataType<Boolean> SEAT_LOCK_RIDER_ROTATION = new
EntityDataType<>([Link], "SEAT_LOCK_RIDER_ROTATION");
public static final EntityDataType<Float> SEAT_LOCK_RIDER_ROTATION_DEGREES =
new EntityDataType<>([Link], "SEAT_LOCK_RIDER_ROTATION_DEGREES");
public static final EntityDataType<Boolean> SEAT_HAS_ROTATION = new
EntityDataType<>([Link], "SEAT_HAS_ROTATION");
public static final EntityDataType<Float> SEAT_ROTATION_OFFSET_DEGREES = new
EntityDataType<>([Link], "SEAT_ROTATION_OFFSET_DEGREES");
/**
* Radius of Area Effect Cloud
*/
public static final EntityDataType<Float> AREA_EFFECT_CLOUD_RADIUS = new
EntityDataType<>([Link], "AREA_EFFECT_CLOUD_RADIUS");
public static final EntityDataType<Integer> AREA_EFFECT_CLOUD_WAITING = new
EntityDataType<>([Link], "AREA_EFFECT_CLOUD_WAITING");
public static final EntityDataType<ParticleType> AREA_EFFECT_CLOUD_PARTICLE =
new EntityDataType<>([Link], "AREA_EFFECT_CLOUD_PARTICLE");
public static final EntityDataType<Integer> SHULKER_PEEK_AMOUNT = new
EntityDataType<>([Link], "SHULKER_PEEK_AMOUNT");
public static final EntityDataType<Integer> SHULKER_ATTACH_FACE = new
EntityDataType<>([Link], "SHULKER_ATTACH_FACE");
public static final EntityDataType<Boolean> SHULKER_ATTACHED = new
EntityDataType<>([Link], "SHULKER_ATTACHED");
/**
* Position a Shulker entity is attached from.
*/
public static final EntityDataType<Vector3i> SHULKER_ATTACH_POS = new
EntityDataType<>([Link], "SHULKER_ATTACH_POS");
/**
* Sets the unique ID of the player that is trading with this entity.
*/
public static final EntityDataType<Long> TRADE_TARGET_EID = new
EntityDataType<>([Link], "TRADE_TARGET_EID");
/**
* Previously used for the villager V1 entity.
*
* @deprecated unused AFAIK
*/
@Deprecated
public static final EntityDataType<Integer> CAREER = new
EntityDataType<>([Link], "CAREER");
public static final EntityDataType<Boolean> COMMAND_BLOCK_ENABLED = new
EntityDataType<>([Link], "COMMAND_BLOCK_ENABLED");
public static final EntityDataType<String> COMMAND_BLOCK_NAME = new
EntityDataType<>([Link], "COMMAND_BLOCK_NAME");
public static final EntityDataType<String> COMMAND_BLOCK_LAST_OUTPUT = new
EntityDataType<>([Link], "COMMAND_BLOCK_LAST_OUTPUT");
public static final EntityDataType<Boolean> COMMAND_BLOCK_TRACK_OUTPUT = new
EntityDataType<>([Link], "COMMAND_BLOCK_TRACK_OUTPUT");
public static final EntityDataType<Byte> CONTROLLING_RIDER_SEAT_INDEX = new
EntityDataType<>([Link], "CONTROLLING_RIDER_SEAT_INDEX");
public static final EntityDataType<Integer> STRENGTH = new
EntityDataType<>([Link], "STRENGTH");
public static final EntityDataType<Integer> STRENGTH_MAX = new
EntityDataType<>([Link], "STRENGTH_MAX");
public static final EntityDataType<Integer> EVOKER_SPELL_CASTING_COLOR = new
EntityDataType<>([Link], "EVOKER_SPELL_CASTING_COLOR");
public static final EntityDataType<Integer> DATA_LIFETIME_TICKS = new
EntityDataType<>([Link], "DATA_LIFETIME_TICKS");
public static final EntityDataType<Integer> ARMOR_STAND_POSE_INDEX = new
EntityDataType<>([Link], "ARMOR_STAND_POSE_INDEX");
public static final EntityDataType<Integer> END_CRYSTAL_TICK_OFFSET = new
EntityDataType<>([Link], "END_CRYSTAL_TICK_OFFSET");
public static final EntityDataType<Byte> NAMETAG_ALWAYS_SHOW = new
EntityDataType<>([Link], "NAMETAG_ALWAYS_SHOW");
public static final EntityDataType<Byte> COLOR_2 = new
EntityDataType<>([Link], "COLOR_2");
public static final EntityDataType<CharSequence> NAME_AUTHOR = new
EntityDataType<>([Link], "NAME_AUTHOR");
public static final EntityDataType<CharSequence> SCORE = new
EntityDataType<>([Link], "SCORE");
/**
* Unique entity ID that the balloon string is attached to.
* Disable by setting value to -1.
*/
public static final EntityDataType<Long> BALLOON_ANCHOR_EID = new
EntityDataType<>([Link], "BALLOON_ANCHOR_EID");
public static final EntityDataType<Byte> PUFFED_STATE = new
EntityDataType<>([Link], "PUFFED_STATE");
public static final EntityDataType<Integer> BOAT_BUBBLE_TIME = new
EntityDataType<>([Link], "BOAT_BUBBLE_TIME");
/**
* The unique entity ID of the player's Agent. (Education Edition only)
*/
public static final EntityDataType<Long> AGENT_EID = new
EntityDataType<>([Link], "AGENT_EID");
public static final EntityDataType<Float> SITTING_AMOUNT = new
EntityDataType<>([Link], "SITTING_AMOUNT");
public static final EntityDataType<Float> SITTING_AMOUNT_PREVIOUS = new
EntityDataType<>([Link], "SITTING_AMOUNT_PREVIOUS");
public static final EntityDataType<Integer> EATING_COUNTER = new
EntityDataType<>([Link], "EATING_COUNTER");
public static final EntityDataType<EnumSet<EntityFlag>> FLAGS_2 = new
EntityDataType<>([Link], "FLAGS_2");
public static final EntityDataType<Float> LAYING_AMOUNT = new
EntityDataType<>([Link], "LAYING_AMOUNT");
public static final EntityDataType<Float> LAYING_AMOUNT_PREVIOUS = new
EntityDataType<>([Link], "LAYING_AMOUNT_PREVIOUS");
public static final EntityDataType<Integer> AREA_EFFECT_CLOUD_DURATION = new
EntityDataType<>([Link], "AREA_EFFECT_CLOUD_DURATION");
public static final EntityDataType<Integer> AREA_EFFECT_CLOUD_SPAWN_TIME = new
EntityDataType<>([Link], "AREA_EFFECT_CLOUD_SPAWN_TIME");
/**
* @deprecated since v685
*/
@Deprecated
public static final EntityDataType<Float> AREA_EFFECT_CLOUD_CHANGE_RATE = new
EntityDataType<>([Link], "AREA_EFFECT_CLOUD_CHANGE_RATE");
public static final EntityDataType<Float> AREA_EFFECT_CLOUD_CHANGE_ON_PICKUP =
new EntityDataType<>([Link], "AREA_EFFECT_CLOUD_CHANGE_ON_PICKUP");
public static final EntityDataType<Integer> AREA_EFFECT_CLOUD_PICKUP_COUNT =
new EntityDataType<>([Link], "AREA_EFFECT_CLOUD_PICKUP_COUNT");
public static final EntityDataType<CharSequence> INTERACT_TEXT = new
EntityDataType<>([Link], "INTERACT_TEXT");
public static final EntityDataType<Integer> TRADE_TIER = new
EntityDataType<>([Link], "TRADE_TIER");
public static final EntityDataType<Integer> MAX_TRADE_TIER = new
EntityDataType<>([Link], "MAX_TRADE_TIER");
public static final EntityDataType<Integer> TRADE_EXPERIENCE = new
EntityDataType<>([Link], "TRADE_EXPERIENCE");
public static final EntityDataType<Integer> SKIN_ID = new
EntityDataType<>([Link], "SKIN_ID");
public static final EntityDataType<Integer> SPAWNING_FRAMES = new
EntityDataType<>([Link], "SPAWNING_FRAMES");
public static final EntityDataType<Integer> COMMAND_BLOCK_TICK_DELAY = new
EntityDataType<>([Link], "COMMAND_BLOCK_TICK_DELAY");
public static final EntityDataType<Boolean> COMMAND_BLOCK_EXECUTE_ON_FIRST_TICK
= new EntityDataType<>([Link], "COMMAND_BLOCK_EXECUTE_ON_FIRST_TICK");
public static final EntityDataType<Float> AMBIENT_SOUND_INTERVAL = new
EntityDataType<>([Link], "AMBIENT_SOUND_INTERVAL");
public static final EntityDataType<Float> AMBIENT_SOUND_INTERVAL_RANGE = new
EntityDataType<>([Link], "AMBIENT_SOUND_INTERVAL_RANGE");
public static final EntityDataType<String> AMBIENT_SOUND_EVENT_NAME = new
EntityDataType<>([Link], "AMBIENT_SOUND_EVENT_NAME");
public static final EntityDataType<Float> FALL_DAMAGE_MULTIPLIER = new
EntityDataType<>([Link], "FALL_DAMAGE_MULTIPLIER");
public static final EntityDataType<String> NAME_RAW_TEXT = new
EntityDataType<>([Link], "NAME_RAW_TEXT");
public static final EntityDataType<Boolean> CAN_RIDE_TARGET = new
EntityDataType<>([Link], "CAN_RIDE_TARGET");
public static final EntityDataType<Integer> LOW_TIER_CURED_TRADE_DISCOUNT = new
EntityDataType<>([Link], "LOW_TIER_CURED_TRADE_DISCOUNT");
public static final EntityDataType<Integer> HIGH_TIER_CURED_TRADE_DISCOUNT =
new EntityDataType<>([Link], "HIGH_TIER_CURED_TRADE_DISCOUNT");
public static final EntityDataType<Integer> NEARBY_CURED_TRADE_DISCOUNT = new
EntityDataType<>([Link], "NEARBY_CURED_TRADE_DISCOUNT");
public static final EntityDataType<Integer> NEARBY_CURED_DISCOUNT_TIME_STAMP =
new EntityDataType<>([Link], "NEARBY_CURED_DISCOUNT_TIME_STAMP");

/**
* Set custom hitboxes for an entity. This will override the hitbox defined
with {@link EntityDataTypes#SCALE},
* {@link EntityDataTypes#WIDTH} and {@link EntityDataTypes#HEIGHT}, but will
not affect the collisions.
* Setting the hitbox to an empty list will revert to default behaviour.
* <p>
* NBT format
* <pre>
* {
* "Hitboxes": [
* {
* "MinX": 0f,
* "MinY": 0f,
* "MinZ": 0f,
* "MaxX": 1f,
* "MaxY": 1f,
* "MaxZ": 1f,
* "PivotX": 0f,
* "PivotY": 0f,
* "PivotZ": 0f,
* }
* ]
* }
* </pre>
*/
public static final EntityDataType<NbtMap> HITBOX = new
EntityDataType<>([Link], "HITBOX");
public static final EntityDataType<Boolean> IS_BUOYANT = new
EntityDataType<>([Link], "IS_BUOYANT");
public static final EntityDataType<String> BASE_RUNTIME_ID = new
EntityDataType<>([Link], "BASE_RUNTIME_ID");
/**
* Custom properties from the <pre>PropertyComponent</pre>.
*
* @deprecated v557
*/
@Deprecated
public static final EntityDataType<NbtMap> UPDATE_PROPERTIES = new
EntityDataType<>([Link], "UPDATE_PROPERTIES");
public static final EntityDataType<Float> FREEZING_EFFECT_STRENGTH = new
EntityDataType<>([Link], "FREEZING_EFFECT_STRENGTH");
public static final EntityDataType<String> BUOYANCY_DATA = new
EntityDataType<>([Link], "BUOYANCY_DATA");
public static final EntityDataType<Integer> GOAT_HORN_COUNT = new
EntityDataType<>([Link], "GOAT_HORN_COUNT");
/**
* @since v503
*/
public static final EntityDataType<Float> MOVEMENT_SOUND_DISTANCE_OFFSET = new
EntityDataType<>([Link], "MOVEMENT_SOUND_DISTANCE_OFFSET");
/**
* @since v503
*/
public static final EntityDataType<Integer> HEARTBEAT_INTERVAL_TICKS = new
EntityDataType<>([Link], "HEARTBEAT_INTERVAL_TICKS");
/**
* @since v503
*/
public static final EntityDataType<Integer> HEARTBEAT_SOUND_EVENT = new
EntityDataType<>([Link], "HEARTBEAT_SOUND_EVENT");
/**
* @since v527
*/
public static final EntityDataType<Vector3i> PLAYER_LAST_DEATH_POS = new
EntityDataType<>([Link], "PLAYER_LAST_DEATH_POS");
/**
* @since v527
*/
public static final EntityDataType<Integer> PLAYER_LAST_DEATH_DIMENSION = new
EntityDataType<>([Link], "PLAYER_LAST_DEATH_DIMENSION");
/**
* @since v527
*/
public static final EntityDataType<Boolean> PLAYER_HAS_DIED = new
EntityDataType<>([Link], "PLAYER_HAS_DIED");
/**
* @since v594
*/
public static final EntityDataType<Vector3f> COLLISION_BOX = new
EntityDataType<>([Link], "COLLISION_BOX");
/**
* @since v685
*/
public static final EntityDataType<Long> VISIBLE_MOB_EFFECTS = new
EntityDataType<>([Link], "VISIBLE_MOB_EFFECTS");
/**
* @since v776
*/
public static final EntityDataType<CharSequence> FILTERED_NAME = new
EntityDataType<>([Link], "FILTERED_NAME");
/**
* @since v776
*/
public static final EntityDataType<Vector3f> BED_ENTER_POSITION = new
EntityDataType<>([Link], "BED_ENTER_POSITION");
/**
* @since v800
*/
public static final EntityDataType<Float> SEAT_THIRD_PERSON_CAMERA_RADIUS = new
EntityDataType<>([Link], "SEAT_THIRD_PERSON_CAMERA_RADIUS");
/**
* @since v800
*/
public static final EntityDataType<Float> SEAT_CAMERA_RELAX_DISTANCE_SMOOTHING
= new EntityDataType<>([Link], "SEAT_CAMERA_RELAX_DISTANCE_SMOOTHING");
}

You might also like