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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Update action,UPDATE_DATA
indicates nothing special.static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
Requires the player to be in creative and have a permission level higher than 2. -
Constructor Summary
ConstructorDescriptionClientUpdateStructureBlockPacket
(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 aClientUpdateStructureBlockPacket
record class.ClientUpdateStructureBlockPacket
(@NotNull NetworkBuffer reader) -
Method Summary
Modifier and TypeMethodDescriptionaction()
Returns the value of theaction
record component.final boolean
Indicates whether some other object is "equal to" this one.byte
flags()
Returns the value of theflags
record component.final int
hashCode()
Returns a hash code value for this object.float
Returns the value of theintegrity
record component.location()
Returns the value of thelocation
record component.metadata()
Returns the value of themetadata
record component.mirror()
Returns the value of themirror
record component.mode()
Returns the value of themode
record component.name()
Returns the value of thename
record component.offset()
Returns the value of theoffset
record component.rotation()
Returns the value of therotation
record component.long
seed()
Returns the value of theseed
record component.size()
Returns the value of thesize
record component.final String
toString()
Returns a string representation of this record class.void
write
(@NotNull NetworkBuffer writer)
-
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_BOXRequires the player to be in creative and have a permission level higher than 2.- See Also:
-
-
Constructor Details
-
ClientUpdateStructureBlockPacket
-
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 aClientUpdateStructureBlockPacket
record class.- Parameters:
location
- the value for thelocation
record componentaction
- the value for theaction
record componentmode
- the value for themode
record componentname
- the value for thename
record componentoffset
- the value for theoffset
record componentsize
- the value for thesize
record componentmirror
- the value for themirror
record componentrotation
- the value for therotation
record componentmetadata
- the value for themetadata
record componentintegrity
- the value for theintegrity
record componentseed
- the value for theseed
record componentflags
- the value for theflags
record component
-
-
Method Details
-
write
- Specified by:
write
in interfaceNetworkBuffer.Writer
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
location
Returns the value of thelocation
record component.- Returns:
- the value of the
location
record component
-
action
Returns the value of theaction
record component.- Returns:
- the value of the
action
record component
-
mode
Returns the value of themode
record component.- Returns:
- the value of the
mode
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
offset
Returns the value of theoffset
record component.- Returns:
- the value of the
offset
record component
-
size
Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
mirror
Returns the value of themirror
record component.- Returns:
- the value of the
mirror
record component
-
rotation
Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
metadata
Returns the value of themetadata
record component.- Returns:
- the value of the
metadata
record component
-
integrity
public float integrity()Returns the value of theintegrity
record component.- Returns:
- the value of the
integrity
record component
-
seed
public long seed()Returns the value of theseed
record component.- Returns:
- the value of the
seed
record component
-
flags
public byte flags()Returns the value of theflags
record component.- Returns:
- the value of the
flags
record component
-