LeviLamina
Loading...
Searching...
No Matches
TrialSpawner Class Reference

Classes

struct  Data
 
struct  PlayerScanResult
 
struct  WeightedItemStack
 

Public Types

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

Public Member Functions

TrialSpawneroperator= (TrialSpawner const &)
 
 TrialSpawner (TrialSpawner const &)
 
MCAPI TrialSpawner (::BlockPos const &pos)
 
MCAPI void _becomeOminous (::BlockSource &region, ::Block const &block)
 
MCAPI void _dispenseItemAboveRandomCombatant (::BlockSource &region)
 
MCAPI::TrialSpawner::PlayerScanResult _doPlayerScan (::BlockSource &region)
 
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 _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)
 
MCAPI void * $ctor (::BlockPos const &pos)
 

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 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)
 

Public Attributes

::ll::UntypedStorage< 4, 12 > mUnkbe7b9a
 
::ll::UntypedStorage< 4, 4 > mUnk57694f
 
::ll::UntypedStorage< 8, 360 > mUnk875e9a
 
::ll::UntypedStorage< 8, 144 > mUnk686b60
 
::ll::UntypedStorage< 8, 144 > mUnkbc6028
 
::ll::UntypedStorage< 1, 1 > mUnk73169e
 
::ll::UntypedStorage< 1, 1 > mUnk338f73
 

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