Record Class TestCommand.Info
java.lang.Object
java.lang.Record
net.minecraft.gametest.framework.TestCommand.Info
- Enclosing class:
TestCommand
private static record TestCommand.Info(@Nullable ServerPlayer player, BlockPos playerPos, BlockPos testPos, int surfaceY)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable ServerPlayerThe field for theplayerrecord component.private final BlockPosThe field for theplayerPosrecord component.private final intThe field for thesurfaceYrecord component.private final BlockPosThe field for thetestPosrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInfo(@Nullable ServerPlayer player, BlockPos playerPos, BlockPos testPos, int surfaceY) Creates an instance of aInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.player()Returns the value of theplayerrecord component.Returns the value of theplayerPosrecord component.intsurfaceY()Returns the value of thesurfaceYrecord component.testPos()Returns the value of thetestPosrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
player
The field for theplayerrecord component. -
playerPos
The field for theplayerPosrecord component. -
testPos
The field for thetestPosrecord component. -
surfaceY
private final int surfaceYThe field for thesurfaceYrecord component.
-
-
Constructor Details
-
Info
Creates an instance of aInforecord class.- Parameters:
player- the value for theplayerrecord componentplayerPos- the value for theplayerPosrecord componenttestPos- the value for thetestPosrecord componentsurfaceY- the value for thesurfaceYrecord 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. -
player
Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
playerPos
Returns the value of theplayerPosrecord component.- Returns:
- the value of the
playerPosrecord component
-
testPos
Returns the value of thetestPosrecord component.- Returns:
- the value of the
testPosrecord component
-
surfaceY
public int surfaceY()Returns the value of thesurfaceYrecord component.- Returns:
- the value of the
surfaceYrecord component
-