Contents
Class CoopBlock.CoopResident
java.lang.Object
com.hypixel.hytale.builtin.adventure.farming.states.CoopBlock.CoopResident
- Enclosing class:
CoopBlock
A record that represents a single resident of a farming coop.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<CoopBlock.CoopResident> The codec used to parseCoopBlock.CoopResidentinstances. -
Constructor Summary
ConstructorsConstructorDescriptionCoopResident(CapturedNPCMetadata metadata, PersistentRef persistentRef, Instant lastProduced) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetDeployedToWorld(boolean deployedToWorld) voidsetLastProduced(Instant lastProduced) voidsetPersistentRef(PersistentRef persistentRef)
-
Field Details
-
CODEC
The codec used to parseCoopBlock.CoopResidentinstances.
-
-
Constructor Details
-
CoopResident
public CoopResident() -
CoopResident
public CoopResident(CapturedNPCMetadata metadata, @Nullable PersistentRef persistentRef, @Nonnull Instant lastProduced)
-
-
Method Details
-
getMetadata
-
getPersistentRef
-
setPersistentRef
-
getDeployedToWorld
public boolean getDeployedToWorld() -
setDeployedToWorld
public void setDeployedToWorld(boolean deployedToWorld) -
getLastProduced
-
setLastProduced
-