Class TinyPotatoBlockItem

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

public class TinyPotatoBlockItem extends net.minecraft.world.item.BlockItem implements ItemWithBannerPattern
  • 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
    TinyPotatoBlockItem(net.minecraft.world.level.block.Block block, net.minecraft.world.item.Item.Properties props)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canEquip(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot armorType, net.minecraft.world.entity.Entity entity)
     
    net.minecraft.tags.TagKey<net.minecraft.world.level.block.entity.BannerPattern>
     
    @Nullable net.minecraft.world.entity.EquipmentSlot
    getEquipmentSlot(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 e, int t, boolean idunno)
     
    static boolean
    isEnchantedName(@NotNull net.minecraft.network.chat.Component name, @Nullable StringBuilder nameBuilder)
     
    boolean
    isFoil(@NotNull net.minecraft.world.item.ItemStack stack)
     
    static String
     

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

    appendHoverText, canFitInsideContainerItems, canPlace, getBlock, getDescriptionId, getPlacementState, getPlaceSound, mustSurvive, onDestroyed, place, placeBlock, registerBlocks, requiredFeatures, setBlockEntityData, updateCustomBlockEntityTag, updateCustomBlockEntityTag, updatePlacementContext, useOn

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

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

    • TinyPotatoBlockItem

      public TinyPotatoBlockItem(net.minecraft.world.level.block.Block block, net.minecraft.world.item.Item.Properties props)
  • Method Details

    • getBannerPattern

      public net.minecraft.tags.TagKey<net.minecraft.world.level.block.entity.BannerPattern> getBannerPattern()
      Specified by:
      getBannerPattern in interface ItemWithBannerPattern
    • inventoryTick

      public void inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity e, int t, boolean idunno)
      Overrides:
      inventoryTick in class net.minecraft.world.item.Item
    • isEnchantedName

      public static boolean isEnchantedName(@NotNull @NotNull net.minecraft.network.chat.Component name, @Nullable @Nullable StringBuilder nameBuilder)
    • removeFromFront

      public static String removeFromFront(String name, String match)
    • isFoil

      public boolean isFoil(@NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Overrides:
      isFoil in class net.minecraft.world.item.Item
    • getEquipmentSlot

      @Nullable public @Nullable net.minecraft.world.entity.EquipmentSlot getEquipmentSlot(net.minecraft.world.item.ItemStack stack)
    • canEquip

      public boolean canEquip(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot armorType, net.minecraft.world.entity.Entity entity)