public final class FusionPredicateRegistry
extends java.lang.Object
| Constructor and Description |
|---|
FusionPredicateRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static ConnectionPredicate |
deserializeConnectionPredicate(com.google.gson.JsonObject json)
Loads a connection predicate from json.
|
static void |
registerConnectionPredicate(net.minecraft.util.ResourceLocation identifier,
Serializer<? extends ConnectionPredicate> serializer)
Registers a new connection predicate type.
|
static com.google.gson.JsonObject |
serializeConnectionPredicate(ConnectionPredicate predicate)
Serializes the given predicate.
|
public static void registerConnectionPredicate(net.minecraft.util.ResourceLocation identifier,
Serializer<? extends ConnectionPredicate> serializer)
identifier - identifier for the predicate typeserializer - serializer used to save the predicates to and load the predicates from jsonConnectionPredicatepublic static com.google.gson.JsonObject serializeConnectionPredicate(ConnectionPredicate predicate)
public static ConnectionPredicate deserializeConnectionPredicate(com.google.gson.JsonObject json) throws com.google.gson.JsonParseException
com.google.gson.JsonParseException - if the given json does not match the expected format