Class SchematicSyncPacket

java.lang.Object
com.simibubi.create.foundation.networking.SimplePacketBase
com.simibubi.create.content.schematics.packet.SchematicSyncPacket

public class SchematicSyncPacket extends SimplePacketBase
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    net.minecraft.core.BlockPos
     
    boolean
     
    net.minecraft.world.level.block.Mirror
     
    net.minecraft.world.level.block.Rotation
     
    int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SchematicSyncPacket(int slot, net.minecraft.world.level.levelgen.structure.templatesystem.StructurePlaceSettings settings, net.minecraft.core.BlockPos anchor, boolean deployed)
     
    SchematicSyncPacket(net.minecraft.network.FriendlyByteBuf buffer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(Supplier<net.minecraftforge.network.NetworkEvent.Context> context)
     
    void
    write(net.minecraft.network.FriendlyByteBuf buffer)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • slot

      public int slot
    • deployed

      public boolean deployed
    • anchor

      public net.minecraft.core.BlockPos anchor
    • rotation

      public net.minecraft.world.level.block.Rotation rotation
    • mirror

      public net.minecraft.world.level.block.Mirror mirror
  • Constructor Details

    • SchematicSyncPacket

      public SchematicSyncPacket(int slot, net.minecraft.world.level.levelgen.structure.templatesystem.StructurePlaceSettings settings, net.minecraft.core.BlockPos anchor, boolean deployed)
    • SchematicSyncPacket

      public SchematicSyncPacket(net.minecraft.network.FriendlyByteBuf buffer)
  • Method Details

    • write

      public void write(net.minecraft.network.FriendlyByteBuf buffer)
      Specified by:
      write in class SimplePacketBase
    • handle

      public void handle(Supplier<net.minecraftforge.network.NetworkEvent.Context> context)
      Specified by:
      handle in class SimplePacketBase