Ejemplo n.º 1
0
  private void sendChunk(final EntityPlayerMP player, final SchematicTransfer transfer) {
    transfer.setState(SchematicTransfer.State.CHUNK);

    Reference.logger.trace(
        "Sending chunk {},{},{}", transfer.baseX, transfer.baseY, transfer.baseZ);
    final MessageDownloadChunk message =
        new MessageDownloadChunk(
            transfer.schematic, transfer.baseX, transfer.baseY, transfer.baseZ);
    PacketHandler.INSTANCE.sendTo(message, player);
  }
Ejemplo n.º 2
0
 private void sendEnd(final EntityPlayerMP player, final SchematicTransfer transfer) {
   final MessageDownloadEnd message = new MessageDownloadEnd(transfer.name);
   PacketHandler.INSTANCE.sendTo(message, player);
 }
Ejemplo n.º 3
0
  private void sendBegin(final EntityPlayerMP player, final SchematicTransfer transfer) {
    transfer.setState(SchematicTransfer.State.BEGIN);

    final MessageDownloadBegin message = new MessageDownloadBegin(transfer.schematic);
    PacketHandler.INSTANCE.sendTo(message, player);
  }