Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
TrialSpawner Class Reference

Classes

struct  PlayerScanResult
struct  WeightedItemStack
struct  Data

Public Types

enum class  SpawningLogicState : int {
  Inactive = 0 , WaitingForPlayers = 1 , Active = 2 , WaitingForRewardEjection = 3 ,
  EjectingRewards = 4 , Cooldown = 5 , Count = 6
}

Public Member Functions

MCAPI ::std::vector<::TrialSpawner::WeightedItemStack > & _getDispensingItems (::BlockSource &region)
MCAPI ::std::optional<::Vec3 > _getPositionToSpawnItemSpawner (::BlockSource &region, ::std::vector<::ActorUniqueID > const &eligibleActorIds) const
MCAPI bool _hasLineOfSight (::BlockSource const &region, ::Vec3 const from, ::Vec3 const to, float const maxRange) const
MCAPI void _sendSmallFlame (::BlockSource &region, ::Vec3 const center)
MCAPI void _setUpdated (::BlockSource &region)
MCAPI void _spawnItemSpawner (::BlockSource &region, ::Vec3 pos, ::ItemStack const &itemToSpawn)
MCAPI ::std::optional<::ActorUniqueID > _spawnMob (::BlockSource &region, ::BlockPos blockActorPos)
MCAPI void _tryRegisterNewPlayers (::BlockSource &region, ::TrialSpawner::SpawningLogicState currentState)
MCAPI void applyUpdatePacket (::CompoundTag const &tag, ::BlockSource &region)
MCAPI::Mob * createAndAddDisplayEntity (::BlockSource &region)
MCAPI::CompoundTag createUpdatePacket ()
MCAPI::SpawnData const * getOrCreateNextSpawnData (::Random &random)
MCAPI::TrialSpawner::SpawningLogicState getSpawningLogicState (::BlockSource &region) const
MCAPI void load (::CompoundTag const &data, ::TrialSpawnerConfigRegistry const &configRegistry)
MCAPI void removeDisplayEntity ()
MCAPI void save (::CompoundTag &tag)
MCAPI void setEntityId (::ActorDefinitionIdentifier const &actorDefId, ::BlockSource &region)
MCAPI void tick (::BlockSource &region)

Static Public Member Functions

static MCAPI ::std::vector<::ItemStack > _getRandomLootTableItems (::Level &level, ::Random &random, ::DimensionType dimensionType, ::std::string const &lootTableName)

Public Attributes

::ll::TypedStorage< 4, 12, ::BlockPos const > mPosition
::ll::TypedStorage< 4, 4, int > mPlayerSearchRange
::ll::TypedStorage< 8, 352, ::TrialSpawner::Data > mData
::ll::TypedStorage< 8, 144, ::TrialSpawnerConfig > mNormalConfig
::ll::TypedStorage< 8, 144, ::TrialSpawnerConfig > mOminousConfig
::ll::TypedStorage< 1, 1, bool > mIsOminous
::ll::TypedStorage< 1, 1, bool > hasSpawnedItemSpawner

Member Function Documentation

◆ _getDispensingItems()

MCAPI ::std::vector<::TrialSpawner::WeightedItemStack > & TrialSpawner::_getDispensingItems ( ::BlockSource & region)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _getPositionToSpawnItemSpawner()

MCAPI ::std::optional<::Vec3 > TrialSpawner::_getPositionToSpawnItemSpawner ( ::BlockSource & region,
::std::vector<::ActorUniqueID > const & eligibleActorIds ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _hasLineOfSight()

MCAPI bool TrialSpawner::_hasLineOfSight ( ::BlockSource const & region,
::Vec3 const from,
::Vec3 const to,
float const maxRange ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _sendSmallFlame()

MCAPI void TrialSpawner::_sendSmallFlame ( ::BlockSource & region,
::Vec3 const center )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _setUpdated()

MCAPI void TrialSpawner::_setUpdated ( ::BlockSource & region)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _spawnItemSpawner()

MCAPI void TrialSpawner::_spawnItemSpawner ( ::BlockSource & region,
::Vec3 pos,
::ItemStack const & itemToSpawn )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _spawnMob()

MCAPI ::std::optional<::ActorUniqueID > TrialSpawner::_spawnMob ( ::BlockSource & region,
::BlockPos blockActorPos )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _tryRegisterNewPlayers()

MCAPI void TrialSpawner::_tryRegisterNewPlayers ( ::BlockSource & region,
::TrialSpawner::SpawningLogicState currentState )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ applyUpdatePacket()

MCAPI void TrialSpawner::applyUpdatePacket ( ::CompoundTag const & tag,
::BlockSource & region )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ createAndAddDisplayEntity()

MCAPI::Mob * TrialSpawner::createAndAddDisplayEntity ( ::BlockSource & region)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ createUpdatePacket()

MCAPI::CompoundTag TrialSpawner::createUpdatePacket ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getOrCreateNextSpawnData()

MCAPI::SpawnData const * TrialSpawner::getOrCreateNextSpawnData ( ::Random & random)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getSpawningLogicState()

MCAPI::TrialSpawner::SpawningLogicState TrialSpawner::getSpawningLogicState ( ::BlockSource & region) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ load()

MCAPI void TrialSpawner::load ( ::CompoundTag const & data,
::TrialSpawnerConfigRegistry const & configRegistry )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ removeDisplayEntity()

MCAPI void TrialSpawner::removeDisplayEntity ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ save()

MCAPI void TrialSpawner::save ( ::CompoundTag & tag)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setEntityId()

MCAPI void TrialSpawner::setEntityId ( ::ActorDefinitionIdentifier const & actorDefId,
::BlockSource & region )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ tick()

MCAPI void TrialSpawner::tick ( ::BlockSource & region)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _getRandomLootTableItems()

MCAPI ::std::vector<::ItemStack > TrialSpawner::_getRandomLootTableItems ( ::Level & level,
::Random & random,
::DimensionType dimensionType,
::std::string const & lootTableName )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: