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

public class TrialSpawnerData

dwd
net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerData
net.minecraft.class_8966
net.minecraft.block.spawner.TrialSpawnerData
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
private static final String
m
TAG_NEXT_MOB_SPAWNS_AT
field_47382
NEXT_MOB_SPAWNS_AT_KEY
private static final int
n
DELAY_BETWEEN_PLAYER_SCANS
field_50190
field_50190
private static final int
o
TRIAL_OMEN_PER_BAD_OMEN_LEVEL
field_50191
field_50191
public static com.mojang.serialization.MapCodec<TrialSpawnerData>
b
MAP_CODEC
field_47370
codec
protected final Set<UUID>
c
detectedPlayers
field_47371
players
protected final Set<UUID>
d
currentMobs
field_47372
spawnedMobsAlive
protected long
e
cooldownEndsAt
field_47373
cooldownEnd
protected long
f
nextMobSpawnsAt
field_47374
nextMobSpawnsAt
protected int
g
totalMobsSpawned
field_47375
totalSpawnedMobs
protected Optional<SpawnData>
h
nextSpawnData
field_47376
spawnData
protected Optional<ResourceKey<LootTable>>
i
ejectingLootTable
field_47377
rewardLootTable
protected Entity
j
displayEntity
field_47379
displayEntity
private SimpleWeightedRandomList<ItemStack>
p
dispensing
field_50192
itemsToDropWhenOminous
protected double
k
spin
field_47380
displayEntityRotation
protected double
l
oSpin
field_47381
lastDisplayEntityRotation

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()
public void
b()
resetStatistics()
method_61763()
deactivate()
public boolean
a(dwa arg0, azh arg1)
hasMobToSpawn(TrialSpawner arg0, RandomSource arg1)
method_55197(class_8963 arg0, class_5819 arg1)
hasSpawnData(TrialSpawnerLogic logic, Random random)
public boolean
a(dwb arg0, int arg1)
hasFinishedSpawningAllMobs(TrialSpawnerConfig arg0, int arg1)
method_55192(class_8965 arg0, int arg1)
hasSpawnedAllMobs(TrialSpawnerConfig config, int additionalPlayers)
public boolean
c()
haveAllCurrentMobsDied()
method_55200()
areMobsDead()
public boolean
a(ard arg0, dwb 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)
public int
a(ji arg0)
countAdditionalPlayers(BlockPos arg0)
method_55195(class_2338 arg0)
getAdditionalPlayers(BlockPos pos)
public void
a(ard arg0, ji arg1, dwa 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)
private static Optional<com.mojang.datafixers.util.Pair<Player, Holder<MobEffect>>>
a(ard arg0, List<UUID> arg1)
findPlayerWithOminousEffect(ServerLevel arg0, List<UUID> arg1)
method_60789(class_3218 arg0, List<UUID> arg1)
findPlayerWithOmen(ServerWorld world, List<UUID> players)
public void
a(dwa arg0, ard arg1)
resetAfterBecomingOminous(TrialSpawner arg0, ServerLevel arg1)
method_58717(class_8963 arg0, class_3218 arg1)
resetAndClearMobs(TrialSpawnerLogic logic, ServerWorld world)
private static void
a(coy arg0)
transformBadOmenIntoTrialOmen(Player arg0)
method_58716(class_1657 arg0)
applyTrialOmen(PlayerEntity player)
public boolean
a(ard 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)
public boolean
b(ard 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)
public boolean
a(ard arg0)
isCooldownFinished(ServerLevel arg0)
method_55183(class_3218 arg0)
isCooldownOver(ServerWorld world)
protected SpawnData
b(dwa arg0, azh arg1)
getOrCreateNextSpawnData(TrialSpawner arg0, RandomSource arg1)
method_55188(class_8963 arg0, class_5819 arg1)
getSpawnData(TrialSpawnerLogic logic, Random random)
public Entity
a(dwa arg0, dgj arg1, dwe 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)
public CompoundTag
a(dwe arg0)
getUpdateTag(TrialSpawnerState arg0)
method_55194(class_8967 arg0)
getSpawnDataNbt(TrialSpawnerState state)
public double
d()
getSpin()
method_55202()
getDisplayEntityRotation()
public double
e()
getOSpin()
method_55204()
getLastDisplayEntityRotation()
SimpleWeightedRandomList<ItemStack>
a(ard arg0, dwb arg1, ji 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)
private static long
a(ard arg0, ji arg1)
lowResolutionPosition(ServerLevel arg0, BlockPos arg1)
method_58715(class_3218 arg0, class_2338 arg1)
getLootSeed(ServerWorld world, BlockPos pos)