net.minecraft.world.level.block.entity.trialspawner

public class TrialSpawnerData

dit
net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerData
net.minecraft.class_8966
net.minecraft.block.spawner.TrialSpawnerData
net.minecraft.src.C_301979_
net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerData

Field summary

Modifier and TypeField
public static final String
a
TAG_SPAWN_DATA
field_47369
SPAWN_DATA_KEY
f_302545_
private static final String
n
TAG_NEXT_MOB_SPAWNS_AT
field_47382
NEXT_MOB_SPAWNS_AT_KEY
f_303495_
public static com.mojang.serialization.MapCodec<TrialSpawnerData>
b
MAP_CODEC
field_47370
codec
f_302600_
protected final Set<UUID>
c
detectedPlayers
field_47371
players
f_303462_
protected final Set<UUID>
d
currentMobs
field_47372
spawnedMobsAlive
f_302440_
protected long
e
cooldownEndsAt
field_47373
cooldownEnd
f_303712_
protected long
f
nextMobSpawnsAt
field_47374
nextMobSpawnsAt
f_302458_
protected int
g
totalMobsSpawned
field_47375
totalSpawnedMobs
f_302930_
protected Optional<SpawnData>
h
nextSpawnData
field_47376
spawnData
f_303191_
protected Optional<ResourceLocation>
i
ejectingLootTable
field_47377
rewardLootTable
f_303012_
protected SimpleWeightedRandomList<SpawnData>
j
spawnPotentials
field_47378
spawnDataPool
f_302396_
protected Entity
k
displayEntity
field_47379
displayEntity
f_302195_
protected double
l
spin
field_47380
displayEntityRotation
f_302632_
protected double
m
oSpin
field_47381
lastDisplayEntityRotation
f_303293_

Constructor summary

ModifierConstructor
public ()
public (Set<UUID> players, Set<UUID> spawnedMobsAlive, long cooldownEnd, long nextMobSpawnsAt, int totalSpawnedMobs, Optional<SpawnData> spawnData, Optional<ResourceLocation> rewardLootTable)

Method summary

Modifier and TypeMethod
public void
a(dis arg0)
setSpawnPotentialsFromConfig(TrialSpawnerConfig arg0)
method_55191(class_8965 arg0)
populateSpawnDataPool(TrialSpawnerConfig config)
m_305185_(C_302073_ arg0)
public void
a()
reset()
method_55182()
reset()
m_305301_()
public boolean
b()
hasMobToSpawn()
method_55197()
hasSpawnData()
m_306286_()
public boolean
a(dis arg0, int arg1)
hasFinishedSpawningAllMobs(TrialSpawnerConfig arg0, int arg1)
method_55192(class_8965 arg0, int arg1)
hasSpawnedAllMobs(TrialSpawnerConfig config, int additionalPlayers)
m_305025_(C_302073_ p_313160_, int arg1)
public boolean
c()
haveAllCurrentMobsDied()
method_55200()
areMobsDead()
m_307352_()
public boolean
a(and arg0, dis arg1, int arg2)
isReadyToSpawnNextMob(ServerLevel arg0, TrialSpawnerConfig arg1, int arg2)
method_55185(class_3218 arg0, class_8965 arg1, int arg2)
canSpawnMore(ServerWorld world, TrialSpawnerConfig config, int additionalPlayers)
m_305681_(C_12_ p_313089_, C_302073_ p_311969_, int arg2)
public int
a(hx arg0)
countAdditionalPlayers(BlockPos arg0)
method_55195(class_2338 arg0)
getAdditionalPlayers(BlockPos pos)
m_305480_(C_4675_ arg0)
public void
a(and arg0, hx arg1, diq arg2, int arg3)
tryDetectPlayers(ServerLevel arg0, BlockPos arg1, PlayerDetector arg2, int arg3)
method_55186(class_3218 arg0, class_2338 arg1, class_8962 arg2, int arg3)
updatePlayers(ServerWorld world, BlockPos pos, EntityDetector entityDetector, int range)
m_304942_(C_12_ p_310981_, C_4675_ p_312393_, C_302097_ p_310864_, int arg3)
public boolean
a(and arg0, dis arg1, float arg2)
isReadyToOpenShutter(ServerLevel arg0, TrialSpawnerConfig arg1, float arg2)
method_55184(class_3218 arg0, class_8965 arg1, float arg2)
isCooldownPast(ServerWorld world, TrialSpawnerConfig config, float position)
m_305761_(C_12_ p_312846_, C_302073_ p_312381_, float arg2)
public boolean
b(and arg0, dis arg1, float arg2)
isReadyToEjectItems(ServerLevel arg0, TrialSpawnerConfig arg1, float arg2)
method_55198(class_3218 arg0, class_8965 arg1, float arg2)
isCooldownAtRepeating(ServerWorld world, TrialSpawnerConfig config, float position)
m_305594_(C_12_ p_310848_, C_302073_ p_310189_, float arg2)
public boolean
a(and arg0)
isCooldownFinished(ServerLevel arg0)
method_55183(class_3218 arg0)
isCooldownOver(ServerWorld world)
m_305171_(C_12_ arg0)
public void
a(dir arg0, auv arg1, blz<?> arg2)
setEntityId(TrialSpawner arg0, RandomSource arg1, EntityType<?> arg2)
method_55189(class_8963 arg0, class_5819 arg1, class_1299<?> arg2)
setEntityType(TrialSpawnerLogic logic, Random random, EntityType<?> type)
m_307184_(C_301982_ p_312395_, C_212974_ p_311226_, C_513_<?> arg2)
protected SpawnData
a(dir arg0, auv arg1)
getOrCreateNextSpawnData(TrialSpawner arg0, RandomSource arg1)
method_55188(class_8963 arg0, class_5819 arg1)
getSpawnData(TrialSpawnerLogic logic, Random random)
m_306716_(C_301982_ p_311692_, C_212974_ arg1)
public Entity
a(dir arg0, ctp arg1, diu arg2)
getOrCreateDisplayEntity(TrialSpawner arg0, Level arg1, TrialSpawnerState arg2)
method_55190(class_8963 arg0, class_1937 arg1, class_8967 arg2)
setDisplayEntity(TrialSpawnerLogic logic, World world, TrialSpawnerState state)
m_307031_(C_301982_ p_310374_, C_1596_ p_310556_, C_302094_ arg2)
public CompoundTag
a(diu arg0)
getUpdateTag(TrialSpawnerState arg0)
method_55194(class_8967 arg0)
getSpawnDataNbt(TrialSpawnerState state)
m_307504_(C_302094_ arg0)
public double
d()
getSpin()
method_55202()
getDisplayEntityRotation()
m_306486_()
public double
e()
getOSpin()
method_55204()
getLastDisplayEntityRotation()
m_305098_()