Skip to content

BuilderObjectListHelper

Package: com.hypixel.hytale.server.npc.asset.builder

public class BuilderObjectListHelper<T> extends BuilderObjectArrayHelper<List<T>, T>

Reads a JSON array of builder objects and produces a List<T> at build time. Each element that is not excluded from regular build and does not build to null is included in the result list.

ParameterDescription
TThe element type.
public BuilderObjectListHelper(Class<?> classType, BuilderContext owner)
@Nullable
public List<T> build(@Nonnull BuilderSupport builderSupport)

Returns null if the array has no elements. Otherwise builds each non-excluded element and collects non-null results into a list.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.