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>
- All Implemented Interfaces:
Supplier<T>
,Holder<Block>
,ItemLike
,IHolderExtension<Block>
,IWithData<Block>
-
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, getData, getDelegate, getId, getKey, getRegistry, hashCode, is, is, is, is, is, isBound, kind, tags, toString, unwrap, unwrapKey, value
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.core.Holder
getRegisteredName
Methods inherited from interface net.neoforged.neoforge.common.extensions.IHolderExtension
unwrapLookup
-
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)
-