Record Class ClientUpdateStructureBlockPacket

java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientUpdateStructureBlockPacket
All Implemented Interfaces:
NetworkBuffer.Writer, ClientPacket

public record ClientUpdateStructureBlockPacket(Point location, ClientUpdateStructureBlockPacket.Action action, ClientUpdateStructureBlockPacket.Mode mode, String name, Point offset, Point size, ClientUpdateStructureBlockPacket.Mirror mirror, Rotation rotation, String metadata, float integrity, long seed, byte flags) extends Record implements ClientPacket
  • Field Details

    • IGNORE_ENTITIES

      public static final byte IGNORE_ENTITIES
      See Also:
    • SHOW_AIR

      public static final byte SHOW_AIR
      See Also:
    • SHOW_BOUNDING_BOX

      public static final byte SHOW_BOUNDING_BOX
      Requires the player to be in creative and have a permission level higher than 2.
      See Also:
  • Constructor Details

    • ClientUpdateStructureBlockPacket

      public ClientUpdateStructureBlockPacket(@NotNull @NotNull NetworkBuffer reader)
    • ClientUpdateStructureBlockPacket

      public ClientUpdateStructureBlockPacket(Point location, ClientUpdateStructureBlockPacket.Action action, ClientUpdateStructureBlockPacket.Mode mode, String name, Point offset, Point size, ClientUpdateStructureBlockPacket.Mirror mirror, Rotation rotation, String metadata, float integrity, long seed, byte flags)
      Creates an instance of a ClientUpdateStructureBlockPacket record class.
      Parameters:
      location - the value for the location record component
      action - the value for the action record component
      mode - the value for the mode record component
      name - the value for the name record component
      offset - the value for the offset record component
      size - the value for the size record component
      mirror - the value for the mirror record component
      rotation - the value for the rotation record component
      metadata - the value for the metadata record component
      integrity - the value for the integrity record component
      seed - the value for the seed record component
      flags - the value for the flags record component
  • Method Details

    • write

      public void write(@NotNull @NotNull NetworkBuffer writer)
      Specified by:
      write in interface NetworkBuffer.Writer
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • location

      public Point location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • action

      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • mode

      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • offset

      public Point offset()
      Returns the value of the offset record component.
      Returns:
      the value of the offset record component
    • size

      public Point size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • mirror

      Returns the value of the mirror record component.
      Returns:
      the value of the mirror record component
    • rotation

      public Rotation rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • metadata

      public String metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component
    • integrity

      public float integrity()
      Returns the value of the integrity record component.
      Returns:
      the value of the integrity record component
    • seed

      public long seed()
      Returns the value of the seed record component.
      Returns:
      the value of the seed record component
    • flags

      public byte flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component