Class EndDragonFight
java.lang.Object
net.minecraft.world.level.dimension.end.EndDragonFight
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
static final int
private int
static final int
private final ServerBossEvent
private boolean
private UUID
private final BlockPattern
private static final int
private static final int
private final ServerLevel
private static final org.slf4j.Logger
private static final int
private boolean
private BlockPos
private boolean
private List<EndCrystal>
private DragonRespawnAnimation
private int
private int
private int
private int
private static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPlayer
(ServerPlayer player) private EnderDragon
private BlockPattern.BlockPatternMatch
private void
int
private boolean
boolean
private boolean
void
onCrystalDestroyed
(EndCrystal p_64083_, DamageSource p_64084_) void
removePlayer
(ServerPlayer player) void
private void
respawnDragon
(List<EndCrystal> p_64092_) saveData()
private void
void
setDragonKilled
(EnderDragon p_64086_) protected void
setRespawnStage
(DragonRespawnAnimation p_64088_) private void
spawnExitPortal
(boolean p_64094_) private void
private void
spawnNewGateway
(BlockPos p_64090_) void
tick()
void
private void
void
updateDragon
(EnderDragon p_64097_) private void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MAX_TICKS_BEFORE_DRAGON_RESPAWN
private static final int MAX_TICKS_BEFORE_DRAGON_RESPAWN- See Also:
-
TIME_BETWEEN_CRYSTAL_SCANS
private static final int TIME_BETWEEN_CRYSTAL_SCANS- See Also:
-
TIME_BETWEEN_PLAYER_SCANS
private static final int TIME_BETWEEN_PLAYER_SCANS- See Also:
-
ARENA_SIZE_CHUNKS
private static final int ARENA_SIZE_CHUNKS- See Also:
-
ARENA_TICKET_LEVEL
public static final int ARENA_TICKET_LEVEL- See Also:
-
GATEWAY_COUNT
private static final int GATEWAY_COUNT- See Also:
-
GATEWAY_DISTANCE
private static final int GATEWAY_DISTANCE- See Also:
-
DRAGON_SPAWN_Y
public static final int DRAGON_SPAWN_Y- See Also:
-
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
-
EndDragonFight
-
-
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_64094_) -
createNewDragon
-
updateDragon
-
getCrystalsAlive
public int getCrystalsAlive() -
onCrystalDestroyed
-
hasPreviouslyKilledDragon
public boolean hasPreviouslyKilledDragon() -
tryRespawn
public void tryRespawn() -
respawnDragon
-
resetSpikeCrystals
public void resetSpikeCrystals() -
addPlayer
-
removePlayer
-