コード例 #1
0
 @Override
 public void outputDataToList(Configuration config, CustomMobData customMobData) {
   ConfigHelper.configDropToMobData(
       config, "MOB CONTROLS." + mobName, customMobData, Items.beef, 0, 10);
   ConfigHelper.configDropToMobData(
       config, "MOB CONTROLS." + mobName, customMobData, ItemList.furPelt, 0, 8);
   ConfigHelper.configDropToMobData(
       config, "MOB CONTROLS." + mobName, customMobData, ItemList.scrapMeat, 0, 10);
   ConfigHelper.configDropToMobData(
       config,
       "MOB CONTROLS." + mobName,
       customMobData,
       ItemList.genericCraftingItems,
       ItemGenerics.Properties.BlackLichen.meta(),
       4);
   ConfigHelper.configDropToMobData(
       config,
       "MOB CONTROLS." + mobName,
       customMobData,
       ItemList.genericCraftingItems,
       ItemGenerics.Properties.SmallHeart.meta(),
       4);
   customMobData.entityProperties =
       new EntityProperties(20f, 4.0f, 0.3f).createFromConfig(config, mobName);
   super.outputDataToList(config, customMobData);
 }
コード例 #2
0
 @Override
 public void outputDataToList(Configuration config, CustomMobData customMobData) {
   ConfigHelper.configDropToMobData(
       config, "MOB CONTROLS." + mobName, customMobData, Item.beefRaw, 0, 10);
   ConfigHelper.configDropToMobData(
       config, "MOB CONTROLS." + mobName, customMobData, ItemList.furPelt, 0, 8);
   ConfigHelper.configDropToMobData(
       config, "MOB CONTROLS." + mobName, customMobData, ItemList.scrapMeat, 0, 10);
   ConfigHelper.configDropToMobData(
       config,
       "MOB CONTROLS." + mobName,
       customMobData,
       ItemList.genericCraftingItems,
       ItemGenerics.Properties.BlackLichen.meta(),
       4);
   ConfigHelper.configDropToMobData(
       config,
       "MOB CONTROLS." + mobName,
       customMobData,
       ItemList.genericCraftingItems,
       ItemGenerics.Properties.SmallHeart.meta(),
       4);
   super.outputDataToList(config, customMobData);
 }