Sound Entity
Overview
Class: crazypants.enderio.item.darksteel.SoundEntity
Extends: Entity
SoundEntity is a registry-only, client-side entity used by EnderIO’s Dark Steel Sound Locator item to render and manage sound visualization particles in the world.
Usage
This entity is spawned when the Dark Steel Sound Locator is used. It is spawned at a specific position with a given volume and renders sound-wave particles.
Attributes
| Attribute | Value |
|---|---|
| Lifespan | Config.darkSteelSoundLocatorLifespan (configurable) |
| Bounding Box | null (no collision) |
| Triggers Walking | false |
Behavior
onUpdate(): Each tick decrementslifeSpan. WhenlifeSpanreaches 0, the entity is set dead (removed from world).getBoundingBox(): Returnsnull— this entity has no physical collision.canTriggerWalking(): Returnsfalse.readEntityFromNBT()/writeEntityToNBT(): Empty — this entity is not persisted.
Client-Side
This entity is client-side only (spawned server-side but rendered client-side via the Sound Locator item logic). The actual sound rendering and particle effects are handled by the Sound Locator item, not by this entity itself.
Notes
- This is a registry-only entity — it is not a spawnable mob.
- It is never registered with
EntityRegistry— it is spawned directly viaworld.spawnEntityInWorld(). - Its primary purpose is to manage the visual lifespan of sound locator particles.
第三方集成
| 集成 Mod | 集成类型 | 功能 |
|---|---|---|
| Thaumcraft | 要素注册 | 物品要素标签 |