Class EndDragonFight
java.lang.Object
net.minecraft.world.level.dimension.end.EndDragonFight
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
static int
private int
static int
private ServerBossEvent
private boolean
private UUID
private BlockPattern
private static int
private static int
private ServerLevel
private static org.apache.logging.log4j.Logger
private static int
private boolean
private BlockPos
private boolean
private List<EndCrystal>
private DragonRespawnAnimation
private int
private int
private int
private int
private static int
private static 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.apache.logging.log4j.Logger LOGGER -
MAX_TICKS_BEFORE_DRAGON_RESPAWN
private static final int MAX_TICKS_BEFORE_DRAGON_RESPAWN- See Also:
- Constant Field Values
-
TIME_BETWEEN_CRYSTAL_SCANS
private static final int TIME_BETWEEN_CRYSTAL_SCANS- See Also:
- Constant Field Values
-
TIME_BETWEEN_PLAYER_SCANS
private static final int TIME_BETWEEN_PLAYER_SCANS- See Also:
- Constant Field Values
-
ARENA_SIZE_CHUNKS
private static final int ARENA_SIZE_CHUNKS- See Also:
- Constant Field Values
-
ARENA_TICKET_LEVEL
public static final int ARENA_TICKET_LEVEL- See Also:
- Constant Field Values
-
GATEWAY_COUNT
private static final int GATEWAY_COUNT- See Also:
- Constant Field Values
-
GATEWAY_DISTANCE
private static final int GATEWAY_DISTANCE- See Also:
- Constant Field Values
-
DRAGON_SPAWN_Y
public static final int DRAGON_SPAWN_Y- See Also:
- Constant Field Values
-
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
-