Package de.cheaterpaul.fallingleaves
Class EventHandler
java.lang.Object
de.cheaterpaul.fallingleaves.EventHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidonAttackLeavesBlock(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.LeftClickBlock e) Spawn between 0 and 3 leaves on hitting a leaf blockstatic voidspawnDecayingParticles(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random) static voidspawnLeaves(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random, LeafSettingsEntry leafSettings) static voidspawnParticles(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random) static voidspawnSnow(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random, LeafSettingsEntry leafSettings)
-
Constructor Details
-
EventHandler
public EventHandler()
-
-
Method Details
-
onAttackLeavesBlock
public static void onAttackLeavesBlock(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.LeftClickBlock e) Spawn between 0 and 3 leaves on hitting a leaf block -
spawnParticles
public static void spawnParticles(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random) -
spawnLeaves
public static void spawnLeaves(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random, LeafSettingsEntry leafSettings) -
spawnSnow
public static void spawnSnow(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random, LeafSettingsEntry leafSettings) -
spawnDecayingParticles
public static void spawnDecayingParticles(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random)
-