Class FirstSchema
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
ConstructorsConstructorDescriptionFirstSchema(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) int versionKey) Creates a schema. -
Method Summary
Modifier and TypeMethodDescriptionregisterBlockEntities(com.mojang.datafixers.schemas.Schema schema) registerEntities(com.mojang.datafixers.schemas.Schema schema) voidregisterTypes(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
-
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:
registerTypesin classcom.mojang.datafixers.schemas.Schema
-
registerEntities
public Map<String,Supplier<com.mojang.datafixers.types.templates.TypeTemplate>> registerEntities(com.mojang.datafixers.schemas.Schema schema) - Overrides:
registerEntitiesin classcom.mojang.datafixers.schemas.Schema
-
registerBlockEntities
public Map<String,Supplier<com.mojang.datafixers.types.templates.TypeTemplate>> registerBlockEntities(com.mojang.datafixers.schemas.Schema schema) - Overrides:
registerBlockEntitiesin classcom.mojang.datafixers.schemas.Schema
-