Class LevelEventHandler

java.lang.Object
net.minecraft.client.renderer.LevelEventHandler

public class LevelEventHandler extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • globalLevelEvent

      public void globalLevelEvent(int type, BlockPos pos, int data)
      Handles a global level event. This includes playing sounds that should be heard by any player, regardless of position and dimension, such as the Wither spawning.
    • levelEvent

      public void levelEvent(int type, BlockPos pos, int data)
    • shootParticles

      private void shootParticles(int direction, BlockPos pos, RandomSource random, SimpleParticleType particleType)
    • playJukeboxSong

      private void playJukeboxSong(Holder<JukeboxSong> song, BlockPos pos)
    • stopJukeboxSong

      private void stopJukeboxSong(BlockPos pos)
    • stopJukeboxSongAndNotifyNearby

      private void stopJukeboxSongAndNotifyNearby(BlockPos pos)
    • notifyNearbyEntities

      private void notifyNearbyEntities(Level level, BlockPos pos, boolean playing)
      Notifies living entities in a 3 block range of the specified pos that a record is or isn't playing nearby, dependent on the specified playing parameter. This is used to make parrots start or stop partying.