Skip to content

FailedSpawnSystem

Package: com.hypixel.hytale.server.npc.systems

public class FailedSpawnSystem extends RefSystem<EntityStore>

Immediately removes entities that have a FailedSpawnComponent. This component is added by RoleBuilderSystem when role construction fails (missing model asset, non-spawnable role, etc.).

Matches entities with the FailedSpawnComponent.

@Override
public void onEntityAdded(
@Nonnull Ref<EntityStore> ref,
@Nonnull AddReason reason,
@Nonnull Store<EntityStore> store,
@Nonnull CommandBuffer<EntityStore> commandBuffer
)

Immediately issues commandBuffer.removeEntity(ref, RemoveReason.REMOVE).

@Override
public void onEntityRemove(
@Nonnull Ref<EntityStore> ref,
@Nonnull RemoveReason reason,
@Nonnull Store<EntityStore> store,
@Nonnull CommandBuffer<EntityStore> commandBuffer
)

No-op.

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