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
Nested ClassesModifier and TypeClassDescriptionstatic enumUpdate action,UPDATE_DATAindicates nothing special.static enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final byteRequires the player to be in creative and have a permission level higher than 2. -
Constructor Summary
ConstructorsConstructorDescriptionClientUpdateStructureBlockPacket(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 aClientUpdateStructureBlockPacketrecord class.ClientUpdateStructureBlockPacket(@NotNull NetworkBuffer reader) -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.byteflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.floatReturns the value of theintegrityrecord component.location()Returns the value of thelocationrecord component.metadata()Returns the value of themetadatarecord component.mirror()Returns the value of themirrorrecord component.mode()Returns the value of themoderecord component.name()Returns the value of thenamerecord component.offset()Returns the value of theoffsetrecord component.rotation()Returns the value of therotationrecord component.longseed()Returns the value of theseedrecord component.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.voidwrite(@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 aClientUpdateStructureBlockPacketrecord class.- Parameters:
location- the value for thelocationrecord componentaction- the value for theactionrecord componentmode- the value for themoderecord componentname- the value for thenamerecord componentoffset- the value for theoffsetrecord componentsize- the value for thesizerecord componentmirror- the value for themirrorrecord componentrotation- the value for therotationrecord componentmetadata- the value for themetadatarecord componentintegrity- the value for theintegrityrecord componentseed- the value for theseedrecord componentflags- the value for theflagsrecord component
-
-
Method Details
-
write
- Specified by:
writein 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 thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
mirror
Returns the value of themirrorrecord component.- Returns:
- the value of the
mirrorrecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
integrity
public float integrity()Returns the value of theintegrityrecord component.- Returns:
- the value of the
integrityrecord component
-
seed
public long seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-