Package net.minecraft.item
Class TridentItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.TridentItem
- All Implemented Interfaces:
ItemConvertible,Vanishable
public class TridentItem extends Item implements Vanishable
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description private Multimap<EntityAttribute,EntityAttributeModifier>field_23746Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM -
Constructor Summary
Constructors Constructor Description TridentItem(Item.Settings settings) -
Method Summary
Modifier and Type Method Description booleancanMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)Multimap<EntityAttribute,EntityAttributeModifier>getAttributeModifiers(EquipmentSlot slot)intgetEnchantability()intgetMaxUseTime(ItemStack stack)UseActiongetUseAction(ItemStack stack)voidonStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)booleanpostHit(ItemStack stack, LivingEntity target, LivingEntity attacker)booleanpostMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)TypedActionResult<ItemStack>use(World world, PlayerEntity user, Hand hand)Methods inherited from class net.minecraft.item.Item
appendStacks, appendTooltip, asItem, byRawId, canRepair, damage, finishUsing, fromBlock, getDrinkSound, getEatSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, hasEnchantmentGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, useOnBlock, useOnEntity
-
Field Details
-
Constructor Details
-
Method Details
-
canMine
-
getUseAction
- Overrides:
getUseActionin classItem
-
getMaxUseTime
- Overrides:
getMaxUseTimein classItem
-
onStoppedUsing
- Overrides:
onStoppedUsingin classItem
-
use
-
postHit
-
postMine
public boolean postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) -
getAttributeModifiers
public Multimap<EntityAttribute,EntityAttributeModifier> getAttributeModifiers(EquipmentSlot slot)- Overrides:
getAttributeModifiersin classItem
-
getEnchantability
public int getEnchantability()- Overrides:
getEnchantabilityin classItem
-