public class DragonFightManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
aliveCrystals |
private BossInfoServer |
bossInfo |
private java.util.List<EntityEnderCrystal> |
crystals |
private boolean |
dragonKilled |
private java.util.UUID |
dragonUniqueId |
private BlockPos |
exitPortalLocation |
private java.util.List<java.lang.Integer> |
gateways |
private static org.apache.logging.log4j.Logger |
LOGGER |
private BlockPattern |
portalPattern |
private boolean |
previouslyKilled |
private DragonSpawnManager |
respawnState |
private int |
respawnStateTicks |
private boolean |
scanForLegacyFight |
private int |
ticksSinceCrystalsScanned |
private int |
ticksSinceDragonSeen |
private int |
ticksSinceLastPlayerScan |
private static com.google.common.base.Predicate<EntityPlayerMP> |
VALID_PLAYER |
private WorldServer |
world |
Constructor and Description |
---|
DragonFightManager(WorldServer worldIn,
NBTTagCompound compound) |
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(EntityPlayerMP player) |
private EntityDragon |
createNewDragon() |
void |
dragonUpdate(EntityDragon dragonIn) |
private void |
findAliveCrystals() |
private BlockPattern.PatternHelper |
findExitPortal() |
private void |
generateGateway(BlockPos pos) |
private void |
generatePortal(boolean active) |
NBTTagCompound |
getCompound() |
int |
getNumAliveCrystals() |
private boolean |
hasDragonBeenKilled() |
boolean |
hasPreviouslyKilledDragon() |
private void |
loadChunks() |
void |
onCrystalDestroyed(EntityEnderCrystal crystal,
DamageSource dmgSrc) |
void |
processDragonDeath(EntityDragon dragon) |
void |
removePlayer(EntityPlayerMP player) |
void |
resetSpikeCrystals() |
void |
respawnDragon() |
private void |
respawnDragon(java.util.List<EntityEnderCrystal> crystalsIn) |
protected void |
setRespawnState(DragonSpawnManager state) |
private void |
spawnNewGateway() |
void |
tick() |
private void |
updateplayers() |
private static final org.apache.logging.log4j.Logger LOGGER
private static final com.google.common.base.Predicate<EntityPlayerMP> VALID_PLAYER
private final BossInfoServer bossInfo
private final WorldServer world
private final java.util.List<java.lang.Integer> gateways
private final BlockPattern portalPattern
private int ticksSinceDragonSeen
private int aliveCrystals
private int ticksSinceCrystalsScanned
private int ticksSinceLastPlayerScan
private boolean dragonKilled
private boolean previouslyKilled
private java.util.UUID dragonUniqueId
private boolean scanForLegacyFight
private BlockPos exitPortalLocation
private DragonSpawnManager respawnState
private int respawnStateTicks
private java.util.List<EntityEnderCrystal> crystals
public DragonFightManager(WorldServer worldIn, NBTTagCompound compound)
public NBTTagCompound getCompound()
public void tick()
protected void setRespawnState(DragonSpawnManager state)
private boolean hasDragonBeenKilled()
@Nullable private BlockPattern.PatternHelper findExitPortal()
private void loadChunks()
private void updateplayers()
private void findAliveCrystals()
public void processDragonDeath(EntityDragon dragon)
private void spawnNewGateway()
private void generateGateway(BlockPos pos)
private void generatePortal(boolean active)
private EntityDragon createNewDragon()
public void dragonUpdate(EntityDragon dragonIn)
public int getNumAliveCrystals()
public void onCrystalDestroyed(EntityEnderCrystal crystal, DamageSource dmgSrc)
public boolean hasPreviouslyKilledDragon()
public void respawnDragon()
private void respawnDragon(java.util.List<EntityEnderCrystal> crystalsIn)
public void resetSpikeCrystals()
public void addPlayer(EntityPlayerMP player)
public void removePlayer(EntityPlayerMP player)