コード例 #1
0
ファイル: NormalLeather.java プロジェクト: Onurrr/377_Remake
 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
ファイル: NormalLeather.java プロジェクト: Onurrr/377_Remake
 static {
   for (NormalLeatherMake data : NormalLeatherMake.values()) {
     normalLeatherItems.put(data.buttonId, data);
   }
 }