示例#1
0
 public static NormalLeather create(final Player player, int buttonId, int manualAmount) {
   final NormalLeatherMake normalLeatherMake = NormalLeatherMake.forId(buttonId);
   if (normalLeatherMake == null || (normalLeatherMake.getAmount() == 0 && manualAmount == 0))
     return null;
   return new NormalLeather(
       player,
       normalLeatherMake.getUsed(),
       normalLeatherMake.getUsed2(),
       normalLeatherMake.getResult(),
       normalLeatherMake.getAmount(),
       manualAmount,
       normalLeatherMake.getLevel(),
       normalLeatherMake.getExperience());
 }
示例#2
0
 static {
   for (NormalLeatherMake data : NormalLeatherMake.values()) {
     normalLeatherItems.put(data.buttonId, data);
   }
 }