Class EntityGenerator
java.lang.Object
net.rebel459.unified.api.data.registry.EntityGenerator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionEntityGenerator(String modId, String namespace, DataProviders.GenerationSettings settings, TagGenerator tags) -
Method Summary
Modifier and TypeMethodDescription<T extends net.minecraft.world.entity.Entity>
Supplied<net.minecraft.world.entity.EntityType<T>> register(String path, net.minecraft.world.entity.EntityType.Builder<T> type, Consumer<EntityGenerator.Builder> builder) <T extends net.minecraft.world.entity.Entity>
Supplied<net.minecraft.world.entity.EntityType<T>> register(String path, ExtensibleCodecBase.Entry<net.minecraft.world.entity.EntityType.Builder<?>> type, Consumer<EntityGenerator.Builder> builder) <T extends net.minecraft.world.entity.Entity>
Supplied<net.minecraft.world.entity.EntityType<T>> registerCopy(String path, net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> base, Consumer<EntityGenerator.Builder> builder)
-
Constructor Details
-
EntityGenerator
public EntityGenerator(String modId, String namespace, DataProviders.GenerationSettings settings, TagGenerator tags)
-
-
Method Details
-
register
public <T extends net.minecraft.world.entity.Entity> Supplied<net.minecraft.world.entity.EntityType<T>> register(String path, net.minecraft.world.entity.EntityType.Builder<T> type, Consumer<EntityGenerator.Builder> builder) -
register
public <T extends net.minecraft.world.entity.Entity> Supplied<net.minecraft.world.entity.EntityType<T>> register(String path, ExtensibleCodecBase.Entry<net.minecraft.world.entity.EntityType.Builder<?>> type, Consumer<EntityGenerator.Builder> builder) -
registerCopy
public <T extends net.minecraft.world.entity.Entity> Supplied<net.minecraft.world.entity.EntityType<T>> registerCopy(String path, net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> base, Consumer<EntityGenerator.Builder> builder)
-