Java 类net.minecraft.network.play.client.CPacketEnchantItem 实例源码

项目:Zombe-Modpack    文件:NetHandlerPlayServer.java   
/**
 * Enchants the item identified by the packet given some convoluted conditions (matching window, which
 * should/shouldn't be in use?)
 */
public void processEnchantItem(CPacketEnchantItem packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerWorld());
    this.playerEntity.markPlayerActive();

    if (this.playerEntity.openContainer.windowId == packetIn.getWindowId() && this.playerEntity.openContainer.getCanCraft(this.playerEntity) && !this.playerEntity.isSpectator())
    {
        this.playerEntity.openContainer.enchantItem(this.playerEntity, packetIn.getButton());
        this.playerEntity.openContainer.detectAndSendChanges();
    }
}
项目:Backmemed    文件:NetHandlerPlayServer.java   
/**
 * Enchants the item identified by the packet given some convoluted conditions (matching window, which
 * should/shouldn't be in use?)
 */
public void processEnchantItem(CPacketEnchantItem packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerWorld());
    this.playerEntity.markPlayerActive();

    if (this.playerEntity.openContainer.windowId == packetIn.getWindowId() && this.playerEntity.openContainer.getCanCraft(this.playerEntity) && !this.playerEntity.isSpectator())
    {
        this.playerEntity.openContainer.enchantItem(this.playerEntity, packetIn.getButton());
        this.playerEntity.openContainer.detectAndSendChanges();
    }
}
项目:CustomWorldGen    文件:NetHandlerPlayServer.java   
/**
 * Enchants the item identified by the packet given some convoluted conditions (matching window, which
 * should/shouldn't be in use?)
 */
public void processEnchantItem(CPacketEnchantItem packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerWorld());
    this.playerEntity.markPlayerActive();

    if (this.playerEntity.openContainer.windowId == packetIn.getWindowId() && this.playerEntity.openContainer.getCanCraft(this.playerEntity) && !this.playerEntity.isSpectator())
    {
        this.playerEntity.openContainer.enchantItem(this.playerEntity, packetIn.getButton());
        this.playerEntity.openContainer.detectAndSendChanges();
    }
}
项目:ExpandedRailsMod    文件:NetHandlerPlayServer.java   
/**
 * Enchants the item identified by the packet given some convoluted conditions (matching window, which
 * should/shouldn't be in use?)
 */
public void processEnchantItem(CPacketEnchantItem packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerWorld());
    this.playerEntity.markPlayerActive();

    if (this.playerEntity.openContainer.windowId == packetIn.getWindowId() && this.playerEntity.openContainer.getCanCraft(this.playerEntity) && !this.playerEntity.isSpectator())
    {
        this.playerEntity.openContainer.enchantItem(this.playerEntity, packetIn.getButton());
        this.playerEntity.openContainer.detectAndSendChanges();
    }
}
项目:Zombe-Modpack    文件:PlayerControllerMP.java   
/**
 * GuiEnchantment uses this during multiplayer to tell PlayerControllerMP to send a packet indicating the
 * enchantment action the player has taken.
 */
public void sendEnchantPacket(int windowID, int button)
{
    this.connection.sendPacket(new CPacketEnchantItem(windowID, button));
}
项目:Backmemed    文件:PlayerControllerMP.java   
/**
 * GuiEnchantment uses this during multiplayer to tell PlayerControllerMP to send a packet indicating the
 * enchantment action the player has taken.
 */
public void sendEnchantPacket(int windowID, int button)
{
    this.connection.sendPacket(new CPacketEnchantItem(windowID, button));
}
项目:CustomWorldGen    文件:PlayerControllerMP.java   
/**
 * GuiEnchantment uses this during multiplayer to tell PlayerControllerMP to send a packet indicating the
 * enchantment action the player has taken.
 */
public void sendEnchantPacket(int windowID, int button)
{
    this.connection.sendPacket(new CPacketEnchantItem(windowID, button));
}
项目:CrystalMod    文件:FakeNetHandlerPlayServer.java   
@Override
public void processEnchantItem(CPacketEnchantItem p_147338_1_) {
}
项目:ExpandedRailsMod    文件:PlayerControllerMP.java   
/**
 * GuiEnchantment uses this during multiplayer to tell PlayerControllerMP to send a packet indicating the
 * enchantment action the player has taken.
 */
public void sendEnchantPacket(int windowID, int button)
{
    this.connection.sendPacket(new CPacketEnchantItem(windowID, button));
}
项目:EnderIO    文件:FakeNetHandlerPlayServer.java   
@Override
public void processEnchantItem(@Nonnull CPacketEnchantItem p_147338_1_) {
}
项目:DankNull    文件:NetServerHandlerFake.java   
@Override
public void processEnchantItem(CPacketEnchantItem packetIn) {

}
项目:Backmemed    文件:INetHandlerPlayServer.java   
/**
 * Enchants the item identified by the packet given some convoluted conditions (matching window, which
 * should/shouldn't be in use?)
 */
void processEnchantItem(CPacketEnchantItem packetIn);
项目:CustomWorldGen    文件:INetHandlerPlayServer.java   
/**
 * Enchants the item identified by the packet given some convoluted conditions (matching window, which
 * should/shouldn't be in use?)
 */
void processEnchantItem(CPacketEnchantItem packetIn);