Examples of PacketCoordinates


Examples of forestry.core.network.PacketCoordinates

        onFilterSet(packetN);
        break;

      // SERVER
      case PacketIds.PROP_REQUEST_FILTER_SET:
        PacketCoordinates packetC = new PacketCoordinates();
        packetC.readData(data);
        onRequestFilterSet(player, packetC);
        break;
      case PacketIds.PROP_SEND_FILTER_CHANGE_TYPE:
        packetU = new PacketUpdate();
        packetU.readData(data);
View Full Code Here

Examples of forestry.core.network.PacketCoordinates

  public boolean handleMouseClicked(int x, int y, int mouseButton) {

    if (isAccessButton(x, y)) {
      if (!Proxies.common.isSimulating(((TileEntity) tile).getWorldObj())) {
        TileEntity te = (TileEntity) tile;
        Proxies.net.sendToServer(new PacketCoordinates(PacketIds.ACCESS_SWITCH, te.xCoord, te.yCoord, te.zCoord));
      }

      tile.switchAccessRule(manager.minecraft.thePlayer);
      return true;
    }
View Full Code Here

Examples of forestry.core.network.PacketCoordinates

      genomeFilter[payload.intPayload[0]][payload.intPayload[1]][payload.intPayload[2]] = null;
  }

  // Client side
  public void requestFilterSet() {
    Proxies.net.sendToServer(new PacketCoordinates(PacketIds.PROP_REQUEST_FILTER_SET, pipe.container.xCoord, pipe.container.yCoord, pipe.container.zCoord));
  }
View Full Code Here

Examples of forestry.core.network.PacketCoordinates

    try {

      switch (packetID) {
      case PacketIds.HABITAT_BIOME_POINTER:
        PacketCoordinates packetC = new PacketCoordinates();
        packetC.readData(data);
        Proxies.common.setBiomefinderCoordinates(player, packetC.getCoordinates());
        break;
      case PacketIds.IMPRINT_SELECTION_GET:
        onImprintSelectionGet(player);
        break;
      }
View Full Code Here

Examples of forestry.core.network.PacketCoordinates

    player.dropPlayerItemWithRandomChoice(stack, true);
  }

  public void setBiomefinderCoordinates(EntityPlayer player, ChunkCoordinates coordinates) {
    if (coordinates != null)
      Forestry.packetHandler.sendPacket(new PacketCoordinates(PacketIds.HABITAT_BIOME_POINTER, coordinates).getPacket(), (EntityPlayerMP) player);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.