Class Sword

java.lang.Object
net.minecraft.item.ItemBase
net.minecraft.item.tool.Sword

public class Sword extends ItemBase
Mappings:
Namespace Name
intermediary net/minecraft/class_352
glue class_377
server jw
client qd
named net/minecraft/item/tool/Sword
  • Field Details

    • field_1314

      private int field_1314
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1314 Lnet/minecraft/class_352;field_1314:I
      glue field_1497 Lclass_377;field_1497:I
      server a Ljw;a:I
      client a Lqd;a:I
      named field_1314 Lnet/minecraft/item/tool/Sword;field_1314:I
  • Constructor Details

    • Sword

      public Sword(int id, ToolMaterial toolMaterial)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_352;<init>(ILnet/minecraft/class_428;)V
      glue <init> Lclass_377;<init>(ILclass_47;)V
      server <init> Ljw;<init>(ILbb;)V
      client <init> Lqd;<init>(ILbu;)V
      named <init> Lnet/minecraft/item/tool/Sword;<init>(ILnet/minecraft/item/tool/ToolMaterial;)V
  • Method Details

    • getStrengthOnBlock

      public float getStrengthOnBlock(ItemInstance item, BlockBase tile)
      Overrides:
      getStrengthOnBlock in class ItemBase
      Mappings:
      Namespace Name Mixin selector
      intermediary method_438 Lnet/minecraft/class_124;method_438(Lnet/minecraft/class_31;Lnet/minecraft/class_17;)F
      glue method_103 Lclass_166;method_103(Lclass_224;Lclass_507;)F
      server a Lej;a(Lfy;Lna;)F
      client a Lgm;a(Liz;Luu;)F
      named getStrengthOnBlock Lnet/minecraft/item/ItemBase;getStrengthOnBlock(Lnet/minecraft/item/ItemInstance;Lnet/minecraft/block/BlockBase;)F
    • postHit

      public boolean postHit(ItemInstance itemInstance, Living damageSource, Living damageTarget)
      Overrides:
      postHit in class ItemBase
      Mappings:
      Namespace Name Mixin selector
      intermediary method_446 Lnet/minecraft/class_124;method_446(Lnet/minecraft/class_31;Lnet/minecraft/class_127;Lnet/minecraft/class_127;)Z
      glue method_262 Lclass_166;method_262(Lclass_224;Lclass_283;Lclass_283;)Z
      server a Lej;a(Lfy;Lhl;Lhl;)Z
      client a Lgm;a(Liz;Lls;Lls;)Z
      named postHit Lnet/minecraft/item/ItemBase;postHit(Lnet/minecraft/item/ItemInstance;Lnet/minecraft/entity/Living;Lnet/minecraft/entity/Living;)Z
    • postMine

      public boolean postMine(ItemInstance itemInstance, int int2, int int3, int int4, int int5, Living damageTarget)
      Overrides:
      postMine in class ItemBase
      Mappings:
      Namespace Name Mixin selector
      intermediary method_437 Lnet/minecraft/class_124;method_437(Lnet/minecraft/class_31;IIIILnet/minecraft/class_127;)Z
      glue method_102 Lclass_166;method_102(Lclass_224;IIIILclass_283;)Z
      server a Lej;a(Lfy;IIIILhl;)Z
      client a Lgm;a(Liz;IIIILls;)Z
      named postMine Lnet/minecraft/item/ItemBase;postMine(Lnet/minecraft/item/ItemInstance;IIIILnet/minecraft/entity/Living;)Z
    • getAttack

      public int getAttack(EntityBase entityBase)
      Overrides:
      getAttack in class ItemBase
      Mappings:
      Namespace Name Mixin selector
      intermediary method_447 Lnet/minecraft/class_124;method_447(Lnet/minecraft/class_57;)I
      glue method_263 Lclass_166;method_263(Lclass_450;)I
      server a Lej;a(Llq;)I
      client a Lgm;a(Lsn;)I
      named getAttack Lnet/minecraft/item/ItemBase;getAttack(Lnet/minecraft/entity/EntityBase;)I
    • isRendered3d

      @Environment(CLIENT) public boolean isRendered3d()
      Overrides:
      isRendered3d in class ItemBase
      Mappings:
      Namespace Name Mixin selector
      intermediary method_448 Lnet/minecraft/class_124;method_448()Z
      glue method_306 Lclass_166;method_306()Z
      server method_448 Lej;method_448()Z
      client b Lgm;b()Z
      named isRendered3d Lnet/minecraft/item/ItemBase;isRendered3d()Z
    • isEffectiveOn

      public boolean isEffectiveOn(BlockBase tile)
      Overrides:
      isEffectiveOn in class ItemBase
      Mappings:
      Namespace Name Mixin selector
      intermediary method_450 Lnet/minecraft/class_124;method_450(Lnet/minecraft/class_17;)Z
      glue method_36 Lclass_166;method_36(Lclass_507;)Z
      server a Lej;a(Lna;)Z
      client a Lgm;a(Luu;)Z
      named isEffectiveOn Lnet/minecraft/item/ItemBase;isEffectiveOn(Lnet/minecraft/block/BlockBase;)Z