Class OnTreeGrowBlockTest
java.lang.Object
net.neoforged.neoforge.oldtest.block.OnTreeGrowBlockTest
A test case used to ensure that
IBlockStateExtension.onTreeGrow(LevelReader, BiConsumer, RandomSource, BlockPos, TreeConfiguration)
works properly, using a custom grass block that should revert to its custom dirt form after a tree grows on
top of it instead of turning to dirt.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DeferredRegister.Blocksstatic final boolean(package private) static final Stringstatic final DeferredRegister.Itemsstatic final DeferredItem<BlockItem> static final DeferredItem<BlockItem> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ENABLED
public static final boolean ENABLED- See Also:
-
ID
- See Also:
-
BLOCKS
-
ITEMS
-
TEST_GRASS_BLOCK
-
TEST_DIRT
-
TEST_GRASS_BLOCK_ITEM
-
TEST_DIRT_ITEM
-
-
Constructor Details
-
OnTreeGrowBlockTest
public OnTreeGrowBlockTest(net.neoforged.bus.api.IEventBus modBus)
-