Record Class BlockPlaceContext
java.lang.Object
java.lang.Record
fr.fidorial.world.block.BlockPlaceContext
public record BlockPlaceContext(BlockPos pos, BlockFace clickedFace, Location placer, BlockGetter world)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockPlaceContext(BlockPos pos, BlockFace clickedFace, Location placer, BlockGetter world) Creates an instance of aBlockPlaceContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclickedFacerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanplacer()Returns the value of theplacerrecord component.pos()Returns the value of theposrecord component.replaced()final StringtoString()Returns a string representation of this record class.world()Returns the value of theworldrecord component.
-
Constructor Details
-
BlockPlaceContext
Creates an instance of aBlockPlaceContextrecord class.- Parameters:
pos- the value for theposrecord componentclickedFace- the value for theclickedFacerecord componentplacer- the value for theplacerrecord componentworld- the value for theworldrecord component
-
-
Method Details
-
horizontalFacing
-
lookingDirection
-
replaced
-
relative
-
intoWater
public boolean intoWater() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
clickedFace
Returns the value of theclickedFacerecord component.- Returns:
- the value of the
clickedFacerecord component
-
placer
Returns the value of theplacerrecord component.- Returns:
- the value of the
placerrecord component
-
world
Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-