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 pType, BlockPos pPos, int pData)
      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 pType, BlockPos pPos, int pData)
    • shootParticles

      private void shootParticles(int pDirection, BlockPos pPos, RandomSource pRandom, SimpleParticleType pParticleType)
    • playJukeboxSong

      private void playJukeboxSong(Holder<JukeboxSong> pSong, BlockPos pPos)
    • stopJukeboxSong

      private void stopJukeboxSong(BlockPos pPos)
    • stopJukeboxSongAndNotifyNearby

      private void stopJukeboxSongAndNotifyNearby(BlockPos pPos)
    • notifyNearbyEntities

      private void notifyNearbyEntities(Level pLevel, BlockPos pPos, boolean pPlaying)
      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.