Class EntityAttribute
java.lang.Object
me.gamercoder215.mobchip.ai.attribute.EntityAttribute
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEntity Attribute Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttributeRepresents Attribute#BLOCK_BREAK_SPEEDstatic final AttributeRepresents Attribute#BLOCK_INTERACTION_RANGEstatic final AttributeRepresents Attribute#ENTITY_INTERACTION_RANGEstatic final AttributeRepresents Attribute#FALL_DAMAGE_MULTIPLIERstatic final AttributeRepresentsAttribute.GENERIC_ARMORstatic final AttributeRepresentsAttribute.GENERIC_ARMOR_TOUGHNESSstatic final AttributeRepresentsAttribute.GENERIC_ATTACK_DAMAGEstatic final AttributeRepresents Attribute#GENERIC_ATTACK_KNOCKBACKstatic final AttributeRepresentsAttribute.GENERIC_ATTACK_SPEEDstatic final AttributeRepresentsAttribute.GENERIC_FLYING_SPEEDstatic final AttributeRepresentsAttribute.GENERIC_FOLLOW_RANGEstatic final AttributeRepresentsAttribute.GENERIC_KNOCKBACK_RESISTANCEstatic final AttributeRepresentsAttribute.GENERIC_LUCKstatic final AttributeRepresentsAttribute.GENERIC_MAX_HEALTHstatic final AttributeRepresentsAttribute.GENERIC_MOVEMENT_SPEEDstatic final AttributeRepresents Attribute#GENERIC_GRAVITYstatic final AttributeRepresentsAttribute.HORSE_JUMP_STRENGTHstatic final AttributeRepresents Attribute#GENERIC_MAX_ABSORPTIONstatic final AttributeRepresents Attribute#SAFE_FALL_DISTANCEstatic final AttributeRepresents Attribute#GENERIC_SCALEstatic final AttributeRepresents Attribute#GENERIC_STEP_HEIGHTstatic final AttributeRepresentsAttribute.ZOMBIE_SPAWN_REINFORCEMENTS -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityAttribute.Builderbuilder()Fetches the EntityAttribute Builder.static booleanexists(@Nullable NamespacedKey key) Whether an Attribute exists in the Minecraft registrar.static @Nullable AttributefromBukkit(Attribute attribute) Converts a Bukkit Attribute to a MobChip Attribute.static @Nullable EntityAttributegetAttribute(@Nullable NamespacedKey key) Fetches an EntityAttribute from the Minecraft registrar.doubleFetches the Default value of this Attribute@NotNull NamespacedKeygetKey()doubleFetches the maximum value of this AttributedoubleFetches the minimum value of this Attribute.booleanWhether this Attribute will sync and appear on the client's side.
-
Field Details
-
GENERIC_MAX_HEALTH
RepresentsAttribute.GENERIC_MAX_HEALTH -
GENERIC_FOLLOW_RANGE
RepresentsAttribute.GENERIC_FOLLOW_RANGE -
GENERIC_KNOCKBACK_RESISTANCE
RepresentsAttribute.GENERIC_KNOCKBACK_RESISTANCE -
GENERIC_MOVEMENT_SPEED
RepresentsAttribute.GENERIC_MOVEMENT_SPEED -
GENERIC_FLYING_SPEED
RepresentsAttribute.GENERIC_FLYING_SPEED -
GENERIC_ATTACK_DAMAGE
RepresentsAttribute.GENERIC_ATTACK_DAMAGE -
GENERIC_ATTACK_SPEED
RepresentsAttribute.GENERIC_ATTACK_SPEED -
GENERIC_ARMOR
RepresentsAttribute.GENERIC_ARMOR -
GENERIC_ARMOR_TOUGHNESS
RepresentsAttribute.GENERIC_ARMOR_TOUGHNESS -
GENERIC_ATTACK_KNOCKBACK
Represents Attribute#GENERIC_ATTACK_KNOCKBACK -
GENERIC_LUCK
RepresentsAttribute.GENERIC_LUCK -
ZOMBIE_SPAWN_REINFORCEMENTS
RepresentsAttribute.ZOMBIE_SPAWN_REINFORCEMENTS -
HORSE_JUMP_STRENGTH
RepresentsAttribute.HORSE_JUMP_STRENGTH -
MAX_ABSORPTION
Represents Attribute#GENERIC_MAX_ABSORPTION -
GRAVITY
Represents Attribute#GENERIC_GRAVITY -
SCALE
Represents Attribute#GENERIC_SCALE -
STEP_HEIGHT
Represents Attribute#GENERIC_STEP_HEIGHT -
SAFE_FALL_DISTANCE
Represents Attribute#SAFE_FALL_DISTANCE -
FALL_DAMAGE_MULTIPLIER
Represents Attribute#FALL_DAMAGE_MULTIPLIER -
BLOCK_INTERACTION_RANGE
Represents Attribute#BLOCK_INTERACTION_RANGE -
ENTITY_INTERACTION_RANGE
Represents Attribute#ENTITY_INTERACTION_RANGE -
BLOCK_BREAK_SPEED
Represents Attribute#BLOCK_BREAK_SPEED
-
-
Method Details
-
fromBukkit
-
builder
Fetches the EntityAttribute Builder.- Returns:
- Attribute Builder
-
getMinValue
public double getMinValue()Description copied from interface:AttributeFetches the minimum value of this Attribute.- Specified by:
getMinValuein interfaceAttribute- Returns:
- Minimum value
-
getMaxValue
public double getMaxValue()Description copied from interface:AttributeFetches the maximum value of this Attribute- Specified by:
getMaxValuein interfaceAttribute- Returns:
- Maximum value
-
getDefaultValue
public double getDefaultValue()Description copied from interface:AttributeFetches the Default value of this Attribute- Specified by:
getDefaultValuein interfaceAttribute- Returns:
- Default value
-
getKey
-
isClientSide
public boolean isClientSide()Description copied from interface:AttributeWhether this Attribute will sync and appear on the client's side.- Specified by:
isClientSidein interfaceAttribute- Returns:
- true if also client side, else false
-
getAttribute
@Nullable public static @Nullable EntityAttribute getAttribute(@Nullable @Nullable NamespacedKey key) Fetches an EntityAttribute from the Minecraft registrar.- Parameters:
key- Key of the Attribute- Returns:
- Attribute found, or null if not found
-
exists
Whether an Attribute exists in the Minecraft registrar.- Parameters:
key- Key of the Attribute- Returns:
- true if attribute exists, else false
-