Class CitizenWindowUtils

java.lang.Object
com.minecolonies.core.client.gui.citizen.CitizenWindowUtils

public class CitizenWindowUtils extends Object
BOWindow for 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 view
      happinessParView - pointer to the current bar view.
    • createHappinessBar

      public static void createHappinessBar(ICitizenDataView citizen, AbstractWindowSkeleton window)
      General happiness bar setup.
      Parameters:
      citizen - citizen its for.
      window - window its at.
    • createSkillContent

      public static void createSkillContent(ICitizenDataView citizen, AbstractWindowSkeleton window)
      Fills the citizen gui with it's skill values.
      Parameters:
      citizen - the citizen to use.
      window - the window to fill.
    • updateHappiness

      public static void updateHappiness(ICitizenDataView citizen, AbstractWindowSkeleton window)
      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.