Class EndDragonFight
java.lang.Object
net.minecraft.world.level.dimension.end.EndDragonFight
-
Nested Class Summary
-
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 it.unimi.dsi.fastutil.objects.ObjectArrayList<Integer>
private final ServerLevel
private static final org.slf4j.Logger
private static final int
private boolean
private final BlockPos
private BlockPos
private boolean
private List<EndCrystal>
private DragonRespawnAnimation
private int
private boolean
private int
private int
private int
private static final int
static final int
-
Constructor Summary
ConstructorDescriptionEndDragonFight
(ServerLevel p_289759_, long p_289805_, EndDragonFight.Data p_289800_) EndDragonFight
(ServerLevel p_289771_, long p_289793_, EndDragonFight.Data p_289768_, BlockPos p_289794_) -
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
Deprecated.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_) void
Deprecated.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
public 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:
-
validPlayer
-
dragonEvent
-
level
-
origin
-
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 -
skipArenaLoadedCheck
private boolean skipArenaLoadedCheck -
dragonUUID
-
needsStateScanning
private boolean needsStateScanning -
portalLocation
-
respawnStage
-
respawnTime
private int respawnTime -
respawnCrystals
-
-
Constructor Details
-
EndDragonFight
-
EndDragonFight
public EndDragonFight(ServerLevel p_289771_, long p_289793_, EndDragonFight.Data p_289768_, BlockPos p_289794_)
-
-
Method Details
-
skipArenaLoadedCheck
Deprecated. -
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
-
removeAllGateways
Deprecated. -
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
-
getDragonUUID
-