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

项目:Zombe-Modpack    文件:NetHandlerPlayClient.java   
public void handleCooldown(SPacketCooldown packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);

    if (packetIn.getTicks() == 0)
    {
        this.gameController.player.getCooldownTracker().removeCooldown(packetIn.getItem());
    }
    else
    {
        this.gameController.player.getCooldownTracker().setCooldown(packetIn.getItem(), packetIn.getTicks());
    }
}
项目:Backmemed    文件:NetHandlerPlayClient.java   
public void handleCooldown(SPacketCooldown packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);

    if (packetIn.getTicks() == 0)
    {
        this.gameController.player.getCooldownTracker().removeCooldown(packetIn.getItem());
    }
    else
    {
        this.gameController.player.getCooldownTracker().setCooldown(packetIn.getItem(), packetIn.getTicks());
    }
}
项目:CustomWorldGen    文件:NetHandlerPlayClient.java   
public void handleCooldown(SPacketCooldown packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);

    if (packetIn.getTicks() == 0)
    {
        this.gameController.thePlayer.getCooldownTracker().removeCooldown(packetIn.getItem());
    }
    else
    {
        this.gameController.thePlayer.getCooldownTracker().setCooldown(packetIn.getItem(), packetIn.getTicks());
    }
}
项目:ExpandedRailsMod    文件:NetHandlerPlayClient.java   
public void handleCooldown(SPacketCooldown packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);

    if (packetIn.getTicks() == 0)
    {
        this.gameController.thePlayer.getCooldownTracker().removeCooldown(packetIn.getItem());
    }
    else
    {
        this.gameController.thePlayer.getCooldownTracker().setCooldown(packetIn.getItem(), packetIn.getTicks());
    }
}
项目:Backmemed    文件:CooldownTrackerServer.java   
protected void notifyOnSet(Item itemIn, int ticksIn)
{
    super.notifyOnSet(itemIn, ticksIn);
    this.player.connection.sendPacket(new SPacketCooldown(itemIn, ticksIn));
}
项目:Backmemed    文件:CooldownTrackerServer.java   
protected void notifyOnRemove(Item itemIn)
{
    super.notifyOnRemove(itemIn);
    this.player.connection.sendPacket(new SPacketCooldown(itemIn, 0));
}
项目:CustomWorldGen    文件:CooldownTrackerServer.java   
protected void notifyOnSet(Item itemIn, int ticksIn)
{
    super.notifyOnSet(itemIn, ticksIn);
    this.player.connection.sendPacket(new SPacketCooldown(itemIn, ticksIn));
}
项目:CustomWorldGen    文件:CooldownTrackerServer.java   
protected void notifyOnRemove(Item itemIn)
{
    super.notifyOnRemove(itemIn);
    this.player.connection.sendPacket(new SPacketCooldown(itemIn, 0));
}
项目:Backmemed    文件:INetHandlerPlayClient.java   
void handleCooldown(SPacketCooldown packetIn);
项目:CustomWorldGen    文件:INetHandlerPlayClient.java   
void handleCooldown(SPacketCooldown packetIn);