Interface ICraftingSubmitResult


@NonExtendable public interface ICraftingSubmitResult
  • Method Details

    • successful

      default boolean successful()
    • errorCode

      @Nullable @Nullable CraftingSubmitErrorCode errorCode()
      Returns:
      A not-null error code if the auto-crafting request was not submitted succesfully.
    • errorDetail

      @Nullable @Nullable Object errorDetail()
      If errorCode() is not-null, this may optionally give additional error details. Type depends on the error code returned in errorCode().
    • link

      @Nullable @Nullable ICraftingLink link()
      The crafting link, only available for successful requests with a requester. Make sure to properly keep track of this object, save it to NBT, load it from NBT, and make it available to the network via ICraftingRequester.getRequestedJobs().