Skip to content

Instantly share code, notes, and snippets.

@nk0t
Created December 25, 2013 14:42
Show Gist options
  • Save nk0t/8123772 to your computer and use it in GitHub Desktop.
Save nk0t/8123772 to your computer and use it in GitHub Desktop.
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