Class CitizenWindowUtils
java.lang.Object
com.minecolonies.core.client.gui.citizen.CitizenWindowUtils
BOWindow for the citizen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocation -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateHappinessBar(ICitizenDataView citizen, com.ldtteam.blockui.views.View happinessParView) Creates a Happiness bar according to the citizen maxHappiness and currentHappiness.static voidcreateHappinessBar(ICitizenDataView citizen, AbstractWindowSkeleton window) General happiness bar setup.static voidcreateHealthBar(int health, com.ldtteam.blockui.views.View healthBarView) Creates an health bar according to the citizen maxHealth and currentHealth.static voidcreateHealthBar(ICitizenDataView citizen, com.ldtteam.blockui.views.View healthBarView) Creates an health bar according to the citizen maxHealth and currentHealth.static voidcreateSaturationBar(double curSaturation, com.ldtteam.blockui.views.View view) Creates a saturation barstatic voidcreateSaturationBar(ICitizenDataView citizen, com.ldtteam.blockui.views.View view) Creates a saturation barstatic voidcreateSkillContent(ICitizenDataView citizen, AbstractWindowSkeleton window) Fills the citizen gui with it's skill values.static voidupdateHappiness(ICitizenDataView citizen, AbstractWindowSkeleton window) Update the display for the happiness.static voidupdateJobPage(ICitizenDataView citizen, JobWindowCitizen windowCitizen, IColonyView colony) Update the job page of the citizen.
-
Field Details
-
HAPPINESS_ICONS_LOCATION
public static final net.minecraft.resources.ResourceLocation HAPPINESS_ICONS_LOCATION -
SATURATION_ICON_EMPTY
public static final net.minecraft.resources.ResourceLocation SATURATION_ICON_EMPTY -
SATURATION_ICON_FULL
public static final net.minecraft.resources.ResourceLocation SATURATION_ICON_FULL -
SATURATION_ICON_HALF
public static final net.minecraft.resources.ResourceLocation SATURATION_ICON_HALF
-
-
Method Details
-
createHealthBar
public static void createHealthBar(ICitizenDataView citizen, com.ldtteam.blockui.views.View healthBarView) Creates an health bar according to the citizen maxHealth and currentHealth.- Parameters:
citizen- the citizen.healthBarView- the health bar view.
-
createHealthBar
public static void createHealthBar(int health, com.ldtteam.blockui.views.View healthBarView) Creates an health bar according to the citizen maxHealth and currentHealth.- Parameters:
health- the health amount.healthBarView- the health bar view.
-
createSaturationBar
public static void createSaturationBar(ICitizenDataView citizen, com.ldtteam.blockui.views.View view) Creates a saturation bar- Parameters:
citizen- the citizen.view- the view to add these to.
-
createSaturationBar
public static void createSaturationBar(double curSaturation, com.ldtteam.blockui.views.View view) Creates a saturation bar- Parameters:
curSaturation- the current saturation level.view- the view to add these to.
-
createHappinessBar
public static void createHappinessBar(ICitizenDataView citizen, com.ldtteam.blockui.views.View happinessParView) Creates a Happiness bar according to the citizen maxHappiness and currentHappiness.- Parameters:
citizen- pointer to the citizen data viewhappinessParView- pointer to the current bar view.
-
createHappinessBar
General happiness bar setup.- Parameters:
citizen- citizen its for.window- window its at.
-
createSkillContent
Fills the citizen gui with it's skill values.- Parameters:
citizen- the citizen to use.window- the window to fill.
-
updateHappiness
Update the display for the happiness.- Parameters:
citizen- the citizen to update it for.window- the window to add things to.
-
updateJobPage
public static void updateJobPage(ICitizenDataView citizen, JobWindowCitizen windowCitizen, IColonyView colony) Update the job page of the citizen.- Parameters:
citizen- the citizen.windowCitizen- the window.colony- the colony.
-