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

项目:DecompiledMinecraft    文件: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(C11PacketEnchantItem packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerForPlayer());
    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();
    }
}
项目:DecompiledMinecraft    文件: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(C11PacketEnchantItem packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerForPlayer());
    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();
    }
}
项目:BaseClient    文件: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(C11PacketEnchantItem packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerForPlayer());
    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();
    }
}
项目:BaseClient    文件: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(C11PacketEnchantItem packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerForPlayer());
    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();
    }
}
项目:Resilience-Client-Source    文件: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(C11PacketEnchantItem p_147338_1_)
{
    this.playerEntity.func_143004_u();

    if (this.playerEntity.openContainer.windowId == p_147338_1_.func_149539_c() && this.playerEntity.openContainer.isPlayerNotUsingContainer(this.playerEntity))
    {
        this.playerEntity.openContainer.enchantItem(this.playerEntity, p_147338_1_.func_149537_d());
        this.playerEntity.openContainer.detectAndSendChanges();
    }
}
项目:Cauldron    文件:NetHandlerPlayServer.java   
public void processEnchantItem(C11PacketEnchantItem p_147338_1_)
{
    this.playerEntity.func_143004_u();

    if (this.playerEntity.openContainer.windowId == p_147338_1_.func_149539_c() && this.playerEntity.openContainer.isPlayerNotUsingContainer(this.playerEntity))
    {
        this.playerEntity.openContainer.enchantItem(this.playerEntity, p_147338_1_.func_149537_d());
        this.playerEntity.openContainer.detectAndSendChanges();
    }
}
项目:Cauldron    文件:NetHandlerPlayServer.java   
public void processEnchantItem(C11PacketEnchantItem p_147338_1_)
{
    this.playerEntity.func_143004_u();

    if (this.playerEntity.openContainer.windowId == p_147338_1_.func_149539_c() && this.playerEntity.openContainer.isPlayerNotUsingContainer(this.playerEntity))
    {
        this.playerEntity.openContainer.enchantItem(this.playerEntity, p_147338_1_.func_149537_d());
        this.playerEntity.openContainer.detectAndSendChanges();
    }
}
项目:DecompiledMinecraft    文件: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 p_78756_1_, int p_78756_2_)
{
    this.netClientHandler.addToSendQueue(new C11PacketEnchantItem(p_78756_1_, p_78756_2_));
}
项目:BaseClient    文件: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 p_78756_1_, int p_78756_2_)
{
    this.netClientHandler.addToSendQueue(new C11PacketEnchantItem(p_78756_1_, p_78756_2_));
}
项目:BaseClient    文件: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 p_78756_1_, int p_78756_2_)
{
    this.netClientHandler.addToSendQueue(new C11PacketEnchantItem(p_78756_1_, p_78756_2_));
}
项目:4Space-5    文件:PlayerControllerMP.java   
public void sendEnchantPacket(int p_78756_1_, int p_78756_2_)
{
    this.netClientHandler.addToSendQueue(new C11PacketEnchantItem(p_78756_1_, p_78756_2_));
}
项目:Resilience-Client-Source    文件: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 par1, int par2)
{
    this.netClientHandler.addToSendQueue(new C11PacketEnchantItem(par1, par2));
}
项目:Gadomancy    文件:FakeNetServerHandler.java   
@Override
public void processEnchantItem(C11PacketEnchantItem p_147338_1_) {
}
项目:4Space-1.7    文件:PlayerControllerMP.java   
public void sendEnchantPacket(int p_78756_1_, int p_78756_2_)
{
    this.netClientHandler.addToSendQueue(new C11PacketEnchantItem(p_78756_1_, p_78756_2_));
}
项目:Cauldron    文件:PlayerControllerMP.java   
public void sendEnchantPacket(int p_78756_1_, int p_78756_2_)
{
    this.netClientHandler.addToSendQueue(new C11PacketEnchantItem(p_78756_1_, p_78756_2_));
}
项目:Cauldron    文件:PlayerControllerMP.java   
public void sendEnchantPacket(int p_78756_1_, int p_78756_2_)
{
    this.netClientHandler.addToSendQueue(new C11PacketEnchantItem(p_78756_1_, p_78756_2_));
}
项目:DecompiledMinecraft    文件:INetHandlerPlayServer.java   
/**
 * Enchants the item identified by the packet given some convoluted conditions (matching window, which
 * should/shouldn't be in use?)
 */
void processEnchantItem(C11PacketEnchantItem packetIn);
项目:DecompiledMinecraft    文件:INetHandlerPlayServer.java   
/**
 * Enchants the item identified by the packet given some convoluted conditions (matching window, which
 * should/shouldn't be in use?)
 */
void processEnchantItem(C11PacketEnchantItem packetIn);
项目:BaseClient    文件:INetHandlerPlayServer.java   
/**
 * Enchants the item identified by the packet given some convoluted conditions (matching window, which
 * should/shouldn't be in use?)
 */
void processEnchantItem(C11PacketEnchantItem packetIn);
项目:BaseClient    文件:INetHandlerPlayServer.java   
/**
 * Enchants the item identified by the packet given some convoluted conditions (matching window, which
 * should/shouldn't be in use?)
 */
void processEnchantItem(C11PacketEnchantItem packetIn);
项目:Resilience-Client-Source    文件:INetHandlerPlayServer.java   
/**
 * Enchants the item identified by the packet given some convoluted conditions (matching window, which
 * should/shouldn't be in use?)
 */
void processEnchantItem(C11PacketEnchantItem var1);
项目:Cauldron    文件:INetHandlerPlayServer.java   
void processEnchantItem(C11PacketEnchantItem p_147338_1_);
项目:Cauldron    文件:INetHandlerPlayServer.java   
void processEnchantItem(C11PacketEnchantItem p_147338_1_);