Skip to content

SpawnableWithModelBuilder

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

public abstract class SpawnableWithModelBuilder<T> extends BuilderBase<T> implements ISpawnableWithModel

An abstract builder base for NPC types that can be spawned with a model (primarily role builders). Extends BuilderBase with dynamic dependency tracking — dependencies discovered at build time rather than at read time. Also marks the builder as spawnable.

ParameterDescription
TThe runtime type this builder produces.
@Override
public boolean hasDynamicDependencies()

Returns true if dynamic dependencies have been recorded.

@Override
public void addDynamicDependency(int builderIndex)

Adds a builder index to the dynamic dependency set, creating it if needed.

@Override
public IntSet getDynamicDependencies()

Returns the dynamic dependency set, or null if none exist.

@Override
public void clearDynamicDependencies()

Clears the dynamic dependency set.

@Override
public boolean isSpawnable()

Returns true.

  • BuilderBase — parent class
  • Builder — dynamic dependency default methods are overridden here
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.