Class CoopResidentComponent

java.lang.Object
com.hypixel.hytale.builtin.adventure.farming.component.CoopResidentComponent
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class CoopResidentComponent extends Object implements Component<EntityStore>
A component that is added to NPCs that have been assigned to a CoopBlock
  • Field Details

  • Constructor Details

    • CoopResidentComponent

      public CoopResidentComponent()
  • Method Details

    • getComponentType

      public static ComponentType<EntityStore, CoopResidentComponent> getComponentType()
    • setCoopLocation

      public void setCoopLocation(@Nonnull org.joml.Vector3i coopLocation)
      Set the location of the CoopBlock that this component is tied to
    • getCoopLocation

      @Nonnull public org.joml.Vector3i getCoopLocation()
      Get the location of the CoopBlock that this component is tied to
    • setMarkedForDespawn

      public void setMarkedForDespawn(boolean markedForDespawn)
      Mark this entity for despawn, which is handled by FarmingSystems
    • getMarkedForDespawn

      public boolean getMarkedForDespawn()
      Get if this entity is marked for despawn, which is handled by FarmingSystems
    • clone

      @Nullable public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Returns:
      a clone instance of the original component instance.