Class NamespacedSchema

java.lang.Object
com.mojang.datafixers.schemas.Schema
net.minecraft.util.datafix.schemas.NamespacedSchema
Direct Known Subclasses:
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, V2571, V2684, V2686, V2688, V2704, V2707, V705, V808

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

    Fields
    Modifier and Type
    Field
    Description
    private static com.mojang.datafixers.types.Type<String>
     
    static 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_17308_, com.mojang.datafixers.schemas.Schema p_17309_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    ensureNamespaced​(String p_17312_)
     
    com.mojang.datafixers.types.Type<?>
    getChoiceType​(com.mojang.datafixers.DSL.TypeReference p_17314_, String p_17315_)
     
    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_17308_, com.mojang.datafixers.schemas.Schema p_17309_)
  • Method Details

    • ensureNamespaced

      public static String ensureNamespaced(String p_17312_)
    • namespacedString

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

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