Class IdentifierNormalizingSchema

java.lang.Object
com.mojang.datafixers.schemas.Schema
net.minecraft.datafixer.schema.IdentifierNormalizingSchema
Direct Known Subclasses:
Schema1125, Schema1451, Schema1451v1, Schema1451v2, Schema1451v3, Schema1451v4, Schema1451v5, Schema1451v6, Schema1451v7, Schema1460, Schema1466, Schema1470, Schema1481, Schema1483, Schema1486, Schema1510, Schema1800, Schema1801, Schema1904, Schema1906, Schema1909, Schema1920, Schema1928, Schema1929, Schema1931, Schema2100, Schema2501, Schema2502, Schema2505, Schema2509, Schema2519, Schema2522, Schema2551, Schema2568, Schema705, Schema808

public class IdentifierNormalizingSchema
extends com.mojang.datafixers.schemas.Schema
  • Field Summary

    Fields
    Modifier and Type Field Description
    static com.mojang.serialization.codecs.PrimitiveCodec<String> CODEC  
    private static com.mojang.datafixers.types.Type<String> IDENTIFIER_TYPE  

    Fields inherited from class com.mojang.datafixers.schemas.Schema

    parent, RECURSIVE_TYPES
  • Constructor Summary

    Constructors
    Constructor Description
    IdentifierNormalizingSchema​(int versionKey, com.mojang.datafixers.schemas.Schema parent)  
  • Method Summary

    Modifier and Type Method 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)  

    Methods inherited from class com.mojang.datafixers.schemas.Schema

    buildTypes, findChoiceType, getParent, getTemplate, getType, getTypeRaw, getVersionKey, id, register, register, registerBlockEntities, registerEntities, registerSimple, registerType, registerTypes, resolveTemplate, types

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CODEC

      public static final com.mojang.serialization.codecs.PrimitiveCodec<String> CODEC
    • IDENTIFIER_TYPE

      private static final com.mojang.datafixers.types.Type<String> IDENTIFIER_TYPE
  • Constructor Details

    • IdentifierNormalizingSchema

      public IdentifierNormalizingSchema​(int versionKey, com.mojang.datafixers.schemas.Schema parent)
  • Method Details

    • normalize

      public static String normalize​(String id)
    • getIdentifierType

      public static com.mojang.datafixers.types.Type<String> getIdentifierType()
    • getChoiceType

      public com.mojang.datafixers.types.Type<?> getChoiceType​(com.mojang.datafixers.DSL.TypeReference typeReference, String string)
      Overrides:
      getChoiceType in class com.mojang.datafixers.schemas.Schema