Package appeng.api.crafting
Interface IPatternDetailsDecoder
public interface IPatternDetailsDecoder
Allows mod to decode their
IPatternDetails from their item stacks. This is required for custom patterns,
otherwise the crafting CPU can't properly persist them. Register a single instance to PatternDetailsHelper.-
Method Summary
Modifier and TypeMethodDescription@Nullable IPatternDetailsdecodePattern(AEItemKey what, net.minecraft.world.level.Level level) default @Nullable IPatternDetailsdecodePattern(net.minecraft.world.item.ItemStack what, net.minecraft.world.level.Level level) Convenience alternative todecodePattern(AEItemKey, Level)that takes an ItemStack.booleanisEncodedPattern(net.minecraft.world.item.ItemStack stack)
-
Method Details
-
isEncodedPattern
boolean isEncodedPattern(net.minecraft.world.item.ItemStack stack) -
decodePattern
@Nullable @Nullable IPatternDetails decodePattern(AEItemKey what, net.minecraft.world.level.Level level) -
decodePattern
@Nullable default @Nullable IPatternDetails decodePattern(net.minecraft.world.item.ItemStack what, net.minecraft.world.level.Level level) Convenience alternative todecodePattern(AEItemKey, Level)that takes an ItemStack.
-