Class FieldDataModifier

java.lang.Object
com.minecolonies.core.colony.FieldDataModifier

public class FieldDataModifier extends Object
class that holds data related to happiness modifier for the citizen with a Farmer job.
  • Constructor Details

    • FieldDataModifier

      public FieldDataModifier()
  • Method Details

    • isCanFarm

      public void isCanFarm(boolean value)
      Call to set if the field can be farmed or not.
      Parameters:
      value - boolean to indicate if the field can be farmed
    • isCanFarm

      public boolean isCanFarm()
      Call to get indicater if the field can be farmed.
      Returns:
      returns a boolean indicating if a field can be farmed
    • increaseInactiveDays

      public void increaseInactiveDays()
      Call in increase the number of days the field has be inactive. Meaning the farmer can't farm the field.
    • getInactiveDays

      public int getInactiveDays()
      Call to get the number of days the field has be inactive.
      Returns:
      int that return the number of days the fields has be inactive
    • setInactiveDays

      public void setInactiveDays(int days)
      Call to set the number of days the field has be inactive.
      Parameters:
      days - value to set the number of inactive days for field too.