Class ProjectileUtil

java.lang.Object
net.minecraft.entity.projectile.ProjectileUtil

public final class ProjectileUtil extends Object
Mappings:
Namespace Name
official ccn
intermediary net/minecraft/class_1675
named net/minecraft/entity/projectile/ProjectileUtil
  • Constructor Details

    • ProjectileUtil

      public ProjectileUtil()
  • Method Details

    • getCollision

      public static HitResult getCollision(Entity entity, Predicate<Entity> predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lccn;a(Lbiq;Ljava/util/function/Predicate;)Lehl;
      intermediary method_49997 Lnet/minecraft/class_1675;method_49997(Lnet/minecraft/class_1297;Ljava/util/function/Predicate;)Lnet/minecraft/class_239;
      named getCollision Lnet/minecraft/entity/projectile/ProjectileUtil;getCollision(Lnet/minecraft/entity/Entity;Ljava/util/function/Predicate;)Lnet/minecraft/util/hit/HitResult;
    • getCollision

      public static HitResult getCollision(Entity entity, Predicate<Entity> predicate, double range)
      Mappings:
      Namespace Name Mixin selector
      official a Lccn;a(Lbiq;Ljava/util/function/Predicate;D)Lehl;
      intermediary method_49998 Lnet/minecraft/class_1675;method_49998(Lnet/minecraft/class_1297;Ljava/util/function/Predicate;D)Lnet/minecraft/class_239;
      named getCollision Lnet/minecraft/entity/projectile/ProjectileUtil;getCollision(Lnet/minecraft/entity/Entity;Ljava/util/function/Predicate;D)Lnet/minecraft/util/hit/HitResult;
    • getCollision

      private static HitResult getCollision(Vec3d pos, Entity entity, Predicate<Entity> predicate, Vec3d velocity, World world)
      Mappings:
      Namespace Name Mixin selector
      official a Lccn;a(Lehn;Lbiq;Ljava/util/function/Predicate;Lehn;Lcpv;)Lehl;
      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;)Lnet/minecraft/class_239;
      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;)Lnet/minecraft/util/hit/HitResult;
    • raycast

      @Nullable public static @Nullable EntityHitResult raycast(Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, double double2)
      Mappings:
      Namespace Name Mixin selector
      official a Lccn;a(Lbiq;Lehn;Lehn;Lehi;Ljava/util/function/Predicate;D)Lehk;
      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;
      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;
    • 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
      official a Lccn;a(Lcpv;Lbiq;Lehn;Lehn;Lehi;Ljava/util/function/Predicate;)Lehk;
      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;
      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;
    • 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
      official a Lccn;a(Lcpv;Lbiq;Lehn;Lehn;Lehi;Ljava/util/function/Predicate;F)Lehk;
      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;
      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;
    • setRotationFromVelocity

      public static void setRotationFromVelocity(Entity entity, float delta)
      Mappings:
      Namespace Name Mixin selector
      official a Lccn;a(Lbiq;F)V
      intermediary method_7484 Lnet/minecraft/class_1675;method_7484(Lnet/minecraft/class_1297;F)V
      named setRotationFromVelocity Lnet/minecraft/entity/projectile/ProjectileUtil;setRotationFromVelocity(Lnet/minecraft/entity/Entity;F)V
    • getHandPossiblyHolding

      public static Hand getHandPossiblyHolding(LivingEntity entity, Item item)
      Mappings:
      Namespace Name Mixin selector
      official a Lccn;a(Lbjg;Lcja;)Lbgx;
      intermediary method_18812 Lnet/minecraft/class_1675;method_18812(Lnet/minecraft/class_1309;Lnet/minecraft/class_1792;)Lnet/minecraft/class_1268;
      named getHandPossiblyHolding Lnet/minecraft/entity/projectile/ProjectileUtil;getHandPossiblyHolding(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/Item;)Lnet/minecraft/util/Hand;
    • createArrowProjectile

      public static PersistentProjectileEntity createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier)
      Mappings:
      Namespace Name Mixin selector
      official a Lccn;a(Lbjg;Lcjf;F)Lcca;
      intermediary method_18813 Lnet/minecraft/class_1675;method_18813(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;F)Lnet/minecraft/class_1665;
      named createArrowProjectile Lnet/minecraft/entity/projectile/ProjectileUtil;createArrowProjectile(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;F)Lnet/minecraft/entity/projectile/PersistentProjectileEntity;