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

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


  public static void updateHasItems(EntityLivingBase entity, PropertiesBackpack backpackData) {
    if (entity.worldObj.isRemote || !(entity instanceof EntityPlayer)) return;
    EntityPlayer player = (EntityPlayer)entity;
    boolean hasItems = ((backpackData.contents != null) && !StackUtils.isEmpty(backpackData.contents));
    if (backpackData.hasItems == hasItems) return;
    BetterStorage.networkChannel.sendTo(new PacketBackpackHasItems(hasItems), player);
    backpackData.hasItems = hasItems;
  }
View Full Code Here

TOP

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

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.