Skip to content

IFishingCondition

xuanyu tang edited this page Jun 20, 2025 · 1 revision

@since 0.1.5

Importing the package


import mods.customfishing.FishingCondition;

In fact, you don't need to import this package at all.

Method


Method Return Type Function
setDimension(int dimension) IFishingCondition Set the dimension required for this FishingCondition
setBiome(String biome) IFishingCondition Set the biome required for this FishingCondition
setChance(float chance) IFishingCondition Set the chance required for this FishingCondition
additionalDamage(int damage) IFishingCondition Set the additional durability consumed by this FishingCondition
addFishRod(IItemStack iitemStack) IFishingCondition Add the fishRod required for this FishingCondition
addFishRods(IItemStack[] iitemStacks) IFishingCondition Add the fishRods required for this FishingCondition
setAltitude(int begin, int end) IFishingCondition Set the height range required for this FishingCondition (begin should be lower and end should be higher)
setDay(boolean isDay) IFishingCondition Set the time required for this FishingCondition(true is day,false is night)
addFishBait(IItemStack iitemStack) IFishingCondition Add the fishBait required for this FishingCondition
addFishBaits(IItemStack[] iitemStacks) IFishingCondition Add the fishBaits required for this FishingCondition

Clone this wiki locally