Contents
Class BuilderFactory<T>
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.BuilderFactory<T>
- All Implemented Interfaces:
NamedSchema, SchemaConvertable<Void>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe top-levelClasskey of an asset file, which names the builder category the file defines. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBuilder(com.google.gson.JsonElement config) createBuilder(String name) getKeyName(com.google.gson.JsonElement config) toSchema(SchemaContext context) Returns a schema object that represents this codec as JSON Schema.toSchema(SchemaContext context, boolean isRoot) toSchema(SchemaContext context, boolean isRoot, BuilderFactory.ClassKey classKey) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SchemaConvertable
toSchema
-
Field Details
-
DEFAULT_TYPE
- See Also:
-
COMPONENT_TYPE
- See Also:
-
-
Constructor Details
-
BuilderFactory
-
BuilderFactory
-
-
Method Details
-
add
-
getCategory
-
createBuilder
-
getKeyName
-
createBuilder
-
tryCreateDefaultBuilder
-
getBuilderNames
-
getSchemaName
- Specified by:
getSchemaNamein interfaceNamedSchema- Returns:
- the name of this schema
-
toSchema
Description copied from interface:SchemaConvertableReturns a schema object that represents this codec as JSON Schema.- Specified by:
toSchemain interfaceSchemaConvertable<T>- Parameters:
context- A context to use to assist with creating the schema.- Returns:
- the generated schema.
-
toSchema
-
toSchema
@Nonnull public Schema toSchema(@Nonnull SchemaContext context, boolean isRoot, @Nullable BuilderFactory.ClassKey classKey) - Parameters:
isRoot- whether this schema describes a whole asset file, which also accepts the test and parameter keysclassKey- theClasskey files of this category declare, ornullto leave it out
-