java.lang.Object
com.blamejared.crafttweaker.natives.entity.type.projectile.ExpandProjectile

@ZenRegister public class ExpandProjectile extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.entity.Entity
    getEffectSource(net.minecraft.world.entity.projectile.Projectile internal)
    Gets the effect source of the projectile.
    static net.minecraft.world.entity.Entity
    getOwner(net.minecraft.world.entity.projectile.Projectile internal)
    Gets the owner of the projectile.
    static void
    setOwner(net.minecraft.world.entity.projectile.Projectile internal, net.minecraft.world.entity.Entity entity)
    Sets the owner of the projectile.
    static void
    shoot(net.minecraft.world.entity.projectile.Projectile internal, double x, double y, double z, float velocity, float innacuracy)
    Shoots the projectile from the given position and rotation.
    static void
    shootFromRotation(net.minecraft.world.entity.projectile.Projectile internal, net.minecraft.world.entity.Entity projectile, float x, float y, float z, float velocity, float innacuracy)
    Shoots the projectile from the given rotation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandProjectile

      public ExpandProjectile()
  • Method Details

    • setOwner

      public static void setOwner(net.minecraft.world.entity.projectile.Projectile internal, net.minecraft.world.entity.Entity entity)
      Sets the owner of the projectile.
      Parameters:
      entity - The entity to set as the owner.
    • getOwner

      public static net.minecraft.world.entity.Entity getOwner(net.minecraft.world.entity.projectile.Projectile internal)
      Gets the owner of the projectile.
      Returns:
      The owner of the projectile.
    • getEffectSource

      public static net.minecraft.world.entity.Entity getEffectSource(net.minecraft.world.entity.projectile.Projectile internal)
      Gets the effect source of the projectile.
      Returns:
      The effect source of the projectile.
    • shoot

      public static void shoot(net.minecraft.world.entity.projectile.Projectile internal, double x, double y, double z, float velocity, float innacuracy)
      Shoots the projectile from the given position and rotation.
      Parameters:
      x - The x position to shoot from.
      y - The y position to shoot from.
      z - The z position to shoot from.
      velocity - The velocity of the projectile.
      innacuracy - The innacuracy of the projectile.
    • shootFromRotation

      public static void shootFromRotation(net.minecraft.world.entity.projectile.Projectile internal, net.minecraft.world.entity.Entity projectile, float x, float y, float z, float velocity, float innacuracy)
      Shoots the projectile from the given rotation.
      Parameters:
      projectile - The projectile to shoot.
      x - The x rotation.
      y - The y rotation.
      z - The z rotation.
      velocity - The velocity of the projectile.
      innacuracy - The innacuracy of the projectile.