java.lang.Object
com.mojang.datafixers.schemas.Schema
org.quiltmc.qsl.frozenblock.misc.datafixerupper.api.FirstSchema
org.quiltmc.qsl.frozenblock.misc.datafixerupper.api.EmptySchema

public final class EmptySchema extends FirstSchema
Represents an empty Schema, having no parent and containing no type definitions.

Modified to work on Fabric

  • Field Summary

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

    parent, RECURSIVE_TYPES
  • Constructor Summary

    Constructors
    Constructor
    Description
    EmptySchema(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) int versionKey)
    Constructs an empty schema.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Map<String,com.mojang.datafixers.types.Type<?>>
     
    void
    registerType(boolean recursive, com.mojang.datafixers.DSL.TypeReference type, Supplier<com.mojang.datafixers.types.templates.TypeTemplate> template)
     

    Methods inherited from class org.quiltmc.qsl.frozenblock.misc.datafixerupper.api.FirstSchema

    registerBlockEntities, registerEntities, registerTypes

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

    findChoiceType, getChoiceType, getParent, getTemplate, getType, getTypeRaw, getVersionKey, id, register, register, registerSimple, resolveTemplate, types

    Methods inherited from class java.lang.Object

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

    • EmptySchema

      public EmptySchema(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) int versionKey)
      Constructs an empty schema.
      Parameters:
      versionKey - the data version key
  • Method Details

    • registerType

      public void registerType(boolean recursive, com.mojang.datafixers.DSL.TypeReference type, Supplier<com.mojang.datafixers.types.templates.TypeTemplate> template)
      Overrides:
      registerType in class com.mojang.datafixers.schemas.Schema
    • buildTypes

      protected Map<String,com.mojang.datafixers.types.Type<?>> buildTypes()
      Overrides:
      buildTypes in class com.mojang.datafixers.schemas.Schema