Java 类net.minecraft.util.CombatTracker 实例源码

项目:DecompiledMinecraft    文件:S42PacketCombatEvent.java   
@SuppressWarnings("incomplete-switch")
public S42PacketCombatEvent(CombatTracker combatTrackerIn, S42PacketCombatEvent.Event combatEventType)
{
    this.eventType = combatEventType;
    EntityLivingBase entitylivingbase = combatTrackerIn.func_94550_c();

    switch (combatEventType)
    {
        case END_COMBAT:
            this.field_179772_d = combatTrackerIn.func_180134_f();
            this.field_179775_c = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();
            break;

        case ENTITY_DIED:
            this.field_179774_b = combatTrackerIn.getFighter().getEntityId();
            this.field_179775_c = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();
            this.deathMessage = combatTrackerIn.getDeathMessage().getUnformattedText();
    }
}
项目:DecompiledMinecraft    文件:S42PacketCombatEvent.java   
@SuppressWarnings("incomplete-switch")
public S42PacketCombatEvent(CombatTracker combatTrackerIn, S42PacketCombatEvent.Event combatEventType)
{
    this.eventType = combatEventType;
    EntityLivingBase entitylivingbase = combatTrackerIn.func_94550_c();

    switch (combatEventType)
    {
        case END_COMBAT:
            this.field_179772_d = combatTrackerIn.func_180134_f();
            this.field_179775_c = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();
            break;

        case ENTITY_DIED:
            this.field_179774_b = combatTrackerIn.getFighter().getEntityId();
            this.field_179775_c = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();
            this.deathMessage = combatTrackerIn.getDeathMessage().getUnformattedText();
    }
}
项目:BaseClient    文件:S42PacketCombatEvent.java   
@SuppressWarnings("incomplete-switch")
public S42PacketCombatEvent(CombatTracker combatTrackerIn, S42PacketCombatEvent.Event combatEventType)
{
    this.eventType = combatEventType;
    EntityLivingBase entitylivingbase = combatTrackerIn.func_94550_c();

    switch (combatEventType)
    {
        case END_COMBAT:
            this.field_179772_d = combatTrackerIn.func_180134_f();
            this.field_179775_c = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();
            break;

        case ENTITY_DIED:
            this.field_179774_b = combatTrackerIn.getFighter().getEntityId();
            this.field_179775_c = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();
            this.deathMessage = combatTrackerIn.getDeathMessage().getUnformattedText();
    }
}
项目:BaseClient    文件:S42PacketCombatEvent.java   
@SuppressWarnings("incomplete-switch")
public S42PacketCombatEvent(CombatTracker combatTrackerIn, S42PacketCombatEvent.Event combatEventType)
{
    this.eventType = combatEventType;
    EntityLivingBase entitylivingbase = combatTrackerIn.func_94550_c();

    switch (combatEventType)
    {
        case END_COMBAT:
            this.field_179772_d = combatTrackerIn.func_180134_f();
            this.field_179775_c = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();
            break;

        case ENTITY_DIED:
            this.field_179774_b = combatTrackerIn.getFighter().getEntityId();
            this.field_179775_c = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();
            this.deathMessage = combatTrackerIn.getDeathMessage().getUnformattedText();
    }
}
项目:CustomWorldGen    文件:SPacketCombatEvent.java   
@SuppressWarnings("incomplete-switch")
public SPacketCombatEvent(CombatTracker tracker, SPacketCombatEvent.Event eventIn, boolean p_i46932_3_)
{
    this.eventType = eventIn;
    EntityLivingBase entitylivingbase = tracker.getBestAttacker();

    switch (eventIn)
    {
        case END_COMBAT:
            this.duration = tracker.getCombatDuration();
            this.entityId = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();
            break;
        case ENTITY_DIED:
            this.playerId = tracker.getFighter().getEntityId();
            this.entityId = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();

            if (p_i46932_3_)
            {
                this.deathMessage = tracker.getDeathMessage();
            }
            else
            {
                this.deathMessage = new TextComponentString("");
            }
    }
}
项目:UniversalRemote    文件:EntityPlayerMPProxy.java   
@Override
public CombatTracker getCombatTracker() {
    if (m_realPlayer == null) {
        return super.getCombatTracker();
    } else {
        syncToRealPlayer();
        return syncPublicFieldsFromRealAndReturn(m_realPlayer.getCombatTracker());
    }
}
项目:UniversalRemote    文件:EntityPlayerProxy.java   
@Override
public CombatTracker getCombatTracker() {
    if (m_realPlayer == null) {
        return super.getCombatTracker();
    } else {
        return m_realPlayer.getCombatTracker();
    }
}
项目:Backmemed    文件:SPacketCombatEvent.java   
@SuppressWarnings("incomplete-switch")
public SPacketCombatEvent(CombatTracker tracker, SPacketCombatEvent.Event eventIn, boolean p_i46932_3_)
{
    this.eventType = eventIn;
    EntityLivingBase entitylivingbase = tracker.getBestAttacker();

    switch (eventIn)
    {
        case END_COMBAT:
            this.duration = tracker.getCombatDuration();
            this.entityId = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();
            break;

        case ENTITY_DIED:
            this.playerId = tracker.getFighter().getEntityId();
            this.entityId = entitylivingbase == null ? -1 : entitylivingbase.getEntityId();

            if (p_i46932_3_)
            {
                this.deathMessage = tracker.getDeathMessage();
            }
            else
            {
                this.deathMessage = new TextComponentString("");
            }
    }
}
项目:Cauldron    文件:EntityPlayerMP.java   
public void reset()
{
    float exp = 0;
    boolean keepInventory = this.worldObj.getGameRules().getGameRuleBooleanValue("keepInventory");

    if (this.keepLevel || keepInventory)
    {
        exp = this.experience;
        this.newTotalExp = this.experienceTotal;
        this.newLevel = this.experienceLevel;
    }

    this.setHealth(this.getMaxHealth());
    this.fire = 0;
    this.fallDistance = 0;
    this.foodStats = new FoodStats(this);
    this.experienceLevel = this.newLevel;
    this.experienceTotal = this.newTotalExp;
    this.experience = 0;
    this.deathTime = 0;
    this.clearActivePotions(); // Should be remapped: removeAllEffects should be remapped to this.
    super.potionsNeedUpdate = true; // Cauldron - change to super to temporarily workaround remapping bug with SpecialSource
    this.openContainer = this.inventoryContainer;
    this.attackingPlayer = null;
    this.entityLivingToAttack = null;
    this._combatTracker = new CombatTracker(this);
    this.lastExperience = -1;

    if (this.keepLevel || keepInventory)
    {
        this.experience = exp;
    }
    else
    {
        this.addExperience(this.newExp);
    }

    this.keepLevel = false;
}
项目:DecompiledMinecraft    文件:EntityLivingBase.java   
public CombatTracker getCombatTracker()
{
    return this._combatTracker;
}
项目:DecompiledMinecraft    文件:EntityLivingBase.java   
public CombatTracker getCombatTracker()
{
    return this._combatTracker;
}
项目:BaseClient    文件:EntityLivingBase.java   
public CombatTracker getCombatTracker()
{
    return this._combatTracker;
}
项目:BaseClient    文件:EntityLivingBase.java   
public CombatTracker getCombatTracker()
{
    return this._combatTracker;
}
项目:Backmemed    文件:EntityLivingBase.java   
/**
 * 1.8.9
 */
public CombatTracker getCombatTracker()
{
    return this._combatTracker;
}
项目:Backmemed    文件:SPacketCombatEvent.java   
public SPacketCombatEvent(CombatTracker tracker, SPacketCombatEvent.Event eventIn)
{
    this(tracker, eventIn, true);
}
项目:CustomWorldGen    文件:EntityLivingBase.java   
/**
 * 1.8.9
 */
public CombatTracker getCombatTracker()
{
    return this._combatTracker;
}
项目:CustomWorldGen    文件:SPacketCombatEvent.java   
public SPacketCombatEvent(CombatTracker tracker, SPacketCombatEvent.Event eventIn)
{
    this(tracker, eventIn, true);
}
项目:4Space-5    文件:EntityLivingBase.java   
public CombatTracker func_110142_aN() {
    return this._combatTracker;
}
项目:Resilience-Client-Source    文件:EntityLivingBase.java   
public CombatTracker func_110142_aN()
{
    return this._combatTracker;
}
项目:4Space-1.7    文件:EntityLivingBase.java   
public CombatTracker func_110142_aN() {
    return this._combatTracker;
}
项目:ExpandedRailsMod    文件:EntityLivingBase.java   
/**
 * 1.8.9
 */
public CombatTracker getCombatTracker()
{
    return this._combatTracker;
}
项目:Cauldron    文件:EntityLivingBase.java   
public CombatTracker func_110142_aN()
{
    return this._combatTracker;
}
项目:Cauldron    文件:EntityLivingBase.java   
public CombatTracker func_110142_aN()
{
    return this._combatTracker;
}
项目:RuneCraftery    文件:EntityLivingBase.java   
public CombatTracker func_110142_aN() {
   return this.field_94063_bt;
}
项目:RuneCraftery    文件:EntityLivingBase.java   
public CombatTracker func_110142_aN()
{
    return this._combatTracker;
}
项目:BetterNutritionMod    文件:EntityLivingBase.java   
public CombatTracker func_110142_aN()
{
    return this._combatTracker;
}
项目:NeptuneMod    文件:MixinEntityLivingBase.java   
@Shadow public abstract CombatTracker getCombatTracker();