Class ShadePickerAddon
java.lang.Object
com.hrznstudio.titanium.client.screen.addon.BasicScreenAddon
com.hrznstudio.titanium.client.screen.addon.color.ShadePickerAddon
- All Implemented Interfaces:
IScreenAddon,ICanMouseDrag,IClickable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrag(int x, int y)voiddrawBackgroundLayer(com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY, float partialTicks)Draws the component in the background layervoiddrawForegroundLayer(com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY)Draws the component in the foreground layerintgetXSize()intgetYSize()voidhandleClick(net.minecraft.client.gui.screens.Screen screen, int guiX, int guiY, double mouseX, double mouseY, int button)voidsetBrightness(float brightness)voidsetSaturation(float saturation)Methods inherited from class com.hrznstudio.titanium.client.screen.addon.BasicScreenAddon
getPosX, getPosY, isInside, setPosX, setPosYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hrznstudio.titanium.api.client.IScreenAddon
getTooltipLines, init, isBackground, keyPressed
-
Constructor Details
-
ShadePickerAddon
-
-
Method Details
-
getXSize
public int getXSize()- Specified by:
getXSizein classBasicScreenAddon
-
getYSize
public int getYSize()- Specified by:
getYSizein classBasicScreenAddon
-
drawBackgroundLayer
public void drawBackgroundLayer(com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY, float partialTicks)Description copied from interface:IScreenAddonDraws the component in the background layer- Specified by:
drawBackgroundLayerin interfaceIScreenAddonscreen- The current open screenprovider- The current asset provider used in the GUIguiX- The gui X in the top left cornerguiY- The gui Y in the top left cornermouseX- The current mouse XmouseY- The current mouse YpartialTicks- Partial ticks
-
drawForegroundLayer
public void drawForegroundLayer(com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY)Description copied from interface:IScreenAddonDraws the component in the foreground layer- Specified by:
drawForegroundLayerin interfaceIScreenAddonscreen- The current open screenprovider- The current asset provider used in the GUIguiX- The gui X in the top left cornerguiY- The gui Y in the top left cornermouseX- The current mouse XmouseY- The current mouse Y
-
drag
public void drag(int x, int y)- Specified by:
dragin interfaceICanMouseDrag
-
handleClick
public void handleClick(net.minecraft.client.gui.screens.Screen screen, int guiX, int guiY, double mouseX, double mouseY, int button)- Specified by:
handleClickin interfaceIClickable
-
setBrightness
public void setBrightness(float brightness) -
setSaturation
public void setSaturation(float saturation)
-