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 bus
Use this event to register attributes for your own EntityTypes. This event is fired after registration and before common setup.
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 Map<EntityType<? extends LivingEntity>,AttributeSupplier>
-
Constructor Summary
ConstructorDescriptionEntityAttributeCreationEvent(Map<EntityType<? extends LivingEntity>,AttributeSupplier> map)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
put(EntityType<? extends LivingEntity> entity, AttributeSupplier map)
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
map
-
-
Constructor Details
-
EntityAttributeCreationEvent
public EntityAttributeCreationEvent(Map<EntityType<? extends LivingEntity>,AttributeSupplier> map)
-
-
Method Details
-
put
-