Package net.mcft.copy.betterstorage.network.packet

Examples of net.mcft.copy.betterstorage.network.packet.PacketBackpackIsOpen


        entity.worldObj.playSoundEffect(entity.posX, entity.posY, entity.posZ, sound, 0.8F, 0.4F);
     
      boolean isOpen = (playersUsing > 0);
      if (isOpen != (prevPlayersUsing > 0)) {
        BetterStorage.networkChannel.sendToAndAllTracking(
            new PacketBackpackIsOpen(entity.getEntityId(), isOpen), entity);
        prevPlayersUsing = playersUsing;
      }
      if (!ItemStack.areItemStacksEqual(backpack, prevBackpack)) {
        BetterStorage.networkChannel.sendToAndAllTracking(
            new PacketBackpackStack(entity.getEntityId(), backpack), entity);
View Full Code Here


 
  public void sendDataToPlayer(EntityLivingBase entity, EntityPlayer player) {
    // Sends any backpack data to the player.
    if (playersUsing > 0)
      BetterStorage.networkChannel.sendTo(
          new PacketBackpackIsOpen(entity.getEntityId(), true), player);
    if (backpack != null)
      BetterStorage.networkChannel.sendTo(
          new PacketBackpackStack(entity.getEntityId(), backpack), player);
  }
View Full Code Here

TOP

Related Classes of net.mcft.copy.betterstorage.network.packet.PacketBackpackIsOpen

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.