31class VaultBlockActor :
public ::BlockActor {
48 ::ll::TypedStorage<4, 4, float> currentSpin;
49 ::ll::TypedStorage<4, 4, float> previousSpin;
50 ::ll::TypedStorage<8, 24, ::WeakEntityRef> displayEntity;
58 ::ll::TypedStorage<8, 32, ::std::string> lootTable;
59 ::ll::TypedStorage<4, 4, float> activationRange;
60 ::ll::TypedStorage<4, 4, float> deactivationRange;
61 ::ll::TypedStorage<8, 152, ::ItemStack> keyItem;
62 ::ll::TypedStorage<8, 32, ::std::string> overrideLootTableToDisplay;
82 ::ll::TypedStorage<8, 8, ::Tick> stateUpdateResumesAt;
83 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> itemsToEject;
84 ::ll::TypedStorage<8, 24, ::std::vector<::ActorUniqueID>> rewardedPlayers;
85 ::ll::TypedStorage<1, 1, bool> doesBlockNeedToBeSaved;
86 ::ll::TypedStorage<8, 8, ::Tick> serverTick;
87 ::ll::TypedStorage<8, 8, ::Tick> lastInsertFailTimestamp;
88 ::ll::TypedStorage<4, 4, int> totalEjectionsNeeded;
108 ::ll::TypedStorage<8, 152, ::ItemStack> displayItem;
109 ::ll::TypedStorage<8, 24, ::std::vector<::ActorRuntimeID>> connectedPlayers;
110 ::ll::TypedStorage<4, 4, float> connectedParticlesRange;
111 ::ll::TypedStorage<1, 1, bool> isSharedDataDirty;
135 MCAPI
static void emitConnectedParticles(
145 MCAPI
static void emitIdleParticles(
156 MCAPI
static void tick(
169 MCAPI
static void cycleDisplayItemFromLootTable(
171 ::VaultBlockState blockState,
176 MCAPI
static void ejectResultItem(
180 float ejectionSoundProgress
183 MCAPI static ::ItemStack
184 getRandomDisplayItemFromLootTable(
::BlockSource& region, ::std::string
const& lootTable);
186 MCAPI static ::std::vector<::ItemStack> getRandomLootTableItems(
189 ::std::string
const& lootTableName,
194 MCAPI
static void onTransitionBetweenStates(
199 ::VaultBlockState oldState,
200 ::VaultBlockState newState
203 MCAPI
static void playInsertFailSound(
207 ::SharedTypes::Legacy::LevelSoundEvent sound
213 MCAPI
static void tick(
221 MCAPI static ::VaultBlockState tickStateAndGetNext(
227 ::VaultBlockState oldState
230 MCAPI
static void tryInsertKey(
239 MCAPI
static void unlock(
245 ::std::vector<::ItemStack>&& itemsToEject
248 MCAPI
static void updateConnectedPlayersWithinRange(
261 ::ll::TypedStorage<8, 224, ::VaultBlockActor::VaultConfig> mConfig;
262 ::ll::TypedStorage<8, 32, ::VaultBlockActor::VaultClientData> mClientData;
263 ::ll::TypedStorage<8, 184, ::VaultBlockActor::VaultSharedData> mSharedData;
264 ::ll::TypedStorage<8, 88, ::VaultBlockActor::VaultServerData> mServerData;
274 virtual ~VaultBlockActor() ;
282 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
290 MCAPI
explicit VaultBlockActor(
::BlockPos const& pos);
293 MCAPI
void clientEmitActivationParticles(
::BlockSource& region)
const;
295 MCAPI
void clientEmitConnectedParticles(
::BlockSource& region)
const;
297 MCAPI
void clientEmitDeactivationParticles(
::BlockSource& region)
const;
299 MCFOLD ::VaultBlockActor::VaultClientData
const& getClientData()
const;
301 MCFOLD ::ItemStack
const& getDisplayedItem()
const;
303 MCAPI ::Actor* tryGetOrCreateDisplayEntity(
::BlockSource& region);
337 MCAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
Definition SaveContext.h:5