Interface Attribute
- All Superinterfaces:
Holder<Attribute>, Keyed, RegistryKey<Attribute>, StaticProtocolObject<Attribute>, Translatable
-
Nested Class Summary
Nested classes/interfaces inherited from interface Holder
Holder.Direct<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final NetworkBuffer.Type<Attribute> static final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attributestatic final Attribute -
Method Summary
Modifier and TypeMethodDescriptiondefault doubleReturns this attribute's default value.fromId(int id) default intid()default booleanisSynced()Deprecated, for removal: This API element is subject to removal in a future version.default Keykey()default doublemaxValue()Returns the maximum accepted value for this attribute.default doubleminValue()Returns the minimum accepted value for this attribute.registry()Deprecated, for removal: This API element is subject to removal in a future version.use the direct accessors onAttributedefault booleansynced()Returns whether this attribute is synchronized with clients.default Stringstatic Collection<Attribute> values()Methods inherited from interface StaticProtocolObject
name, registryKey
-
Field Details
-
NETWORK_TYPE
-
CODEC
-
AIR_DRAG_MODIFIER
-
ARMOR
-
ARMOR_TOUGHNESS
-
ATTACK_DAMAGE
-
ATTACK_KNOCKBACK
-
ATTACK_SPEED
-
BELOW_NAME_DISTANCE
-
BLOCK_BREAK_SPEED
-
BLOCK_INTERACTION_RANGE
-
BOUNCINESS
-
BURNING_TIME
-
CAMERA_DISTANCE
-
EXPLOSION_KNOCKBACK_RESISTANCE
-
ENTITY_INTERACTION_RANGE
-
FALL_DAMAGE_MULTIPLIER
-
FLYING_SPEED
-
FOLLOW_RANGE
-
FRICTION_MODIFIER
-
GRAVITY
-
JUMP_STRENGTH
-
KNOCKBACK_RESISTANCE
-
LUCK
-
MAX_ABSORPTION
-
MAX_HEALTH
-
MINING_EFFICIENCY
-
MOVEMENT_EFFICIENCY
-
MOVEMENT_SPEED
-
NAME_TAG_DISTANCE
-
OXYGEN_BONUS
-
SAFE_FALL_DISTANCE
-
SCALE
-
SNEAKING_SPEED
-
SPAWN_REINFORCEMENTS
-
STEP_HEIGHT
-
SUBMERGED_MINING_SPEED
-
SWEEPING_DAMAGE_RATIO
-
TEMPT_RANGE
-
WATER_MOVEMENT_EFFICIENCY
-
WAYPOINT_TRANSMIT_RANGE
-
WAYPOINT_RECEIVE_RANGE
-
-
Method Details
-
registry
Deprecated, for removal: This API element is subject to removal in a future version.use the direct accessors onAttributeReturns the legacy registry data backing this attribute.- Specified by:
registryin interfaceStaticProtocolObject<Attribute>- Returns:
- the legacy registry data
-
key
-
id
default int id()- Specified by:
idin interfaceStaticProtocolObject<Attribute>
-
defaultValue
-
minValue
-
maxValue
-
synced
-
isSynced
Deprecated, for removal: This API element is subject to removal in a future version.usesynced() -
translationKey
- Specified by:
translationKeyin interfaceTranslatable
-
values
-
fromKey
-
fromKey
-
fromId
-
synced()