Class TerraTruncatorItem

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

public class TerraTruncatorItem extends ManasteelAxeItem implements SequentialBreaker
  • Nested Class Summary

    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
    The maximum radius (in blocks) which the Terra Truncator will go in order to try and murder/cut down the tree.

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

    STRIPPABLES

    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
    TerraTruncatorItem(net.minecraft.world.item.Item.Properties props)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    int
     
    boolean
    onBlockStartBreak(net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
     
    static void
    onTickEnd(net.minecraft.server.level.ServerLevel world)
     
    static boolean
    shouldBreak(net.minecraft.world.entity.player.Player player)
     

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

    damageItem, getSortingPriority, inventoryTick, 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

    appendHoverText, 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, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, interactLivingEntity, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, toString, use, 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

    • BLOCK_RANGE

      public static final int BLOCK_RANGE
      The maximum radius (in blocks) which the Terra Truncator will go in order to try and murder/cut down the tree.
      See Also:
  • Constructor Details

    • TerraTruncatorItem

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

    • shouldBreak

      public static boolean shouldBreak(net.minecraft.world.entity.player.Player player)
    • 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 ManasteelAxeItem
    • 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
    • onTickEnd

      public static void onTickEnd(net.minecraft.server.level.ServerLevel world)