Package com.minecolonies.core.recipes
Class PlantIngredient.Serializer
java.lang.Object
com.minecolonies.core.recipes.PlantIngredient.Serializer
- All Implemented Interfaces:
net.minecraftforge.common.crafting.IIngredientSerializer<PlantIngredient>
- Enclosing class:
- PlantIngredient
public static class PlantIngredient.Serializer
extends Object
implements net.minecraftforge.common.crafting.IIngredientSerializer<PlantIngredient>
-
Method Summary
Modifier and TypeMethodDescriptionstatic PlantIngredient.Serializer@NotNull PlantIngredientparse(@NotNull com.google.gson.JsonObject json) @NotNull PlantIngredientparse(@NotNull net.minecraft.network.FriendlyByteBuf buffer) voidwrite(@NotNull com.google.gson.JsonObject json, @NotNull PlantIngredient ingredient) voidwrite(@NotNull net.minecraft.network.FriendlyByteBuf buffer, @NotNull PlantIngredient ingredient)
-
Method Details
-
getInstance
-
parse
- Specified by:
parsein interfacenet.minecraftforge.common.crafting.IIngredientSerializer<PlantIngredient>
-
write
public void write(@NotNull @NotNull com.google.gson.JsonObject json, @NotNull @NotNull PlantIngredient ingredient) -
parse
@NotNull public @NotNull PlantIngredient parse(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
parsein interfacenet.minecraftforge.common.crafting.IIngredientSerializer<PlantIngredient>
-
write
public void write(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buffer, @NotNull @NotNull PlantIngredient ingredient) - Specified by:
writein interfacenet.minecraftforge.common.crafting.IIngredientSerializer<PlantIngredient>
-