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

public class FirstSchema extends com.mojang.datafixers.schemas.Schema
Represents a Schema that has no parent.

Modified to work on Fabric

  • Field Summary

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

    parent, RECURSIVE_TYPES
  • Constructor Summary

    Constructors
    Constructor
    Description
    FirstSchema(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) int versionKey)
    Creates a schema.
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<String,Supplier<com.mojang.datafixers.types.templates.TypeTemplate>>
    registerBlockEntities(com.mojang.datafixers.schemas.Schema schema)
     
    Map<String,Supplier<com.mojang.datafixers.types.templates.TypeTemplate>>
    registerEntities(com.mojang.datafixers.schemas.Schema schema)
     
    void
    registerTypes(com.mojang.datafixers.schemas.Schema schema, Map<String,Supplier<com.mojang.datafixers.types.templates.TypeTemplate>> entityTypes, Map<String,Supplier<com.mojang.datafixers.types.templates.TypeTemplate>> blockEntityTypes)
     

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

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

    Methods inherited from class java.lang.Object

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

    • FirstSchema

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

    • registerTypes

      public void registerTypes(com.mojang.datafixers.schemas.Schema schema, Map<String,Supplier<com.mojang.datafixers.types.templates.TypeTemplate>> entityTypes, Map<String,Supplier<com.mojang.datafixers.types.templates.TypeTemplate>> blockEntityTypes)
      Overrides:
      registerTypes in class com.mojang.datafixers.schemas.Schema
    • registerEntities

      public Map<String,Supplier<com.mojang.datafixers.types.templates.TypeTemplate>> registerEntities(com.mojang.datafixers.schemas.Schema schema)
      Overrides:
      registerEntities in class com.mojang.datafixers.schemas.Schema
    • registerBlockEntities

      public Map<String,Supplier<com.mojang.datafixers.types.templates.TypeTemplate>> registerBlockEntities(com.mojang.datafixers.schemas.Schema schema)
      Overrides:
      registerBlockEntities in class com.mojang.datafixers.schemas.Schema