Package net.minecraftforge.debug.block
Class BlockStateChangeTest
java.lang.Object
net.minecraftforge.debug.block.BlockStateChangeTest
This test mod tests the blockstate update callback which is called after a block's state has changed and neighbors
have been notified.
To test the callback, place the "blockstate_change_test:test_block" and right click it twice. Each of these three
actions must print two log lines, one on the server and one on the client side. Both lines must be equivalent execpt
for the side.
When placing, the log must show a change from "{minecraft:air}" to "{blockstate_change_test:test_block}[lit=false]".
When interacting with the block, the log must show a change from "{blockstate_change_test:test_block}[lit=false]" to
"{blockstate_change_test:test_block}[lit=true]" or viceversa in accordance with the change of the visual state of
the block in-game.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final DeferredRegister<Block>
private static final boolean
private static final DeferredRegister<Item>
private static final org.slf4j.Logger
static final String
private static final RegistryObject<Block>
private static final RegistryObject<Item>
-
Constructor Summary
-
Method Summary
-
Field Details
-
MOD_ID
- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ENABLED
private static final boolean ENABLED- See Also:
-
BLOCKS
-
ITEMS
-
TEST_BLOCK
-
TEST_BLOCK_ITEM
-
-
Constructor Details
-
BlockStateChangeTest
public BlockStateChangeTest()
-