net.minecraft.world.item

public class CrossbowItem

extends ProjectileWeaponItem implements Vanishable

All mapped superinterfaces:

ItemLike, Vanishable

bzk
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 String
b
TAG_CHARGED
field_30864
f_ponbjqtc
CHARGED_KEY
CHARGED_KEY
f_150790_
private static final String
e
TAG_CHARGED_PROJECTILES
field_30865
f_rcyitmmf
CHARGED_PROJECTILES_KEY
CHARGED_PROJECTILES_KEY
f_150791_
private static final int
f
MAX_CHARGE_DURATION
field_30866
f_tlhpgdvo
DEFAULT_PULL_TIME
MAX_CHARGE_DURATION
f_150792_
public static final int
a
DEFAULT_RANGE
field_30863
f_dshfujib
RANGE
RANGE
f_150789_
private boolean
g
startSoundPlayed
field_7937
f_xcgsrusg
charged
charged
f_40847_
private boolean
h
midLoadSoundPlayed
field_7936
f_cbjxbbpk
loaded
loaded
f_40848_
private static final float
i
START_SOUND_PERCENT
field_30867
f_gmdsjqiu
field_30867
CHARGE_PERCENT_START_CHARGING_SOUND
f_150793_
private static final float
j
MID_SOUND_PERCENT
field_30868
f_segrmdbr
field_30868
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_

Constructor summary

ModifierConstructor
public (Item$Properties arg0)

Method summary

Modifier and TypeMethod
public Predicate<ItemStack>
e()
getSupportedHeldProjectiles()
method_20310()
m_cklqgcpd()
getHeldProjectiles()
getHeldProjectiles()
m_6442_()
public Predicate<ItemStack>
b()
getAllSupportedProjectiles()
method_19268()
m_yigyclfo()
getProjectiles()
getProjectiles()
m_6437_()
public InteractionResultHolder<ItemStack>
a(cgx arg0, buc arg1, bai 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
o(cax arg0)
getShootingPower(ItemStack arg0)
method_20309(class_1799 arg0)
m_pfmniexj(C_sddaxwyk arg0)
getSpeed(ItemStack stack)
getSpeed(ItemStack stack)
m_40945_(C_1391_ p_40946_)
public void
a(cax arg0, cgx arg1, bcc 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(bcc arg0, cax 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 projectile)
loadProjectiles(LivingEntity shooter, ItemStack projectile)
m_40859_(C_524_ p_40860_, C_1391_ p_40861_)
private static boolean
a(bcc arg0, cax arg1, cax arg2, boolean arg3, boolean arg4)
loadProjectile(LivingEntity arg0, ItemStack arg1, ItemStack arg2, boolean arg3, boolean arg4)
method_7765(class_1309 arg0, class_1799 arg1, class_1799 arg2, boolean arg3, boolean arg4)
m_wwvixakz(C_usxaxydn arg0, C_sddaxwyk arg1, C_sddaxwyk arg2, boolean arg3, boolean arg4)
loadProjectile(LivingEntity shooter, ItemStack crossbow, ItemStack projectile, boolean simulated, boolean creative)
loadProjectile(LivingEntity shooter, ItemStack crossbow, ItemStack projectile, boolean simulated, boolean creative)
m_40862_(C_524_ p_40863_, C_1391_ p_40864_, C_1391_ p_40865_, boolean p_40866_, boolean p_40867_)
public static boolean
d(cax 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_)
public static void
a(cax arg0, boolean arg1)
setCharged(ItemStack arg0, boolean arg1)
method_7782(class_1799 arg0, boolean arg1)
m_tjndsbpq(C_sddaxwyk arg0, boolean arg1)
setCharged(ItemStack stack, boolean charged)
setCharged(ItemStack stack, boolean charged)
m_40884_(C_1391_ p_40885_, boolean p_40886_)
private static void
b(cax arg0, cax arg1)
addChargedProjectile(ItemStack arg0, ItemStack arg1)
method_7778(class_1799 arg0, class_1799 arg1)
m_mnfirsfv(C_sddaxwyk arg0, C_sddaxwyk arg1)
putProjectile(ItemStack crossbow, ItemStack projectile)
putProjectile(ItemStack crossbow, ItemStack projectile)
m_40928_(C_1391_ p_40929_, C_1391_ p_40930_)
private static List<ItemStack>
p(cax arg0)
getChargedProjectiles(ItemStack arg0)
method_7785(class_1799 arg0)
m_spiwpqoc(C_sddaxwyk arg0)
getProjectiles(ItemStack crossbow)
getProjectiles(ItemStack crossbow)
m_40941_(C_1391_ p_40942_)
private static void
q(cax arg0)
clearChargedProjectiles(ItemStack arg0)
method_7766(class_1799 arg0)
m_yewtxbqj(C_sddaxwyk arg0)
clearProjectiles(ItemStack crossbow)
clearProjectiles(ItemStack crossbow)
m_40943_(C_1391_ p_40944_)
public static boolean
a(cax arg0, cat arg1)
containsChargedProjectile(ItemStack arg0, Item arg1)
method_7772(class_1799 arg0, class_1792 arg1)
m_sjuzgbts(C_sddaxwyk arg0, C_vorddnax arg1)
hasProjectile(ItemStack crossbow, Item projectile)
hasProjectile(ItemStack crossbow, Item projectile)
m_40871_(C_1391_ p_40872_, C_1381_ p_40873_)
private static void
a(cgx arg0, bcc arg1, bai arg2, cax arg3, cax arg4, float arg5, boolean arg6, float arg7, float arg8, float arg9)
shootProjectile(Level arg0, LivingEntity arg1, InteractionHand arg2, ItemStack arg3, ItemStack arg4, float arg5, boolean arg6, float arg7, float arg8, float arg9)
method_7763(class_1937 arg0, class_1309 arg1, class_1268 arg2, class_1799 arg3, class_1799 arg4, float arg5, boolean arg6, float arg7, float arg8, float arg9)
m_krhanshc(C_cdctfzbn arg0, C_usxaxydn arg1, C_laxmzoqs arg2, C_sddaxwyk arg3, C_sddaxwyk arg4, float arg5, boolean arg6, float arg7, float arg8, float arg9)
shoot(World world, LivingEntity shooter, Hand hand, ItemStack crossbow, ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated)
shoot(World world, LivingEntity shooter, Hand hand, ItemStack crossbow, ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated)
m_40894_(C_1596_ p_40895_, C_524_ p_40896_, C_470_ p_40897_, C_1391_ p_40898_, C_1391_ p_40899_, float p_40900_, boolean p_40901_, float p_40902_, float p_40903_, float p_40904_)
private static AbstractArrow
a(cgx arg0, bcc arg1, cax arg2, cax arg3)
getArrow(Level arg0, LivingEntity arg1, ItemStack arg2, ItemStack arg3)
method_18814(class_1937 arg0, class_1309 arg1, class_1799 arg2, class_1799 arg3)
m_vbpofhmy(C_cdctfzbn arg0, C_usxaxydn arg1, C_sddaxwyk arg2, C_sddaxwyk arg3)
createArrow(World world, LivingEntity entity, ItemStack crossbow, ItemStack arrow)
createArrow(World world, LivingEntity entity, ItemStack crossbow, ItemStack arrow)
m_40914_(C_1596_ p_40915_, C_524_ p_40916_, C_1391_ p_40917_, C_1391_ p_40918_)
public static void
a(cgx arg0, bcc arg1, bai arg2, cax arg3, float arg4, float arg5)
performShooting(Level arg0, LivingEntity arg1, InteractionHand arg2, ItemStack arg3, float arg4, float arg5)
method_7777(class_1937 arg0, class_1309 arg1, class_1268 arg2, class_1799 arg3, float arg4, float arg5)
m_btbqnuxf(C_cdctfzbn arg0, C_usxaxydn arg1, C_laxmzoqs arg2, C_sddaxwyk arg3, float arg4, float arg5)
shootAll(World world, LivingEntity entity, Hand hand, ItemStack stack, float speed, float divergence)
shootAll(World world, LivingEntity entity, Hand hand, ItemStack stack, float speed, float divergence)
m_40887_(C_1596_ p_40888_, C_524_ p_40889_, C_470_ p_40890_, C_1391_ p_40891_, float p_40892_, float p_40893_)
private static float[]
a(amn arg0)
getShotPitches(RandomSource arg0)
method_7780(class_5819 arg0)
m_ivxpakrq(C_rlomrsco arg0)
getSoundPitches(Random random)
getSoundPitches(RandomGenerator random)
m_220023_(C_212974_ p_220024_)
private static float
a(boolean arg0, amn 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_)
private static void
a(cgx arg0, bcc arg1, cax arg2)
onCrossbowShot(Level arg0, LivingEntity arg1, ItemStack arg2)
method_7769(class_1937 arg0, class_1309 arg1, class_1799 arg2)
m_cjrlqcre(C_cdctfzbn arg0, C_usxaxydn arg1, C_sddaxwyk arg2)
postShoot(World world, LivingEntity entity, ItemStack stack)
postShoot(World world, LivingEntity entity, ItemStack stack)
m_40905_(C_1596_ p_40906_, C_524_ p_40907_, C_1391_ p_40908_)
public void
a(cgx arg0, bcc arg1, cax 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
b(cax arg0)
getUseDuration(ItemStack arg0)
method_7881(class_1799 arg0)
m_hwznhtnf(C_sddaxwyk arg0)
getMaxUseTime(ItemStack arg0)
getMaxUseTime(ItemStack arg0)
m_8105_(C_1391_ arg0)
public static int
k(cax arg0)
getChargeDuration(ItemStack arg0)
method_7775(class_1799 arg0)
m_jwwdtsib(C_sddaxwyk arg0)
getPullTime(ItemStack stack)
getPullTime(ItemStack stack)
m_40939_(C_1391_ p_40940_)
public UseAnim
c(cax 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)
private SoundEvent
a(int arg0)
getStartSound(int arg0)
method_7773(int arg0)
m_todzzqoj(int arg0)
getQuickChargeSound(int stage)
getQuickChargeSound(int stage)
m_40851_(int arg0)
private static float
a(int arg0, cax arg1)
getPowerForTime(int arg0, ItemStack arg1)
method_7770(int arg0, class_1799 arg1)
m_xefbydko(int arg0, C_sddaxwyk arg1)
getPullProgress(int useTicks, ItemStack stack)
getPullProgress(int useTicks, ItemStack stack)
m_40853_(int p_40854_, C_1391_ p_40855_)
public void
a(cax arg0, cgx arg1, List<rq> arg2, ccl arg3)
appendHoverText(ItemStack arg0, Level arg1, List<Component> arg2, TooltipFlag arg3)
method_7851(class_1799 arg0, class_1937 arg1, List<class_2561> arg2, class_1836 arg3)
m_vlpdhsgt(C_sddaxwyk arg0, C_cdctfzbn arg1, List<C_rdaqiwdt> arg2, C_taebrtdw arg3)
appendTooltip(ItemStack arg0, World arg1, List<Text> arg2, TooltipContext arg3)
appendTooltip(ItemStack arg0, World arg1, List<Text> arg2, TooltipContext arg3)
m_7373_(C_1391_ p_40881_, C_1596_ p_40882_, List<C_4996_> p_40883_, C_1431_ arg3)
public boolean
l(cax 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
d()
getDefaultProjectileRange()
method_24792()
m_npgeoury()
getRange()
getRange()
m_6615_()