Package net.minecraft.item
Class SwordItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.class_3562
net.minecraft.item.SwordItem
- All Implemented Interfaces:
Itemable
- Mappings:
Namespace Name official auhintermediary net/minecraft/class_1101named net/minecraft/item/SwordItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatprivate final floatFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER, BLOCK_ITEMS, itemGroup, RANDOM -
Constructor Summary
ConstructorsConstructorDescriptionSwordItem(IToolMaterial iToolMaterial, int int2, float float2, Item.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbeforeBlockBreak(BlockState state, World world, BlockPos pos, PlayerEntity player) floatgetBlockBreakingSpeed(ItemStack stack, BlockState state) floatbooleanmethod_3346(BlockState blockState) booleanmethod_3356(ItemStack itemStack, World world, BlockState blockState, BlockPos blockPos, LivingEntity livingEntity) method_6326(EquipmentSlot equipmentSlot) booleanonEntityHit(ItemStack stack, LivingEntity entity1, LivingEntity entity2) Methods inherited from class net.minecraft.class_3562
canRepair, getEnchantability, method_16137Methods inherited from class net.minecraft.item.Item
addProperty, appendToItemGroup, appendTooltips, byRawId, canAddTo, computeTranslationKey, fromBlock, getDefaultStack, getItem, getItemGroup, getMaxCount, getMaxDamage, getMaxUseTime, getProperty, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasProperties, inventoryTick, isDamageable, isEnchantable, isFood, isNetworkSynced, method_13649, method_16075, method_16080, method_3353, method_3359, method_3367, method_3383, onCraft, onHit, postProcessNbt, registerBlockItem, setup, shouldSyncNbtToClient, useOnBlock
-
Field Details
-
attackMultiplier
private final float attackMultiplier- Mappings:
Namespace Name Mixin selector official aLauh;a:Fintermediary field_6950Lnet/minecraft/class_1101;field_6950:Fnamed attackMultiplierLnet/minecraft/item/SwordItem;attackMultiplier:F
-
field_17385
private final float field_17385- Mappings:
Namespace Name Mixin selector official bLauh;b:Fintermediary field_17385Lnet/minecraft/class_1101;field_17385:Fnamed field_17385Lnet/minecraft/item/SwordItem;field_17385:F
-
-
Constructor Details
-
SwordItem
-
-
Method Details
-
method_16130
public float method_16130()- Mappings:
Namespace Name Mixin selector official dLauh;d()Fintermediary method_16130Lnet/minecraft/class_1101;method_16130()Fnamed method_16130Lnet/minecraft/item/SwordItem;method_16130()F
-
beforeBlockBreak
- Overrides:
beforeBlockBreakin classItem- Mappings:
Namespace Name Mixin selector official aLata;a(Lblc;Laxy;Lel;Laog;)Zintermediary method_16073Lnet/minecraft/class_1069;method_16073(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_988;)Znamed beforeBlockBreakLnet/minecraft/item/Item;beforeBlockBreak(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;)Z
-
getBlockBreakingSpeed
- Overrides:
getBlockBreakingSpeedin classItem- Mappings:
Namespace Name Mixin selector official aLata;a(Late;Lblc;)Fintermediary method_3351Lnet/minecraft/class_1069;method_3351(Lnet/minecraft/class_1071;Lnet/minecraft/class_2232;)Fnamed getBlockBreakingSpeedLnet/minecraft/item/Item;getBlockBreakingSpeed(Lnet/minecraft/item/ItemStack;Lnet/minecraft/block/BlockState;)F
-
onEntityHit
- Overrides:
onEntityHitin classItem- Mappings:
Namespace Name Mixin selector official aLata;a(Late;Lafa;Lafa;)Zintermediary method_3354Lnet/minecraft/class_1069;method_3354(Lnet/minecraft/class_1071;Lnet/minecraft/class_1699;Lnet/minecraft/class_1699;)Znamed onEntityHitLnet/minecraft/item/Item;onEntityHit(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-
method_3356
public boolean method_3356(ItemStack itemStack, World world, BlockState blockState, BlockPos blockPos, LivingEntity livingEntity) - Overrides:
method_3356in classItem- Mappings:
Namespace Name Mixin selector official aLata;a(Late;Laxy;Lblc;Lel;Lafa;)Zintermediary method_3356Lnet/minecraft/class_1069;method_3356(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_2232;Lnet/minecraft/class_2552;Lnet/minecraft/class_1699;)Znamed method_3356Lnet/minecraft/item/Item;method_3356(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/LivingEntity;)Z
-
method_3346
- Overrides:
method_3346in classItem- Mappings:
Namespace Name Mixin selector official aLata;a(Lblc;)Zintermediary method_3346Lnet/minecraft/class_1069;method_3346(Lnet/minecraft/class_2232;)Znamed method_3346Lnet/minecraft/item/Item;method_3346(Lnet/minecraft/block/BlockState;)Z
-
method_6326
- Overrides:
method_6326in classItem- Mappings:
Namespace Name Mixin selector official aLata;a(Laew;)Lcom/google/common/collect/Multimap;intermediary method_6326Lnet/minecraft/class_1069;method_6326(Lnet/minecraft/class_2968;)Lcom/google/common/collect/Multimap;named method_6326Lnet/minecraft/item/Item;method_6326(Lnet/minecraft/entity/EquipmentSlot;)Lcom/google/common/collect/Multimap;
-