Record Class SetBlockMessage.BlockHitResult
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.network.packet.client.SetBlockMessage.BlockHitResult
- Enclosing class:
SetBlockMessage
public static record SetBlockMessage.BlockHitResult(net.minestom.server.coordinate.Point blockPos, net.minestom.server.utils.Direction direction, net.minestom.server.coordinate.Point offset, boolean inside, boolean worldBorderHit)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<SetBlockMessage.BlockHitResult> -
Constructor Summary
ConstructorsConstructorDescriptionBlockHitResult(net.minestom.server.coordinate.Point blockPos, net.minestom.server.utils.Direction direction, net.minestom.server.coordinate.Point offset, boolean inside, boolean worldBorderHit) Creates an instance of aBlockHitResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minestom.server.coordinate.PointblockPos()Returns the value of theblockPosrecord component.net.minestom.server.utils.DirectionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleaninside()Returns the value of theinsiderecord component.net.minestom.server.coordinate.Pointoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theworldBorderHitrecord component.
-
Field Details
-
TYPE
public static final net.minestom.server.network.NetworkBuffer.Type<SetBlockMessage.BlockHitResult> TYPE
-
-
Constructor Details
-
BlockHitResult
public BlockHitResult(net.minestom.server.coordinate.Point blockPos, net.minestom.server.utils.Direction direction, net.minestom.server.coordinate.Point offset, boolean inside, boolean worldBorderHit) Creates an instance of aBlockHitResultrecord class.- Parameters:
blockPos- the value for theblockPosrecord componentdirection- the value for thedirectionrecord componentoffset- the value for theoffsetrecord componentinside- the value for theinsiderecord componentworldBorderHit- the value for theworldBorderHitrecord 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. -
blockPos
public net.minestom.server.coordinate.Point blockPos()Returns the value of theblockPosrecord component.- Returns:
- the value of the
blockPosrecord component
-
direction
public net.minestom.server.utils.Direction direction()Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
offset
public net.minestom.server.coordinate.Point offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
inside
public boolean inside()Returns the value of theinsiderecord component.- Returns:
- the value of the
insiderecord component
-
worldBorderHit
public boolean worldBorderHit()Returns the value of theworldBorderHitrecord component.- Returns:
- the value of the
worldBorderHitrecord component
-