java.lang.Object
com.blamejared.crafttweaker.natives.entity.type.projectile.arrow.ExpandAbstractArrow

@ZenRegister public class ExpandAbstractArrow extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    getBaseDamage(net.minecraft.world.entity.projectile.AbstractArrow internal)
    Gets the base damage that this arrow does.
    static byte
    getPierceLevel(net.minecraft.world.entity.projectile.AbstractArrow internal)
    Gets the pierce level of this arrow.
    static IItemStack
    getWeaponItem(net.minecraft.world.entity.projectile.AbstractArrow internal)
    Gets the IItemStack that fired this arrow.
    static boolean
    isCritArrow(net.minecraft.world.entity.projectile.AbstractArrow internal)
    Checks whether this arrow is a crit arrow.
    static boolean
    isNoPhysics(net.minecraft.world.entity.projectile.AbstractArrow internal)
    Checks if this arrow has physics or not.
    static void
    setBaseDamage(net.minecraft.world.entity.projectile.AbstractArrow internal, double damage)
    Sets the base damage that this arrow does.
    static void
    setCritArrow(net.minecraft.world.entity.projectile.AbstractArrow internal, boolean crit)
    Sets this the crit value of this arrow.
    static void
    setNoPhysics(net.minecraft.world.entity.projectile.AbstractArrow internal, boolean noPhysics)
    Sets if this arrow has physics or not.
    static void
    setSoundEvent(net.minecraft.world.entity.projectile.AbstractArrow internal, net.minecraft.sounds.SoundEvent event)
    Sets the sound event that this arrow plays when it hits an entity or block.

    Methods inherited from class java.lang.Object

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

    • ExpandAbstractArrow

      public ExpandAbstractArrow()
  • Method Details

    • setSoundEvent

      public static void setSoundEvent(net.minecraft.world.entity.projectile.AbstractArrow internal, net.minecraft.sounds.SoundEvent event)
      Sets the sound event that this arrow plays when it hits an entity or block.
      Parameters:
      event - The sound event to play when
      DocParam:
      soundevent invalid input: '<'soundevent:minecraft:ambient.cave>
    • setBaseDamage

      public static void setBaseDamage(net.minecraft.world.entity.projectile.AbstractArrow internal, double damage)
      Sets the base damage that this arrow does.
      Parameters:
      damage - The base damage.
      DocParam:
      damage 0.5
    • getBaseDamage

      public static double getBaseDamage(net.minecraft.world.entity.projectile.AbstractArrow internal)
      Gets the base damage that this arrow does.
      Returns:
      The base damage of this arrow.
    • setCritArrow

      public static void setCritArrow(net.minecraft.world.entity.projectile.AbstractArrow internal, boolean crit)
      Sets this the crit value of this arrow.
      Parameters:
      crit - The crit value to set.
      DocParam:
      crit true
    • isCritArrow

      public static boolean isCritArrow(net.minecraft.world.entity.projectile.AbstractArrow internal)
      Checks whether this arrow is a crit arrow.
      Returns:
      true if this is a crit arrow, false otherwise.
    • getPierceLevel

      public static byte getPierceLevel(net.minecraft.world.entity.projectile.AbstractArrow internal)
      Gets the pierce level of this arrow.
      Returns:
      the pierce level of this arrow.
    • getWeaponItem

      public static IItemStack getWeaponItem(net.minecraft.world.entity.projectile.AbstractArrow internal)
      Gets the IItemStack that fired this arrow.
      Returns:
      The weapon item of this arrow.
    • setNoPhysics

      public static void setNoPhysics(net.minecraft.world.entity.projectile.AbstractArrow internal, boolean noPhysics)
      Sets if this arrow has physics or not.
      Parameters:
      noPhysics - If this arrow has physics or not.
      DocParam:
      noPhysics true
    • isNoPhysics

      public static boolean isNoPhysics(net.minecraft.world.entity.projectile.AbstractArrow internal)
      Checks if this arrow has physics or not.
      Returns:
      true if this arrow doesn't have physics, false otherwise.