Record Class TestInstanceBlockEntity
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.level.block.TestInstanceBlockEntity
-
Constructor Summary
ConstructorsConstructorDescriptionTestInstanceBlockEntity(@Nullable String 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 Stringtest()Returns the value of thetestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TestInstanceBlockEntity
public TestInstanceBlockEntity(@Nullable @Nullable String 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
-
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
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
-