Record Class ClientTestInstanceBlockActionPacket.Data
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientTestInstanceBlockActionPacket.Data
- Enclosing class:
ClientTestInstanceBlockActionPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NetworkBuffer.Type<ClientTestInstanceBlockActionPacket.Data> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns 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.size()Returns the value of thesizerecord component.status()Returns the value of thestatusrecord component.test()Returns the value of thetestrecord component.final StringtoString()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 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
-
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 thecomparemethod from their corresponding wrapper classes. -
test
-
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
-