2020-12-03 19:13:11 +01:00
|
|
|
package de.ellpeck.actuallyadditions.client;
|
|
|
|
|
2021-01-17 14:45:56 +01:00
|
|
|
import de.ellpeck.actuallyadditions.client.render.tiles.BatteryBoxTileRender;
|
2020-12-03 19:13:11 +01:00
|
|
|
import de.ellpeck.actuallyadditions.client.screens.DrillScreen;
|
2021-01-03 12:12:30 +01:00
|
|
|
import de.ellpeck.actuallyadditions.client.screens.FeederScreen;
|
2021-05-15 16:45:01 +02:00
|
|
|
import de.ellpeck.actuallyadditions.client.screens.VoidSackScreen;
|
2021-01-17 14:45:56 +01:00
|
|
|
import de.ellpeck.actuallyadditions.common.ActuallyAdditions;
|
2020-12-03 19:13:11 +01:00
|
|
|
import de.ellpeck.actuallyadditions.common.container.ActuallyContainers;
|
2021-01-17 14:45:56 +01:00
|
|
|
import de.ellpeck.actuallyadditions.common.tiles.ActuallyTiles;
|
2020-12-03 19:13:11 +01:00
|
|
|
import net.minecraft.client.gui.ScreenManager;
|
2021-01-17 14:45:56 +01:00
|
|
|
import net.minecraftforge.fml.client.registry.ClientRegistry;
|
2020-12-03 19:13:11 +01:00
|
|
|
|
|
|
|
public class ClientSetup {
|
|
|
|
public static void setup() {
|
|
|
|
setupScreens();
|
2021-01-17 14:45:56 +01:00
|
|
|
setupTileRenders();
|
2020-12-03 19:13:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
private static void setupScreens() {
|
|
|
|
ScreenManager.registerFactory(ActuallyContainers.DRILL_CONTAINER.get(), DrillScreen::new);
|
2021-01-03 12:12:30 +01:00
|
|
|
ScreenManager.registerFactory(ActuallyContainers.FEEDER_CONTAINER.get(), FeederScreen::new);
|
2021-05-15 16:45:01 +02:00
|
|
|
ScreenManager.registerFactory(ActuallyContainers.VOID_SACK_CONTAINER.get(), VoidSackScreen::new);
|
2020-12-03 19:13:11 +01:00
|
|
|
}
|
2021-01-17 14:45:56 +01:00
|
|
|
|
|
|
|
private static void setupTileRenders() {
|
|
|
|
ActuallyAdditions.LOGGER.debug("Setting up tile entity renderers");
|
|
|
|
ClientRegistry.bindTileEntityRenderer(ActuallyTiles.BATTERY_BOX_TILE.get(), BatteryBoxTileRender::new);
|
|
|
|
}
|
2020-12-03 19:13:11 +01:00
|
|
|
}
|