<commit_before>package com.wuest.prefab.Proxy;

import com.wuest.prefab.Blocks.BlockBoundary;
import com.wuest.prefab.Config.ServerModConfiguration;
import com.wuest.prefab.Events.ClientEventHandler;
import com.wuest.prefab.Gui.GuiPrefab;
import com.wuest.prefab.ModRegistry;
import com.wuest.prefab.Prefab;
import com.wuest.prefab.Structures.Gui.*;
import com.wuest.prefab.Structures.Items.StructureItem;
import com.wuest.prefab.Structures.Render.ShaderHelper;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.RenderTypeLookup;
import net.minecraft.client.settings.KeyBinding;
import net.minecraft.client.util.InputMappings;
import net.minecraft.item.ItemUseContext;
import net.minecraftforge.client.settings.KeyConflictContext;
import net.minecraftforge.client.settings.KeyModifier;
import net.minecraftforge.fml.DeferredWorkQueue;
import net.minecraftforge.fml.ModContainer;
import net.minecraftforge.fml.ModList;
import net.minecraftforge.fml.client.registry.ClientRegistry;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;

import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.function.BiFunction;
import java.util.function.Supplier;

import static org.lwjgl.glfw.GLFW.*;

/**
 * @author WuestMan
 */
@SuppressWarnings({"WeakerAccess", "SpellCheckingInspection"})
public class ClientProxy extends CommonProxy {
	/**
	 * The hashmap of mod guis.
	 */
	public static HashMap<StructureItem, GuiStructure> ModGuis = new HashMap<>();

	public ServerModConfiguration serverConfiguration = null;

	public ClientProxy() {
		super();
	}

	/**
	 * Adds all of the Mod Guis to the HasMap.
	 */
	public static void AddGuis() {
		ClientProxy.ModGuis.put(ModRegistry.WareHouse.get(), new GuiWareHouse());
		ClientProxy.ModGuis.put(ModRegistry.ChickenCoop.get(), new GuiChickenCoop());
		ClientProxy.ModGuis.put(ModRegistry.ProduceFarm.get(), new GuiProduceFarm());
		ClientProxy.ModGuis.put(ModRegistry.TreeFarm.get(), new GuiTreeFarm());
		ClientProxy.ModGuis.put(ModRegistry.FishPond.get(), new GuiFishPond());
		ClientProxy.ModGuis.put(ModRegistry.StartHouse.get(), new GuiStartHouseChooser());
		ClientProxy.ModGuis.put(ModRegistry.AdvancedWareHouse.get(), new GuiAdvancedWareHouse());
		ClientProxy.ModGuis.put(ModRegistry.MonsterMasher.get(), new GuiMonsterMasher());
		ClientProxy.ModGuis.put(ModRegistry.HorseStable.get(), new GuiHorseStable());
		ClientProxy.ModGuis.put(ModRegistry.NetherGate.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.VillagerHouses.get(), new GuiVillagerHouses());
		ClientProxy.ModGuis.put(ModRegistry.ModerateHouse.get(), new GuiModerateHouse());
		ClientProxy.ModGuis.put(ModRegistry.Bulldozer.get(), new GuiBulldozer());
		ClientProxy.ModGuis.put(ModRegistry.Creative_Bulldozer.get(), new GuiBulldozer());
		ClientProxy.ModGuis.put(ModRegistry.InstantBridge.get(), new GuiInstantBridge());
		ClientProxy.ModGuis.put(ModRegistry.StructurePart.get(), new GuiStructurePart());

		ClientProxy.ModGuis.put(ModRegistry.Barn.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.AdvancedCoop.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.AdvancedHorseStable.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.MachineryTower.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.DefenseBunker.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.MineshaftEntrance.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.EnderGateway.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.AquaBase.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.GrassyPlain.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.MagicTemple.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.GreenHouse.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.WatchTower.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.WelcomeCenter.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.Jail.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.Saloon.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.SkiLodge.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.WindMill.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.TownHall.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.SugarCaneFarm.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.AdvancedAquaBase.get(), new GuiBasicStructure());
	}

	@Override
	public void preInit(FMLCommonSetupEvent event) {
		super.preInit(event);

		ClientProxy.AddGuis();
<commit_msg>Fixing issue where the workshop wasn't showing a GUI<commit_after>package com.wuest.prefab.Proxy;

import com.wuest.prefab.Blocks.BlockBoundary;
import com.wuest.prefab.Config.ServerModConfiguration;
import com.wuest.prefab.Events.ClientEventHandler;
import com.wuest.prefab.Gui.GuiPrefab;
import com.wuest.prefab.ModRegistry;
import com.wuest.prefab.Prefab;
import com.wuest.prefab.Structures.Gui.*;
import com.wuest.prefab.Structures.Items.StructureItem;
import com.wuest.prefab.Structures.Render.ShaderHelper;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.RenderTypeLookup;
import net.minecraft.client.settings.KeyBinding;
import net.minecraft.client.util.InputMappings;
import net.minecraft.item.ItemUseContext;
import net.minecraftforge.client.settings.KeyConflictContext;
import net.minecraftforge.client.settings.KeyModifier;
import net.minecraftforge.fml.DeferredWorkQueue;
import net.minecraftforge.fml.ModContainer;
import net.minecraftforge.fml.ModList;
import net.minecraftforge.fml.client.registry.ClientRegistry;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;

import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.function.BiFunction;
import java.util.function.Supplier;

import static org.lwjgl.glfw.GLFW.*;

/**
 * @author WuestMan
 */
@SuppressWarnings({"WeakerAccess", "SpellCheckingInspection"})
public class ClientProxy extends CommonProxy {
	/**
	 * The hashmap of mod guis.
	 */
	public static HashMap<StructureItem, GuiStructure> ModGuis = new HashMap<>();

	public ServerModConfiguration serverConfiguration = null;

	public ClientProxy() {
		super();
	}

	/**
	 * Adds all of the Mod Guis to the HasMap.
	 */
	public static void AddGuis() {
		ClientProxy.ModGuis.put(ModRegistry.WareHouse.get(), new GuiWareHouse());
		ClientProxy.ModGuis.put(ModRegistry.ChickenCoop.get(), new GuiChickenCoop());
		ClientProxy.ModGuis.put(ModRegistry.ProduceFarm.get(), new GuiProduceFarm());
		ClientProxy.ModGuis.put(ModRegistry.TreeFarm.get(), new GuiTreeFarm());
		ClientProxy.ModGuis.put(ModRegistry.FishPond.get(), new GuiFishPond());
		ClientProxy.ModGuis.put(ModRegistry.StartHouse.get(), new GuiStartHouseChooser());
		ClientProxy.ModGuis.put(ModRegistry.AdvancedWareHouse.get(), new GuiAdvancedWareHouse());
		ClientProxy.ModGuis.put(ModRegistry.MonsterMasher.get(), new GuiMonsterMasher());
		ClientProxy.ModGuis.put(ModRegistry.HorseStable.get(), new GuiHorseStable());
		ClientProxy.ModGuis.put(ModRegistry.NetherGate.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.VillagerHouses.get(), new GuiVillagerHouses());
		ClientProxy.ModGuis.put(ModRegistry.ModerateHouse.get(), new GuiModerateHouse());
		ClientProxy.ModGuis.put(ModRegistry.Bulldozer.get(), new GuiBulldozer());
		ClientProxy.ModGuis.put(ModRegistry.Creative_Bulldozer.get(), new GuiBulldozer());
		ClientProxy.ModGuis.put(ModRegistry.InstantBridge.get(), new GuiInstantBridge());
		ClientProxy.ModGuis.put(ModRegistry.StructurePart.get(), new GuiStructurePart());

		ClientProxy.ModGuis.put(ModRegistry.Barn.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.AdvancedCoop.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.AdvancedHorseStable.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.MachineryTower.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.DefenseBunker.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.MineshaftEntrance.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.EnderGateway.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.AquaBase.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.GrassyPlain.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.MagicTemple.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.GreenHouse.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.WatchTower.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.WelcomeCenter.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.Jail.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.Saloon.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.SkiLodge.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.WindMill.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.TownHall.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.SugarCaneFarm.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.AdvancedAquaBase.get(), new GuiBasicStructure());
		ClientProxy.ModGuis.put(ModRegistry.Workshop.get(), new GuiBasicStructure());
	}

	@Override
	public void preInit(FMLCommonSetupEvent event) {
		super.preInit(event);

		ClientProxy.AddGuis();

{'fraction_non_alphanumeric': 0.13064275037369208, 'fraction_numerical': 0.0, 'mean_word_length': 7.067524115755627, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4622664', 'n_tokens_mistral': 3407, 'n_tokens_neox': 3265, 'n_words': 449}