Skip to content
Permalink
Browse files

Add screen for container

  • Loading branch information...
HyCraftHD committed Aug 13, 2019
1 parent 1f7e05e commit 7b88d3cdbeed3d81d0a66b80dfdd9b7d954cb714
@@ -0,0 +1,18 @@
package info.u_team.useful_railroads.gui;

import info.u_team.u_team_core.gui.UContainerScreen;
import info.u_team.useful_railroads.UsefulRailroadsMod;
import info.u_team.useful_railroads.container.TeleportRailContainer;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.ITextComponent;

public class TeleportRailScreen extends UContainerScreen<TeleportRailContainer> {

private static final ResourceLocation BACKGROUND = new ResourceLocation(UsefulRailroadsMod.MODID, "textures/gui/teleport_rail.png");

public TeleportRailScreen(TeleportRailContainer container, PlayerInventory playerInventory, ITextComponent title) {
super(container, playerInventory, title, BACKGROUND);
}

}
@@ -0,0 +1,14 @@
package info.u_team.useful_railroads.init;

import info.u_team.useful_railroads.gui.TeleportRailScreen;
import net.minecraft.client.gui.ScreenManager;
import net.minecraftforge.api.distmarker.*;

@OnlyIn(Dist.CLIENT)
public class UsefulRailroadsGuis {

public static void construct() {
ScreenManager.registerFactory(UsefulRailroadsContainers.TELEPORT_RAIL, TeleportRailScreen::new);
}

}
@@ -1,10 +1,13 @@
package info.u_team.useful_railroads.proxy;

import info.u_team.useful_railroads.init.UsefulRailroadsGuis;

public class ClientProxy extends CommonProxy {

@Override
public void construct() {
super.construct();
UsefulRailroadsGuis.construct();
}

@Override

0 comments on commit 7b88d3c

Please sign in to comment.
You can’t perform that action at this time.