Module net.minestom.server
Record Class ClientTestInstanceBlockActionPacket.Data
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientTestInstanceBlockActionPacket.Data
- Enclosing class:
ClientTestInstanceBlockActionPacket
public static record ClientTestInstanceBlockActionPacket.Data(@Nullable String test, Point size, int rotation, boolean ignoreEntities, ClientTestInstanceBlockActionPacket.Status status, @Nullable Component errorMessage)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NetworkBuffer.Type
<ClientTestInstanceBlockActionPacket.Data> -
Constructor Summary
ConstructorsConstructorDescriptionData
(@Nullable String test, Point size, int rotation, boolean ignoreEntities, ClientTestInstanceBlockActionPacket.Status status, @Nullable Component errorMessage) Creates an instance of aData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.@Nullable Component
Returns the value of theerrorMessage
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theignoreEntities
record component.int
rotation()
Returns the value of therotation
record component.size()
Returns the value of thesize
record component.status()
Returns the value of thestatus
record component.@Nullable String
test()
Returns the value of thetest
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
NETWORK_TYPE
-
-
Constructor Details
-
Data
public Data(@Nullable @Nullable String test, Point size, int rotation, boolean ignoreEntities, ClientTestInstanceBlockActionPacket.Status status, @Nullable @Nullable Component errorMessage) Creates an instance of aData
record class.- Parameters:
test
- the value for thetest
record componentsize
- the value for thesize
record componentrotation
- the value for therotation
record componentignoreEntities
- the value for theignoreEntities
record componentstatus
- the value for thestatus
record componenterrorMessage
- the value for theerrorMessage
record component
-
-
Method Details
-
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 '=='. -
test
Returns the value of thetest
record component.- Returns:
- the value of the
test
record component
-
size
Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
rotation
public int rotation()Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
ignoreEntities
public boolean ignoreEntities()Returns the value of theignoreEntities
record component.- Returns:
- the value of the
ignoreEntities
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
errorMessage
Returns the value of theerrorMessage
record component.- Returns:
- the value of the
errorMessage
record component
-