Skip to content

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.

ModifierTypeName
@Nonnull privateVector3icoopLocation
privatebooleanmarkedForDespawn
ModifierReturn TypeSignature
public staticComponentType<EntityStore, CoopResidentComponent>getComponentType()
publicvoidsetCoopLocation(@Nonnull Vector3i coopLocation)
@Nonnull publicVector3igetCoopLocation()
publicvoidsetMarkedForDespawn(boolean markedForDespawn)
publicbooleangetMarkedForDespawn()
@Nullable publicComponent<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.