Class CitizenConstants
java.lang.Object
com.minecolonies.api.util.constant.CitizenConstants
Constants regarding citizens.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe number of actions done before item dump.static final intThe middle saturation point.static final doubleBase max health of the citizen.static final doubleBase movement speed of every citizen.static final intBase pathfinding range of the citizen.static final doubleBig multiplier in extreme saturation situations.static final doubleThe range in which someone will see the particles from a block breaking.static final doubleThe range in which we can hear a block break sound.static final intChance to dump, if lower then this then dump else not.static final intAt this stack size or smaller the chance to dump is 50%.static final doubleHeight of the citizen.static final intThe default limit of citizens, if no research is done yet.static final intThe limit of citizens if the second increase research is done.static final intThe limit of citizens if the last increase research is done, this is absolute limit of citizens, including config file.static final intThe limit of citizens if the first increase research is done.static final intThe limit of citizens if the third increase research is done.static final doubleWidth of the citizen.static final intThe default range for any walking to blocks.static final intTime in ticks to wait until the next check for items.static final intDisabled timer.static final doubleDistance from mobs the entity should hold.static final intThe maximum range to keep from the current building place.static final floatThe delta yaw value for looking at things.static final doubleFull saturation amount.static final net.minecraft.resources.ResourceLocationThe Guard Building health modifier Namestatic final net.minecraft.resources.ResourceLocationThe Config guard health modifier namestatic final net.minecraft.resources.ResourceLocationThe guard's level based health bonus mod's namestatic final intNumber of ticks to heal the citizens.static final intHit a block every x ticks when mining.static final doubleInitital speed while running away from entities.static final doubleLater run speed while running away from entities.static final intLower than this is low saturation.static final intThe maximum range to keep from the current building place.static final intThe max citizen level.static final intThe max squaredistance a citizen can call a guard to help, 300 blocksstatic final intThe max amount of lines the latest log allows.static final intThe minimum range to keep from the current building place.static final longMin slots the builder should never fill.static final intThe minimum range the builder has to reach in order to construct or clear.static final doubleQuantity to be moved to rotate without actually moving.static final intNighttime, point at which you can sleep.static final intNoon day time.static final intThis times the citizen id is the personal offset of the citizen.static final intIncrease this value to make the building speed slower.static final doubleRange required for the citizen to be home.static final net.minecraft.resources.ResourceLocationThe Research health modifier name.static final doubleThe speed the citizen has to rotate.static final doubleSpeed the builder should run away when he castles himself in.static final intNumber of ticks to decrease saturation after.static final doubleDecrease by this * buildingLevel each new night.static final UUIDThe addition skill bonus speed modifierstatic final net.minecraft.resources.ResourceLocationstatic final intThe standard range the builder should reach until his target.static final StringDisease tag,static final StringDisease iod tag.static final StringDisease immunity tag,static final int20 ticks or also: once a second.static final StringString which shows if something is a waypoint.static final doubleAmount of xp the builder gains each building (Will increase by attribute modifiers additionally). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CITIZEN_LIMIT_DEFAULT
public static final int CITIZEN_LIMIT_DEFAULTThe default limit of citizens, if no research is done yet.- See Also:
-
CITIZEN_LIMIT_OUTPOST
public static final int CITIZEN_LIMIT_OUTPOSTThe limit of citizens if the first increase research is done.- See Also:
-
CITIZEN_LIMIT_HAMLET
public static final int CITIZEN_LIMIT_HAMLETThe limit of citizens if the second increase research is done.- See Also:
-
CITIZEN_LIMIT_VILLAGE
public static final int CITIZEN_LIMIT_VILLAGEThe limit of citizens if the third increase research is done.- See Also:
-
CITIZEN_LIMIT_MAX
public static final int CITIZEN_LIMIT_MAXThe 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_SPEEDBase movement speed of every citizen.- See Also:
-
AVERAGE_SATURATION
public static final int AVERAGE_SATURATIONThe middle saturation point. smaller than this = bad and bigger than this = good.- See Also:
-
LOW_SATURATION
public static final int LOW_SATURATIONLower than this is low saturation.- See Also:
-
FULL_SATURATION
public static final double FULL_SATURATIONFull saturation amount.- See Also:
-
HEAL_CITIZENS_AFTER
public static final int HEAL_CITIZENS_AFTERNumber of ticks to heal the citizens.- See Also:
-
SATURATION_DECREASE_AFTER
public static final int SATURATION_DECREASE_AFTERNumber of ticks to decrease saturation after.- See Also:
-
FACING_DELTA_YAW
public static final float FACING_DELTA_YAWThe delta yaw value for looking at things.- See Also:
-
BLOCK_BREAK_SOUND_RANGE
public static final double BLOCK_BREAK_SOUND_RANGEThe range in which we can hear a block break sound.- See Also:
-
BLOCK_BREAK_PARTICLE_RANGE
public static final double BLOCK_BREAK_PARTICLE_RANGEThe range in which someone will see the particles from a block breaking.- See Also:
-
MOVE_MINIMAL
public static final double MOVE_MINIMALQuantity to be moved to rotate without actually moving.- See Also:
-
BASE_MAX_HEALTH
public static final double BASE_MAX_HEALTHBase max health of the citizen.- See Also:
-
BASE_PATHFINDING_RANGE
public static final int BASE_PATHFINDING_RANGEBase pathfinding range of the citizen.- See Also:
-
CITIZEN_HEIGHT
public static final double CITIZEN_HEIGHTHeight of the citizen.- See Also:
-
CITIZEN_WIDTH
public static final double CITIZEN_WIDTHWidth of the citizen.- See Also:
-
ROTATION_MOVEMENT
public static final double ROTATION_MOVEMENTThe speed the citizen has to rotate.- See Also:
-
TICKS_20
public static final int TICKS_2020 ticks or also: once a second.- See Also:
-
OFFSET_TICK_MULTIPLIER
public static final int OFFSET_TICK_MULTIPLIERThis times the citizen id is the personal offset of the citizen.- See Also:
-
RANGE_TO_BE_HOME
public static final double RANGE_TO_BE_HOMERange required for the citizen to be home.- See Also:
-
MAX_LINES_OF_LATEST_LOG
public static final int MAX_LINES_OF_LATEST_LOGThe max amount of lines the latest log allows.- See Also:
-
DISTANCE_OF_ENTITY_AVOID
public static final double DISTANCE_OF_ENTITY_AVOIDDistance from mobs the entity should hold.- See Also:
-
INITIAL_RUN_SPEED_AVOID
public static final double INITIAL_RUN_SPEED_AVOIDInitital speed while running away from entities.- See Also:
-
LATER_RUN_SPEED_AVOID
public static final double LATER_RUN_SPEED_AVOIDLater run speed while running away from entities.- See Also:
-
MAX_GUARD_CALL_RANGE
public static final int MAX_GUARD_CALL_RANGEThe max squaredistance a citizen can call a guard to help, 300 blocks- See Also:
-
BIG_SATURATION_FACTOR
public static final double BIG_SATURATION_FACTORBig multiplier in extreme saturation situations.- See Also:
-
SATURATION_DECREASE_FACTOR
public static final double SATURATION_DECREASE_FACTORDecrease by this * buildingLevel each new night.- See Also:
-
EXCEPTION_TIMEOUT
public static final int EXCEPTION_TIMEOUTThe maximum range to keep from the current building place.- See Also:
-
MAX_ADDITIONAL_RANGE_TO_BUILD
public static final int MAX_ADDITIONAL_RANGE_TO_BUILDThe maximum range to keep from the current building place.- See Also:
-
DELAY_RECHECK
public static final int DELAY_RECHECKTime in ticks to wait until the next check for items.- See Also:
-
DEFAULT_RANGE_FOR_DELAY
public static final int DEFAULT_RANGE_FOR_DELAYThe default range for any walking to blocks.- See Also:
-
ACTIONS_UNTIL_DUMP
public static final int ACTIONS_UNTIL_DUMPThe number of actions done before item dump.- See Also:
-
HIT_EVERY_X_TICKS
public static final int HIT_EVERY_X_TICKSHit a block every x ticks when mining.- See Also:
-
MIN_OPEN_SLOTS
public static final long MIN_OPEN_SLOTSMin slots the builder should never fill.- See Also:
-
MAX_CITIZEN_LEVEL
public static final int MAX_CITIZEN_LEVELThe max citizen level.- See Also:
-
GUARD_HEALTH_MOD_BUILDING_NAME
public static final net.minecraft.resources.ResourceLocation GUARD_HEALTH_MOD_BUILDING_NAMEThe Guard Building health modifier Name -
RESEARCH_BONUS_MULTIPLIER
public static final net.minecraft.resources.ResourceLocation RESEARCH_BONUS_MULTIPLIERThe Research health modifier name. -
SKILL_BONUS_ADD
The addition skill bonus speed modifier -
SKILL_BONUS_ADD_NAME
public static final net.minecraft.resources.ResourceLocation SKILL_BONUS_ADD_NAME -
GUARD_HEALTH_MOD_CONFIG_NAME
public static final net.minecraft.resources.ResourceLocation GUARD_HEALTH_MOD_CONFIG_NAMEThe Config guard health modifier name -
GUARD_HEALTH_MOD_LEVEL_NAME
public static final net.minecraft.resources.ResourceLocation GUARD_HEALTH_MOD_LEVEL_NAMEThe guard's level based health bonus mod's name -
CHANCE_TO_DUMP_50
public static final int CHANCE_TO_DUMP_50At this stack size or smaller the chance to dump is 50%.- See Also:
-
CHANCE_TO_DUMP
public static final int CHANCE_TO_DUMPChance to dump, if lower then this then dump else not.- See Also:
-
TAG_DISEASE
Disease tag,- See Also:
-
TAG_DISEASE_ID
Disease iod tag.- See Also:
-
TAG_IMMUNITY
Disease immunity tag,- See Also:
-
NOON
public static final int NOONNoon day time.- See Also:
-
NIGHT
public static final int NIGHTNighttime, point at which you can sleep.- See Also:
-
MIN_ADDITIONAL_RANGE_TO_BUILD
public static final int MIN_ADDITIONAL_RANGE_TO_BUILDThe minimum range to keep from the current building place.- See Also:
-
WAYPOINT_STRING
String which shows if something is a waypoint.- See Also:
-
XP_EACH_BUILDING
public static final double XP_EACH_BUILDINGAmount of xp the builder gains each building (Will increase by attribute modifiers additionally).- See Also:
-
PROGRESS_MULTIPLIER
public static final int PROGRESS_MULTIPLIERIncrease 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_SPEEDSpeed the builder should run away when he castles himself in.- See Also:
-
STANDARD_WORKING_RANGE
public static final int STANDARD_WORKING_RANGEThe standard range the builder should reach until his target.- See Also:
-
MIN_WORKING_RANGE
public static final int MIN_WORKING_RANGEThe minimum range the builder has to reach in order to construct or clear.- See Also:
-
DISABLED
public static final int DISABLEDDisabled timer.- See Also:
-
-
Constructor Details
-
CitizenConstants
public CitizenConstants()
-