public class IdentifierNormalizingSchema
extends com.mojang.datafixers.schemas.Schema
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.codecs.PrimitiveCodec<String> |
CODEC |
private static com.mojang.datafixers.types.Type<String> |
IDENTIFIER_TYPE |
Constructor and Description |
---|
IdentifierNormalizingSchema(int versionKey,
com.mojang.datafixers.schemas.Schema parent) |
Modifier and Type | Method and Description |
---|---|
com.mojang.datafixers.types.Type<?> |
getChoiceType(com.mojang.datafixers.DSL.TypeReference typeReference,
String string) |
static com.mojang.datafixers.types.Type<String> |
getIdentifierType() |
static String |
normalize(String id) |
public static final com.mojang.serialization.codecs.PrimitiveCodec<String> CODEC
private static final com.mojang.datafixers.types.Type<String> IDENTIFIER_TYPE
public IdentifierNormalizingSchema(int versionKey, com.mojang.datafixers.schemas.Schema parent)
public static com.mojang.datafixers.types.Type<String> getIdentifierType()
public com.mojang.datafixers.types.Type<?> getChoiceType(com.mojang.datafixers.DSL.TypeReference typeReference, String string)
getChoiceType
in class com.mojang.datafixers.schemas.Schema