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 IModBusEvent.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Map<net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity>,net.minecraft.world.entity.ai.attributes.AttributeSupplier>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntityAttributeCreationEvent(Map<net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity>,net.minecraft.world.entity.ai.attributes.AttributeSupplier> map)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    put(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity> entity, net.minecraft.world.entity.ai.attributes.AttributeSupplier map)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)