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.
Type Parameters
Section titled “Type Parameters”| Parameter | Description |
|---|---|
T | The element type. |
Constructor
Section titled “Constructor”public BuilderObjectListHelper(Class<?> classType, BuilderContext owner)Methods
Section titled “Methods”@Nullablepublic 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.
Related Types
Section titled “Related Types”- BuilderObjectArrayHelper — parent class
- BuilderObjectStaticListHelper — variant for static builds
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.