Class BlockStateRegistry
java.lang.Object
com.hypixel.hytale.registry.Registry<BlockStateRegistration>
com.hypixel.hytale.server.core.universe.world.meta.BlockStateRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.registry.Registry
Registry.RegistrationWrapFunction<T extends Registration> -
Constructor Summary
ConstructorsConstructorDescriptionBlockStateRegistry(List<BooleanConsumer> registrations, BooleanSupplier precondition, String preconditionMessage) -
Method Summary
Modifier and TypeMethodDescription<T extends BlockState>
BlockStateRegistrationregisterBlockState(Class<T> clazz, String key, Codec<T> codec) <T extends BlockState,D extends StateData>
BlockStateRegistrationregisterBlockState(Class<T> clazz, String key, Codec<T> codec, Class<D> dataClass, Codec<D> dataCodec) Methods inherited from class com.hypixel.hytale.registry.Registry
checkPrecondition, enable, getRegistrations, isEnabled, register, shutdown, toString
-
Constructor Details
-
BlockStateRegistry
public BlockStateRegistry(@Nonnull List<BooleanConsumer> registrations, BooleanSupplier precondition, String preconditionMessage)
-
-
Method Details
-
registerBlockState
@Nullable public <T extends BlockState> BlockStateRegistration registerBlockState(@Nonnull Class<T> clazz, @Nonnull String key, Codec<T> codec) -
registerBlockState
@Nullable public <T extends BlockState,D extends StateData> BlockStateRegistration registerBlockState(@Nonnull Class<T> clazz, @Nonnull String key, Codec<T> codec, Class<D> dataClass, Codec<D> dataCodec)
-