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

public class TrialSpawnerData

dsh
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
m
TAG_NEXT_MOB_SPAWNS_AT
field_47382
NEXT_MOB_SPAWNS_AT_KEY
f_303495_
private static final int
n
DELAY_BETWEEN_PLAYER_SCANS
field_50190
field_50190
f_315937_
private static final int
o
TRIAL_OMEN_PER_BAD_OMEN_LEVEL
field_50191
field_50191
f_314589_
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<ResourceKey<LootTable>>
i
ejectingLootTable
field_47377
rewardLootTable
f_303012_
protected Entity
j
displayEntity
field_47379
displayEntity
f_302195_
private SimpleWeightedRandomList<ItemStack>
p
dispensing
field_50192
itemsToDropWhenOminous
f_314593_
protected double
k
spin
field_47380
displayEntityRotation
f_302632_
protected double
l
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<ResourceKey<LootTable>> rewardLootTable)

Method summary

Modifier and TypeMethod
public void
a()
reset()
method_55182()
reset()
m_305301_()
public boolean
a(dsf arg0, ayw arg1)
hasMobToSpawn(TrialSpawner arg0, RandomSource arg1)
method_55197(class_8963 arg0, class_5819 arg1)
hasSpawnData(TrialSpawnerLogic logic, Random random)
m_306286_(C_301982_ p_333493_, C_212974_ arg1)
public boolean
a(dsg 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
b()
haveAllCurrentMobsDied()
method_55200()
areMobsDead()
m_307352_()
public boolean
a(aqu arg0, dsg 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(jd arg0)
countAdditionalPlayers(BlockPos arg0)
method_55195(class_2338 arg0)
getAdditionalPlayers(BlockPos pos)
m_305480_(C_4675_ arg0)
public void
a(aqu arg0, jd arg1, dsf arg2)
tryDetectPlayers(ServerLevel arg0, BlockPos arg1, TrialSpawner arg2)
method_55186(class_3218 arg0, class_2338 arg1, class_8963 arg2)
updatePlayers(ServerWorld world, BlockPos pos, TrialSpawnerLogic logic)
m_304942_(C_12_ p_310981_, C_4675_ p_331326_, C_301982_ arg2)
private static Optional<com.mojang.datafixers.util.Pair<Player, Holder<MobEffect>>>
a(aqu arg0, List<UUID> arg1)
findPlayerWithOminousEffect(ServerLevel arg0, List<UUID> arg1)
method_60789(class_3218 arg0, List<UUID> arg1)
findPlayerWithOmen(ServerWorld world, List<UUID> players)
m_340436_(C_12_ p_342909_, List<UUID> p_343949_)
public void
a(dsf arg0, aqu arg1)
resetAfterBecomingOminous(TrialSpawner arg0, ServerLevel arg1)
method_58717(class_8963 arg0, class_3218 arg1)
resetAndClearMobs(TrialSpawnerLogic logic, ServerWorld world)
m_321694_(C_301982_ p_328172_, C_12_ arg1)
private static void
a(cmx arg0)
transformBadOmenIntoTrialOmen(Player arg0)
method_58716(class_1657 arg0)
applyTrialOmen(PlayerEntity player)
m_319436_(C_1141_ p_327801_)
public boolean
a(aqu arg0, float arg1, int arg2)
isReadyToOpenShutter(ServerLevel arg0, float arg1, int arg2)
method_55184(class_3218 arg0, float arg1, int arg2)
isCooldownPast(ServerWorld world, float arg1, int arg2)
m_305761_(C_12_ p_312381_, float p_334019_, int arg2)
public boolean
b(aqu arg0, float arg1, int arg2)
isReadyToEjectItems(ServerLevel arg0, float arg1, int arg2)
method_55198(class_3218 arg0, float arg1, int arg2)
isCooldownAtRepeating(ServerWorld world, float arg1, int arg2)
m_305594_(C_12_ p_310189_, float p_330888_, int arg2)
public boolean
a(aqu arg0)
isCooldownFinished(ServerLevel arg0)
method_55183(class_3218 arg0)
isCooldownOver(ServerWorld world)
m_305171_(C_12_ arg0)
public void
a(dsf arg0, ayw arg1, bsx<?> 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
b(dsf arg0, ayw 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(dsf arg0, dcw arg1, dsi 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(dsi arg0)
getUpdateTag(TrialSpawnerState arg0)
method_55194(class_8967 arg0)
getSpawnDataNbt(TrialSpawnerState state)
m_307504_(C_302094_ arg0)
public double
c()
getSpin()
method_55202()
getDisplayEntityRotation()
m_306486_()
public double
d()
getOSpin()
method_55204()
getLastDisplayEntityRotation()
m_305098_()
SimpleWeightedRandomList<ItemStack>
a(aqu arg0, dsg arg1, jd arg2)
getDispensingItems(ServerLevel arg0, TrialSpawnerConfig arg1, BlockPos arg2)
method_58714(class_3218 arg0, class_8965 arg1, class_2338 arg2)
getItemsToDropWhenOminous(ServerWorld world, TrialSpawnerConfig config, BlockPos pos)
m_319751_(C_12_ p_328688_, C_302073_ p_329742_, C_4675_ arg2)
private static long
a(aqu arg0, jd arg1)
lowResolutionPosition(ServerLevel arg0, BlockPos arg1)
method_58715(class_3218 arg0, class_2338 arg1)
getLootSeed(ServerWorld world, BlockPos pos)
m_324844_(C_12_ p_332486_, C_4675_ p_332719_)