Java 类net.minecraft.network.play.server.SPacketRemoveEntityEffect 实例源码

项目:Zombe-Modpack    文件:NetHandlerPlayClient.java   
public void handleRemoveEntityEffect(SPacketRemoveEntityEffect packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity instanceof EntityLivingBase)
    {
        ((EntityLivingBase)entity).removeActivePotionEffect(packetIn.getPotion());
    }
}
项目:Backmemed    文件:NetHandlerPlayClient.java   
public void handleRemoveEntityEffect(SPacketRemoveEntityEffect packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity instanceof EntityLivingBase)
    {
        ((EntityLivingBase)entity).removeActivePotionEffect(packetIn.getPotion());
    }
}
项目:CustomWorldGen    文件:NetHandlerPlayClient.java   
public void handleRemoveEntityEffect(SPacketRemoveEntityEffect packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity instanceof EntityLivingBase)
    {
        ((EntityLivingBase)entity).removeActivePotionEffect(packetIn.getPotion());
    }
}
项目:ExpandedRailsMod    文件:NetHandlerPlayClient.java   
public void handleRemoveEntityEffect(SPacketRemoveEntityEffect packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity instanceof EntityLivingBase)
    {
        ((EntityLivingBase)entity).removeActivePotionEffect(packetIn.getPotion());
    }
}
项目:Zombe-Modpack    文件:EntityPlayerMP.java   
protected void onFinishedPotionEffect(PotionEffect effect)
{
    super.onFinishedPotionEffect(effect);
    this.connection.sendPacket(new SPacketRemoveEntityEffect(this.getEntityId(), effect.getPotion()));
}
项目:Backmemed    文件:EntityPlayerMP.java   
protected void onFinishedPotionEffect(PotionEffect effect)
{
    super.onFinishedPotionEffect(effect);
    this.connection.sendPacket(new SPacketRemoveEntityEffect(this.getEntityId(), effect.getPotion()));
}
项目:CustomWorldGen    文件:EntityPlayerMP.java   
protected void onFinishedPotionEffect(PotionEffect effect)
{
    super.onFinishedPotionEffect(effect);
    this.connection.sendPacket(new SPacketRemoveEntityEffect(this.getEntityId(), effect.getPotion()));
}
项目:ExpandedRailsMod    文件:EntityPlayerMP.java   
protected void onFinishedPotionEffect(PotionEffect effect)
{
    super.onFinishedPotionEffect(effect);
    this.connection.sendPacket(new SPacketRemoveEntityEffect(this.getEntityId(), effect.getPotion()));
}
项目:Backmemed    文件:INetHandlerPlayClient.java   
void handleRemoveEntityEffect(SPacketRemoveEntityEffect packetIn);
项目:CustomWorldGen    文件:INetHandlerPlayClient.java   
void handleRemoveEntityEffect(SPacketRemoveEntityEffect packetIn);