Record Class TestInstanceBlockEntity
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.level.block.TestInstanceBlockEntity
public record TestInstanceBlockEntity(@Nullable net.kyori.adventure.key.Key test, org.cloudburstmc.math.vector.Vector3i size, int rotation, boolean ignoreEntities, int status, @Nullable net.kyori.adventure.text.Component errorMessage)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTestInstanceBlockEntity(@Nullable net.kyori.adventure.key.Key test, org.cloudburstmc.math.vector.Vector3i size, int rotation, boolean ignoreEntities, int status, @Nullable net.kyori.adventure.text.Component errorMessage) Creates an instance of aTestInstanceBlockEntityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable net.kyori.adventure.text.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.org.cloudburstmc.math.vector.Vector3isize()Returns the value of thesizerecord component.intstatus()Returns the value of thestatusrecord component.@Nullable net.kyori.adventure.key.Keytest()Returns the value of thetestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TestInstanceBlockEntity
public TestInstanceBlockEntity(@Nullable @Nullable net.kyori.adventure.key.Key test, org.cloudburstmc.math.vector.Vector3i size, int rotation, boolean ignoreEntities, int status, @Nullable @Nullable net.kyori.adventure.text.Component errorMessage) Creates an instance of aTestInstanceBlockEntityrecord 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
@Nullable public @Nullable net.kyori.adventure.key.Key test()Returns the value of thetestrecord component.- Returns:
- the value of the
testrecord component
-
size
public org.cloudburstmc.math.vector.Vector3i 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
public int status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
errorMessage
@Nullable public @Nullable net.kyori.adventure.text.Component errorMessage()Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-