Class LodestoneAttributeRegistry

java.lang.Object
team.lodestar.lodestone.registry.common.LodestoneAttributeRegistry

public class LodestoneAttributeRegistry extends Object
The attribute registry, UUIDS contains randomly generated uuids for each attribute registered, allowing you to have a constant uuid you may apply to attribute values. Attribute modifiers might not like this idea so much though.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.entity.ai.attributes.Attribute>
     
    static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.ai.attributes.Attribute>
     
    static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.ai.attributes.Attribute>
     
    static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.ai.attributes.Attribute>
     
    static final HashMap<net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.ai.attributes.Attribute>,UUID>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    modifyEntityAttributes(net.minecraftforge.event.entity.EntityAttributeModificationEvent event)
     
    static net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.ai.attributes.Attribute>
    registerAttribute(net.minecraftforge.registries.DeferredRegister<net.minecraft.world.entity.ai.attributes.Attribute> registry, String modId, String name, Function<String,net.minecraft.world.entity.ai.attributes.Attribute> attribute)
    Registers an attribute with a given name,

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ATTRIBUTES

      public static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.entity.ai.attributes.Attribute> ATTRIBUTES
    • UUIDS

      public static final HashMap<net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.ai.attributes.Attribute>,UUID> UUIDS
    • MAGIC_RESISTANCE

      public static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.ai.attributes.Attribute> MAGIC_RESISTANCE
    • MAGIC_PROFICIENCY

      public static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.ai.attributes.Attribute> MAGIC_PROFICIENCY
    • MAGIC_DAMAGE

      public static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.ai.attributes.Attribute> MAGIC_DAMAGE
  • Constructor Details

    • LodestoneAttributeRegistry

      public LodestoneAttributeRegistry()
  • Method Details

    • registerAttribute

      public static net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.ai.attributes.Attribute> registerAttribute(net.minecraftforge.registries.DeferredRegister<net.minecraft.world.entity.ai.attributes.Attribute> registry, String modId, String name, Function<String,net.minecraft.world.entity.ai.attributes.Attribute> attribute)
      Registers an attribute with a given name,
    • modifyEntityAttributes

      public static void modifyEntityAttributes(net.minecraftforge.event.entity.EntityAttributeModificationEvent event)