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 SummaryNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Map<EntityType<? extends LivingEntity>,AttributeSupplier.Builder> private final List<EntityType<? extends LivingEntity>>
- 
Constructor SummaryConstructorsConstructorDescriptionEntityAttributeModificationEvent(Map<EntityType<? extends LivingEntity>, AttributeSupplier.Builder> mapIn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(EntityType<? extends LivingEntity> entityType, Attribute attribute) voidadd(EntityType<? extends LivingEntity> entityType, Attribute attribute, double value) List<EntityType<? extends LivingEntity>>getTypes()booleanhas(EntityType<? extends LivingEntity> entityType, Attribute attribute) Methods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
entityAttributes
- 
entityTypes
 
- 
- 
Constructor Details- 
EntityAttributeModificationEventpublic EntityAttributeModificationEvent(Map<EntityType<? extends LivingEntity>, AttributeSupplier.Builder> mapIn) 
 
- 
- 
Method Details- 
add
- 
add
- 
has
- 
getTypes
 
-