Class ExpandProjectile
java.lang.Object
com.blamejared.crafttweaker.natives.entity.type.projectile.ExpandProjectile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.entity.EntitygetEffectSource(net.minecraft.world.entity.projectile.Projectile internal) Gets the effect source of the projectile.static net.minecraft.world.entity.EntitygetOwner(net.minecraft.world.entity.projectile.Projectile internal) Gets the owner of the projectile.static voidsetOwner(net.minecraft.world.entity.projectile.Projectile internal, net.minecraft.world.entity.Entity entity) Sets the owner of the projectile.static voidshoot(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 voidshootFromRotation(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.
-
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.
-