24class JukeboxBlockActor :
public ::RandomizableBlockActorContainer {
28 ::ll::TypedStorage<8, 152, ::ItemStack> mRecord;
29 ::ll::TypedStorage<4, 4, int> mCount;
30 ::ll::TypedStorage<1, 1, bool> mRecordingFinished;
31 ::ll::TypedStorage<4, 4, int> mTicksPlaying;
32 ::ll::TypedStorage<1, 1, bool> mPostBlockChangeGameEvent;
48 virtual int getContainerSize()
const ;
50 virtual int getMaxStackSize()
const ;
52 virtual bool canPushInItem(
int item,
int,
::ItemStack const&)
const ;
54 virtual bool canPullOutItem(
int,
int,
::ItemStack const&)
const ;
56 virtual ::ItemStack
const& getItem(
int)
const ;
58 virtual void setItem(
int slot,
::ItemStack const& item) ;
60 virtual void startOpen(
::Actor& actor) ;
62 virtual void stopOpen(
::Actor& actor) ;
64 virtual ::Container* getContainer() ;
66 virtual ::Container
const* getContainer()
const ;
70 virtual void serverInitItemStackIds(
76 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
84 MCAPI
explicit JukeboxBlockActor(
::BlockPos const& pos);
86 MCAPI
void _onChanged(
::BlockSource& region, ::SharedTypes::Legacy::LevelSoundEvent sound);
88 MCAPI
void _spawnMusicParticles(
::Level& level,
float recordDuration);
92 MCFOLD ::ItemStack
const& getRecord()
const;
95 MCAPI
bool hasRecord()
const;
98 MCAPI
bool isRecordPlaying()
const;
100 MCAPI
void setRecord(
::ItemStack const& record,
bool startPlaying);
122 MCFOLD
int $getContainerSize()
const;
124 MCFOLD
int $getMaxStackSize()
const;
126 MCAPI
bool $canPushInItem(
int item,
int,
::ItemStack const&)
const;
128 MCAPI
bool $canPullOutItem(
int,
int,
::ItemStack const&)
const;
130 MCFOLD ::ItemStack
const& $getItem(
int)
const;
132 MCAPI
void $setItem(
int slot,
::ItemStack const& item);
134 MCFOLD
void $startOpen(
::Actor& actor);
136 MCFOLD
void $stopOpen(
::Actor& actor);
138 MCFOLD ::Container* $getContainer();
140 MCFOLD ::Container
const* $getContainer()
const;
145 $serverInitItemStackIds(
int containerSlot,
int onNetIdChanged, ::std::function<
void(
int,
::ItemStack const&)>);
147 MCAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
157 MCAPI
static void** $vftableForContainer();
159 MCAPI
static void** $vftableForRandomizableBlockActorContainerBase();
Definition SaveContext.h:5