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

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


    Block block = world.getBlock(x, y, z);
    if (!block.isReplaceable(world, x, y, z)) return false;
    if (!canFloat && !world.isSideSolid(x, y - 1, z, ForgeDirection.UP)) return false;
   
    BetterStorage.networkChannel.sendToAllAround(
        new PacketBackpackTeleport(sourceX, sourceY, sourceZ, x, y, z),
        world, sourceX + 0.5, sourceY + 0.5, sourceZ + 0.5, 256);
   
    world.playSoundEffect(sourceX + 0.5, sourceY + 0.5, sourceZ + 0.5,
                          "mob.endermen.portal", 1.0F, 1.0F);
    world.playSoundEffect(x + 0.5, y + 0.5, z + 0.5,
View Full Code Here


          new ItemStack(BetterStorageItems.itemEnderBackpack);
      double px = x + 0.5;
      double py = y + 0.5;
      double pz = z + 0.5;
      BetterStorage.networkChannel.sendToAllAround(
          new PacketBackpackTeleport(px, py, pz, x, y, z),
          worldObj, px, py, pz, 256);
      worldObj.playSoundEffect(px, py, pz, "mob.endermen.portal", 1.0F, 1.0F);
    }
  }
View Full Code Here

TOP

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

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.