Contents
Class CoopResidentComponent
java.lang.Object
com.hypixel.hytale.builtin.adventure.farming.component.CoopResidentComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
A component that is added to NPCs that have been assigned to a
CoopBlock-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<CoopResidentComponent> The codec used to parseCoopResidentComponentinstances.Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()org.joml.Vector3iGet the location of theCoopBlockthat this component is tied tobooleanGet if this entity is marked for despawn, which is handled byFarmingSystemsvoidsetCoopLocation(org.joml.Vector3i coopLocation) Set the location of theCoopBlockthat this component is tied tovoidsetMarkedForDespawn(boolean markedForDespawn) Mark this entity for despawn, which is handled byFarmingSystemsMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
CODEC
The codec used to parseCoopResidentComponentinstances.
-
-
Constructor Details
-
CoopResidentComponent
public CoopResidentComponent()
-
-
Method Details
-
getComponentType
-
setCoopLocation
public void setCoopLocation(@Nonnull org.joml.Vector3i coopLocation) Set the location of theCoopBlockthat this component is tied to -
getCoopLocation
@Nonnull public org.joml.Vector3i getCoopLocation()Get the location of theCoopBlockthat this component is tied to -
setMarkedForDespawn
public void setMarkedForDespawn(boolean markedForDespawn) Mark this entity for despawn, which is handled byFarmingSystems -
getMarkedForDespawn
public boolean getMarkedForDespawn()Get if this entity is marked for despawn, which is handled byFarmingSystems -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-