public class TridentItem extends Item implements Vanishable
Item.Settings| Modifier and Type | Field and Description |
|---|---|
private Multimap<EntityAttribute,EntityAttributeModifier> |
field_23746 |
ATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER_UUID, BLOCK_ITEMS, group, RANDOM| Constructor and Description |
|---|
TridentItem(Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMine(BlockState state,
World world,
BlockPos pos,
PlayerEntity miner) |
int |
getEnchantability() |
int |
getMaxUseTime(ItemStack stack) |
Multimap<EntityAttribute,EntityAttributeModifier> |
getModifiers(EquipmentSlot equipmentSlot) |
UseAction |
getUseAction(ItemStack stack) |
void |
onStoppedUsing(ItemStack stack,
World world,
LivingEntity user,
int remainingUseTicks) |
boolean |
postHit(ItemStack stack,
LivingEntity target,
LivingEntity attacker) |
boolean |
postMine(ItemStack stack,
World world,
BlockState state,
BlockPos pos,
LivingEntity miner) |
TypedActionResult<ItemStack> |
use(World world,
PlayerEntity user,
Hand hand) |
addPropertyGetter, appendStacks, appendTooltip, asItem, byRawId, canRepair, damage, finishUsing, fromBlock, getDrinkSound, getEatSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getPropertyGetter, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, hasEnchantmentGlint, hasPropertyGetters, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, useOnBlock, useOnEntityprivate final Multimap<EntityAttribute,EntityAttributeModifier> field_23746
public TridentItem(Item.Settings settings)
public boolean canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)
public UseAction getUseAction(ItemStack stack)
getUseAction in class Itempublic int getMaxUseTime(ItemStack stack)
getMaxUseTime in class Itempublic void onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)
onStoppedUsing in class Itempublic TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand hand)
public boolean postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)
public boolean postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)
public Multimap<EntityAttribute,EntityAttributeModifier> getModifiers(EquipmentSlot equipmentSlot)
getModifiers in class Itempublic int getEnchantability()
getEnchantability in class Item