net.minecraft.world.item

public class SwordItem

extends TieredItem

All mapped superinterfaces:

FeatureElement, ItemLike

cwe
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(cwg 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(dse arg0, dca arg1, iz arg2, cmz 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(cur arg0, btr arg1, btr 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)