本文整理汇总了Java中mariculture.api.fishery.Fishing类的典型用法代码示例。如果您正苦于以下问题:Java Fishing类的具体用法?Java Fishing怎么用?Java Fishing使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Fishing类属于mariculture.api.fishery包,在下文中一共展示了Fishing类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addBooty
import mariculture.api.fishery.Fishing; //导入依赖的package包/类
static void addBooty()
{
if (Configurations.fishingOysters)
{
Fishing.loot.addLoot(new Loot(new ItemStack(getBlock(Info.marioyster)), RodQuality.GOOD, Rarity.GOOD, 100, 0, false));
}
Fishing.loot.addLoot(new Loot(new ItemStack(getBlock(Info.mariores), 1, 7), RodQuality.OLD, Rarity.JUNK, 50, 0, false));
if (Modules.isActive(Modules.worldplus))
{
Item coral = getItem(Info.maricoral);
for (int i = 2; i < coral.getMaxDamage(); i++)
{
Fishing.loot.addLoot(new Loot(new ItemStack(coral, 1, i), RodQuality.OLD, Rarity.JUNK, 200, 0, false));
}
}
}
示例2: canCatch
import mariculture.api.fishery.Fishing; //导入依赖的package包/类
@Override
public boolean canCatch(Random rand, World world, int x, int y, int z, EnumRodQuality quality)
{
if (Configurations.endOverride)
{
if(quality.getRank() >= getRodNeeded().getRank() && rand.nextInt(100) < (getCatchChance() / (getGroup().canLive(world, x, y, z)?1:2)))
{
return true;
}
}
else
{
if(isWorldCorrect(world) && quality.getRank() >= getRodNeeded().getRank() && rand.nextInt(100) < getCatchChance())
{
return Fishing.fishHelper.biomeMatches(world.getWorldChunkManager().getBiomeGenAt(x, z), getGroup().getBiomes());
}
}
return false;
}
示例3: registerMechanicalSeparationRecipe
import mariculture.api.fishery.Fishing; //导入依赖的package包/类
@Override
public void registerMechanicalSeparationRecipe(ItemStack input, List<ChanceStack> outputs) {
int[] oreIds = OreDictionary.getOreIDs(input);
for (int oreId : oreIds) {
String oreName = OreDictionary.getOreName(oreId);
if (!oreName.startsWith("dust")) {
continue;
}
for (ChanceStack output : outputs.subList(0, 1)) { // currently restricted to first output
ItemStack outputStack = output.itemStack;
int amount = outputStack.stackSize;
int chance = (int)(output.chance * 100);
RecipeSifter recipe = new RecipeSifter(outputStack, oreName, amount, amount, chance);
Fishing.sifter.addRecipe(recipe);
}
}
}
示例4: canCatch
import mariculture.api.fishery.Fishing; //导入依赖的package包/类
@Override
public boolean canCatch(Random rand, World world, int x, int y, int z, EnumRodQuality quality)
{
if(isWorldCorrect(world) && quality.getRank() >= getRodNeeded().getRank() && rand.nextInt(100) < getCatchChance())
{
return Fishing.fishHelper.biomeMatches(world.getWorldChunkManager().getBiomeGenAt(x, z), getGroup().getBiomes());
}
return false;
}
示例5: addBooty
import mariculture.api.fishery.Fishing; //导入依赖的package包/类
static void addBooty()
{
//Fishing.loot.addLoot(stack, args);
if (Configurations.fishingOysters)
{
Fishing.loot.addLoot(new ItemStack(getBlock(Info.marioyster), 1, 0), new Object[] { EnumRodQuality.GOOD, 500 });
}
Fishing.loot.addLoot(new ItemStack(getBlock(Info.mariores), 1, 7), new Object[] { EnumRodQuality.OLD, 200 });
if (WorldPlus.isActive)
{
Item coral = getItem(Info.maricoral);
for (int i = 2; i < coral.getMaxDamage(); i++)
{
Fishing.loot.addLoot(new ItemStack(coral, 1, i), new Object[] { EnumRodQuality.OLD, 1000 });
}
}
if (Fishery.isActive)
{
if (Configurations.endOverride)
{
Fishing.loot.addLoot(new ItemStack(getItem(Info.maribottle), 1, FluidContainerMeta.BOTTLE_VOID), new Object[] { EnumRodQuality.OLD, 75, 1 });
Fishing.loot.addLoot(new ItemStack(Item.enderPearl), new Object[] { EnumRodQuality.OLD, 300, 1 });
Fishing.loot.addLoot(new ItemStack(Item.eyeOfEnder), new Object[] { EnumRodQuality.OLD, 250, 1 });
Fishing.loot.addLoot(new ItemStack(Item.record11), new Object[] { EnumRodQuality.GOOD, 2000, 1 });
Fishing.loot.addLoot(new ItemStack(Item.recordMellohi), new Object[] { EnumRodQuality.GOOD, 2000, 1 });
Fishing.loot.addLoot(new ItemStack(Item.recordStal), new Object[] { EnumRodQuality.GOOD, 2000, 1 });
}
}
}
示例6: overrideFish
import mariculture.api.fishery.Fishing; //导入依赖的package包/类
static void overrideFish()
{
FishSpecies.speciesList = new ArrayList();
Fishery.cod = new SkyFishCod(0);
Fishery.perch = new SkyFishPerch(1);
Fishery.tuna = new SkyFishTuna(2);
Fishery.nether = new SkyFishNether(3);
Fishery.glow = new SkyFishGlow(4);
Fishery.blaze = new SkyFishBlaze(5);
Fishery.night = new SkyFishNight(6);
Fishery.ender = new SkyFishEnder(7);
Fishery.dragon = new SkyFishDragon(8);
Fishery.minnow = new SkyFishMinnow(9);
Fishery.salmon = new SkyFishSalmon(10);
Fishery.bass = new SkyFishBass(11);
Fishery.tetra = new SkyFishTetra(12);
Fishery.catfish = new SkyFishCatfish(13);
Fishery.piranha = new SkyFishPiranha(14);
Fishery.stingRay = new SkyFishStingRay(15);
Fishery.mantaRay = new SkyFishMantaRay(16);
Fishery.electricRay = new SkyFishElectricRay(17);
Fishery.damsel = new SkyFishDamsel(18);
Fishery.angel = new SkyFishAngel(19);
Fishery.puffer = new SkyFishPuffer(20);
Fishery.squid = new SkyFishSquid(21);
Fishery.jelly = new SkyFishJelly(22);
Fishery.manOWar = new SkyFishManOWar(23);
Fishery.gold = new SkyFishGold(24);
Fishery.siamese = new SkyFishSiamese(25);
Fishery.koi = new SkyFishKoi(26);
Fishery.butterfly = new SkyFishButterfly(27);
Fishery.tang = new SkyFishTang(28);
Fishery.clown = new SkyFishClown(29);
Fishing.mutation.addMutation(Fishery.nether, Fishery.koi, Fishery.glow, 6D);
Fishing.mutation.addMutation(Fishery.glow, Fishery.nether, Fishery.blaze, 10D);
Fishing.mutation.addMutation(Fishery.night, Fishery.electricRay, Fishery.ender, 8D);
Fishing.mutation.addMutation(Fishery.ender, Fishery.night, Fishery.dragon, 5D);
Fishing.mutation.addMutation(Fishery.minnow, Fishery.gold, Fishery.salmon, 15D);
Fishing.mutation.addMutation(Fishery.salmon, Fishery.minnow, Fishery.bass, 20D);
Fishing.mutation.addMutation(Fishery.tetra, Fishery.siamese, Fishery.catfish, 12D);
Fishing.mutation.addMutation(Fishery.catfish, Fishery.tetra, Fishery.piranha, 8D);
Fishing.mutation.addMutation(Fishery.cod, Fishery.gold, Fishery.perch, 15D);
Fishing.mutation.addMutation(Fishery.perch, Fishery.cod, Fishery.tuna, 20D);
Fishing.mutation.addMutation(Fishery.stingRay, Fishery.puffer, Fishery.mantaRay, 8D);
Fishing.mutation.addMutation(Fishery.mantaRay, Fishery.stingRay, Fishery.electricRay, 10D);
Fishing.mutation.addMutation(Fishery.damsel, Fishery.squid, Fishery.angel, 7.5D);
Fishing.mutation.addMutation(Fishery.angel, Fishery.damsel, Fishery.puffer, 15D);
Fishing.mutation.addMutation(Fishery.squid, Fishery.tuna, Fishery.jelly, 20D);
Fishing.mutation.addMutation(Fishery.jelly, Fishery.squid, Fishery.manOWar, 10D);
Fishing.mutation.addMutation(Fishery.minnow, Fishery.cod, Fishery.gold, 25D);
Fishing.mutation.addMutation(Fishery.gold, Fishery.stingRay, Fishery.siamese, 15D);
Fishing.mutation.addMutation(Fishery.siamese, Fishery.gold, Fishery.koi, 7.5D);
Fishing.mutation.addMutation(Fishery.angel, Fishery.tetra, Fishery.butterfly, 10D);
Fishing.mutation.addMutation(Fishery.butterfly, Fishery.piranha, Fishery.tang, 7.5D);
Fishing.mutation.addMutation(Fishery.tang, Fishery.butterfly, Fishery.clown, 5D);
}