Class DragonFightManager


  • public class DragonFightManager
    extends java.lang.Object
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • VALID_PLAYER

        private static final java.util.function.Predicate<Entity> VALID_PLAYER
      • gateways

        private final java.util.List<java.lang.Integer> gateways
      • exitPortalPattern

        private final BlockPattern 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

        private java.util.UUID dragonUUID
      • needsStateScanning

        private boolean needsStateScanning
      • portalLocation

        private BlockPos portalLocation
      • respawnTime

        private int respawnTime
    • Constructor Detail

      • DragonFightManager

        public DragonFightManager​(ServerWorld p_i231901_1_,
                                  long p_i231901_2_,
                                  CompoundNBT p_i231901_4_)
    • Method Detail

      • tick

        public void tick()
      • scanState

        private void scanState()
      • findOrCreateDragon

        private void findOrCreateDragon()
      • setRespawnStage

        protected void setRespawnStage​(DragonSpawnState p_186095_1_)
      • hasActiveExitPortal

        private boolean hasActiveExitPortal()
      • isArenaLoaded

        private boolean isArenaLoaded()
      • updatePlayers

        private void updatePlayers()
      • updateCrystalCount

        private void updateCrystalCount()
      • spawnNewGateway

        private void spawnNewGateway()
      • spawnNewGateway

        private void spawnNewGateway​(BlockPos p_186089_1_)
      • spawnExitPortal

        private void spawnExitPortal​(boolean p_186094_1_)
      • getCrystalsAlive

        public int getCrystalsAlive()
      • hasPreviouslyKilledDragon

        public boolean hasPreviouslyKilledDragon()
      • tryRespawn

        public void tryRespawn()
      • respawnDragon

        private void respawnDragon​(java.util.List<EnderCrystalEntity> p_186093_1_)
      • resetSpikeCrystals

        public void resetSpikeCrystals()