本文整理汇总了Java中org.bukkit.craftbukkit.event.CraftEventFactory.handleInventoryCloseEvent方法的典型用法代码示例。如果您正苦于以下问题:Java CraftEventFactory.handleInventoryCloseEvent方法的具体用法?Java CraftEventFactory.handleInventoryCloseEvent怎么用?Java CraftEventFactory.handleInventoryCloseEvent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.bukkit.craftbukkit.event.CraftEventFactory
的用法示例。
在下文中一共展示了CraftEventFactory.handleInventoryCloseEvent方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processCloseWindow
import org.bukkit.craftbukkit.event.CraftEventFactory; //导入方法依赖的package包/类
public void processCloseWindow(C0DPacketCloseWindow p_147356_1_)
{
if (this.playerEntity.isDead)
{
return; // CraftBukkit
}
// Cauldron start - vanilla compatibility
try
{
if (this.playerEntity.openContainer.getBukkitView() != null)
{
CraftEventFactory.handleInventoryCloseEvent(this.playerEntity); // CraftBukkit
}
}
catch (AbstractMethodError e)
{
// do nothing
}
// Cauldron end
this.playerEntity.closeContainer();
}
示例2: closeInventory
import org.bukkit.craftbukkit.event.CraftEventFactory; //导入方法依赖的package包/类
public void closeInventory() {
CraftEventFactory.handleInventoryCloseEvent(this); // CraftBukkit
this.playerConnection.sendPacket(new PacketPlayOutCloseWindow(this.activeContainer.windowId));
this.m();
}
示例3: closeInventory
import org.bukkit.craftbukkit.event.CraftEventFactory; //导入方法依赖的package包/类
public void closeInventory() {
CraftEventFactory.handleInventoryCloseEvent(this); // CraftBukkit
this.playerConnection.sendPacket(new Packet101CloseWindow(this.activeContainer.windowId));
this.k();
}
示例4: closeScreen
import org.bukkit.craftbukkit.event.CraftEventFactory; //导入方法依赖的package包/类
public void closeScreen()
{
CraftEventFactory.handleInventoryCloseEvent(this); // CraftBukkit
this.playerNetServerHandler.sendPacket(new S2EPacketCloseWindow(this.openContainer.windowId));
this.closeContainer();
}
示例5: a
import org.bukkit.craftbukkit.event.CraftEventFactory; //导入方法依赖的package包/类
public void a(PacketPlayInCloseWindow packetplayinclosewindow) {
if (this.player.dead) return; // CraftBukkit
CraftEventFactory.handleInventoryCloseEvent(this.player); // CraftBukkit
this.player.m();
}
示例6: handleContainerClose
import org.bukkit.craftbukkit.event.CraftEventFactory; //导入方法依赖的package包/类
public void handleContainerClose(Packet101CloseWindow packet101closewindow) {
if (this.player.dead) return; // CraftBukkit
CraftEventFactory.handleInventoryCloseEvent(this.player); // CraftBukkit
this.player.k();
}