Class LodestoneAttributeRegistry
java.lang.Object
team.lodestar.lodestone.registry.common.LodestoneAttributeRegistry
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
FieldsModifier and TypeFieldDescriptionstatic 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidmodifyEntityAttributes(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,
-
Field Details
-
ATTRIBUTES
public static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.entity.ai.attributes.Attribute> ATTRIBUTES -
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)
-