Package net.minecraft.world.end
Class DragonFightManager
java.lang.Object
net.minecraft.world.end.DragonFightManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final ServerBossInfo
private boolean
private UUID
private final BlockPattern
private final ServerWorld
private static final org.apache.logging.log4j.Logger
private boolean
private BlockPos
private boolean
private List<EnderCrystalEntity>
private DragonSpawnState
private int
private int
private int
private int
-
Constructor Summary
ConstructorDescriptionDragonFightManager
(ServerWorld p_i231901_1_, long p_i231901_2_, CompoundNBT p_i231901_4_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPlayer
(ServerPlayerEntity player) private EnderDragonEntity
private BlockPattern.PatternHelper
private void
int
private boolean
boolean
private boolean
void
onCrystalDestroyed
(EnderCrystalEntity p_186090_1_, DamageSource p_186090_2_) void
removePlayer
(ServerPlayerEntity player) void
private void
respawnDragon
(List<EnderCrystalEntity> p_186093_1_) saveData()
private void
void
setDragonKilled
(EnderDragonEntity p_186096_1_) protected void
setRespawnStage
(DragonSpawnState p_186095_1_) private void
spawnExitPortal
(boolean p_186094_1_) private void
private void
spawnNewGateway
(BlockPos p_186089_1_) void
tick()
void
private void
void
updateDragon
(EnderDragonEntity p_186099_1_) private void
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
VALID_PLAYER
-
dragonEvent
-
level
-
gateways
-
exitPortalPattern
-
ticksSinceDragonSeen
private int ticksSinceDragonSeen -
crystalsAlive
private int crystalsAlive -
ticksSinceCrystalsScanned
private int ticksSinceCrystalsScanned -
ticksSinceLastPlayerScan
private int ticksSinceLastPlayerScan -
dragonKilled
private boolean dragonKilled -
previouslyKilled
private boolean previouslyKilled -
dragonUUID
-
needsStateScanning
private boolean needsStateScanning -
portalLocation
-
respawnStage
-
respawnTime
private int respawnTime -
respawnCrystals
-
-
Constructor Details
-
DragonFightManager
-
-
Method Details
-
saveData
-
tick
public void tick() -
scanState
private void scanState() -
findOrCreateDragon
private void findOrCreateDragon() -
setRespawnStage
-
hasActiveExitPortal
private boolean hasActiveExitPortal() -
findExitPortal
-
isArenaLoaded
private boolean isArenaLoaded() -
updatePlayers
private void updatePlayers() -
updateCrystalCount
private void updateCrystalCount() -
setDragonKilled
-
spawnNewGateway
private void spawnNewGateway() -
spawnNewGateway
-
spawnExitPortal
private void spawnExitPortal(boolean p_186094_1_) -
createNewDragon
-
updateDragon
-
getCrystalsAlive
public int getCrystalsAlive() -
onCrystalDestroyed
-
hasPreviouslyKilledDragon
public boolean hasPreviouslyKilledDragon() -
tryRespawn
public void tryRespawn() -
respawnDragon
-
resetSpikeCrystals
public void resetSpikeCrystals() -
addPlayer
-
removePlayer
-