reddvilzz

Untitled

May 8th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. package gigaherz.inventoryspam.config;
  2.  
  3. import java.util.List;
  4. import net.minecraft.client.gui.GuiScreen;
  5. import net.minecraft.client.resources.I18n;
  6. import net.minecraftforge.common.config.ConfigElement;
  7. import net.minecraftforge.fml.client.config.GuiConfig;
  8. import net.minecraftforge.fml.client.config.IConfigElement;
  9.  
  10.  
  11. public class ConfigGui
  12. extends GuiConfig
  13. {
  14. public ConfigGui(GuiScreen parent)
  15. {
  16. super(parent, getConfigElements(), "inventoryspam", false, false, getTitle());
  17. }
  18.  
  19. private static String getTitle()
  20. {
  21. return I18n.func_135052_a("text.inventoryspam.config", new Object[0]);
  22. }
  23.  
  24. private static List<IConfigElement> getConfigElements()
  25. {
  26. return new ConfigElement(Config.getGeneralCategory()).getChildElements();
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment