Class PatternItem

java.lang.Object
net.minecraft.world.item.Item
com.refinedmods.refinedstorage.item.PatternItem
All Implemented Interfaces:
ICraftingPatternProvider, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.neoforged.neoforge.common.extensions.IItemExtension

public class PatternItem extends net.minecraft.world.item.Item implements ICraftingPatternProvider
  • Nested Class Summary

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

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

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

    BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE

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

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAllowedTags(List<net.minecraft.network.chat.Component> tooltip, CraftingPattern pattern)
     
    void
    appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flag)
     
    create(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack, ICraftingPatternContainer container)
    Creates a crafting pattern.
    fromCache(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack)
     
    getAllowedTags(net.minecraft.world.item.ItemStack pattern)
     
    static net.neoforged.neoforge.fluids.FluidStack
    getFluidInputSlot(net.minecraft.world.item.ItemStack pattern, int slot)
     
    static net.neoforged.neoforge.fluids.FluidStack
    getFluidOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot)
     
    static net.minecraft.world.item.ItemStack
    getInputSlot(net.minecraft.world.item.ItemStack pattern, int slot)
     
    static net.minecraft.world.item.ItemStack
    getOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot)
     
    void
    initializeClient(Consumer<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> consumer)
     
    static boolean
    isExact(net.minecraft.world.item.ItemStack pattern)
     
    static boolean
    isProcessing(net.minecraft.world.item.ItemStack pattern)
     
    static void
    setAllowedTags(net.minecraft.world.item.ItemStack pattern, AllowedTagList allowedTagList)
     
    static void
    setExact(net.minecraft.world.item.ItemStack pattern, boolean exact)
     
    static void
    setFluidInputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.neoforged.neoforge.fluids.FluidStack stack)
     
    static void
    setFluidOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.neoforged.neoforge.fluids.FluidStack stack)
     
    static void
    setInputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.minecraft.world.item.ItemStack stack)
     
    static void
    setOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.minecraft.world.item.ItemStack stack)
     
    static void
    setProcessing(net.minecraft.world.item.ItemStack pattern, boolean processing)
     
    static void
    setToCurrentVersion(net.minecraft.world.item.ItemStack pattern)
     
    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 net.minecraft.world.item.Item

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoad

    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 net.neoforged.neoforge.common.extensions.IItemExtension

    canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
  • Constructor Details

    • PatternItem

      public PatternItem()
  • Method Details

    • fromCache

      public static ICraftingPattern fromCache(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack)
    • setInputSlot

      public static void setInputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.minecraft.world.item.ItemStack stack)
    • getInputSlot

      @Nonnull public static net.minecraft.world.item.ItemStack getInputSlot(net.minecraft.world.item.ItemStack pattern, int slot)
    • setOutputSlot

      public static void setOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.minecraft.world.item.ItemStack stack)
    • getOutputSlot

      @Nonnull public static net.minecraft.world.item.ItemStack getOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot)
    • setFluidInputSlot

      public static void setFluidInputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.neoforged.neoforge.fluids.FluidStack stack)
    • getFluidInputSlot

      public static net.neoforged.neoforge.fluids.FluidStack getFluidInputSlot(net.minecraft.world.item.ItemStack pattern, int slot)
    • setFluidOutputSlot

      public static void setFluidOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.neoforged.neoforge.fluids.FluidStack stack)
    • getFluidOutputSlot

      public static net.neoforged.neoforge.fluids.FluidStack getFluidOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot)
    • isProcessing

      public static boolean isProcessing(net.minecraft.world.item.ItemStack pattern)
    • setProcessing

      public static void setProcessing(net.minecraft.world.item.ItemStack pattern, boolean processing)
    • isExact

      public static boolean isExact(net.minecraft.world.item.ItemStack pattern)
    • setExact

      public static void setExact(net.minecraft.world.item.ItemStack pattern, boolean exact)
    • setToCurrentVersion

      public static void setToCurrentVersion(net.minecraft.world.item.ItemStack pattern)
    • setAllowedTags

      public static void setAllowedTags(net.minecraft.world.item.ItemStack pattern, AllowedTagList allowedTagList)
    • getAllowedTags

      @Nullable public static AllowedTagList getAllowedTags(net.minecraft.world.item.ItemStack pattern)
    • initializeClient

      public void initializeClient(Consumer<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> consumer)
      Overrides:
      initializeClient in class net.minecraft.world.item.Item
    • appendHoverText

      public void appendHoverText(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.world.level.Level level, List<net.minecraft.network.chat.Component> tooltip, net.minecraft.world.item.TooltipFlag flag)
      Overrides:
      appendHoverText in class net.minecraft.world.item.Item
    • addAllowedTags

      public void addAllowedTags(List<net.minecraft.network.chat.Component> tooltip, CraftingPattern pattern)
    • 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
    • create

      @Nonnull public ICraftingPattern create(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack, ICraftingPatternContainer container)
      Description copied from interface: ICraftingPatternProvider
      Creates a crafting pattern.
      Specified by:
      create in interface ICraftingPatternProvider
      Parameters:
      level - the level
      stack - the pattern stack, the implementor needs to copy it
      container - the ICraftingPatternContainer where the pattern is in
      Returns:
      the crafting pattern