Created
December 25, 2013 14:42
-
-
Save nk0t/8123772 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nk0t.mods.sample.gui; | |
import net.minecraft.entity.player.InventoryPlayer; | |
import net.minecraft.util.ResourceLocation; | |
import nk0t.mods.binding.controls.Label; | |
import nk0t.mods.binding.gui.WindowContainer; | |
import nk0t.mods.sample.ContainerBasic; | |
public class SampleWindow extends WindowContainer | |
{ | |
private static final ResourceLocation guiBackground = new ResourceLocation("sample", "textures/gui/container.png"); | |
public SampleWindow(InventoryPlayer inventoryPlayer) | |
{ | |
super(new ContainerBasic(inventoryPlayer)); | |
this.setBackground(guiBackground); | |
this.setBackgroundSize(176, 166); | |
Label sampleLabel = new Label(); | |
sampleLabel.setText("Sample Text"); | |
this.addControl(sampleLabel); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment