mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 20:52:22 +00:00
46 lines
1.3 KiB
Java
46 lines
1.3 KiB
Java
package binnie.extrabees.gui;
|
|
|
|
import binnie.core.AbstractMod;
|
|
import binnie.core.craftgui.minecraft.Window;
|
|
import binnie.core.craftgui.minecraft.control.ControlPlayerInventory;
|
|
import binnie.core.craftgui.minecraft.control.ControlSlot;
|
|
import binnie.extrabees.ExtraBees;
|
|
import binnie.extrabees.client.GuiHack;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.inventory.IInventory;
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
|
|
import javax.annotation.Nullable;
|
|
|
|
public class WindowAlvearyFrame extends Window {
|
|
|
|
public WindowAlvearyFrame(final EntityPlayer player, final IInventory inventory, final Side side) {
|
|
super(176, 144, player, inventory, side);
|
|
}
|
|
|
|
@Nullable
|
|
public static Window create(final EntityPlayer player, @Nullable final IInventory inventory, final Side side) {
|
|
if (inventory == null) {
|
|
return null;
|
|
}
|
|
return new WindowAlvearyFrame(player, inventory, side);
|
|
}
|
|
|
|
@Override
|
|
public void initialiseClient() {
|
|
this.setTitle("Frame Housing");
|
|
ControlPlayerInventory playerInventory = new ControlPlayerInventory(this);
|
|
new ControlSlot.Builder(this, 79, 30).assign(0);
|
|
}
|
|
|
|
@Override
|
|
public AbstractMod getMod() {
|
|
return GuiHack.INSTANCE;
|
|
}
|
|
|
|
@Override
|
|
public String getBackgroundTextureName() {
|
|
return "AlvearyFrame";
|
|
}
|
|
}
|