Class PartialNBTIngredient.Serializer

java.lang.Object
io.github.vampirestudios.vampirelib.crafting.PartialNBTIngredient.Serializer
All Implemented Interfaces:
io.github.tropheusj.serialization_hooks.ingredient.IngredientDeserializer
Enclosing class:
PartialNBTIngredient

public static class PartialNBTIngredient.Serializer extends Object implements io.github.tropheusj.serialization_hooks.ingredient.IngredientDeserializer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
     

    Fields inherited from interface io.github.tropheusj.serialization_hooks.ingredient.IngredientDeserializer

    KNOWN_MISSING, REGISTRY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.crafting.Ingredient
    fromJson(com.google.gson.JsonObject json)
     
    net.minecraft.world.item.crafting.Ingredient
    fromNetwork(net.minecraft.network.FriendlyByteBuf buffer)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • fromJson

      public net.minecraft.world.item.crafting.Ingredient fromJson(com.google.gson.JsonObject json)
      Specified by:
      fromJson in interface io.github.tropheusj.serialization_hooks.ingredient.IngredientDeserializer
    • fromNetwork

      public net.minecraft.world.item.crafting.Ingredient fromNetwork(net.minecraft.network.FriendlyByteBuf buffer)
      Specified by:
      fromNetwork in interface io.github.tropheusj.serialization_hooks.ingredient.IngredientDeserializer