Class EntityRegistry
java.lang.Object
com.hypixel.hytale.registry.Registry<EntityRegistration>
com.hypixel.hytale.server.core.modules.entity.EntityRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.registry.Registry
Registry.RegistrationWrapFunction<T extends Registration> -
Constructor Summary
ConstructorsConstructorDescriptionEntityRegistry(List<BooleanConsumer> registrations, BooleanSupplier precondition, String preconditionMessage) -
Method Summary
Modifier and TypeMethodDescription<T extends Entity>
EntityRegistrationregisterEntity(String key, Class<T> clazz, Function<World, T> constructor, DirectDecodeCodec<T> codec) Methods inherited from class com.hypixel.hytale.registry.Registry
checkPrecondition, enable, getRegistrations, isEnabled, register, shutdown, toString
-
Constructor Details
-
EntityRegistry
public EntityRegistry(@Nonnull List<BooleanConsumer> registrations, BooleanSupplier precondition, String preconditionMessage)
-
-
Method Details
-
registerEntity
@Nullable public <T extends Entity> EntityRegistration registerEntity(@Nonnull String key, @Nonnull Class<T> clazz, Function<World, T> constructor, DirectDecodeCodec<T> codec)
-