Package org.core.world.position.impl
Interface BlockPosition
- All Known Subinterfaces:
ASyncBlockPosition
,SyncBlockPosition
-
Method Summary
Modifier and TypeMethodDescriptiondefault Set<LiveEntity>
Deprecated, for removal: This API element is subject to removal in a future version.default Stream<LiveEntity>
default ExactPosition
getRelative(double x, double y, double z)
getRelative(int x, int y, int z)
getRelative(Vector3<?> vector)
default BlockPosition
getRelative(Direction direction)
default boolean
isInLineOfSight(int x, int y, int z, FourFacingDirection direction)
default boolean
isInLineOfSight(int x, int y, int z, FourFacingDirection direction, Collection<BlockDetails> ignored)
default boolean
isInLineOfSight(int x, int y, int z, FourFacingDirection direction, BlockDetails... details)
default boolean
isInLineOfSight(Vector3<Integer> vector, FourFacingDirection direction)
default boolean
isInLineOfSight(Vector3<Integer> vector, FourFacingDirection direction, Collection<BlockDetails> ignored)
default boolean
isInLineOfSight(Vector3<Integer> vector, FourFacingDirection direction, BlockDetails... details)
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface org.core.world.position.impl.Position
getBlockDetails, getBlockType, getChunkPosition, getPosition, getWorld, getX, getY, getZ, toBlockPosition, toExactPosition
-
Method Details
-
toSyncPosition
SyncBlockPosition toSyncPosition()- Specified by:
toSyncPosition
in interfacePosition<Integer>
-
toAsyncPosition
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
toAsyncPosition
in interfacePosition<Integer>
-
getRelative
- Specified by:
getRelative
in interfacePosition<Integer>
-
getRelative
- Specified by:
getRelative
in interfacePosition<Integer>
-
getRelative
- Specified by:
getRelative
in interfacePosition<Integer>
-
getRelative
- Specified by:
getRelative
in interfacePosition<Integer>
-
getAttachedEntities
Deprecated, for removal: This API element is subject to removal in a future version. -
getAttachedLiveEntities
-
isInLineOfSight
-
isInLineOfSight
default boolean isInLineOfSight(Vector3<Integer> vector, FourFacingDirection direction, BlockDetails... details) -
isInLineOfSight
default boolean isInLineOfSight(Vector3<Integer> vector, FourFacingDirection direction, Collection<BlockDetails> ignored) -
isInLineOfSight
-
isInLineOfSight
default boolean isInLineOfSight(int x, int y, int z, FourFacingDirection direction, BlockDetails... details) -
isInLineOfSight
default boolean isInLineOfSight(int x, int y, int z, FourFacingDirection direction, Collection<BlockDetails> ignored)
-