Class LevelEventHandler
java.lang.Object
net.minecraft.client.renderer.LevelEventHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientLevelprivate final Minecraftprivate final Map<BlockPos, SoundInstance> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidglobalLevelEvent(int type, BlockPos pos, int data) voidlevelEvent(int eventType, BlockPos pos, int data) private voidnotifyNearbyEntities(Level level, BlockPos pos, boolean isPlaying) private voidplayJukeboxSong(Holder<JukeboxSong> songHolder, BlockPos pos) private voidshootParticles(int data, BlockPos pos, RandomSource random, SimpleParticleType particle) private voidstopJukeboxSong(BlockPos pos) private void
-
Field Details
-
minecraft
-
level
-
playingJukeboxSongs
-
-
Constructor Details
-
LevelEventHandler
-
-
Method Details
-
globalLevelEvent
-
levelEvent
-
shootParticles
private void shootParticles(int data, BlockPos pos, RandomSource random, SimpleParticleType particle) -
playJukeboxSong
-
stopJukeboxSong
-
stopJukeboxSongAndNotifyNearby
-
notifyNearbyEntities
-