Uses of Class
net.minecraft.entity.attribute.EntityAttribute
-
Uses of EntityAttribute in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return EntityAttribute Modifier and Type Method Description static EntityAttribute
IdentifierArgumentType. getAttributeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName)
-
Uses of EntityAttribute in net.minecraft.entity
Methods in net.minecraft.entity with parameters of type EntityAttribute Modifier and Type Method Description double
LivingEntity. getAttributeBaseValue(EntityAttribute attribute)
@Nullable EntityAttributeInstance
LivingEntity. getAttributeInstance(EntityAttribute attribute)
double
LivingEntity. getAttributeValue(EntityAttribute attribute)
-
Uses of EntityAttribute in net.minecraft.entity.attribute
Subclasses of EntityAttribute in net.minecraft.entity.attribute Modifier and Type Class Description class
ClampedEntityAttribute
Represents a type of attribute with minimum and maximum value limits.Fields in net.minecraft.entity.attribute declared as EntityAttribute Modifier and Type Field Description static EntityAttribute
EntityAttributes. GENERIC_ARMOR
static EntityAttribute
EntityAttributes. GENERIC_ARMOR_TOUGHNESS
static EntityAttribute
EntityAttributes. GENERIC_ATTACK_DAMAGE
static EntityAttribute
EntityAttributes. GENERIC_ATTACK_KNOCKBACK
static EntityAttribute
EntityAttributes. GENERIC_ATTACK_SPEED
static EntityAttribute
EntityAttributes. GENERIC_FLYING_SPEED
static EntityAttribute
EntityAttributes. GENERIC_FOLLOW_RANGE
static EntityAttribute
EntityAttributes. GENERIC_KNOCKBACK_RESISTANCE
static EntityAttribute
EntityAttributes. GENERIC_LUCK
static EntityAttribute
EntityAttributes. GENERIC_MAX_HEALTH
static EntityAttribute
EntityAttributes. GENERIC_MOVEMENT_SPEED
static EntityAttribute
EntityAttributes. HORSE_JUMP_STRENGTH
private EntityAttribute
EntityAttributeInstance. type
static EntityAttribute
EntityAttributes. ZOMBIE_SPAWN_REINFORCEMENTS
Fields in net.minecraft.entity.attribute with type parameters of type EntityAttribute Modifier and Type Field Description private Map<EntityAttribute,EntityAttributeInstance>
AttributeContainer. custom
private Map<EntityAttribute,EntityAttributeInstance>
DefaultAttributeContainer.Builder. instances
private Map<EntityAttribute,EntityAttributeInstance>
DefaultAttributeContainer. instances
Methods in net.minecraft.entity.attribute that return EntityAttribute Modifier and Type Method Description EntityAttribute
EntityAttributeInstance. getAttribute()
private static EntityAttribute
EntityAttributes. register(String id, EntityAttribute attribute)
EntityAttribute
EntityAttribute. setTracked(boolean tracked)
Sets all instances of this attribute to synchronize their values to clients.Methods in net.minecraft.entity.attribute with parameters of type EntityAttribute Modifier and Type Method Description DefaultAttributeContainer.Builder
DefaultAttributeContainer.Builder. add(EntityAttribute attribute)
DefaultAttributeContainer.Builder
DefaultAttributeContainer.Builder. add(EntityAttribute attribute, double baseValue)
private EntityAttributeInstance
DefaultAttributeContainer.Builder. checkedAdd(EntityAttribute attribute)
@Nullable EntityAttributeInstance
DefaultAttributeContainer. createOverride(Consumer<EntityAttributeInstance> updateCallback, EntityAttribute attribute)
double
AttributeContainer. getBaseValue(EntityAttribute attribute)
double
DefaultAttributeContainer. getBaseValue(EntityAttribute attribute)
@Nullable EntityAttributeInstance
AttributeContainer. getCustomInstance(EntityAttribute attribute)
double
AttributeContainer. getModifierValue(EntityAttribute attribute, UUID uuid)
double
DefaultAttributeContainer. getModifierValue(EntityAttribute attribute, UUID uuid)
double
AttributeContainer. getValue(EntityAttribute attribute)
double
DefaultAttributeContainer. getValue(EntityAttribute attribute)
boolean
DefaultAttributeContainer. has(EntityAttribute type)
boolean
AttributeContainer. hasAttribute(EntityAttribute attribute)
boolean
DefaultAttributeContainer. hasModifier(EntityAttribute type, UUID uuid)
boolean
AttributeContainer. hasModifierForAttribute(EntityAttribute attribute, UUID uuid)
private static EntityAttribute
EntityAttributes. register(String id, EntityAttribute attribute)
private EntityAttributeInstance
DefaultAttributeContainer. require(EntityAttribute attribute)
Method parameters in net.minecraft.entity.attribute with type arguments of type EntityAttribute Modifier and Type Method Description void
AttributeContainer. addTemporaryModifiers(Multimap<EntityAttribute,EntityAttributeModifier> attributeModifiers)
void
AttributeContainer. removeModifiers(Multimap<EntityAttribute,EntityAttributeModifier> attributeModifiers)
Constructors in net.minecraft.entity.attribute with parameters of type EntityAttribute Constructor Description EntityAttributeInstance(EntityAttribute type, Consumer<EntityAttributeInstance> updateCallback)
Constructor parameters in net.minecraft.entity.attribute with type arguments of type EntityAttribute Constructor Description DefaultAttributeContainer(Map<EntityAttribute,EntityAttributeInstance> instances)
-
Uses of EntityAttribute in net.minecraft.entity.effect
Fields in net.minecraft.entity.effect with type parameters of type EntityAttribute Modifier and Type Field Description private Map<EntityAttribute,EntityAttributeModifier>
StatusEffect. attributeModifiers
Methods in net.minecraft.entity.effect that return types with arguments of type EntityAttribute Modifier and Type Method Description Map<EntityAttribute,EntityAttributeModifier>
StatusEffect. getAttributeModifiers()
Methods in net.minecraft.entity.effect with parameters of type EntityAttribute Modifier and Type Method Description StatusEffect
StatusEffect. addAttributeModifier(EntityAttribute attribute, String uuid, double amount, EntityAttributeModifier.Operation operation)
-
Uses of EntityAttribute in net.minecraft.item
Fields in net.minecraft.item with type parameters of type EntityAttribute Modifier and Type Field Description private Multimap<EntityAttribute,EntityAttributeModifier>
ArmorItem. attributeModifiers
private Multimap<EntityAttribute,EntityAttributeModifier>
MiningToolItem. attributeModifiers
private Multimap<EntityAttribute,EntityAttributeModifier>
SwordItem. attributeModifiers
private Multimap<EntityAttribute,EntityAttributeModifier>
TridentItem. attributeModifiers
Methods in net.minecraft.item that return types with arguments of type EntityAttribute Modifier and Type Method Description Multimap<EntityAttribute,EntityAttributeModifier>
ArmorItem. getAttributeModifiers(EquipmentSlot slot)
Multimap<EntityAttribute,EntityAttributeModifier>
Item. getAttributeModifiers(EquipmentSlot slot)
Multimap<EntityAttribute,EntityAttributeModifier>
ItemStack. getAttributeModifiers(EquipmentSlot slot)
Multimap<EntityAttribute,EntityAttributeModifier>
MiningToolItem. getAttributeModifiers(EquipmentSlot slot)
Multimap<EntityAttribute,EntityAttributeModifier>
SwordItem. getAttributeModifiers(EquipmentSlot slot)
Multimap<EntityAttribute,EntityAttributeModifier>
TridentItem. getAttributeModifiers(EquipmentSlot slot)
Methods in net.minecraft.item with parameters of type EntityAttribute Modifier and Type Method Description void
ItemStack. addAttributeModifier(EntityAttribute attribute, EntityAttributeModifier modifier, @Nullable EquipmentSlot slot)
-
Uses of EntityAttribute in net.minecraft.loot.function
Fields in net.minecraft.loot.function declared as EntityAttribute Modifier and Type Field Description private EntityAttribute
SetAttributesLootFunction.Attribute. attribute
private EntityAttribute
SetAttributesLootFunction.class_6156. field_31857
Methods in net.minecraft.loot.function with parameters of type EntityAttribute Modifier and Type Method Description static SetAttributesLootFunction.class_6156
SetAttributesLootFunction. method_35524(String string, EntityAttribute entityAttribute, EntityAttributeModifier.Operation operation, LootNumberProvider lootNumberProvider)
Constructors in net.minecraft.loot.function with parameters of type EntityAttribute Constructor Description Attribute(String name, EntityAttribute attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amountRange, EquipmentSlot[] slots, @Nullable UUID id)
class_6156(String string, EntityAttribute entityAttribute, EntityAttributeModifier.Operation operation, LootNumberProvider lootNumberProvider)
-
Uses of EntityAttribute in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as EntityAttribute Modifier and Type Field Description private EntityAttribute
EntityAttributesS2CPacket.Entry. attribute
Methods in net.minecraft.network.packet.s2c.play that return EntityAttribute Modifier and Type Method Description EntityAttribute
EntityAttributesS2CPacket.Entry. getId()
Constructors in net.minecraft.network.packet.s2c.play with parameters of type EntityAttribute Constructor Description Entry(EntityAttribute attribute, double baseValue, Collection<EntityAttributeModifier> modifiers)
-
Uses of EntityAttribute in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type EntityAttribute Modifier and Type Method Description private static int
AttributeCommand. executeBaseValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier)
private static int
AttributeCommand. executeBaseValueSet(ServerCommandSource source, Entity target, EntityAttribute attribute, double value)
private static int
AttributeCommand. executeModifierAdd(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, String name, double value, EntityAttributeModifier.Operation operation)
private static int
AttributeCommand. executeModifierRemove(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid)
private static int
AttributeCommand. executeModifierValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, double multiplier)
private static int
AttributeCommand. executeValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier)
private static EntityAttributeInstance
AttributeCommand. getAttributeInstance(Entity entity, EntityAttribute attribute)
private static LivingEntity
AttributeCommand. getLivingEntityWithAttribute(Entity entity, EntityAttribute attribute)
-
Uses of EntityAttribute in net.minecraft.util.registry
Fields in net.minecraft.util.registry with type parameters of type EntityAttribute Modifier and Type Field Description static Registry<EntityAttribute>
Registry. ATTRIBUTE
static RegistryKey<Registry<EntityAttribute>>
Registry. ATTRIBUTE_KEY