net.minecraft.world.item

public class CrossbowItem

extends ProjectileWeaponItem

All mapped superinterfaces:

FeatureElement, ItemLike

cwg
net.minecraft.world.item.CrossbowItem
net.minecraft.class_1764
net.minecraft.unmapped.C_fatxcdqp
net.minecraft.item.CrossbowItem
net.minecraft.item.CrossbowItem
net.minecraft.src.C_1349_
net.minecraft.world.item.ItemCrossbow

Field summary

Modifier and TypeField
private static final float
m
MAX_CHARGE_DURATION
field_30866
f_tlhpgdvo
DEFAULT_PULL_TIME
MAX_LOAD_TIME
f_150792_
public static final int
a
DEFAULT_RANGE
field_30863
f_dshfujib
RANGE
RANGE
f_150789_
private boolean
n
startSoundPlayed
field_7937
f_xcgsrusg
charged
charged
f_40847_
private boolean
o
midLoadSoundPlayed
field_7936
f_cbjxbbpk
loaded
loaded
f_40848_
private static final float
p
START_SOUND_PERCENT
field_30867
f_gmdsjqiu
CHARGE_PROGRESS
CHARGE_PERCENT_START_CHARGING_SOUND
f_150793_
private static final float
q
MID_SOUND_PERCENT
field_30868
f_segrmdbr
LOAD_PROGRESS
CHARGE_PERCENT_MID_CHARGE_SOUND
f_150794_
private static final float
r
ARROW_POWER
field_30869
f_jdxaczjr
DEFAULT_SPEED
ARROW_POWER
f_150795_
private static final float
s
FIREWORK_POWER
field_30870
f_hpqusjno
FIREWORK_ROCKET_SPEED
FIREWORK_POWER
f_150796_
public static final float
b
MOB_ARROW_POWER
field_49258
f_vxxrtvqk
field_49258
f_316815_
private static final CrossbowItem$ChargingSounds
t
DEFAULT_SOUNDS
field_51626
f_afejkznv
DEFAULT_LOADING_SOUNDS
LOADING_SOUNDS
f_337601_

Constructor summary

ModifierConstructor
public (Item$Properties settings)

Method summary

Modifier and TypeMethod
public Predicate<ItemStack>
d()
getSupportedHeldProjectiles()
method_20310()
m_cklqgcpd()
getHeldProjectiles()
getHeldProjectiles()
m_6442_()
public Predicate<ItemStack>
b()
getAllSupportedProjectiles()
method_19268()
m_yigyclfo()
getProjectiles()
getProjectiles()
m_6437_()
public InteractionResult
a(dhi arg0, cpx arg1, bti arg2)
use(Level arg0, Player arg1, InteractionHand arg2)
method_7836(class_1937 arg0, class_1657 arg1, class_1268 arg2)
m_znsmbimv(C_cdctfzbn arg0, C_jzrpycqo arg1, C_laxmzoqs arg2)
use(World arg0, PlayerEntity arg1, Hand arg2)
use(World arg0, PlayerEntity arg1, Hand arg2)
m_7203_(C_1596_ p_40921_, C_1141_ p_40922_, C_470_ arg2)
private static float
a(czu arg0)
getShootingPower(ChargedProjectiles arg0)
method_20309(class_9278 arg0)
m_pfmniexj(C_lukqwasx arg0)
getSpeed(ChargedProjectilesComponent stack)
getSpeed(ChargedProjectilesComponent component)
m_40945_(C_313278_ p_331334_)
public boolean
a(cxp arg0, dhi arg1, bwg 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)
m_hwkxajsh(C_sddaxwyk arg0, C_cdctfzbn arg1, C_usxaxydn arg2, int arg3)
onStoppedUsing(ItemStack arg0, World arg1, LivingEntity arg2, int arg3)
onStoppedUsing(ItemStack arg0, World arg1, LivingEntity arg2, int arg3)
m_5551_(C_1391_ p_40876_, C_1596_ p_40877_, C_524_ p_40878_, int arg3)
private static boolean
a(bwg arg0, cxp arg1)
tryLoadProjectiles(LivingEntity arg0, ItemStack arg1)
method_7767(class_1309 arg0, class_1799 arg1)
m_tgjukcva(C_usxaxydn arg0, C_sddaxwyk arg1)
loadProjectiles(LivingEntity shooter, ItemStack crossbow)
loadProjectiles(LivingEntity shooter, ItemStack projectile)
m_40859_(C_524_ p_40860_, C_1391_ p_40861_)
public static boolean
g(cxp arg0)
isCharged(ItemStack arg0)
method_7781(class_1799 arg0)
m_wiqutonr(C_sddaxwyk arg0)
isCharged(ItemStack stack)
isCharged(ItemStack stack)
m_40932_(C_1391_ p_40933_)
protected void
a(bwg arg0, cqq arg1, int arg2, float arg3, float arg4, float arg5, bwg 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)
m_fhkzmpeo(C_usxaxydn arg0, C_ltpsyvhj arg1, int arg2, float arg3, float arg4, float arg5, C_usxaxydn arg6)
shoot(LivingEntity arg0, ProjectileEntity arg1, int arg2, float arg3, float arg4, float arg5, LivingEntity arg6)
shoot(LivingEntity arg0, ProjectileEntity arg1, int arg2, float arg3, float arg4, float arg5, LivingEntity arg6)
m_40894_(C_524_ p_335393_, C_1167_ p_333089_, int p_40900_, float p_40902_, float p_40903_, float p_328705_, C_524_ arg6)
private static org.joml.Vector3f
a(bwg arg0, fby arg1, float arg2)
getProjectileShotVector(LivingEntity arg0, Vec3 arg1, float arg2)
method_57343(class_1309 arg0, class_243 arg1, float arg2)
m_bpqnhzpy(C_usxaxydn arg0, C_vgpupfxx arg1, float arg2)
calcVelocity(LivingEntity shooter, Vec3d direction, float yaw)
getProjectileVelocity(LivingEntity shooter, Vec3d direction, float yaw)
m_323098_(C_524_ p_333832_, C_3046_ p_332433_, float p_331595_)
protected Projectile
a(dhi arg0, bwg arg1, cxp arg2, cxp 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)
m_rbhackqr(C_cdctfzbn arg0, C_usxaxydn arg1, C_sddaxwyk arg2, C_sddaxwyk arg3, boolean arg4)
createArrowEntity(World arg0, LivingEntity arg1, ItemStack arg2, ItemStack arg3, boolean arg4)
getProjectile(World arg0, LivingEntity arg1, ItemStack arg2, ItemStack arg3, boolean arg4)
m_40862_(C_1596_ p_40863_, C_524_ p_40864_, C_1391_ p_40865_, C_1391_ p_40866_, boolean arg4)
protected int
h(cxp arg0)
getDurabilityUse(ItemStack arg0)
method_57345(class_1799 arg0)
m_tlsladkr(C_sddaxwyk arg0)
getWeaponStackDamage(ItemStack arg0)
getUseDamage(ItemStack arg0)
m_319432_(C_1391_ arg0)
public void
a(dhi arg0, bwg arg1, bti arg2, cxp arg3, float arg4, float arg5, bwg 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)
m_btbqnuxf(C_cdctfzbn arg0, C_usxaxydn arg1, C_laxmzoqs arg2, C_sddaxwyk arg3, float arg4, float arg5, C_usxaxydn arg6)
shootAll(World world, LivingEntity shooter, Hand hand, ItemStack stack, float speed, float divergence, LivingEntity target)
shootAll(World world, LivingEntity entity, Hand hand, ItemStack stack, float speed, float divergence, LivingEntity target)
m_40887_(C_1596_ p_40889_, C_524_ p_40890_, C_470_ p_40891_, C_1391_ p_40892_, float p_40893_, float p_329478_, C_524_ arg6)
private static float
a(bam arg0, int arg1)
getShotPitch(RandomSource arg0, int arg1)
method_57342(class_5819 arg0, int arg1)
m_uhdfuuhv(C_rlomrsco arg0, int arg1)
getSoundPitch(Random random, int index)
getSoundPitch(RandomGenerator random, int index)
m_321899_(C_212974_ p_335611_, int p_331713_)
private static float
a(boolean arg0, bam arg1)
getRandomShotPitch(boolean arg0, RandomSource arg1)
method_7784(boolean arg0, class_5819 arg1)
m_tmspkiwg(boolean arg0, C_rlomrsco arg1)
getSoundPitch(boolean flag, Random random)
getSoundPitch(boolean flag, RandomGenerator random)
m_220025_(boolean p_220026_, C_212974_ p_220027_)
public void
a(dhi arg0, bwg arg1, cxp 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)
m_mvuvxzgn(C_cdctfzbn arg0, C_usxaxydn arg1, C_sddaxwyk arg2, int arg3)
usageTick(World arg0, LivingEntity arg1, ItemStack arg2, int arg3)
usageTick(World arg0, LivingEntity arg1, ItemStack arg2, int arg3)
m_5929_(C_1596_ p_40911_, C_524_ p_40912_, C_1391_ p_40913_, int arg3)
public int
a(cxp arg0, bwg arg1)
getUseDuration(ItemStack arg0, LivingEntity arg1)
method_7881(class_1799 arg0, class_1309 arg1)
m_hwznhtnf(C_sddaxwyk arg0, C_usxaxydn arg1)
getMaxUseTime(ItemStack arg0, LivingEntity arg1)
getUseTicks(ItemStack arg0, LivingEntity arg1)
m_8105_(C_1391_ p_342603_, C_524_ arg1)
public static int
b(cxp arg0, bwg arg1)
getChargeDuration(ItemStack arg0, LivingEntity arg1)
method_7775(class_1799 arg0, class_1309 arg1)
m_jwwdtsib(C_sddaxwyk arg0, C_usxaxydn arg1)
getPullTime(ItemStack stack, LivingEntity user)
getLoadingTime(ItemStack stack, LivingEntity entity)
m_40939_(C_1391_ p_40940_, C_524_ p_344015_)
public ItemUseAnimation
b(cxp arg0)
getUseAnimation(ItemStack arg0)
method_7853(class_1799 arg0)
m_yvddkccr(C_sddaxwyk arg0)
getUseAction(ItemStack arg0)
getUseAction(ItemStack arg0)
m_6164_(C_1391_ arg0)
CrossbowItem$ChargingSounds
i(cxp arg0)
getChargingSounds(ItemStack arg0)
method_59976(class_1799 arg0)
m_rdfsfcdp(C_sddaxwyk arg0)
getLoadingSounds(ItemStack stack)
getLoadingSounds(ItemStack stack)
m_340184_(C_1391_ arg0)
private static float
a(int arg0, cxp arg1, bwg arg2)
getPowerForTime(int arg0, ItemStack arg1, LivingEntity arg2)
method_7770(int arg0, class_1799 arg1, class_1309 arg2)
m_xefbydko(int arg0, C_sddaxwyk arg1, C_usxaxydn arg2)
getPullProgress(int useTicks, ItemStack stack, LivingEntity user)
getLoadingProgress(int usedTime, ItemStack stack, LivingEntity entity)
m_40853_(int p_40854_, C_1391_ p_40855_, C_524_ p_343301_)
public void
a(cxp arg0, cxl$b arg1, List<xv> arg2, czh 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)
m_vlpdhsgt(C_sddaxwyk arg0, C_vorddnax$C_rdhfmrgz arg1, List<C_rdaqiwdt> arg2, C_taebrtdw arg3)
appendTooltip(ItemStack arg0, Item$TooltipContext arg1, List<Text> arg2, TooltipType arg3)
appendTooltip(ItemStack arg0, Item$TooltipContext arg1, List<Text> arg2, TooltipConfig arg3)
m_7373_(C_1391_ p_333751_, C_1381_$C_313602_ p_40882_, List<C_4996_> p_40883_, C_1431_ arg3)
public boolean
d_(cxp arg0)
useOnRelease(ItemStack arg0)
method_7838(class_1799 arg0)
m_wanuqhiu(C_sddaxwyk arg0)
isUsedOnRelease(ItemStack arg0)
isUsedOnRelease(ItemStack arg0)
m_41463_(C_1391_ arg0)
public int
c()
getDefaultProjectileRange()
method_24792()
m_npgeoury()
getRange()
getRange()
m_6615_()