Class Schema
java.lang.Object
com.mojang.datafixers.schemas.Schema
- Direct Known Subclasses:
NamespacedSchema, V100, V102, V1022, V106, V107, V135, V143, V501, V700, V701, V702, V703, V704, V99
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionType<?> getChoiceType(DSL.TypeReference type, String choiceName) protected TypeTemplategetTemplate(String name) Type<?> getType(DSL.TypeReference type) Type<?> getTypeRaw(DSL.TypeReference type) intvoidregister(Map<String, Supplier<TypeTemplate>> map, String name, Function<String, TypeTemplate> template) voidregister(Map<String, Supplier<TypeTemplate>> map, String name, Supplier<TypeTemplate> template) registerBlockEntities(Schema schema) registerEntities(Schema schema) voidregisterSimple(Map<String, Supplier<TypeTemplate>> map, String name) voidregisterType(boolean recursive, DSL.TypeReference type, Supplier<TypeTemplate> template) voidregisterTypes(Schema schema, Map<String, Supplier<TypeTemplate>> entityTypes, Map<String, Supplier<TypeTemplate>> blockEntityTypes) resolveTemplate(String name) types()
-
Field Details
-
recursiveTypes
-
typeTemplates
-
types
-
versionKey
private final int versionKey -
name
-
parent
-
-
Constructor Details
-
Schema
-
-
Method Details
-
buildTypes
-
types
-
getTypeRaw
-
getType
-
resolveTemplate
-
id
-
getTemplate
-
getChoiceType
-
findChoiceType
-
registerTypes
public void registerTypes(Schema schema, Map<String, Supplier<TypeTemplate>> entityTypes, Map<String, Supplier<TypeTemplate>> blockEntityTypes) -
registerEntities
-
registerBlockEntities
-
registerSimple
-
register
public void register(Map<String, Supplier<TypeTemplate>> map, String name, Function<String, TypeTemplate> template) -
register
public void register(Map<String, Supplier<TypeTemplate>> map, String name, Supplier<TypeTemplate> template) -
registerType
public void registerType(boolean recursive, DSL.TypeReference type, Supplier<TypeTemplate> template) -
getVersionKey
public int getVersionKey() -
getParent
-