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 aDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable ComponentReturns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theignoreEntitiesrecord component.introtation()Returns the value of therotationrecord component.@NotNull Pointsize()Returns the value of thesizerecord component.status()Returns the value of thestatusrecord component.@Nullable Stringtest()Returns the value of thetestrecord component.final StringtoString()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 aDatarecord class.- Parameters:
test- the value for thetestrecord componentsize- the value for thesizerecord componentrotation- the value for therotationrecord componentignoreEntities- the value for theignoreEntitiesrecord componentstatus- the value for thestatusrecord componenterrorMessage- the value for theerrorMessagerecord 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 thetestrecord component.- Returns:
- the value of the
testrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
rotation
public int rotation()Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
ignoreEntities
public boolean ignoreEntities()Returns the value of theignoreEntitiesrecord component.- Returns:
- the value of the
ignoreEntitiesrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-