Enum Class IngredientConditionedSerializer
java.lang.Object
java.lang.Enum<IngredientConditionedSerializer>
com.blamejared.crafttweaker.api.ingredient.serializer.IngredientConditionedSerializer
- All Implemented Interfaces:
Serializable,Comparable<IngredientConditionedSerializer>,Constable,net.minecraftforge.common.crafting.IIngredientSerializer<IngredientConditioned<?,?>>
@ParametersAreNonnullByDefault
public enum IngredientConditionedSerializer
extends Enum<IngredientConditionedSerializer>
implements net.minecraftforge.common.crafting.IIngredientSerializer<IngredientConditioned<?,?>>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionparse(com.google.gson.JsonObject json) parse(net.minecraft.network.FriendlyByteBuf buffer) com.google.gson.JsonObjecttoJson(IngredientConditioned<?, ?> ingredientVanillaPlus) Returns the enum constant of this class with the specified name.static IngredientConditionedSerializer[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwrite(net.minecraft.network.FriendlyByteBuf buffer, IngredientConditioned<?, ?> ingredient)
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toJson
-
parse
- Specified by:
parsein interfacenet.minecraftforge.common.crafting.IIngredientSerializer<IngredientConditioned<?,?>>
-
parse
- Specified by:
parsein interfacenet.minecraftforge.common.crafting.IIngredientSerializer<IngredientConditioned<?,?>>
-
write
public void write(net.minecraft.network.FriendlyByteBuf buffer, IngredientConditioned<?, ?> ingredient) - Specified by:
writein interfacenet.minecraftforge.common.crafting.IIngredientSerializer<IngredientConditioned<?,?>>
-