Contents
Class AssetKeyValidator<K>
java.lang.Object
com.hypixel.hytale.assetstore.AssetKeyValidator<K>
- All Implemented Interfaces:
Validator<K>, BiConsumer<K, ValidationResults>
-
Constructor Summary
ConstructorsConstructorDescriptionAssetKeyValidator(Supplier<AssetStore<K, ?, ?>> store) AssetKeyValidator(Supplier<AssetStore<K, ?, ?>> store, boolean lenient) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(K k, ValidationResults results) AssetStore<K, ?, ?> getStore()voidupdateSchema(SchemaContext context, Schema target) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
AssetKeyValidator
-
AssetKeyValidator
- Parameters:
lenient- iftrue, a missing reference is only fatal during asset authoring. When decoding persisted world data a missing reference warns instead of failing the decode.
-
-
Method Details
-
getStore
-
accept
- Specified by:
acceptin interfaceBiConsumer<K, ValidationResults>- Specified by:
acceptin interfaceValidator<K>
-
updateSchema
- Specified by:
updateSchemain interfaceValidator<K>
-