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, @NotNull Point size, int rotation, boolean ignoreEntities, @NotNull ClientTestInstanceBlockActionPacket.Status status, @Nullable Component errorMessage)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NetworkBuffer.Type
<ClientTestInstanceBlockActionPacket.Data> -
Constructor Summary
ConstructorsConstructorDescriptionData
(@Nullable String test, @NotNull Point size, int rotation, boolean ignoreEntities, @NotNull 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.@NotNull Point
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
@NotNull public static final NetworkBuffer.Type<ClientTestInstanceBlockActionPacket.Data> NETWORK_TYPE
-
-
Constructor Details
-
Data
public Data(@Nullable @Nullable String test, @NotNull @NotNull Point size, int rotation, boolean ignoreEntities, @NotNull @NotNull 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
-
hashCode
-
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 thecompare
method from their corresponding wrapper classes. -
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
-