Package baubles.common.network

Examples of baubles.common.network.PacketSyncBauble


  }

  public void syncSlotToClients(int slot) {
    try {
      if (Baubles.proxy.getClientWorld() == null) {
        PacketHandler.INSTANCE.sendToAll(new PacketSyncBauble(player
            .get(), slot));
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here


    String current = ItemNBTHelper.getString(stack, TAG_POSITIONS, "");
    String positions = positionsBuilder.toString();
    if(!current.equals(positions)) {
      ItemNBTHelper.setString(stack, TAG_POSITIONS, positions);
      PacketHandler.INSTANCE.sendToAll(new PacketSyncBauble(player, 0));
    }
  }
View Full Code Here

    for(int i = 0; i < inv.getSizeInventory(); i++) {
      ItemStack stack = inv.getStackInSlot(i);
      if(stack != null && stack.getItem() == this) {
        setCooldown(stack, 100);
        if(event.player instanceof EntityPlayerMP)
          PacketHandler.INSTANCE.sendTo(new PacketSyncBauble(event.player, i), (EntityPlayerMP) event.player);
      }
    }
  }
View Full Code Here

TOP

Related Classes of baubles.common.network.PacketSyncBauble

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.