CoopResidentComponent
Package: com.hypixel.hytale.builtin.adventure.farming.component
public class CoopResidentComponent implements Component<EntityStore>An EntityStore component attached to NPC entities that are residents of a CoopBlock. Tracks the block position of the coop the entity belongs to and whether the entity is marked for despawn.
Fields
Section titled “Fields”| Modifier | Type | Name |
|---|---|---|
@Nonnull private | Vector3i | coopLocation |
private | boolean | markedForDespawn |
Methods
Section titled “Methods”| Modifier | Return Type | Signature |
|---|---|---|
public static | ComponentType<EntityStore, CoopResidentComponent> | getComponentType() |
public | void | setCoopLocation(@Nonnull Vector3i coopLocation) |
@Nonnull public | Vector3i | getCoopLocation() |
public | void | setMarkedForDespawn(boolean markedForDespawn) |
public | boolean | getMarkedForDespawn() |
@Nullable public | Component<EntityStore> | clone() |
Serialized fields: CoopLocation (Vector3i), MarkedForDespawn (boolean).
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.