Package baubles.common.network

Examples of baubles.common.network.PacketOpenBaublesInventory


  @SubscribeEvent
  public void guiPostAction(GuiScreenEvent.ActionPerformedEvent.Post event) {

    if (event.gui instanceof GuiInventory) {
      if (event.button.id == 55) {
        PacketHandler.INSTANCE.sendToServer(new PacketOpenBaublesInventory(event.gui.mc.thePlayer));
      }
    }
   
    if (event.gui instanceof GuiPlayerExpanded) {
      if (event.button.id == 55) {
View Full Code Here


  @SubscribeEvent
  public void playerTick(PlayerTickEvent event) {
    if (event.side == Side.SERVER) return;
    if (event.phase == Phase.START ) {
      if (key.getIsKeyPressed() && FMLClientHandler.instance().getClient().inGameHasFocus) {
          PacketHandler.INSTANCE.sendToServer(new PacketOpenBaublesInventory(event.player));
      }
    }
  }
View Full Code Here

TOP

Related Classes of baubles.common.network.PacketOpenBaublesInventory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.