Package info.u_team.u_team_core.util
Class SerializeUtil
java.lang.Object
info.u_team.u_team_core.util.SerializeUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FluidIngredient
deserializeFluidIngredient
(com.google.gson.JsonElement json) static net.minecraft.world.item.crafting.Ingredient
deserializeItemIngredient
(com.google.gson.JsonElement json) static net.minecraft.world.item.ItemStack
deserializeItemStack
(com.google.gson.JsonElement json) static com.google.gson.JsonElement
serializeFluidIngredient
(FluidIngredient ingredient) static com.google.gson.JsonElement
serializeItemIngredient
(net.minecraft.world.item.crafting.Ingredient ingredient) static com.google.gson.JsonElement
serializeItemStack
(net.minecraft.world.item.ItemStack stack)
-
Constructor Details
-
SerializeUtil
public SerializeUtil()
-
-
Method Details
-
serializeItemIngredient
public static com.google.gson.JsonElement serializeItemIngredient(net.minecraft.world.item.crafting.Ingredient ingredient) -
deserializeItemIngredient
public static net.minecraft.world.item.crafting.Ingredient deserializeItemIngredient(com.google.gson.JsonElement json) -
serializeFluidIngredient
-
deserializeFluidIngredient
-
serializeItemStack
public static com.google.gson.JsonElement serializeItemStack(net.minecraft.world.item.ItemStack stack) -
deserializeItemStack
public static net.minecraft.world.item.ItemStack deserializeItemStack(com.google.gson.JsonElement json)
-