net.minecraft.world.item

public class CrossbowItem

extends ProjectileWeaponItem

All mapped superinterfaces:

FeatureElement, ItemLike

cvh
net.minecraft.world.item.CrossbowItem
net.minecraft.class_1764
net.minecraft.item.CrossbowItem
net.minecraft.world.item.ItemCrossbow

Field summary

Modifier and TypeField
private static final float
m
MAX_CHARGE_DURATION
field_30866
DEFAULT_PULL_TIME
public static final int
a
DEFAULT_RANGE
field_30863
RANGE
private boolean
n
startSoundPlayed
field_7937
charged
private boolean
o
midLoadSoundPlayed
field_7936
loaded
private static final float
p
START_SOUND_PERCENT
field_30867
CHARGE_PROGRESS
private static final float
q
MID_SOUND_PERCENT
field_30868
LOAD_PROGRESS
private static final float
r
ARROW_POWER
field_30869
DEFAULT_SPEED
private static final float
s
FIREWORK_POWER
field_30870
FIREWORK_ROCKET_SPEED
public static final float
b
MOB_ARROW_POWER
field_49258
field_49258
private static final CrossbowItem$ChargingSounds
t
DEFAULT_SOUNDS
field_51626
DEFAULT_LOADING_SOUNDS

Constructor summary

ModifierConstructor
public (Item$Properties arg0)

Method summary

Modifier and TypeMethod
public Predicate<ItemStack>
d()
getSupportedHeldProjectiles()
method_20310()
getHeldProjectiles()
public Predicate<ItemStack>
b()
getAllSupportedProjectiles()
method_19268()
getProjectiles()
public InteractionResult
a(dgj arg0, coy arg1, bsk arg2)
use(Level arg0, Player arg1, InteractionHand arg2)
method_7836(class_1937 arg0, class_1657 arg1, class_1268 arg2)
use(World arg0, PlayerEntity arg1, Hand arg2)
private static float
a(cyv arg0)
getShootingPower(ChargedProjectiles arg0)
method_20309(class_9278 arg0)
getSpeed(ChargedProjectilesComponent stack)
public boolean
a(cwq arg0, dgj arg1, bvi arg2, int arg3)
releaseUsing(ItemStack arg0, Level arg1, LivingEntity arg2, int arg3)
method_7840(class_1799 arg0, class_1937 arg1, class_1309 arg2, int arg3)
onStoppedUsing(ItemStack arg0, World arg1, LivingEntity arg2, int arg3)
private static boolean
a(bvi arg0, cwq arg1)
tryLoadProjectiles(LivingEntity arg0, ItemStack arg1)
method_7767(class_1309 arg0, class_1799 arg1)
loadProjectiles(LivingEntity shooter, ItemStack crossbow)
public static boolean
g(cwq arg0)
isCharged(ItemStack arg0)
method_7781(class_1799 arg0)
isCharged(ItemStack stack)
protected void
a(bvi arg0, cpr arg1, int arg2, float arg3, float arg4, float arg5, bvi arg6)
shootProjectile(LivingEntity arg0, Projectile arg1, int arg2, float arg3, float arg4, float arg5, LivingEntity arg6)
method_7763(class_1309 arg0, class_1676 arg1, int arg2, float arg3, float arg4, float arg5, class_1309 arg6)
shoot(LivingEntity arg0, ProjectileEntity arg1, int arg2, float arg3, float arg4, float arg5, LivingEntity arg6)
private static org.joml.Vector3f
a(bvi arg0, fbb arg1, float arg2)
getProjectileShotVector(LivingEntity arg0, Vec3 arg1, float arg2)
method_57343(class_1309 arg0, class_243 arg1, float arg2)
calcVelocity(LivingEntity shooter, Vec3d direction, float yaw)
protected Projectile
a(dgj arg0, bvi arg1, cwq arg2, cwq arg3, boolean arg4)
createProjectile(Level arg0, LivingEntity arg1, ItemStack arg2, ItemStack arg3, boolean arg4)
method_57344(class_1937 arg0, class_1309 arg1, class_1799 arg2, class_1799 arg3, boolean arg4)
createArrowEntity(World arg0, LivingEntity arg1, ItemStack arg2, ItemStack arg3, boolean arg4)
protected int
h(cwq arg0)
getDurabilityUse(ItemStack arg0)
method_57345(class_1799 arg0)
getWeaponStackDamage(ItemStack arg0)
public void
a(dgj arg0, bvi arg1, bsk arg2, cwq arg3, float arg4, float arg5, bvi arg6)
performShooting(Level arg0, LivingEntity arg1, InteractionHand arg2, ItemStack arg3, float arg4, float arg5, LivingEntity arg6)
method_7777(class_1937 arg0, class_1309 arg1, class_1268 arg2, class_1799 arg3, float arg4, float arg5, class_1309 arg6)
shootAll(World world, LivingEntity shooter, Hand hand, ItemStack stack, float speed, float divergence, LivingEntity target)
private static float
a(azh arg0, int arg1)
getShotPitch(RandomSource arg0, int arg1)
method_57342(class_5819 arg0, int arg1)
getSoundPitch(Random random, int index)
private static float
a(boolean arg0, azh arg1)
getRandomShotPitch(boolean arg0, RandomSource arg1)
method_7784(boolean arg0, class_5819 arg1)
getSoundPitch(boolean flag, Random random)
public void
a(dgj arg0, bvi arg1, cwq arg2, int arg3)
onUseTick(Level arg0, LivingEntity arg1, ItemStack arg2, int arg3)
method_7852(class_1937 arg0, class_1309 arg1, class_1799 arg2, int arg3)
usageTick(World arg0, LivingEntity arg1, ItemStack arg2, int arg3)
public int
a(cwq arg0, bvi arg1)
getUseDuration(ItemStack arg0, LivingEntity arg1)
method_7881(class_1799 arg0, class_1309 arg1)
getMaxUseTime(ItemStack arg0, LivingEntity arg1)
public static int
b(cwq arg0, bvi arg1)
getChargeDuration(ItemStack arg0, LivingEntity arg1)
method_7775(class_1799 arg0, class_1309 arg1)
getPullTime(ItemStack stack, LivingEntity user)
public ItemUseAnimation
b(cwq arg0)
getUseAnimation(ItemStack arg0)
method_7853(class_1799 arg0)
getUseAction(ItemStack arg0)
CrossbowItem$ChargingSounds
i(cwq arg0)
getChargingSounds(ItemStack arg0)
method_59976(class_1799 arg0)
getLoadingSounds(ItemStack stack)
private static float
a(int arg0, cwq arg1, bvi arg2)
getPowerForTime(int arg0, ItemStack arg1, LivingEntity arg2)
method_7770(int arg0, class_1799 arg1, class_1309 arg2)
getPullProgress(int useTicks, ItemStack stack, LivingEntity user)
public void
a(cwq arg0, cwm$b arg1, List<wp> arg2, cyi arg3)
appendHoverText(ItemStack arg0, Item$TooltipContext arg1, List<Component> arg2, TooltipFlag arg3)
method_7851(class_1799 arg0, class_1792$class_9635 arg1, List<class_2561> arg2, class_1836 arg3)
appendTooltip(ItemStack arg0, Item$TooltipContext arg1, List<Text> arg2, TooltipType arg3)
public boolean
d_(cwq arg0)
useOnRelease(ItemStack arg0)
method_7838(class_1799 arg0)
isUsedOnRelease(ItemStack arg0)
public int
c()
getDefaultProjectileRange()
method_24792()
getRange()