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
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.item.Itemnet.minecraft.world.item.Item.Properties
- 
Field SummaryFields inherited from class net.minecraft.world.item.ItemBASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAllowedTags(List<net.minecraft.network.chat.Component> tooltip, CraftingPattern pattern) voidappendHoverText(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.static ICraftingPatternfromCache(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack) static AllowedTagListgetAllowedTags(net.minecraft.world.item.ItemStack pattern) static net.neoforged.neoforge.fluids.FluidStackgetFluidInputSlot(net.minecraft.world.item.ItemStack pattern, int slot) static net.neoforged.neoforge.fluids.FluidStackgetFluidOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot) static net.minecraft.world.item.ItemStackgetInputSlot(net.minecraft.world.item.ItemStack pattern, int slot) static net.minecraft.world.item.ItemStackgetOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot) voidinitializeClient(Consumer<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> consumer) static booleanisExact(net.minecraft.world.item.ItemStack pattern) static booleanisProcessing(net.minecraft.world.item.ItemStack pattern) static voidsetAllowedTags(net.minecraft.world.item.ItemStack pattern, AllowedTagList allowedTagList) static voidsetExact(net.minecraft.world.item.ItemStack pattern, boolean exact) static voidsetFluidInputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.neoforged.neoforge.fluids.FluidStack stack) static voidsetFluidOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.neoforged.neoforge.fluids.FluidStack stack) static voidsetInputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.minecraft.world.item.ItemStack stack) static voidsetOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.minecraft.world.item.ItemStack stack) static voidsetProcessing(net.minecraft.world.item.ItemStack pattern, boolean processing) static voidsetToCurrentVersion(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.ItemasItem, 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, verifyTagAfterLoadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtensioncanApplyAtEnchantingTable, 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- 
PatternItempublic PatternItem()
 
- 
- 
Method Details- 
fromCachepublic static ICraftingPattern fromCache(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack) 
- 
setInputSlotpublic 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) 
- 
setOutputSlotpublic 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) 
- 
setFluidInputSlotpublic static void setFluidInputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.neoforged.neoforge.fluids.FluidStack stack) 
- 
getFluidInputSlotpublic static net.neoforged.neoforge.fluids.FluidStack getFluidInputSlot(net.minecraft.world.item.ItemStack pattern, int slot) 
- 
setFluidOutputSlotpublic static void setFluidOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot, net.neoforged.neoforge.fluids.FluidStack stack) 
- 
getFluidOutputSlotpublic static net.neoforged.neoforge.fluids.FluidStack getFluidOutputSlot(net.minecraft.world.item.ItemStack pattern, int slot) 
- 
isProcessingpublic static boolean isProcessing(net.minecraft.world.item.ItemStack pattern) 
- 
setProcessingpublic static void setProcessing(net.minecraft.world.item.ItemStack pattern, boolean processing) 
- 
isExactpublic static boolean isExact(net.minecraft.world.item.ItemStack pattern) 
- 
setExactpublic static void setExact(net.minecraft.world.item.ItemStack pattern, boolean exact) 
- 
setToCurrentVersionpublic static void setToCurrentVersion(net.minecraft.world.item.ItemStack pattern) 
- 
setAllowedTagspublic static void setAllowedTags(net.minecraft.world.item.ItemStack pattern, AllowedTagList allowedTagList) 
- 
getAllowedTags
- 
initializeClientpublic void initializeClient(Consumer<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> consumer) - Overrides:
- initializeClientin class- net.minecraft.world.item.Item
 
- 
appendHoverTextpublic 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:
- appendHoverTextin class- net.minecraft.world.item.Item
 
- 
addAllowedTagspublic void addAllowedTags(List<net.minecraft.network.chat.Component> tooltip, CraftingPattern pattern) 
- 
usepublic 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:
- usein 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:ICraftingPatternProviderCreates a crafting pattern.- Specified by:
- createin interface- ICraftingPatternProvider
- Parameters:
- level- the level
- stack- the pattern stack, the implementor needs to copy it
- container- the- ICraftingPatternContainerwhere the pattern is in
- Returns:
- the crafting pattern
 
 
-