net.minecraft.world.item

public class SwordItem

extends TieredItem

All mapped superinterfaces:

FeatureElement, ItemLike

cwg
net.minecraft.world.item.SwordItem
net.minecraft.class_1829
net.minecraft.item.SwordItem
net.minecraft.src.C_1425_
net.minecraft.world.item.ItemSword

Constructor summary

ModifierConstructor
public (Tier p_43272_, Item$Properties arg1)

Method summary

Modifier and TypeMethod
private static Tool
k()
createToolProperties()
method_58417()
createToolComponent()
m_319740_()
public static ItemAttributeModifiers
a(cwi arg0, int arg1, float arg2)
createAttributes(Tier arg0, int arg1, float arg2)
method_57394(class_1832 arg0, int arg1, float arg2)
createAttributeModifiers(ToolMaterial material, int baseAttackDamage, float attackSpeed)
m_322253_(C_1427_ p_336181_, int p_335543_, float p_331072_)
public boolean
a(dtc arg0, dcw arg1, jd arg2, cmx arg3)
canAttackBlock(BlockState arg0, Level arg1, BlockPos arg2, Player arg3)
method_7885(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3)
canMine(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3)
m_6777_(C_2064_ p_43292_, C_1596_ p_43293_, C_4675_ p_43294_, C_1141_ arg3)
public boolean
a(cuq arg0, btn arg1, btn arg2)
hurtEnemy(ItemStack arg0, LivingEntity arg1, LivingEntity arg2)
method_7873(class_1799 arg0, class_1309 arg1, class_1309 arg2)
postHit(ItemStack arg0, LivingEntity arg1, LivingEntity arg2)
m_7579_(C_1391_ p_43279_, C_524_ p_43280_, C_524_ arg2)
public void
b(cuq arg0, btn arg1, btn arg2)
postHurtEnemy(ItemStack arg0, LivingEntity arg1, LivingEntity arg2)
method_59978(class_1799 arg0, class_1309 arg1, class_1309 arg2)
postDamageEntity(ItemStack arg0, LivingEntity arg1, LivingEntity arg2)
m_338515_(C_1391_ p_344347_, C_524_ p_343888_, C_524_ arg2)