本文整理汇总了Java中net.minecraft.network.play.client.CPacketEnchantItem类的典型用法代码示例。如果您正苦于以下问题:Java CPacketEnchantItem类的具体用法?Java CPacketEnchantItem怎么用?Java CPacketEnchantItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CPacketEnchantItem类属于net.minecraft.network.play.client包,在下文中一共展示了CPacketEnchantItem类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: processEnchantItem
import net.minecraft.network.play.client.CPacketEnchantItem; //导入依赖的package包/类
/**
* 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();
}
}
开发者ID:NSExceptional,项目名称:Zombe-Modpack,代码行数:16,代码来源:NetHandlerPlayServer.java
示例2: sendEnchantPacket
import net.minecraft.network.play.client.CPacketEnchantItem; //导入依赖的package包/类
/**
* 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));
}
开发者ID:NSExceptional,项目名称:Zombe-Modpack,代码行数:9,代码来源:PlayerControllerMP.java
示例3: processEnchantItem
import net.minecraft.network.play.client.CPacketEnchantItem; //导入依赖的package包/类
@Override
public void processEnchantItem(CPacketEnchantItem p_147338_1_) {
}
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:4,代码来源:FakeNetHandlerPlayServer.java
示例4: processEnchantItem
import net.minecraft.network.play.client.CPacketEnchantItem; //导入依赖的package包/类
@Override
public void processEnchantItem(@Nonnull CPacketEnchantItem p_147338_1_) {
}
开发者ID:SleepyTrousers,项目名称:EnderIO,代码行数:4,代码来源:FakeNetHandlerPlayServer.java
示例5: processEnchantItem
import net.minecraft.network.play.client.CPacketEnchantItem; //导入依赖的package包/类
@Override
public void processEnchantItem(CPacketEnchantItem packetIn) {
}
开发者ID:p455w0rd,项目名称:DankNull,代码行数:5,代码来源:NetServerHandlerFake.java
示例6: processEnchantItem
import net.minecraft.network.play.client.CPacketEnchantItem; //导入依赖的package包/类
/**
* Enchants the item identified by the packet given some convoluted conditions (matching window, which
* should/shouldn't be in use?)
*/
void processEnchantItem(CPacketEnchantItem packetIn);
开发者ID:sudofox,项目名称:Backmemed,代码行数:6,代码来源:INetHandlerPlayServer.java
注:本文中的net.minecraft.network.play.client.CPacketEnchantItem类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论