Advertisement
Guest User

GainXPUtil

a guest
Dec 22nd, 2021
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. package com.dorian2712.jobs.data;
  2.  
  3. import java.util.HashMap;
  4. import java.util.List;
  5. import java.util.Map;
  6.  
  7. import com.dorian2712.jobs.network.PacketSendClientConfig;
  8. import com.dorian2712.jobs.network.PacketUpdateClientInfos;
  9. import com.dorian2712.jobs.util.Constants.Entities;
  10. import com.dorian2712.jobs.util.Constants.Job;
  11. import com.dorian2712.jobs.util.handlers.PacketHandler;
  12.  
  13. import net.minecraft.block.Block;
  14. import net.minecraft.entity.player.EntityPlayerMP;
  15. import net.minecraft.item.Item;
  16. import net.minecraft.item.ItemStack;
  17.  
  18. public class GainXPUtil {
  19.  
  20. public static Map<Block, long[]> BREAK_BLOCK_XP = new HashMap<>();
  21. public static Map<Block, Job> BREAK_BLOCK_JOB = new HashMap<>();
  22.  
  23. public static Map<Item, long[]> HARVEST_CROP_XP = new HashMap<>();
  24. public static Map<Item, Job> HARVEST_CROP_JOB = new HashMap<>();
  25.  
  26. public static Map<Item, long[]> CRAFT_ITEM_XP = new HashMap<>();
  27. public static Map<Item, Job> CRAFT_ITEM_JOB = new HashMap<>();
  28.  
  29. public static Map<Item, long[]> SMELT_ITEM_XP = new HashMap<>();
  30. public static Map<Item, Job> SMELT_ITEM_JOB = new HashMap<>();
  31.  
  32. public static Map<Entities, long[]> KILL_ENTITY_XP = new HashMap<>();
  33. public static Map<Entities, Job> KILL_ENTITY_JOB = new HashMap<>();
  34.  
  35.  
  36. public static Map<Item, Integer> CRAFT_UNLOCK_LVL = new HashMap<>();
  37. public static Map<Item, Job> CRAFT_UNLOCK_JOB = new HashMap<>();
  38.  
  39. public static Map<Integer, List<ItemStack>> REWARDS_WARRIOR = new HashMap<>();
  40. public static Map<Integer, List<ItemStack>> REWARDS_WIZARD = new HashMap<>();
  41. public static Map<Integer, List<ItemStack>> REWARDS_HERBALIST = new HashMap<>();
  42. public static Map<Integer, List<ItemStack>> REWARDS_MINER = new HashMap<>();
  43.  
  44. public static ModConfig config;
  45.  
  46.  
  47.  
  48.  
  49. public static void sendDataToClient(EntityPlayerMP player)
  50. {
  51. PacketUpdateClientInfos packet1 = new PacketUpdateClientInfos(BREAK_BLOCK_XP, BREAK_BLOCK_JOB,
  52. HARVEST_CROP_XP, HARVEST_CROP_JOB,
  53. CRAFT_ITEM_XP, CRAFT_ITEM_JOB,
  54. SMELT_ITEM_XP, SMELT_ITEM_JOB,
  55. KILL_ENTITY_XP, KILL_ENTITY_JOB,
  56. CRAFT_UNLOCK_LVL, CRAFT_UNLOCK_JOB);
  57. PacketHandler.INSTANCE.sendTo(packet1, player);
  58. PacketHandler.INSTANCE.sendTo(new PacketSendClientConfig(config), player);
  59. }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement