Package net.minecraft.entity.projectile
Class ProjectileUtil
java.lang.Object
net.minecraft.entity.projectile.ProjectileUtil
- Mappings:
Namespace Name named net/minecraft/entity/projectile/ProjectileUtil
intermediary net/minecraft/class_1675
official cqr
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PersistentProjectileEntity
createArrowProjectile
(LivingEntity entity, ItemStack stack, float damageModifier, @Nullable ItemStack bow) static HitResult
getCollision
(Entity entity, Predicate<Entity> predicate) static HitResult
getCollision
(Entity entity, Predicate<Entity> predicate, double range) static HitResult
getCollision
(Entity entity, Predicate<Entity> predicate, RaycastContext.ShapeType raycastShapeType) private static HitResult
getCollision
(Vec3d pos, Entity entity, Predicate<Entity> predicate, Vec3d velocity, World world, float margin, RaycastContext.ShapeType raycastShapeType) static @Nullable EntityHitResult
getEntityCollision
(World world, Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate) static @Nullable EntityHitResult
getEntityCollision
(World world, Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, float margin) static Hand
getHandPossiblyHolding
(LivingEntity entity, Item item) static @Nullable EntityHitResult
raycast
(Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, double maxDistance) static void
setRotationFromVelocity
(Entity entity, float delta)
-
Field Details
-
DEFAULT_MARGIN
private static final float DEFAULT_MARGIN- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_MARGIN
Lnet/minecraft/entity/projectile/ProjectileUtil;DEFAULT_MARGIN:F
intermediary field_46654
Lnet/minecraft/class_1675;field_46654:F
official a
Lcqr;a:F
-
-
Constructor Details
-
ProjectileUtil
public ProjectileUtil()
-
-
Method Details
-
getCollision
- Mappings:
Namespace Name Mixin selector named getCollision
Lnet/minecraft/entity/projectile/ProjectileUtil;getCollision(Lnet/minecraft/entity/Entity;Ljava/util/function/Predicate;)Lnet/minecraft/util/hit/HitResult;
intermediary method_49997
Lnet/minecraft/class_1675;method_49997(Lnet/minecraft/class_1297;Ljava/util/function/Predicate;)Lnet/minecraft/class_239;
official a
Lcqr;a(Lbvj;Ljava/util/function/Predicate;)Lfbv;
-
getCollision
public static HitResult getCollision(Entity entity, Predicate<Entity> predicate, RaycastContext.ShapeType raycastShapeType) - Mappings:
Namespace Name Mixin selector named getCollision
Lnet/minecraft/entity/projectile/ProjectileUtil;getCollision(Lnet/minecraft/entity/Entity;Ljava/util/function/Predicate;Lnet/minecraft/world/RaycastContext$ShapeType;)Lnet/minecraft/util/hit/HitResult;
intermediary method_55054
Lnet/minecraft/class_1675;method_55054(Lnet/minecraft/class_1297;Ljava/util/function/Predicate;Lnet/minecraft/class_3959$class_3960;)Lnet/minecraft/class_239;
official a
Lcqr;a(Lbvj;Ljava/util/function/Predicate;Ldgp$a;)Lfbv;
-
getCollision
- Mappings:
Namespace Name Mixin selector named getCollision
Lnet/minecraft/entity/projectile/ProjectileUtil;getCollision(Lnet/minecraft/entity/Entity;Ljava/util/function/Predicate;D)Lnet/minecraft/util/hit/HitResult;
intermediary method_49998
Lnet/minecraft/class_1675;method_49998(Lnet/minecraft/class_1297;Ljava/util/function/Predicate;D)Lnet/minecraft/class_239;
official a
Lcqr;a(Lbvj;Ljava/util/function/Predicate;D)Lfbv;
-
getCollision
private static HitResult getCollision(Vec3d pos, Entity entity, Predicate<Entity> predicate, Vec3d velocity, World world, float margin, RaycastContext.ShapeType raycastShapeType) - Mappings:
Namespace Name Mixin selector named getCollision
Lnet/minecraft/entity/projectile/ProjectileUtil;getCollision(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;Ljava/util/function/Predicate;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/world/World;FLnet/minecraft/world/RaycastContext$ShapeType;)Lnet/minecraft/util/hit/HitResult;
intermediary method_18074
Lnet/minecraft/class_1675;method_18074(Lnet/minecraft/class_243;Lnet/minecraft/class_1297;Ljava/util/function/Predicate;Lnet/minecraft/class_243;Lnet/minecraft/class_1937;FLnet/minecraft/class_3959$class_3960;)Lnet/minecraft/class_239;
official a
Lcqr;a(Lfbx;Lbvj;Ljava/util/function/Predicate;Lfbx;Ldhh;FLdgp$a;)Lfbv;
-
raycast
@Nullable public static @Nullable EntityHitResult raycast(Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, double maxDistance) - Mappings:
Namespace Name Mixin selector named raycast
Lnet/minecraft/entity/projectile/ProjectileUtil;raycast(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;D)Lnet/minecraft/util/hit/EntityHitResult;
intermediary method_18075
Lnet/minecraft/class_1675;method_18075(Lnet/minecraft/class_1297;Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_238;Ljava/util/function/Predicate;D)Lnet/minecraft/class_3966;
official a
Lcqr;a(Lbvj;Lfbx;Lfbx;Lfbs;Ljava/util/function/Predicate;D)Lfbu;
-
getEntityCollision
@Nullable public static @Nullable EntityHitResult getEntityCollision(World world, Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate) - Mappings:
Namespace Name Mixin selector named getEntityCollision
Lnet/minecraft/entity/projectile/ProjectileUtil;getEntityCollision(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Lnet/minecraft/util/hit/EntityHitResult;
intermediary method_18077
Lnet/minecraft/class_1675;method_18077(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Lnet/minecraft/class_3966;
official a
Lcqr;a(Ldhh;Lbvj;Lfbx;Lfbx;Lfbs;Ljava/util/function/Predicate;)Lfbu;
-
getEntityCollision
@Nullable public static @Nullable EntityHitResult getEntityCollision(World world, Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, float margin) - Mappings:
Namespace Name Mixin selector named getEntityCollision
Lnet/minecraft/entity/projectile/ProjectileUtil;getEntityCollision(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;F)Lnet/minecraft/util/hit/EntityHitResult;
intermediary method_37226
Lnet/minecraft/class_1675;method_37226(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_238;Ljava/util/function/Predicate;F)Lnet/minecraft/class_3966;
official a
Lcqr;a(Ldhh;Lbvj;Lfbx;Lfbx;Lfbs;Ljava/util/function/Predicate;F)Lfbu;
-
setRotationFromVelocity
- Mappings:
Namespace Name Mixin selector named setRotationFromVelocity
Lnet/minecraft/entity/projectile/ProjectileUtil;setRotationFromVelocity(Lnet/minecraft/entity/Entity;F)V
intermediary method_7484
Lnet/minecraft/class_1675;method_7484(Lnet/minecraft/class_1297;F)V
official a
Lcqr;a(Lbvj;F)V
-
getHandPossiblyHolding
- Mappings:
Namespace Name Mixin selector named getHandPossiblyHolding
Lnet/minecraft/entity/projectile/ProjectileUtil;getHandPossiblyHolding(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/Item;)Lnet/minecraft/util/Hand;
intermediary method_18812
Lnet/minecraft/class_1675;method_18812(Lnet/minecraft/class_1309;Lnet/minecraft/class_1792;)Lnet/minecraft/class_1268;
official a
Lcqr;a(Lbwf;Lcxk;)Lbth;
-
createArrowProjectile
public static PersistentProjectileEntity createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier, @Nullable @Nullable ItemStack bow) - Mappings:
Namespace Name Mixin selector named createArrowProjectile
Lnet/minecraft/entity/projectile/ProjectileUtil;createArrowProjectile(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;FLnet/minecraft/item/ItemStack;)Lnet/minecraft/entity/projectile/PersistentProjectileEntity;
intermediary method_18813
Lnet/minecraft/class_1675;method_18813(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;FLnet/minecraft/class_1799;)Lnet/minecraft/class_1665;
official a
Lcqr;a(Lbwf;Lcxo;FLcxo;)Lcqd;
-