abstract class BuilderObjectArrayHelper
Class BuilderObjectArrayHelper. Provides builderobjectarrayhelper functionality for the Hytale server.
java.lang.Object > BuilderObjectArrayHelper
Field Summary
builders
protected
BuilderObjectReferenceHelper[]
builders
Field builders.
label
protected
String
label
Field label.
string
final
String
string
Field string.
array
final
JsonArray
array
Field array.
factory
final
BuilderFactory
factory
Field factory.
builderObjectReferenceHelper
final
BuilderObjectReferenceHelper
builderObjectReferenceHelper
Field builderObjectReferenceHelper.
Method Detail
BuilderObjectArrayHelper
Method BuilderObjectArrayHelper.
- Parameters:
final Class>classTypefinal BuilderContextowner
readConfig
public
void
readConfig
(@Nonnull final JsonElement data, @Nonnull final BuilderManager builderManager, @Nonnull final BuilderParameters builderParameters, @Nonnull final BuilderValidationHelper builderValidationHelper)
Method readConfig.
- Parameters:
@Nonnull final JsonElementdata@Nonnull final BuilderManagerbuilderManager@Nonnull final BuilderParametersbuilderParameters@Nonnull final BuilderValidationHelperbuilderValidationHelper
IllegalArgumentException
public
new
IllegalArgumentException
(String.format("Expected a JSON array of '%s' at %s (JSON: %s)
Method IllegalArgumentException.
- Parameters:
String.format("Expected a JSON array of '%s' at %s (JSON:%s
IllegalStateException
public
new
IllegalStateException
("Missing builder reference at " + this.getBreadCrumbs()
Method IllegalStateException.
- Parameters:
"Missing builder reference at " +this.getBreadCrumbs(
validate
public
boolean
validate
(final String configName, final NPCLoadTimeValidationHelper loadTimeValidationHelper, @Nonnull final BuilderManager manager, @Nonnull final ExecutionContext context, final Scope globalScope, @Nonnull final List errors)
Method validate.
- Parameters:
final StringconfigNamefinal NPCLoadTimeValidationHelperloadTimeValidationHelper@Nonnull final BuilderManagermanager@Nonnull final ExecutionContextcontextfinal ScopeglobalScope@Nonnull final Listerrors
isPresent
public
boolean
isPresent
()
Method isPresent.
isEmpty
public
boolean
isEmpty
()
Method isEmpty.
hasNoElements
public
boolean
hasNoElements
()
Method hasNoElements.
getLabel
public
String
getLabel
()
Method getLabel.
setLabel
public
void
setLabel
(final String label)
Method setLabel.
- Parameters:
final Stringlabel
createReferenceHelper
Method createReferenceHelper.