Class TerraShattererItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.TieredItem
net.minecraft.world.item.DiggerItem
net.minecraft.world.item.PickaxeItem
vazkii.botania.common.item.equipment.tool.manasteel.ManasteelPickaxeItem
vazkii.botania.common.item.equipment.tool.terrasteel.TerraShattererItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, SequentialBreaker, SortableTool, CustomCreativeTabContents, CustomDamageItem

public class TerraShattererItem extends ManasteelPickaxeItem implements SequentialBreaker, CustomCreativeTabContents
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item

    net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int[]
     

    Fields inherited from class net.minecraft.world.item.Item

    ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    TerraShattererItem(net.minecraft.world.item.Item.Properties props)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addToCreativeTab(net.minecraft.world.item.Item me, net.minecraft.world.item.CreativeModeTab.Output output)
    Add this item and any variants to the creative tab
    boolean
    allowNbtUpdateAnimation(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack before, net.minecraft.world.item.ItemStack after)
     
    void
    appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> stacks, net.minecraft.world.item.TooltipFlag flags)
     
    void
    breakOtherBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos originPos, net.minecraft.core.Direction side)
     
    static int
    getLevel(net.minecraft.world.item.ItemStack stack)
     
    static int
    getMana_(net.minecraft.world.item.ItemStack stack)
     
    int
     
    Optional<net.minecraft.world.inventory.tooltip.TooltipComponent>
    getTooltipImage(net.minecraft.world.item.ItemStack stack)
     
    void
    inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int slot, boolean selected)
     
    static boolean
    isEnabled(net.minecraft.world.item.ItemStack stack)
     
    static boolean
    isTipped(net.minecraft.world.item.ItemStack stack)
     
    boolean
    onBlockStartBreak(net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
     
    protected static void
    setMana(net.minecraft.world.item.ItemStack stack, int mana)
     
    static void
    setTipped(net.minecraft.world.item.ItemStack stack)
     
    boolean
    shouldCauseReequipAnimation(net.minecraft.world.item.ItemStack oldStack, net.minecraft.world.item.ItemStack newStack, boolean slotChanged)
     
    net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>
    use(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
     

    Methods inherited from class vazkii.botania.common.item.equipment.tool.manasteel.ManasteelPickaxeItem

    damageItem, getSortingPriority, useOn

    Methods inherited from class net.minecraft.world.item.DiggerItem

    createAttributes, hurtEnemy, postHurtEnemy

    Methods inherited from class net.minecraft.world.item.TieredItem

    getEnchantmentValue, getTier, isValidRepairItem

    Methods inherited from class net.minecraft.world.item.Item

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getUseAnimation, getUseDuration, hasCraftingRemainingItem, interactLivingEntity, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, toString, useOnRelease, verifyComponentsAfterLoad

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled
  • Field Details

    • LEVELS

      public static final int[] LEVELS
  • Constructor Details

    • TerraShattererItem

      public TerraShattererItem(net.minecraft.world.item.Item.Properties props)
  • Method Details

    • addToCreativeTab

      public void addToCreativeTab(net.minecraft.world.item.Item me, net.minecraft.world.item.CreativeModeTab.Output output)
      Description copied from interface: CustomCreativeTabContents
      Add this item and any variants to the creative tab
      Specified by:
      addToCreativeTab in interface CustomCreativeTabContents
      Parameters:
      me - The item itself, for convenience when implementing this on a Block
    • appendHoverText

      public void appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> stacks, net.minecraft.world.item.TooltipFlag flags)
      Overrides:
      appendHoverText in class net.minecraft.world.item.Item
    • use

      public net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
      Overrides:
      use in class net.minecraft.world.item.Item
    • inventoryTick

      public void inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int slot, boolean selected)
      Overrides:
      inventoryTick in class ManasteelPickaxeItem
    • getTooltipImage

      public Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> getTooltipImage(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getTooltipImage in class net.minecraft.world.item.Item
    • onBlockStartBreak

      public boolean onBlockStartBreak(net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
    • getManaPerDamage

      public int getManaPerDamage()
      Overrides:
      getManaPerDamage in class ManasteelPickaxeItem
    • breakOtherBlock

      public void breakOtherBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos originPos, net.minecraft.core.Direction side)
      Specified by:
      breakOtherBlock in interface SequentialBreaker
    • isTipped

      public static boolean isTipped(net.minecraft.world.item.ItemStack stack)
    • setTipped

      public static void setTipped(net.minecraft.world.item.ItemStack stack)
    • isEnabled

      public static boolean isEnabled(net.minecraft.world.item.ItemStack stack)
    • setMana

      protected static void setMana(net.minecraft.world.item.ItemStack stack, int mana)
    • getMana_

      public static int getMana_(net.minecraft.world.item.ItemStack stack)
    • getLevel

      public static int getLevel(net.minecraft.world.item.ItemStack stack)
    • shouldCauseReequipAnimation

      public boolean shouldCauseReequipAnimation(net.minecraft.world.item.ItemStack oldStack, net.minecraft.world.item.ItemStack newStack, boolean slotChanged)
    • allowNbtUpdateAnimation

      public boolean allowNbtUpdateAnimation(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack before, net.minecraft.world.item.ItemStack after)