Class ConstantValue.InlineSerializer
java.lang.Object
net.minecraft.world.level.storage.loot.providers.number.ConstantValue.InlineSerializer
- All Implemented Interfaces:
GsonAdapterFactory.InlineSerializer<ConstantValue>
- Enclosing class:
- ConstantValue
public static class ConstantValue.InlineSerializer
extends Object
implements GsonAdapterFactory.InlineSerializer<ConstantValue>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement p_165710_, com.google.gson.JsonDeserializationContext p_165711_) com.google.gson.JsonElement
serialize
(ConstantValue p_165704_, com.google.gson.JsonSerializationContext p_165705_)
-
Constructor Details
-
InlineSerializer
public InlineSerializer()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(ConstantValue p_165704_, com.google.gson.JsonSerializationContext p_165705_) - Specified by:
serialize
in interfaceGsonAdapterFactory.InlineSerializer<ConstantValue>
-
deserialize
public ConstantValue deserialize(com.google.gson.JsonElement p_165710_, com.google.gson.JsonDeserializationContext p_165711_) - Specified by:
deserialize
in interfaceGsonAdapterFactory.InlineSerializer<ConstantValue>
-