Class CreateBlockEntityBuilder<T extends net.minecraft.world.level.block.entity.BlockEntity,P>
java.lang.Object
com.tterrag.registrate.builders.AbstractBuilder<net.minecraft.world.level.block.entity.BlockEntityType<?>,net.minecraft.world.level.block.entity.BlockEntityType<T>,P,com.tterrag.registrate.builders.BlockEntityBuilder<T,P>>
com.tterrag.registrate.builders.BlockEntityBuilder<T,P>
com.simibubi.create.foundation.data.CreateBlockEntityBuilder<T,P>
- All Implemented Interfaces:
com.tterrag.registrate.builders.Builder<net.minecraft.world.level.block.entity.BlockEntityType<?>,,net.minecraft.world.level.block.entity.BlockEntityType<T>, P, com.tterrag.registrate.builders.BlockEntityBuilder<T, P>> com.tterrag.registrate.util.nullness.NonNullSupplier<com.tterrag.registrate.util.entry.RegistryEntry<net.minecraft.world.level.block.entity.BlockEntityType<?>,,net.minecraft.world.level.block.entity.BlockEntityType<T>>> Supplier<com.tterrag.registrate.util.entry.RegistryEntry<net.minecraft.world.level.block.entity.BlockEntityType<?>,net.minecraft.world.level.block.entity.BlockEntityType<T>>>
public class CreateBlockEntityBuilder<T extends net.minecraft.world.level.block.entity.BlockEntity,P>
extends com.tterrag.registrate.builders.BlockEntityBuilder<T,P>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tterrag.registrate.builders.BlockEntityBuilder
com.tterrag.registrate.builders.BlockEntityBuilder.BlockEntityFactory<T extends net.minecraft.world.level.block.entity.BlockEntity> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreateBlockEntityBuilder(com.tterrag.registrate.AbstractRegistrate<?> owner, P parent, String name, com.tterrag.registrate.builders.BuilderCallback callback, com.tterrag.registrate.builders.BlockEntityBuilder.BlockEntityFactory<T> factory) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends net.minecraft.world.level.block.entity.BlockEntity,P>
com.tterrag.registrate.builders.BlockEntityBuilder<T, P> create(com.tterrag.registrate.AbstractRegistrate<?> owner, P parent, String name, com.tterrag.registrate.builders.BuilderCallback callback, com.tterrag.registrate.builders.BlockEntityBuilder.BlockEntityFactory<T> factory) protected net.minecraft.world.level.block.entity.BlockEntityType<T> displaySource(com.tterrag.registrate.util.entry.RegistryEntry<DisplaySource, ? extends DisplaySource> source) displayTarget(com.tterrag.registrate.util.entry.RegistryEntry<DisplayTarget, ? extends DisplayTarget> target) protected voidvalidBlocksDeferred(com.tterrag.registrate.util.nullness.NonNullSupplier<? extends Collection<com.tterrag.registrate.util.nullness.NonNullSupplier<? extends net.minecraft.world.level.block.Block>>> blocks) visual(com.tterrag.registrate.util.nullness.NonNullSupplier<dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T>> visualFactory) visual(com.tterrag.registrate.util.nullness.NonNullSupplier<dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T>> visualFactory, boolean renderNormally) visual(com.tterrag.registrate.util.nullness.NonNullSupplier<dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T>> visualFactory, Predicate<@NotNull T> renderNormally) Methods inherited from class com.tterrag.registrate.builders.BlockEntityBuilder
createEntryWrapper, register, registerRenderer, renderer, validBlock, validBlocksMethods inherited from class com.tterrag.registrate.builders.AbstractBuilder
asOptional, asSupplier, asTag, getCallback, getName, getOwner, getParent, getRegistryKey, lang, lang, removeTag, tagMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tterrag.registrate.builders.Builder
addMiscData, build, dataMap, get, getEntry, onRegister, onRegisterAfter, setData, transformMethods inherited from interface com.tterrag.registrate.util.nullness.NonNullSupplier
lazy
-
Constructor Details
-
CreateBlockEntityBuilder
-
-
Method Details
-
create
public static <T extends net.minecraft.world.level.block.entity.BlockEntity,P> com.tterrag.registrate.builders.BlockEntityBuilder<T,P> create(com.tterrag.registrate.AbstractRegistrate<?> owner, P parent, String name, com.tterrag.registrate.builders.BuilderCallback callback, com.tterrag.registrate.builders.BlockEntityBuilder.BlockEntityFactory<T> factory) -
validBlocksDeferred
public CreateBlockEntityBuilder<T,P> validBlocksDeferred(com.tterrag.registrate.util.nullness.NonNullSupplier<? extends Collection<com.tterrag.registrate.util.nullness.NonNullSupplier<? extends net.minecraft.world.level.block.Block>>> blocks) -
createEntry
-
displaySource
public CreateBlockEntityBuilder<T,P> displaySource(com.tterrag.registrate.util.entry.RegistryEntry<DisplaySource, ? extends DisplaySource> source) -
displayTarget
public CreateBlockEntityBuilder<T,P> displayTarget(com.tterrag.registrate.util.entry.RegistryEntry<DisplayTarget, ? extends DisplayTarget> target) -
visual
public CreateBlockEntityBuilder<T,P> visual(com.tterrag.registrate.util.nullness.NonNullSupplier<dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T>> visualFactory) -
visual
public CreateBlockEntityBuilder<T,P> visual(com.tterrag.registrate.util.nullness.NonNullSupplier<dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T>> visualFactory, boolean renderNormally) -
visual
-
registerVisualizer
protected void registerVisualizer()
-