Class EntityRegistry
java.lang.Object
net.rebel459.unified.api.core.RegistryResourceListener<EntityRegistry.Definition>
net.rebel459.unified.impl.data.registry.EntityRegistry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic interfacestatic final recordstatic final recordstatic final recordstatic final classstatic final recordNested classes/interfaces inherited from class RegistryResourceListener
RegistryResourceListener.DeferredDeclaration<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EntityRegistry.Definition> static final net.minecraft.resources.Identifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidregister(net.minecraft.resources.Identifier id, RegistryResourceListener.DeferredDeclaration<EntityRegistry.Definition> declaration) Queues the registration code for a data-driven registry entry.static Supplied<? extends net.minecraft.world.entity.EntityType<?>> registerDefinition(net.minecraft.resources.Identifier id, Supplier<EntityRegistry.Definition> suppliedDefinition, Optional<Supplier<EntityRegistry.Attributes>> optionalAttributes) Methods inherited from class RegistryResourceListener
completeRegistration, init, registryId
-
Field Details
-
CODEC
-
ID
public static final net.minecraft.resources.Identifier ID
-
-
Constructor Details
-
EntityRegistry
public EntityRegistry()
-
-
Method Details
-
register
protected void register(net.minecraft.resources.Identifier id, RegistryResourceListener.DeferredDeclaration<EntityRegistry.Definition> declaration) Description copied from class:RegistryResourceListenerQueues the registration code for a data-driven registry entry.- Specified by:
registerin classRegistryResourceListener<EntityRegistry.Definition>
-
registerDefinition
public static Supplied<? extends net.minecraft.world.entity.EntityType<?>> registerDefinition(net.minecraft.resources.Identifier id, Supplier<EntityRegistry.Definition> suppliedDefinition, Optional<Supplier<EntityRegistry.Attributes>> optionalAttributes)
-