Class TrialSpawnerData
java.lang.Object
net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerData
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
private static final int
private SimpleWeightedRandomList
<ItemStack> protected Entity
protected Optional
<ResourceKey<LootTable>> static com.mojang.serialization.MapCodec
<TrialSpawnerData> protected long
protected double
protected double
private static final String
static final String
protected int
private static final int
-
Constructor Summary
ConstructorDescriptionTrialSpawnerData
(Set<UUID> p_312543_, Set<UUID> p_311274_, long p_312908_, long p_311373_, int p_311452_, Optional<SpawnData> p_311258_, Optional<ResourceKey<LootTable>> p_312612_) -
Method Summary
Modifier and TypeMethodDescriptionint
countAdditionalPlayers
(BlockPos p_310055_) findPlayerWithOminousEffect
(ServerLevel p_342909_, List<UUID> p_343949_) (package private) SimpleWeightedRandomList
<ItemStack> getDispensingItems
(ServerLevel p_335070_, TrialSpawnerConfig p_328688_, BlockPos p_329742_) getOrCreateDisplayEntity
(TrialSpawner p_310895_, Level p_310374_, TrialSpawnerState p_310556_) protected SpawnData
getOrCreateNextSpawnData
(TrialSpawner p_311810_, RandomSource p_311692_) double
getOSpin()
double
getSpin()
getUpdateTag
(TrialSpawnerState p_310015_) boolean
hasFinishedSpawningAllMobs
(TrialSpawnerConfig p_310871_, int p_313160_) boolean
hasMobToSpawn
(TrialSpawner p_328530_, RandomSource p_333493_) boolean
boolean
isCooldownFinished
(ServerLevel p_312277_) boolean
isReadyToEjectItems
(ServerLevel p_309478_, float p_310189_, int p_330888_) boolean
isReadyToOpenShutter
(ServerLevel p_311936_, float p_312381_, int p_334019_) boolean
isReadyToSpawnNextMob
(ServerLevel p_312376_, TrialSpawnerConfig p_313089_, int p_311969_) private static long
lowResolutionPosition
(ServerLevel p_332486_, BlockPos p_332719_) void
reset()
void
resetAfterBecomingOminous
(TrialSpawner p_330837_, ServerLevel p_328172_) void
setEntityId
(TrialSpawner p_311233_, RandomSource p_312395_, EntityType<?> p_311226_) private static void
transformBadOmenIntoTrialOmen
(Player p_327801_) void
tryDetectPlayers
(ServerLevel p_313049_, BlockPos p_310981_, TrialSpawner p_331326_)
-
Field Details
-
TAG_SPAWN_DATA
- See Also:
-
TAG_NEXT_MOB_SPAWNS_AT
- See Also:
-
DELAY_BETWEEN_PLAYER_SCANS
private static final int DELAY_BETWEEN_PLAYER_SCANS- See Also:
-
TRIAL_OMEN_PER_BAD_OMEN_LEVEL
private static final int TRIAL_OMEN_PER_BAD_OMEN_LEVEL- See Also:
-
MAP_CODEC
-
detectedPlayers
-
currentMobs
-
cooldownEndsAt
protected long cooldownEndsAt -
nextMobSpawnsAt
protected long nextMobSpawnsAt -
totalMobsSpawned
protected int totalMobsSpawned -
nextSpawnData
-
ejectingLootTable
-
displayEntity
-
dispensing
-
spin
protected double spin -
oSpin
protected double oSpin
-
-
Constructor Details
-
TrialSpawnerData
public TrialSpawnerData() -
TrialSpawnerData
-
-
Method Details
-
reset
public void reset() -
hasMobToSpawn
-
hasFinishedSpawningAllMobs
-
haveAllCurrentMobsDied
public boolean haveAllCurrentMobsDied() -
isReadyToSpawnNextMob
public boolean isReadyToSpawnNextMob(ServerLevel p_312376_, TrialSpawnerConfig p_313089_, int p_311969_) -
countAdditionalPlayers
-
tryDetectPlayers
-
findPlayerWithOminousEffect
-
resetAfterBecomingOminous
-
transformBadOmenIntoTrialOmen
-
isReadyToOpenShutter
-
isReadyToEjectItems
-
isCooldownFinished
-
setEntityId
-
getOrCreateNextSpawnData
-
getOrCreateDisplayEntity
@Nullable public Entity getOrCreateDisplayEntity(TrialSpawner p_310895_, Level p_310374_, TrialSpawnerState p_310556_) -
getUpdateTag
-
getSpin
public double getSpin() -
getOSpin
public double getOSpin() -
getDispensingItems
SimpleWeightedRandomList<ItemStack> getDispensingItems(ServerLevel p_335070_, TrialSpawnerConfig p_328688_, BlockPos p_329742_) -
lowResolutionPosition
-