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