Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package io.github.hsyyid.wilsonsmp.gui;
- import io.github.hsyyid.wilsonsmp.WilsonSMP;
- import io.github.hsyyid.wilsonsmp.tileentities.TileEntityReadableBookshelf;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.gui.inventory.GuiContainer;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.util.ResourceLocation;
- public class GuiReadableBookshelf extends GuiContainer
- {
- private static final ResourceLocation texture = new ResourceLocation(WilsonSMP.MODID, "textures/gui/readablebookshelf.png");;
- public GuiReadableBookshelf(EntityPlayer player, TileEntityReadableBookshelf locker)
- {
- super(locker.getNewContainer(player));
- this.xSize = 176;
- this.ySize = 201;
- }
- @Override
- protected void drawGuiContainerBackgroundLayer(float f, int x, int y)
- {
- Minecraft.getMinecraft().renderEngine.bindTexture(texture);
- drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.xSize, this.ySize);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement