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.
Lifecycle
Section titled “Lifecycle”@Overridepublic void onEntityAdded( @Nonnull Ref<EntityStore> ref, @Nonnull AddReason reason, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer)Immediately issues commandBuffer.removeEntity(ref, RemoveReason.REMOVE).
@Overridepublic void onEntityRemove( @Nonnull Ref<EntityStore> ref, @Nonnull RemoveReason reason, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer)No-op.
Related Types
Section titled “Related Types”- RoleBuilderSystem — adds
FailedSpawnComponenton construction failure
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.