net.minecraft.world.item

public class JukeboxSongPlayer

cxw
net.minecraft.world.item.JukeboxSongPlayer
net.minecraft.class_9794
net.minecraft.block.jukebox.JukeboxManager
net.minecraft.world.item.JukeboxSongPlayer

Field summary

Modifier and TypeField
public static final int
a
PLAY_EVENT_INTERVAL_TICKS
field_52032
TICKS_PER_SECOND
private long
b
ticksSinceSongStarted
field_52033
ticksSinceSongStarted
private Holder<JukeboxSong>
c
song
field_52034
song
private final BlockPos
d
blockPos
field_52035
pos
private final JukeboxSongPlayer$OnSongChanged
e
onSongChanged
field_52036
changeNotifier

Constructor summary

ModifierConstructor
public (JukeboxSongPlayer$OnSongChanged changeNotifier, BlockPos pos)

Method summary

Modifier and TypeMethod
public boolean
a()
isPlaying()
method_60754()
isPlaying()
public JukeboxSong
b()
getSong()
method_60759()
getSong()
public long
c()
getTicksSinceSongStarted()
method_60761()
getTicksSinceSongStarted()
public void
a(jq<cxv> arg0, long arg1)
setSongWithoutPlaying(Holder<JukeboxSong> arg0, long arg1)
method_60758(class_6880<class_9793> arg0, long arg1)
setValues(RegistryEntry<JukeboxSong> song, long ticksPlaying)
public void
a(dhj arg0, jq<cxv> arg1)
play(LevelAccessor arg0, Holder<JukeboxSong> arg1)
method_60757(class_1936 arg0, class_6880<class_9793> arg1)
startPlaying(WorldAccess world, RegistryEntry<JukeboxSong> song)
public void
a(dhj arg0, dxv arg1)
stop(LevelAccessor arg0, BlockState arg1)
method_60755(class_1936 arg0, class_2680 arg1)
stopPlaying(WorldAccess world, BlockState state)
public void
b(dhj arg0, dxv arg1)
tick(LevelAccessor arg0, BlockState arg1)
method_60760(class_1936 arg0, class_2680 arg1)
tick(WorldAccess world, BlockState state)
private boolean
d()
shouldEmitJukeboxPlayingEvent()
method_60763()
hasSecondPassed()
private static void
a(dhj arg0, jh arg1)
spawnMusicParticles(LevelAccessor arg0, BlockPos arg1)
method_60756(class_1936 arg0, class_2338 arg1)
spawnNoteParticles(WorldAccess world, BlockPos pos)