Package net.minecraftforge.event.entity
Class EntityAttributeCreationEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.entity.EntityAttributeCreationEvent
-
- All Implemented Interfaces:
IModBusEvent
public class EntityAttributeCreationEvent extends net.minecraftforge.eventbus.api.Event implements IModBusEvent
EntityAttributeCreationEvent.
Use this event to register attributes for your own EntityTypes. This event is fired after registration and before common setup.
Fired on the Mod busIModBusEvent
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<EntityType<? extends LivingEntity>,AttributeModifierMap>
map
-
Constructor Summary
Constructors Constructor Description EntityAttributeCreationEvent(java.util.Map<EntityType<? extends LivingEntity>,AttributeModifierMap> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
put(EntityType<? extends LivingEntity> entity, AttributeModifierMap map)
-
-
-
Field Detail
-
map
private final java.util.Map<EntityType<? extends LivingEntity>,AttributeModifierMap> map
-
-
Constructor Detail
-
EntityAttributeCreationEvent
public EntityAttributeCreationEvent(java.util.Map<EntityType<? extends LivingEntity>,AttributeModifierMap> map)
-
-
Method Detail
-
put
public void put(EntityType<? extends LivingEntity> entity, AttributeModifierMap map)
-
-