Class WrapperPlayClientGenerateStructure

java.lang.Object
com.github.retrooper.packetevents.wrapper.PacketWrapper<WrapperPlayClientGenerateStructure>
com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientGenerateStructure

public class WrapperPlayClientGenerateStructure extends PacketWrapper<WrapperPlayClientGenerateStructure>
This packet is sent when Generate is pressed on the Jigsaw Block interface.
  • Constructor Details

    • WrapperPlayClientGenerateStructure

      public WrapperPlayClientGenerateStructure(PacketReceiveEvent event)
    • WrapperPlayClientGenerateStructure

      public WrapperPlayClientGenerateStructure(Vector3i blockPosition, int levels, boolean keepJigsaws)
  • Method Details

    • read

      public void read()
      Overrides:
      read in class PacketWrapper<WrapperPlayClientGenerateStructure>
    • write

      public void write()
      Overrides:
      write in class PacketWrapper<WrapperPlayClientGenerateStructure>
    • copy

      public void copy(WrapperPlayClientGenerateStructure wrapper)
      Overrides:
      copy in class PacketWrapper<WrapperPlayClientGenerateStructure>
    • getBlockPosition

      public Vector3i getBlockPosition()
      The block location of the entity.
      Returns:
      Block location
    • setBlockPosition

      public void setBlockPosition(Vector3i blockPosition)
      Modify the block location of the entity.
      Parameters:
      blockPosition - Block location
    • getLevels

      public int getLevels()
      Value of the levels' slider/max depth to generate.
      Returns:
      Levels
    • setLevels

      public void setLevels(int levels)
      Modify levels.
      Parameters:
      levels - Levels
    • isKeepingJigsaws

      public boolean isKeepingJigsaws()
      Should we keep the Jigsaws?
      Returns:
      Keep Jigsaws
    • setKeepJigsaws

      public void setKeepJigsaws(boolean keepJigsaws)
      Should we keep the Jigsaws?
      Parameters:
      keepJigsaws - Keep Jigsaws