Package com.mojang.datafixers.schemas
Class Schema
java.lang.Object
com.mojang.datafixers.schemas.Schema
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionType<?>
getChoiceType
(DSL.TypeReference type, String choiceName) protected TypeTemplate
getTemplate
(String name) Type<?>
getType
(DSL.TypeReference type) Type<?>
getTypeRaw
(DSL.TypeReference type) int
void
register
(Map<String, Supplier<TypeTemplate>> map, String name, Function<String, TypeTemplate> template) void
register
(Map<String, Supplier<TypeTemplate>> map, String name, Supplier<TypeTemplate> template) registerBlockEntities
(Schema schema) registerEntities
(Schema schema) void
registerSimple
(Map<String, Supplier<TypeTemplate>> map, String name) void
registerType
(boolean recursive, DSL.TypeReference type, Supplier<TypeTemplate> template) void
registerTypes
(Schema schema, Map<String, Supplier<TypeTemplate>> entityTypes, Map<String, Supplier<TypeTemplate>> blockEntityTypes) resolveTemplate
(String name) types()
-
Field Details
-
RECURSIVE_TYPES
-
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
-