net.minecraft.block.entity

public class JukeboxBlockEntity

extends BlockEntity implements SingleStackInventory$SingleStackBlockEntityInventory

All mapped superinterfaces:

DebugTrackable, EntryConvertible, SingleStackInventory$SingleStackBlockEntityInventory, SingleStackInventory, Inventory, Clearable, StackReferenceGetter

net.minecraft.world.level.block.entity.JukeboxBlockEntity
net.minecraft.class_2619
net.minecraft.block.entity.JukeboxBlockEntity

Field summary

Modifier and TypeField
public static final String
SONG_ITEM_TAG_ID
field_52064
RECORD_ITEM_NBT_KEY
public static final String
TICKS_SINCE_SONG_STARTED_TAG_ID
field_52065
TICKS_SINCE_SONG_STARTED_NBT_KEY
public static final String
PLAYLIST_POSITION
field_1_11932
PLAYLIST_POSITION_KEY
public static final int
DATA_PLAYLIST_POS
field_1_11929
PLAYLIST_POSITION_INDEX
public static final int
NUM_DATA
field_1_11931
PLAYLIST_POSITION_COUNT
public static final int
NO_PLAYLIST_POS
field_1_11930
PLAYLIST_POSITION_DEFAULT
public final PropertyDelegate
dataAccess
field_1_11933
propertyDelegate
private ItemStack
item
field_46507
recordStack
private OptionalInt
playlistPosition
field_1_11934
playlistPosition
private final JukeboxManager
jukeboxSongPlayer
field_52066
manager

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public JukeboxManager
getSongPlayer()
method_60784()
getManager()
public void
onSongChanged()
method_60785()
onManagerChange()
private void
notifyItemChangedInJukebox(boolean wasInserted)
method_60782(boolean arg0)
onRecordStackChanged(boolean hasRecord)
public void
popOutTheItem()
method_49213()
dropRecord()
public static void
tickWithRecord(Level level, BlockPos blockPos, BlockState blockState, JukeboxBlockEntity jukebox)
method_44370(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2619 arg3)
tick(World world, BlockPos pos, BlockState state, JukeboxBlockEntity blockEntity)
public static void
tickWithoutRecord(Level level, BlockPos blockPos, BlockState blockState, JukeboxBlockEntity jukebox)
method_1_11643(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2619 arg3)
tickWithPlaylist(World world, BlockPos pos, BlockState state, JukeboxBlockEntity blockEntity)
public int
getComparatorOutput()
method_60992()
getComparatorOutput()
protected void
loadAdditional(ValueInput input)
method_11014(class_11368 arg0)
readData(ReadView arg0)
protected void
saveAdditional(ValueOutput output)
method_11007(class_11372 arg0)
writeData(WriteView arg0)
public ItemStack
getTheItem()
method_54079()
getStack()
public ItemStack
splitTheItem(int count)
method_54078(int arg0)
decreaseStack(int arg0)
public void
setTheItem(ItemStack itemStack)
method_54077(class_1799 arg0)
setStack(ItemStack arg0)
public void
setRemoved()
method_11012()
markRemoved()
public int
getMaxStackSize()
method_5444()
getMaxCountPerStack()
public BlockEntity
getContainerBlockEntity()
method_54080()
asBlockEntity()
public boolean
canPlaceItem(int slot, ItemStack itemStack)
method_5437(int arg0, class_1799 arg1)
isValid(int arg0, ItemStack arg1)
public boolean
canTakeItem(Container into, int slot, ItemStack itemStack)
method_49104(class_1263 arg0, int arg1, class_1799 arg2)
canTransferTo(Inventory arg0, int arg1, ItemStack arg2)
public void
preRemoveSideEffects(BlockPos pos, BlockState state)
method_66473(class_2338 arg0, class_2680 arg1)
onBlockReplaced(BlockPos arg0, BlockState arg1)
public void
setSongItemWithoutPlaying(ItemStack itemStack)
method_49210(class_1799 arg0)
setDisc(ItemStack stack)
public void
tryForcePlaySong()
method_60786()
reloadDisc()
private boolean
shouldLoop()
method_1_11642()
shouldRaiseNoteParticles()
public static boolean
isInPlaylistMode(Level level, BlockPos pos)
method_1_11637(class_1937 arg0, class_2338 arg1)
isBelowJukeboxContainer(World world, BlockPos pos)
private static boolean
isMusicDisc(ItemStack item)
method_1_11638(class_1799 arg0)
isPlayable(ItemStack stack)
public static OptionalInt
findNextPlayListPosition(Container container, int startPosition)
method_1_11636(class_1263 arg0, int arg1)
getNextSlot(Inventory containerInventory, int playlistPosition)
private void
replayCurrentSong()
method_1_11641()
playCurrentDisc()
private void
advancePlaylist(Container container, int newPosition)
method_1_11634(class_1263 arg0, int arg1)
swapDiscs(Inventory containerInventory, int slot)
private void
tryToAdvancePlaylist(boolean replayCurrentSongOtherwise)
method_1_11644(boolean arg0)
playNextEntry(boolean playCurrentDisc)
public ScreenHandler
createMenu(int containerId, Inventory inventory, Container container)
method_1_11635(int arg0, class_1661 arg1, class_1263 arg2)
createScreenHandlerForContainer(int syncId, PlayerInventory playerInventory, Inventory containerInventory)
private static void
lambda$tryToAdvancePlaylist$1()
method_1_11640()
method_1_11640()
private void
lambda$tryToAdvancePlaylist$0(Container arg0, int arg1)
method_1_11639(class_1263 arg0, int arg1)
method_1_11639(Inventory arg0, int playlistPosition)
private void
lambda$tryForcePlaySong$0(Holder arg0)
method_60780(class_6880 arg0)
method_60780(RegistryEntry song)
private void
lambda$setSongItemWithoutPlaying$0(Holder arg0)
method_60783(class_6880 arg0)
method_60783(RegistryEntry song)
private void
lambda$loadAdditional$0(Long arg0)
method_68287(Long arg0)
method_68287(Long ticksSinceSongStarted)
private void
lambda$loadAdditional$1(Long arg0, Holder arg1)
method_68286(Long arg0, class_6880 arg1)
method_68286(Long arg0, RegistryEntry song)