Class RelativeBlockPosition
java.lang.Object
net.minestom.server.utils.location.RelativeLocation<BlockPosition>
net.minestom.server.utils.location.RelativeBlockPosition
public class RelativeBlockPosition extends RelativeLocation<BlockPosition>
Represents a relative
BlockPosition
.- See Also:
RelativeLocation
-
Field Summary
Fields inherited from class net.minestom.server.utils.location.RelativeLocation
location, relativeX, relativeY, relativeZ
-
Constructor Summary
Constructors Constructor Description RelativeBlockPosition(BlockPosition location, boolean relativeX, boolean relativeY, boolean relativeZ)
-
Method Summary
Modifier and Type Method Description BlockPosition
fromRelativePosition(Entity entity)
Gets the location based on the relative fields andentity
.Methods inherited from class net.minestom.server.utils.location.RelativeLocation
isRelativeX, isRelativeY, isRelativeZ
-
Constructor Details
-
RelativeBlockPosition
public RelativeBlockPosition(BlockPosition location, boolean relativeX, boolean relativeY, boolean relativeZ)
-
-
Method Details
-
fromRelativePosition
Description copied from class:RelativeLocation
Gets the location based on the relative fields andentity
.- Specified by:
fromRelativePosition
in classRelativeLocation<BlockPosition>
- Parameters:
entity
- the entity to get the relative position from- Returns:
- the location
-