RealmsButton .java

net.minecraft.realms.RealmsButton (class): members: WIDGETS_LOCATION, active, msg, getYImage, released, renderBg, clicked, blit, getProxy, getHeight, id.

net.minecraft.realmsclass90 linescommon2.1 KB

API Surface (14)

GuiButton getProxy()
int id()
boolean active()
void active(boolean p_active_1_)
void msg(String p_msg_1_)
int getWidth()
int getHeight()
int y()
void render(int p_render_1_, int p_render_2_)
void clicked(int p_clicked_1_, int p_clicked_2_)
void released(int p_released_1_, int p_released_2_)
void blit(int p_blit_1_, int p_blit_2_, int p_blit_3_, int p_blit_4_, int p_blit_5_, int p_blit_6_)
void renderBg(int p_renderBg_1_, int p_renderBg_2_)
int getYImage(boolean p_getYImage_1_)

Fields & Constants (2)

WIDGETS_LOCATION
proxy

String literals (1)

"textures/gui/widgets.png"

Code Graph: Dependencies (4)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

RealmsButton.java90 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.realms;
2
3
import net.minecraft.client.Minecraft;
4
import net.minecraft.client.gui.GuiButton;
5
import net.minecraft.client.gui.GuiButtonRealmsProxy;
6
import net.minecraft.util.ResourceLocation;
7
8
public class RealmsButton
9
{
10
    protected static final ResourceLocation WIDGETS_LOCATION = new ResourceLocation("textures/gui/widgets.png");
11
    private GuiButtonRealmsProxy proxy;
12
13
    public RealmsButton(int buttonId, int x, int y, String text)
14
    {
15
        this.proxy = new GuiButtonRealmsProxy(this, buttonId, x, y, text);
16
    }
17
18
    public RealmsButton(int buttonId, int x, int y, int widthIn, int heightIn, String text)
19
    {
20
        this.proxy = new GuiButtonRealmsProxy(this, buttonId, x, y, text, widthIn, heightIn);
21
    }
22
23
    public GuiButton getProxy()
24
    {
25
        return this.proxy;
26
    }
27
28
    public int id()
29
    {
30
        return this.proxy.getId();
31
    }
32
33
    public boolean active()
34
    {
35
        return this.proxy.getEnabled();
36
    }
37
38
    public void active(boolean p_active_1_)
39
    {
40
        this.proxy.setEnabled(p_active_1_);
41
    }
42
43
    public void msg(String p_msg_1_)
44
    {
45
        this.proxy.setText(p_msg_1_);
46
    }
47
48
    public int getWidth()
49
    {
50
        return this.proxy.getButtonWidth();
51
    }
52
53
    public int getHeight()
54
    {
55
        return this.proxy.getHeight();
56
    }
57
58
    public int y()
59
    {
60
        return this.proxy.getPositionY();
61
    }
62
63
    public void render(int p_render_1_, int p_render_2_)
64
    {
65
        this.proxy.drawButton(Minecraft.getMinecraft(), p_render_1_, p_render_2_);
66
    }
67
68
    public void clicked(int p_clicked_1_, int p_clicked_2_)
69
    {
70
    }
71
72
    public void released(int p_released_1_, int p_released_2_)
73
    {
74
    }
75
76
    public void blit(int p_blit_1_, int p_blit_2_, int p_blit_3_, int p_blit_4_, int p_blit_5_, int p_blit_6_)
77
    {
78
        this.proxy.drawTexturedModalRect(p_blit_1_, p_blit_2_, p_blit_3_, p_blit_4_, p_blit_5_, p_blit_6_);
79
    }
80
81
    public void renderBg(int p_renderBg_1_, int p_renderBg_2_)
82
    {
83
    }
84
85
    public int getYImage(boolean p_getYImage_1_)
86
    {
87
        return this.proxy.func_154312_c(p_getYImage_1_);
88
    }
89
}
90

Deobfuscated MCP 1.8.9 source of RealmsButton from Marcelektro/MavenMCP-1.8.9 (net/minecraft/realms/RealmsButton.java), stored verbatim.