public class GuiButtonClickImageToggle extends GuiButtonClickImage
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.util.ResourceLocation |
defaultResource |
protected boolean |
toggled |
protected net.minecraft.util.ResourceLocation |
toggleResource |
color, hovercolor, resource| Constructor and Description |
|---|
GuiButtonClickImageToggle(int x,
int y,
int width,
int height,
net.minecraft.util.ResourceLocation defaultResource,
net.minecraft.util.ResourceLocation toggleResource) |
GuiButtonClickImageToggle(int x,
int y,
int width,
int height,
net.minecraft.util.ResourceLocation defaultResource,
net.minecraft.util.ResourceLocation toggleResource,
int color,
int hovercolor) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.ResourceLocation |
getDefaultResource() |
net.minecraft.util.ResourceLocation |
getToggleResource() |
boolean |
isToggled() |
void |
setClickAction(java.lang.Runnable runnable) |
void |
setDefaultResource(net.minecraft.util.ResourceLocation defaultResource) |
void |
setToggleClickAction(java.util.function.Consumer<java.lang.Boolean> consumer) |
void |
setToggleResource(net.minecraft.util.ResourceLocation toggleResource) |
void |
toggle() |
void |
toggle(boolean value) |
color, drawButton, setColor, setHoverColor, setResourceonClickmouseClicked, mouseDragged, mouseReleaseddrawButtonForegroundLayer, getButtonWidth, getHoverState, isMouseOver, mouseDragged, mousePressed, mouseReleased, playPressSound, setWidthdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanFocus, charTyped, focusChanged, keyPressed, keyReleased, mouseScrolledprotected net.minecraft.util.ResourceLocation defaultResource
protected net.minecraft.util.ResourceLocation toggleResource
protected boolean toggled
public GuiButtonClickImageToggle(int x,
int y,
int width,
int height,
net.minecraft.util.ResourceLocation defaultResource,
net.minecraft.util.ResourceLocation toggleResource)
public GuiButtonClickImageToggle(int x,
int y,
int width,
int height,
net.minecraft.util.ResourceLocation defaultResource,
net.minecraft.util.ResourceLocation toggleResource,
int color,
int hovercolor)
public net.minecraft.util.ResourceLocation getDefaultResource()
public void setDefaultResource(net.minecraft.util.ResourceLocation defaultResource)
public net.minecraft.util.ResourceLocation getToggleResource()
public void setToggleResource(net.minecraft.util.ResourceLocation toggleResource)
public boolean isToggled()
public void toggle()
public void toggle(boolean value)
public void setToggleClickAction(java.util.function.Consumer<java.lang.Boolean> consumer)
public void setClickAction(java.lang.Runnable runnable)
setClickAction in class GuiButtonClick