类 TargetSearcher
java.lang.Object
mod.chloeprime.gunsmithlib.api.util.TargetSearcher
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Optional<net.minecraft.world.phys.Vec3> getEstimatedHitPos(net.minecraft.world.entity.LivingEntity shooter, net.minecraft.world.entity.Entity target, float partialTicks) static Optional<TargetSearcher.SearchResult> search(net.minecraft.world.entity.LivingEntity shooter, double range, double maxAngle, float partialTicks) static Optional<TargetSearcher.SearchResult>
-
字段详细资料
-
MAX_DISTANCE
public static final double MAX_DISTANCE- 另请参阅:
-
-
构造器详细资料
-
TargetSearcher
public TargetSearcher()
-
-
方法详细资料
-
search
public static Optional<TargetSearcher.SearchResult> search(net.minecraft.world.entity.LivingEntity shooter, GunInfo gun, float partialTicks) -
search
public static Optional<TargetSearcher.SearchResult> search(net.minecraft.world.entity.LivingEntity shooter, double range, double maxAngle, float partialTicks) - 参数:
maxAngle- 最大锁定角度,应该等于角范围的一半,且单位为弧度
-
getEstimatedHitPos
public static Optional<net.minecraft.world.phys.Vec3> getEstimatedHitPos(net.minecraft.world.entity.LivingEntity shooter, net.minecraft.world.entity.Entity target, float partialTicks)
-