Class DeferredBlockBuilder<T extends Block>
java.lang.Object
net.neoforged.neoforge.registries.DeferredHolder<Block,T>
net.neoforged.neoforge.registries.DeferredBlock<T>
net.neoforged.testframework.registration.DeferredBlockBuilder<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.core.Holder
Holder.Direct<T>, Holder.Kind, Holder.Reference<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private boolean
private final RegistrationHelper
Fields inherited from class net.neoforged.neoforge.registries.DeferredHolder
key
-
Constructor Summary
ModifierConstructorDescriptionprotected
DeferredBlockBuilder
(ResourceKey<Block> key, RegistrationHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
colorInternal
(int color) withBlockItem
(Consumer<DeferredItemBuilder<BlockItem>> consumer) withBlockItem
(Item.Properties properties, Consumer<DeferredItemBuilder<BlockItem>> consumer) withColor
(int color) Methods inherited from class net.neoforged.neoforge.registries.DeferredBlock
asItem, createBlock, createBlock, toStack, toStack
Methods inherited from class net.neoforged.neoforge.registries.DeferredHolder
asOptional, bind, canSerializeIn, create, create, create, equals, get, getId, getKey, getRegistry, hashCode, is, is, is, is, isBound, kind, tags, toString, unwrap, unwrapKey, value
-
Field Details
-
helper
-
hasItem
private boolean hasItem -
hasColor
private boolean hasColor
-
-
Constructor Details
-
DeferredBlockBuilder
-
-
Method Details
-
withBlockItem
-
withBlockItem
-
withBlockItem
public DeferredBlockBuilder<T> withBlockItem(Item.Properties properties, Consumer<DeferredItemBuilder<BlockItem>> consumer) -
withLang
-
withDefaultWhiteModel
-
withColor
-
colorInternal
private void colorInternal(int color)
-