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
Modifier and TypeFieldDescriptionstatic final DeferredRegister.Blocks
static final boolean
(package private) static final String
static final DeferredRegister.Items
static final DeferredItem
<BlockItem> static final DeferredItem
<BlockItem> -
Constructor Summary
-
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)
-