Class CustomBreakSoundTest
java.lang.Object
net.neoforged.neoforge.oldtest.block.CustomBreakSoundTest
Adds a block and item to test custom client-controlled breaking sounds.
To test it, place the "custom_break_sound_test:testblock" and break it. Depending on the modulus 3 of the block's
X coordinate, the break sound has to be the cow's hurt sound, the zombie's death sound or the pig's hurt sound,
but never the default stone break sound
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final DeferredRegister.Blocks
private static final boolean
private static final DeferredRegister.Items
static final String
private static final DeferredBlock
<Block> private static final DeferredItem
<BlockItem> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
-
Field Details
-
MOD_ID
- See Also:
-
ENABLED
private static final boolean ENABLED- See Also:
-
BLOCKS
-
ITEMS
-
TEST_BLOCK
-
TEST_BLOCK_ITEM
-
-
Constructor Details
-
CustomBreakSoundTest
public CustomBreakSoundTest(net.neoforged.bus.api.IEventBus modBus)
-
-
Method Details
-
addCreative
-