Portl

Untitled

Oct 3rd, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. package me.fulpix.plastic.utils;
  2.  
  3. import me.fulpix.plastic.Plastic;
  4. import net.minecraft.client.Minecraft;
  5. import net.minecraft.util.ChatComponentText;
  6. import net.minecraft.util.IChatComponent;
  7.  
  8. public class Logger {
  9.  
  10. private Minecraft mc;
  11.  
  12. public void Loading(String text) {
  13. System.out.println("Loading >" + text);
  14.  
  15. }
  16.  
  17. public void Info(String text) {
  18. System.out.print("Info >" + text);
  19. }
  20.  
  21. public void Error(String text) {
  22. System.out.println("Error >" + text);
  23. }
  24.  
  25. public void Dowloading(String text) {
  26. System.out.println("Dowloading >" + text);
  27. }
  28.  
  29. public void Creating(String text) {
  30. System.out.println("Creating >" + text);
  31. }
  32.  
  33. public void setChatWithPrefix(String message) {
  34. mc.thePlayer.addChatMessage(new ChatComponentText(Plastic.instance.Client_Prefix + message));
  35. }
  36.  
  37. public void setChatError(String message) {
  38. mc.thePlayer.addChatMessage(new ChatComponentText(Plastic.instance.Client_Prefix + "§cError: " + message));
  39. }
  40.  
  41. public void setChatinfo(String message) {
  42. mc.thePlayer.addChatMessage(new ChatComponentText(Plastic.instance.Client_Prefix + message + "§aInfo §f" + message));
Add Comment
Please, Sign In to add comment