public interface RecipeSerializer<T extends Recipe<?>>
Modifier and Type | Method and Description |
---|---|
T |
read(Identifier id,
JsonObject json) |
T |
read(Identifier id,
PacketByteBuf buf) |
static <S extends RecipeSerializer<T>,T extends Recipe<?>> |
register(String id,
S serializer) |
void |
write(PacketByteBuf buf,
T recipe) |
static final RecipeSerializer<ShapedRecipe> SHAPED
static final RecipeSerializer<ShapelessRecipe> SHAPELESS
static final SpecialRecipeSerializer<ArmorDyeRecipe> ARMOR_DYE
static final SpecialRecipeSerializer<BookCloningRecipe> BOOK_CLONING
static final SpecialRecipeSerializer<MapCloningRecipe> MAP_CLONING
static final SpecialRecipeSerializer<MapExtendingRecipe> MAP_EXTENDING
static final SpecialRecipeSerializer<FireworkRocketRecipe> FIREWORK_ROCKET
static final SpecialRecipeSerializer<FireworkStarRecipe> FIREWORK_STAR
static final SpecialRecipeSerializer<FireworkStarFadeRecipe> FIREWORK_STAR_FADE
static final SpecialRecipeSerializer<TippedArrowRecipe> TIPPED_ARROW
static final SpecialRecipeSerializer<BannerDuplicateRecipe> BANNER_DUPLICATE
static final SpecialRecipeSerializer<ShieldDecorationRecipe> SHIELD_DECORATION
static final SpecialRecipeSerializer<ShulkerBoxColoringRecipe> SHULKER_BOX
static final SpecialRecipeSerializer<SuspiciousStewRecipe> SUSPICIOUS_STEW
static final SpecialRecipeSerializer<RepairItemRecipe> REPAIR_ITEM
static final CookingRecipeSerializer<SmeltingRecipe> SMELTING
static final CookingRecipeSerializer<BlastingRecipe> BLASTING
static final CookingRecipeSerializer<SmokingRecipe> SMOKING
static final CookingRecipeSerializer<CampfireCookingRecipe> CAMPFIRE_COOKING
static final RecipeSerializer<StonecuttingRecipe> STONECUTTING
static final RecipeSerializer<SmithingRecipe> SMITHING
T read(Identifier id, JsonObject json)
T read(Identifier id, PacketByteBuf buf)
void write(PacketByteBuf buf, T recipe)
static <S extends RecipeSerializer<T>,T extends Recipe<?>> S register(String id, S serializer)