Class ExpandAbstractArrow
java.lang.Object
com.blamejared.crafttweaker.natives.entity.type.projectile.arrow.ExpandAbstractArrow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublegetBaseDamage(net.minecraft.world.entity.projectile.AbstractArrow internal) Gets the base damage that this arrow does.static bytegetPierceLevel(net.minecraft.world.entity.projectile.AbstractArrow internal) Gets the pierce level of this arrow.static IItemStackgetWeaponItem(net.minecraft.world.entity.projectile.AbstractArrow internal) Gets theIItemStackthat fired this arrow.static booleanisCritArrow(net.minecraft.world.entity.projectile.AbstractArrow internal) Checks whether this arrow is a crit arrow.static booleanisNoPhysics(net.minecraft.world.entity.projectile.AbstractArrow internal) Checks if this arrow has physics or not.static voidsetBaseDamage(net.minecraft.world.entity.projectile.AbstractArrow internal, double damage) Sets the base damage that this arrow does.static voidsetCritArrow(net.minecraft.world.entity.projectile.AbstractArrow internal, boolean crit) Sets this the crit value of this arrow.static voidsetNoPhysics(net.minecraft.world.entity.projectile.AbstractArrow internal, boolean noPhysics) Sets if this arrow has physics or not.static voidsetSoundEvent(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.
-
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 theIItemStackthat 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.
-