mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 23:39:50 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -4,34 +4,29 @@ import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class GuiButtonNextPage extends GuiNpcButton{
|
||||
public class GuiButtonNextPage extends GuiNpcButton {
|
||||
private final boolean field_146151_o;
|
||||
private static final ResourceLocation field_110405_a = new ResourceLocation("textures/gui/book.png");
|
||||
|
||||
public GuiButtonNextPage(int par1, int par2, int par3, boolean par4)
|
||||
{
|
||||
public GuiButtonNextPage(int par1, int par2, int par3, boolean par4) {
|
||||
super(par1, par2, par3, 23, 13, "");
|
||||
this.field_146151_o = par4;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawButton(Minecraft p_146112_1_, int p_146112_2_, int p_146112_3_)
|
||||
{
|
||||
if (this.visible)
|
||||
{
|
||||
public void drawButton(Minecraft p_146112_1_, int p_146112_2_, int p_146112_3_) {
|
||||
if (this.visible) {
|
||||
boolean flag = p_146112_2_ >= this.xPosition && p_146112_3_ >= this.yPosition && p_146112_2_ < this.xPosition + this.width && p_146112_3_ < this.yPosition + this.height;
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
p_146112_1_.getTextureManager().bindTexture(field_110405_a);
|
||||
int k = 0;
|
||||
int l = 192;
|
||||
|
||||
if (flag)
|
||||
{
|
||||
if (flag) {
|
||||
k += 23;
|
||||
}
|
||||
|
||||
if (!this.field_146151_o)
|
||||
{
|
||||
if (!this.field_146151_o) {
|
||||
l += 13;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user