public abstract class RecipeSerializerEnvironmentalAccumulatorAbstract<T extends RecipeEnvironmentalAccumulator>
extends net.minecraftforge.registries.ForgeRegistryEntry<net.minecraft.item.crafting.IRecipeSerializer<?>>
implements net.minecraft.item.crafting.IRecipeSerializer<T>
BLASTING, CAMPFIRE_COOKING, CRAFTING_SHAPED, CRAFTING_SHAPELESS, CRAFTING_SPECIAL_ARMORDYE, CRAFTING_SPECIAL_BANNERDUPLICATE, CRAFTING_SPECIAL_BOOKCLONING, CRAFTING_SPECIAL_FIREWORK_ROCKET, CRAFTING_SPECIAL_FIREWORK_STAR, CRAFTING_SPECIAL_FIREWORK_STAR_FADE, CRAFTING_SPECIAL_MAPCLONING, CRAFTING_SPECIAL_MAPEXTENDING, CRAFTING_SPECIAL_REPAIRITEM, CRAFTING_SPECIAL_SHIELD, CRAFTING_SPECIAL_SHULKERBOXCOLORING, CRAFTING_SPECIAL_SUSPICIOUSSTEW, CRAFTING_SPECIAL_TIPPEDARROW, SMELTING, SMITHING, SMOKING, STONECUTTING| Constructor and Description |
|---|
RecipeSerializerEnvironmentalAccumulatorAbstract() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
createRecipe(net.minecraft.util.ResourceLocation id,
net.minecraft.item.crafting.Ingredient inputIngredient,
WeatherType inputWeather,
net.minecraft.item.ItemStack outputItem,
WeatherType outputWeather,
int duration,
int cooldownTime,
float processingSpeed) |
protected WeatherType |
getWeatherType(java.lang.String type) |
T |
read(net.minecraft.util.ResourceLocation recipeId,
com.google.gson.JsonObject json) |
T |
read(net.minecraft.util.ResourceLocation recipeId,
net.minecraft.network.PacketBuffer buffer) |
void |
write(net.minecraft.network.PacketBuffer buffer,
RecipeEnvironmentalAccumulator recipe) |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNamepublic RecipeSerializerEnvironmentalAccumulatorAbstract()
protected WeatherType getWeatherType(java.lang.String type) throws com.google.gson.JsonSyntaxException
com.google.gson.JsonSyntaxExceptionprotected abstract T createRecipe(net.minecraft.util.ResourceLocation id, net.minecraft.item.crafting.Ingredient inputIngredient, WeatherType inputWeather, net.minecraft.item.ItemStack outputItem, WeatherType outputWeather, int duration, int cooldownTime, float processingSpeed)
public T read(net.minecraft.util.ResourceLocation recipeId, com.google.gson.JsonObject json)
read in interface net.minecraft.item.crafting.IRecipeSerializer<T extends RecipeEnvironmentalAccumulator>@Nullable public T read(net.minecraft.util.ResourceLocation recipeId, net.minecraft.network.PacketBuffer buffer)
read in interface net.minecraft.item.crafting.IRecipeSerializer<T extends RecipeEnvironmentalAccumulator>public void write(net.minecraft.network.PacketBuffer buffer,
RecipeEnvironmentalAccumulator recipe)
write in interface net.minecraft.item.crafting.IRecipeSerializer<T extends RecipeEnvironmentalAccumulator>