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 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 to decodePattern(AEItemKey, Level) that takes an ItemStack.