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 void _becomeOminous (::BlockSource &region, ::Block const &block)
MCAPI void _dispenseItemAboveRandomCombatant (::BlockSource &region)
MCAPI::TrialSpawner::PlayerScanResult _doPlayerScan (::BlockSource &region)
MCAPI void _ejectReward (::BlockSource &region, ::BlockPos pos) const
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 from, ::Vec3 to, float maxRange) const
MCAPI void _selectLootTable (::Level &level)
MCAPI void _sendParticlesForState (::BlockSource &region, ::BlockPos pos, ::TrialSpawner::SpawningLogicState state)
MCAPI void _sendSmallFlame (::BlockSource &region, ::Vec3 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, ::Vec3 spawnPos)
MCAPI void _tryRegisterNewPlayers (::BlockSource &region, ::TrialSpawner::SpawningLogicState currentState)
MCAPI void _updateStateMachine (::BlockSource &region)
MCAPI void applyUpdatePacket (::CompoundTag const &tag, ::BlockSource &region)
MCAPI::Mob * createAndAddDisplayEntity (::BlockSource &region)
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 void _ejectItem (::BlockSource &region, ::Vec3 pos, ::ItemStack const &item)
static MCAPI void _ejectResultItems (::BlockSource &region, ::BlockPos blockPos, ::std::vector<::ItemStack > const &items, int lootCount)
static MCAPI ::std::optional<::Vec3_findFreePositionAbove (::BlockSource const &region, ::Vec3 const &from, int distance)
static MCAPI ::std::vector<::ItemStack_getRandomLootTableItems (::Level &level, ::Random &random, ::DimensionType dimensionType, ::std::string const &lootTableName)
static MCAPI_C char const * _getSmallFlameParticleName (bool isOminous)
static MCAPI bool _isAllowedToSpawnInLevel (::Level &level)
static MCAPI bool _isOminous (::BlockSource &region, ::BlockPos pos)
static MCAPI void _removeMobByGameplay (::Level &level, ::Actor &mob)
static MCAPI ::std::unique_ptr<::Tag_saveConfig (::TrialSpawnerConfig &config)
static MCAPI_C void addSpawnParticles (::Level &level, ::Vec3 pos, bool isOminous)
static MCAPI_C void sendEjectItemParticles (::Level &level, ::BlockPos pos, bool isOminous)

Public Attributes

::ll::TypedStorage< 4, 12, ::BlockPos const > mPosition
::ll::TypedStorage< 4, 4, int > mPlayerSearchRange
::ll::TypedStorage< 8, 360, ::TrialSpawner::DatamData
::ll::TypedStorage< 8, 144, ::TrialSpawnerConfigmNormalConfig
::ll::TypedStorage< 8, 144, ::TrialSpawnerConfigmOminousConfig
::ll::TypedStorage< 1, 1, bool > mIsOminous
::ll::TypedStorage< 1, 1, bool > hasSpawnedItemSpawner

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