Package net.minecraftforge.event.entity
Class EntityAttributeModificationEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityAttributeModificationEvent
- All Implemented Interfaces:
IModBusEvent
public class EntityAttributeModificationEvent
extends net.minecraftforge.eventbus.api.Event
implements IModBusEvent
EntityAttributeModificationEvent.
Use this event to add attributes to existing entity types. This event is fired after registration and before common setup, and after
Fired on the Mod bus
Use this event to add attributes to existing entity types. This event is fired after registration and before common setup, and after
EntityAttributeCreationEvent
Fired on the Mod bus
IModBusEvent
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<EntityType<? extends LivingEntity>,
AttributeSupplier.Builder> private final List<EntityType<? extends LivingEntity>>
-
Constructor Summary
ConstructorDescriptionEntityAttributeModificationEvent
(Map<EntityType<? extends LivingEntity>, AttributeSupplier.Builder> mapIn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(EntityType<? extends LivingEntity> entityType, Attribute attribute) void
add
(EntityType<? extends LivingEntity> entityType, Attribute attribute, double value) List<EntityType<? extends LivingEntity>>
getTypes()
boolean
has
(EntityType<? extends LivingEntity> entityType, Attribute attribute) Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
entityAttributes
-
entityTypes
-
-
Constructor Details
-
EntityAttributeModificationEvent
public EntityAttributeModificationEvent(Map<EntityType<? extends LivingEntity>, AttributeSupplier.Builder> mapIn)
-
-
Method Details
-
add
-
add
-
has
-
getTypes
-