Class NBTIngredient.Serializer
java.lang.Object
io.github.vampirestudios.vampirelib.crafting.NBTIngredient.Serializer
- All Implemented Interfaces:
io.github.tropheusj.serialization_hooks.ingredient.IngredientDeserializer
- Enclosing class:
- NBTIngredient
public static class NBTIngredient.Serializer
extends Object
implements io.github.tropheusj.serialization_hooks.ingredient.IngredientDeserializer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final NBTIngredient.SerializerFields inherited from interface io.github.tropheusj.serialization_hooks.ingredient.IngredientDeserializer
KNOWN_MISSING, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.world.item.crafting.IngredientfromJson(com.google.gson.JsonObject object) net.minecraft.world.item.crafting.IngredientfromNetwork(net.minecraft.network.FriendlyByteBuf buffer)
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID -
INSTANCE
-
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
fromNetwork
public net.minecraft.world.item.crafting.Ingredient fromNetwork(net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
fromNetworkin interfaceio.github.tropheusj.serialization_hooks.ingredient.IngredientDeserializer
-
fromJson
@Nullable public @Nullable net.minecraft.world.item.crafting.Ingredient fromJson(com.google.gson.JsonObject object) - Specified by:
fromJsonin interfaceio.github.tropheusj.serialization_hooks.ingredient.IngredientDeserializer
-