Enum Class HUDHandler
- All Implemented Interfaces:
Serializable,Comparable<HUDHandler>,Constable,IKeyListener
Singleton object which manages all the Pneumatic Armor HUD drawing and input for the player.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeatureToggleMessage(String key, boolean enabled) voidaddFeatureToggleMessage(String key, String subKey, boolean enabled) voidaddMessage(ArmorMessage message) voidaddMessage(net.minecraft.network.chat.Component title, List<net.minecraft.network.chat.Component> message, int duration, int backColor) static HUDHandlerintvoidhandleInput(net.minecraft.client.KeyMapping key) voidhandleResolutionChange(net.minecraftforge.client.event.ScreenEvent.Init event) voidonMouseScroll(net.minecraftforge.client.event.InputEvent.MouseScrollingEvent event) voidplayerTick(net.minecraftforge.event.TickEvent.PlayerTickEvent event) voidrenderHUD3d(net.minecraftforge.client.event.RenderLevelStageEvent event) Handles the 3D drawing for armor components (seePneumaticArmorHUDOverlayfor 2D)voidrenderMessages(net.minecraft.client.gui.GuiGraphics poseStack, float partialTicks) voidupdateOverlayColors(net.minecraft.world.entity.EquipmentSlot slot) static HUDHandlerReturns the enum constant of this class with the specified name.static HUDHandler[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getInstance
-
renderHUD3d
public void renderHUD3d(net.minecraftforge.client.event.RenderLevelStageEvent event) Handles the 3D drawing for armor components (seePneumaticArmorHUDOverlayfor 2D) -
playerTick
public void playerTick(net.minecraftforge.event.TickEvent.PlayerTickEvent event) -
addFeatureToggleMessage
-
addFeatureToggleMessage
-
addMessage
public void addMessage(net.minecraft.network.chat.Component title, List<net.minecraft.network.chat.Component> message, int duration, int backColor) -
addMessage
-
handleInput
public void handleInput(net.minecraft.client.KeyMapping key) - Specified by:
handleInputin interfaceIKeyListener
-
onMouseScroll
public void onMouseScroll(net.minecraftforge.client.event.InputEvent.MouseScrollingEvent event) -
handleResolutionChange
public void handleResolutionChange(net.minecraftforge.client.event.ScreenEvent.Init event) -
getStatOverlayColor
public int getStatOverlayColor() -
updateOverlayColors
public void updateOverlayColors(net.minecraft.world.entity.EquipmentSlot slot) -
renderMessages
public void renderMessages(net.minecraft.client.gui.GuiGraphics poseStack, float partialTicks)
-