Class EntityAttributeCreationEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityAttributeCreationEvent
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
public class EntityAttributeCreationEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.fml.event.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
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntityAttributeCreationEvent
(Map<net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity>, net.minecraft.world.entity.ai.attributes.AttributeSupplier> map) -
Method Summary
Modifier and TypeMethodDescriptionvoid
put
(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity> entity, net.minecraft.world.entity.ai.attributes.AttributeSupplier map)
-
Field Details
-
map
private final Map<net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity>,net.minecraft.world.entity.ai.attributes.AttributeSupplier> map
-
-
Constructor Details
-
EntityAttributeCreationEvent
public EntityAttributeCreationEvent(Map<net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity>, net.minecraft.world.entity.ai.attributes.AttributeSupplier> map)
-
-
Method Details
-
put
public void put(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity> entity, net.minecraft.world.entity.ai.attributes.AttributeSupplier map)
-