java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.TieredItem
net.minecraft.world.item.SwordItem
vazkii.botania.common.item.equipment.tool.manasteel.ManasteelSwordItem
vazkii.botania.common.item.equipment.tool.terrasteel.TerraBladeItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, LensEffectItem, CustomDamageItem

public class TerraBladeItem extends ManasteelSwordItem implements LensEffectItem
  • 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 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
    TerraBladeItem(net.minecraft.world.item.Item.Properties props)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(net.minecraft.world.item.ItemStack stack, BurstProperties props, net.minecraft.world.level.Level level)
    Called when a mana spreader that has this focus shoots a burst.
    static net.minecraft.world.InteractionResult
    attackEntity(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level world, net.minecraft.world.InteractionHand hand, net.minecraft.world.entity.Entity target, @Nullable net.minecraft.world.phys.EntityHitResult hit)
     
    boolean
    collideBurst(ManaBurst burst, net.minecraft.world.phys.HitResult pos, boolean isManaBlock, boolean shouldKill, net.minecraft.world.item.ItemStack stack)
    Called when a mana burst fired from a mana spreader with this focus collides against any block or entity.
    boolean
    doParticles(ManaBurst burst, net.minecraft.world.item.ItemStack stack)
    Called when the mana burst should do it's particles.
    getBurst(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
     
    int
     
    static void
    leftClick(net.minecraft.world.item.ItemStack stack)
     
    static void
    trySpawnBurst(net.minecraft.world.entity.player.Player player)
     
    static void
    trySpawnBurst(net.minecraft.world.entity.player.Player player, float attackStrength)
     
    void
    updateBurst(ManaBurst burst, net.minecraft.world.item.ItemStack stack)
    Called when a mana burst fired from a mana spreader with this focus is updated.

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

    damageItem, inventoryTick

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

    canAttackBlock, 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, 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, useOn, 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

    Methods inherited from interface vazkii.botania.api.mana.LensEffectItem

    getManaToTransfer
  • Constructor Details

    • TerraBladeItem

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

    • leftClick

      public static void leftClick(net.minecraft.world.item.ItemStack stack)
    • attackEntity

      public static net.minecraft.world.InteractionResult attackEntity(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level world, net.minecraft.world.InteractionHand hand, net.minecraft.world.entity.Entity target, @Nullable @Nullable net.minecraft.world.phys.EntityHitResult hit)
    • trySpawnBurst

      public static void trySpawnBurst(net.minecraft.world.entity.player.Player player)
    • trySpawnBurst

      public static void trySpawnBurst(net.minecraft.world.entity.player.Player player, float attackStrength)
    • getManaPerDamage

      public int getManaPerDamage()
      Overrides:
      getManaPerDamage in class ManasteelSwordItem
    • getBurst

      public static ManaBurstEntity getBurst(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
    • apply

      public void apply(net.minecraft.world.item.ItemStack stack, BurstProperties props, net.minecraft.world.level.Level level)
      Description copied from interface: LensEffectItem
      Called when a mana spreader that has this focus shoots a burst. This is where you change the properties of the burst.
      Specified by:
      apply in interface LensEffectItem
    • collideBurst

      public boolean collideBurst(ManaBurst burst, net.minecraft.world.phys.HitResult pos, boolean isManaBlock, boolean shouldKill, net.minecraft.world.item.ItemStack stack)
      Description copied from interface: LensEffectItem
      Called when a mana burst fired from a mana spreader with this focus collides against any block or entity. This is called after the collision is handled.
      Specified by:
      collideBurst in interface LensEffectItem
      Returns:
      True to kill the burst. False to keep it alive.
    • updateBurst

      public void updateBurst(ManaBurst burst, net.minecraft.world.item.ItemStack stack)
      Description copied from interface: LensEffectItem
      Called when a mana burst fired from a mana spreader with this focus is updated. This is called before the update is handled.
      Specified by:
      updateBurst in interface LensEffectItem
    • doParticles

      public boolean doParticles(ManaBurst burst, net.minecraft.world.item.ItemStack stack)
      Description copied from interface: LensEffectItem
      Called when the mana burst should do it's particles. Return false to not do any particles.
      Specified by:
      doParticles in interface LensEffectItem