Class Fishing.FishingDefinition
java.lang.Object
net.risingworld.api.definitions.Fishing.FishingDefinition
- Enclosing class:
Fishing
-
Field Summary
FieldsModifier and TypeFieldDescriptionPath to the assetfloatFactor how much the fishing rod will bendString[]Optional biomes where this fish can spawn.intDefault size of this fish (cm)intEnd time (hours) when this fish/loot can be caught.byteInternal type ID of the definitionintintfloatDetermines the move speed/intensity when this fish is hooked.Name of the fishing definitionOptional offset for the asset when hooked on the fishing line.floatFactor how fast the fish can be reeled in.String[]Optional regions where this fish can spawn.booleanDetermines whether or not a bait is strictly required for this fishOptional rotation for the asset when hooked on the fishing line.Optional scale for the asset when hooked on the fishing line.Seasons during which this fish can be caught.floatFactor at which the fish will sink.Size of the fishfloatSpawn chance for this fish (0-100)intStart time (hours) when this fish/loot can be caught.intTarget item variant/texture.Fishing typeintAdditional wait time until this fish is hookedString[]Optional weathers during which this fish can spawn. -
Method Summary
-
Field Details
-
id
public byte idInternal type ID of the definition -
name
Name of the fishing definition -
type
Fishing type -
assetpath
Path to the asset -
targetvariant
public int targetvariantTarget item variant/texture. -1 for random variant -
spawnchance
public float spawnchanceSpawn chance for this fish (0-100) -
waittime
public int waittimeAdditional wait time until this fish is hooked -
size
Size of the fish -
cm
public int cmDefault size of this fish (cm) -
movespeed
public float movespeedDetermines the move speed/intensity when this fish is hooked. The higher the value, the more difficult it is to reel the fish in -
reelspeed
public float reelspeedFactor how fast the fish can be reeled in. Must be above 0. Default: 1 -
sinkfactor
public float sinkfactorFactor at which the fish will sink. 0 for no sinking -
bendfactor
public float bendfactorFactor how much the fishing rod will bend -
watertypes
-
minwaterdepth
public int minwaterdepth -
maxwaterdepth
public int maxwaterdepth -
seasons
Seasons during which this fish can be caught. Never null -
regions
Optional regions where this fish can spawn. If null, there is no region limit (so the fish can spawn in all regions) -
biomes
Optional biomes where this fish can spawn. If null, there is no biome limit (so the fish can spawn in all biomes) -
starttime
public int starttimeStart time (hours) when this fish/loot can be caught. Default: 0 -
endtime
public int endtimeEnd time (hours) when this fish/loot can be caught. Default: 24 -
weathers
Optional weathers during which this fish can spawn. If null, there is no limit (so the fish can spawn during all weather types) -
requiresbait
public boolean requiresbaitDetermines whether or not a bait is strictly required for this fish -
offset
Optional offset for the asset when hooked on the fishing line. Default: 0 0 0 -
rotation
Optional rotation for the asset when hooked on the fishing line. Default: 0 0 0 1 (identity) -
scale
Optional scale for the asset when hooked on the fishing line. Default: 1 1 1
-
-
Method Details
-
synchronize
public void synchronize()
-