Class CitizenConstants

java.lang.Object
com.minecolonies.api.util.constant.CitizenConstants

public final class CitizenConstants extends Object
Constants regarding citizens.
  • Field Details

    • CITIZEN_LIMIT_DEFAULT

      public static final int CITIZEN_LIMIT_DEFAULT
      The default limit of citizens, if no research is done yet.
      See Also:
    • CITIZEN_LIMIT_OUTPOST

      public static final int CITIZEN_LIMIT_OUTPOST
      The limit of citizens if the first increase research is done.
      See Also:
    • CITIZEN_LIMIT_HAMLET

      public static final int CITIZEN_LIMIT_HAMLET
      The limit of citizens if the second increase research is done.
      See Also:
    • CITIZEN_LIMIT_VILLAGE

      public static final int CITIZEN_LIMIT_VILLAGE
      The limit of citizens if the third increase research is done.
      See Also:
    • CITIZEN_LIMIT_MAX

      public static final int CITIZEN_LIMIT_MAX
      The limit of citizens if the last increase research is done, this is absolute limit of citizens, including config file.
      See Also:
    • BASE_MOVEMENT_SPEED

      public static final double BASE_MOVEMENT_SPEED
      Base movement speed of every citizen.
      See Also:
    • AVERAGE_SATURATION

      public static final int AVERAGE_SATURATION
      The middle saturation point. smaller than this = bad and bigger than this = good.
      See Also:
    • LOW_SATURATION

      public static final int LOW_SATURATION
      Lower than this is low saturation.
      See Also:
    • FULL_SATURATION

      public static final double FULL_SATURATION
      Full saturation amount.
      See Also:
    • HEAL_CITIZENS_AFTER

      public static final int HEAL_CITIZENS_AFTER
      Number of ticks to heal the citizens.
      See Also:
    • SATURATION_DECREASE_AFTER

      public static final int SATURATION_DECREASE_AFTER
      Number of ticks to decrease saturation after.
      See Also:
    • FACING_DELTA_YAW

      public static final float FACING_DELTA_YAW
      The delta yaw value for looking at things.
      See Also:
    • BLOCK_BREAK_SOUND_RANGE

      public static final double BLOCK_BREAK_SOUND_RANGE
      The range in which we can hear a block break sound.
      See Also:
    • BLOCK_BREAK_PARTICLE_RANGE

      public static final double BLOCK_BREAK_PARTICLE_RANGE
      The range in which someone will see the particles from a block breaking.
      See Also:
    • MOVE_MINIMAL

      public static final double MOVE_MINIMAL
      Quantity to be moved to rotate without actually moving.
      See Also:
    • BASE_MAX_HEALTH

      public static final double BASE_MAX_HEALTH
      Base max health of the citizen.
      See Also:
    • BASE_PATHFINDING_RANGE

      public static final int BASE_PATHFINDING_RANGE
      Base pathfinding range of the citizen.
      See Also:
    • CITIZEN_HEIGHT

      public static final double CITIZEN_HEIGHT
      Height of the citizen.
      See Also:
    • CITIZEN_WIDTH

      public static final double CITIZEN_WIDTH
      Width of the citizen.
      See Also:
    • ROTATION_MOVEMENT

      public static final double ROTATION_MOVEMENT
      The speed the citizen has to rotate.
      See Also:
    • TICKS_20

      public static final int TICKS_20
      20 ticks or also: once a second.
      See Also:
    • OFFSET_TICK_MULTIPLIER

      public static final int OFFSET_TICK_MULTIPLIER
      This times the citizen id is the personal offset of the citizen.
      See Also:
    • RANGE_TO_BE_HOME

      public static final double RANGE_TO_BE_HOME
      Range required for the citizen to be home.
      See Also:
    • MAX_LINES_OF_LATEST_LOG

      public static final int MAX_LINES_OF_LATEST_LOG
      The max amount of lines the latest log allows.
      See Also:
    • DISTANCE_OF_ENTITY_AVOID

      public static final double DISTANCE_OF_ENTITY_AVOID
      Distance from mobs the entity should hold.
      See Also:
    • INITIAL_RUN_SPEED_AVOID

      public static final double INITIAL_RUN_SPEED_AVOID
      Initital speed while running away from entities.
      See Also:
    • LATER_RUN_SPEED_AVOID

      public static final double LATER_RUN_SPEED_AVOID
      Later run speed while running away from entities.
      See Also:
    • MAX_GUARD_CALL_RANGE

      public static final int MAX_GUARD_CALL_RANGE
      The max squaredistance a citizen can call a guard to help, 300 blocks
      See Also:
    • BIG_SATURATION_FACTOR

      public static final double BIG_SATURATION_FACTOR
      Big multiplier in extreme saturation situations.
      See Also:
    • SATURATION_DECREASE_FACTOR

      public static final double SATURATION_DECREASE_FACTOR
      Decrease by this * buildingLevel each new night.
      See Also:
    • EXCEPTION_TIMEOUT

      public static final int EXCEPTION_TIMEOUT
      The maximum range to keep from the current building place.
      See Also:
    • MAX_ADDITIONAL_RANGE_TO_BUILD

      public static final int MAX_ADDITIONAL_RANGE_TO_BUILD
      The maximum range to keep from the current building place.
      See Also:
    • DELAY_RECHECK

      public static final int DELAY_RECHECK
      Time in ticks to wait until the next check for items.
      See Also:
    • DEFAULT_RANGE_FOR_DELAY

      public static final int DEFAULT_RANGE_FOR_DELAY
      The default range for any walking to blocks.
      See Also:
    • ACTIONS_UNTIL_DUMP

      public static final int ACTIONS_UNTIL_DUMP
      The number of actions done before item dump.
      See Also:
    • HIT_EVERY_X_TICKS

      public static final int HIT_EVERY_X_TICKS
      Hit a block every x ticks when mining.
      See Also:
    • MIN_OPEN_SLOTS

      public static final long MIN_OPEN_SLOTS
      Min slots the builder should never fill.
      See Also:
    • MAX_CITIZEN_LEVEL

      public static final int MAX_CITIZEN_LEVEL
      The max citizen level.
      See Also:
    • GUARD_HEALTH_MOD_BUILDING_NAME

      public static final String GUARD_HEALTH_MOD_BUILDING_NAME
      The Guard Building health modifier Name
      See Also:
    • RESEARCH_BONUS_MULTIPLIER

      public static final String RESEARCH_BONUS_MULTIPLIER
      The Research health modifier name.
      See Also:
    • SKILL_BONUS_ADD

      public static final String SKILL_BONUS_ADD
      The addition skill bonus speed modifier
      See Also:
    • GUARD_HEALTH_MOD_CONFIG_NAME

      public static final String GUARD_HEALTH_MOD_CONFIG_NAME
      The Config guard health modifier name
      See Also:
    • GUARD_HEALTH_MOD_LEVEL_NAME

      public static final String GUARD_HEALTH_MOD_LEVEL_NAME
      The guard's level based health bonus mod's name
      See Also:
    • CHANCE_TO_DUMP_50

      public static final int CHANCE_TO_DUMP_50
      At this stack size or smaller the chance to dump is 50%.
      See Also:
    • CHANCE_TO_DUMP

      public static final int CHANCE_TO_DUMP
      Chance to dump, if lower then this then dump else not.
      See Also:
    • TAG_DISEASE

      public static final String TAG_DISEASE
      Disease tag,
      See Also:
    • TAG_DISEASE_ID

      public static final String TAG_DISEASE_ID
      Disease iod tag.
      See Also:
    • TAG_IMMUNITY

      public static final String TAG_IMMUNITY
      Disease immunity tag,
      See Also:
    • NOON

      public static final int NOON
      Noon day time.
      See Also:
    • NIGHT

      public static final int NIGHT
      Nighttime, point at which you can sleep.
      See Also:
    • MIN_ADDITIONAL_RANGE_TO_BUILD

      public static final int MIN_ADDITIONAL_RANGE_TO_BUILD
      The minimum range to keep from the current building place.
      See Also:
    • WAYPOINT_STRING

      public static final String WAYPOINT_STRING
      String which shows if something is a waypoint.
      See Also:
    • XP_EACH_BUILDING

      public static final double XP_EACH_BUILDING
      Amount of xp the builder gains each building (Will increase by attribute modifiers additionally).
      See Also:
    • PROGRESS_MULTIPLIER

      public static final int PROGRESS_MULTIPLIER
      Increase this value to make the building speed slower. Used to balance worker level speed increase.
      See Also:
    • RUN_AWAY_SPEED

      public static final double RUN_AWAY_SPEED
      Speed the builder should run away when he castles himself in.
      See Also:
    • STANDARD_WORKING_RANGE

      public static final int STANDARD_WORKING_RANGE
      The standard range the builder should reach until his target.
      See Also:
    • MIN_WORKING_RANGE

      public static final int MIN_WORKING_RANGE
      The minimum range the builder has to reach in order to construct or clear.
      See Also:
    • DISABLED

      public static final int DISABLED
      Disabled timer.
      See Also:
  • Constructor Details

    • CitizenConstants

      public CitizenConstants()