Class BlockStateChangeTest

java.lang.Object
net.minecraftforge.debug.block.BlockStateChangeTest

public class BlockStateChangeTest extends Object
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.