Class ManaBlasterItem

java.lang.Object
net.minecraft.world.item.Item
vazkii.botania.common.item.ManaBlasterItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike

public class ManaBlasterItem extends net.minecraft.world.item.Item
  • 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
     

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

    Modifier and Type
    Method
    Description
    void
    appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flags)
     
    static List<net.minecraft.world.item.ItemStack>
    getAllLens(net.minecraft.world.item.ItemStack stack)
     
    int
    getBarColor(net.minecraft.world.item.ItemStack stack)
     
    int
    getBarWidth(net.minecraft.world.item.ItemStack stack)
     
    getBurstProps(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, boolean request, net.minecraft.world.InteractionHand hand)
     
    static int
    getClipPos(net.minecraft.world.item.ItemStack stack)
     
    static net.minecraft.world.item.ItemStack
    getLens(net.minecraft.world.item.ItemStack stack)
     
    static net.minecraft.world.item.ItemStack
    getLensAtPos(net.minecraft.world.item.ItemStack stack, int pos)
     
    net.minecraft.network.chat.Component
    getName(net.minecraft.world.item.ItemStack stack)
     
    static boolean
    hasClip(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)
     
    boolean
    isBarVisible(net.minecraft.world.item.ItemStack stack)
     
    static boolean
    isValidLens(net.minecraft.world.item.ItemStack lens)
     
    static void
    rotatePos(net.minecraft.world.item.ItemStack stack)
     
    static void
    setClip(net.minecraft.world.item.ItemStack stack, boolean clip)
     
    static void
    setClipPos(net.minecraft.world.item.ItemStack stack, int pos)
     
    static void
    setLens(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack lens)
     
    static void
    setLensAtPos(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack lens, int pos)
     
    net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>
    use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
     

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

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, 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
  • Field Details

  • Constructor Details

    • ManaBlasterItem

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

    • use

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

      public BurstProperties getBurstProps(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, boolean request, net.minecraft.world.InteractionHand hand)
    • appendHoverText

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

      public net.minecraft.network.chat.Component getName(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getName in class net.minecraft.world.item.Item
    • hasClip

      public static boolean hasClip(net.minecraft.world.item.ItemStack stack)
    • setClip

      public static void setClip(net.minecraft.world.item.ItemStack stack, boolean clip)
    • getClipPos

      public static int getClipPos(net.minecraft.world.item.ItemStack stack)
    • setClipPos

      public static void setClipPos(net.minecraft.world.item.ItemStack stack, int pos)
    • rotatePos

      public static void rotatePos(net.minecraft.world.item.ItemStack stack)
    • getLensAtPos

      public static net.minecraft.world.item.ItemStack getLensAtPos(net.minecraft.world.item.ItemStack stack, int pos)
    • setLensAtPos

      public static void setLensAtPos(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack lens, int pos)
    • setLens

      public static void setLens(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack lens)
    • getLens

      public static net.minecraft.world.item.ItemStack getLens(net.minecraft.world.item.ItemStack stack)
    • isValidLens

      public static boolean isValidLens(net.minecraft.world.item.ItemStack lens)
    • getAllLens

      public static List<net.minecraft.world.item.ItemStack> getAllLens(net.minecraft.world.item.ItemStack stack)
    • 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 net.minecraft.world.item.Item
    • isBarVisible

      public boolean isBarVisible(net.minecraft.world.item.ItemStack stack)
      Overrides:
      isBarVisible in class net.minecraft.world.item.Item
    • getBarWidth

      public int getBarWidth(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getBarWidth in class net.minecraft.world.item.Item
    • getBarColor

      public int getBarColor(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getBarColor in class net.minecraft.world.item.Item