CoopBlock.CoopResident
Package: com.hypixel.hytale.builtin.adventure.farming.states
public static class CoopBlock.CoopResidentRepresents a single resident record within a CoopBlock. Tracks the captured NPC metadata, a persistent reference to the spawned entity in the world, whether the entity is currently deployed, and the last time produce was harvested.
Fields
Section titled “Fields”| Modifier | Type | Name |
|---|---|---|
protected | CapturedNPCMetadata | metadata |
@Nullable protected | PersistentRef | persistentRef |
protected | boolean | deployedToWorld |
protected | Instant | lastProduced |
Methods
Section titled “Methods”| Modifier | Return Type | Signature |
|---|---|---|
public | CapturedNPCMetadata | getMetadata() |
@Nullable public | PersistentRef | getPersistentRef() |
public | void | setPersistentRef(@Nullable PersistentRef persistentRef) |
public | boolean | getDeployedToWorld() |
public | void | setDeployedToWorld(boolean deployedToWorld) |
public | Instant | getLastProduced() |
public | void | setLastProduced(Instant lastProduced) |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.