Class EventHandler

java.lang.Object
de.cheaterpaul.fallingleaves.EventHandler

public class EventHandler extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    onAttackLeavesBlock(net.neoforged.neoforge.event.entity.player.PlayerInteractEvent.LeftClickBlock e)
    Spawn between 0 and 3 leaves on hitting a leaf block
    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)
     
    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)
     
    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)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)