Class NamespacedSchema

java.lang.Object
com.mojang.datafixers.schemas.Schema
net.minecraft.util.datafix.NamespacedSchema
Direct Known Subclasses:
V0705, V0808, V1125, V1451, V1451_1, V1451_2, V1451_3, V1451_4, V1451_5, V1451_6, V1451_7, V1460, V1466, V1470, V1481, V1483, V1486, V1510, V1800, V1801, V1904, V1906, V1909, V1920, V1928, V1929, V1931, V2100, V2501, V2502, V2505, V2509, V2519, V2522, V2551, V2568

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

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

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

    parent, RECURSIVE_TYPES
  • Constructor Summary

    Constructors
    Constructor
    Description
    NamespacedSchema(int p_i49612_1_, com.mojang.datafixers.schemas.Schema p_i49612_2_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    ensureNamespaced(String p_206477_0_)
     
    com.mojang.datafixers.types.Type<?>
    getChoiceType(com.mojang.datafixers.DSL.TypeReference p_getChoiceType_1_, String p_getChoiceType_2_)
     
    static com.mojang.datafixers.types.Type<String>
     

    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

    • NAMESPACED_STRING_CODEC

      public static final com.mojang.serialization.codecs.PrimitiveCodec<String> NAMESPACED_STRING_CODEC
    • NAMESPACED_STRING

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

    • NamespacedSchema

      public NamespacedSchema(int p_i49612_1_, com.mojang.datafixers.schemas.Schema p_i49612_2_)
  • Method Details

    • ensureNamespaced

      public static String ensureNamespaced(String p_206477_0_)
    • namespacedString

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

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