blob: 97ca1b3acb893a6d31798a2edf85a0cc9ea26ae6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
* Roughly Enough Items by Danielshe.
* Licensed under the MIT License.
*/
package me.shedaniel.rei.gui.widget;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.font.TextRenderer;
import net.minecraft.client.gui.AbstractParentElement;
import net.minecraft.client.gui.Drawable;
/**
* The base class for a screen widget
*
* @see WidgetWithBounds for a widget with bounds
*/
public abstract class Widget extends AbstractParentElement implements Drawable {
/**
* The Minecraft Client instance
*/
protected final MinecraftClient minecraft = MinecraftClient.getInstance();
/**
* The font for rendering text
*/
protected final TextRenderer font = minecraft.textRenderer;
public int getZ() {
return this.getBlitOffset();
}
public void setZ(int z) {
this.setBlitOffset(z);
}
}
|