Class RaycastHelper
java.lang.Object
com.zenith.feature.player.raycast.RaycastHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockOrEntityRaycastResultblockOrEntityRaycastFromPos(double x, double y, double z, float yaw, float pitch, double blockReachDistance, double entityReachDistance) static BlockRaycastResultblockRaycast(double x1, double y1, double z1, double x2, double y2, double z2, boolean includeFluids) static BlockRaycastResultblockRaycastFromPos(double x, double y, double z, double yaw, double pitch, double maxDistance, boolean includeFluids) static EntityRaycastResultentityRaycastFromPos(double x, double y, double z, float yaw, float pitch, double maxDistance) static BlockOrEntityRaycastResultplayerBlockOrEntityRaycast(double blockReachDistance, double entityReachDistance) static BlockRaycastResultplayerBlockRaycast(double maxDistance, boolean includeFluids) static EntityRaycastResultplayerEntityRaycast(double maxDistance) static BlockRaycastResultplayerEyeRaycastThroughToBlockTarget(int blockX, int blockY, int blockZ) static BlockRaycastResultplayerEyeRaycastThroughToBlockTarget(int blockX, int blockY, int blockZ, float yaw, float pitch) static BlockRaycastResultplayerEyeRaycastThroughToBlockTarget(int blockX, int blockY, int blockZ, float yaw, float pitch, double blockReachDistance) static EntityRaycastResultstatic EntityRaycastResultplayerEyeRaycastThroughToTarget(Entity target, double entityReachDistance) static EntityRaycastResultplayerEyeRaycastThroughToTarget(Entity target, float yaw, float pitch) static EntityRaycastResultplayerEyeRaycastThroughToTarget(Entity target, float yaw, float pitch, double entityReachDistance)
-
Constructor Details
-
RaycastHelper
public RaycastHelper()
-
-
Method Details
-
playerBlockRaycast
-
blockRaycastFromPos
public static BlockRaycastResult blockRaycastFromPos(double x, double y, double z, double yaw, double pitch, double maxDistance, boolean includeFluids) -
blockRaycast
public static BlockRaycastResult blockRaycast(double x1, double y1, double z1, double x2, double y2, double z2, boolean includeFluids) -
playerEyeRaycastThroughToBlockTarget
public static BlockRaycastResult playerEyeRaycastThroughToBlockTarget(int blockX, int blockY, int blockZ) -
playerEyeRaycastThroughToBlockTarget
public static BlockRaycastResult playerEyeRaycastThroughToBlockTarget(int blockX, int blockY, int blockZ, float yaw, float pitch) -
playerEyeRaycastThroughToBlockTarget
public static BlockRaycastResult playerEyeRaycastThroughToBlockTarget(int blockX, int blockY, int blockZ, float yaw, float pitch, double blockReachDistance) -
playerEntityRaycast
-
entityRaycastFromPos
public static EntityRaycastResult entityRaycastFromPos(double x, double y, double z, float yaw, float pitch, double maxDistance) -
playerEyeRaycastThroughToTarget
public static EntityRaycastResult playerEyeRaycastThroughToTarget(Entity target, double entityReachDistance) -
playerEyeRaycastThroughToTarget
-
playerEyeRaycastThroughToTarget
public static EntityRaycastResult playerEyeRaycastThroughToTarget(Entity target, float yaw, float pitch, double entityReachDistance) -
playerEyeRaycastThroughToTarget
public static EntityRaycastResult playerEyeRaycastThroughToTarget(Entity target, float yaw, float pitch) -
playerBlockOrEntityRaycast
public static BlockOrEntityRaycastResult playerBlockOrEntityRaycast(double blockReachDistance, double entityReachDistance) -
blockOrEntityRaycastFromPos
public static BlockOrEntityRaycastResult blockOrEntityRaycastFromPos(double x, double y, double z, float yaw, float pitch, double blockReachDistance, double entityReachDistance)
-