Class Fishing.FishingDefinition

java.lang.Object
net.risingworld.api.definitions.Fishing.FishingDefinition
Enclosing class:
Fishing

public final class Fishing.FishingDefinition extends Object
  • Field Details

    • id

      public byte id
      Internal type ID of the definition
    • name

      public String name
      Name of the fishing definition
    • type

      public Fishing.Type type
      Fishing type
    • assetpath

      public String assetpath
      Path to the asset
    • targetvariant

      public int targetvariant
      Target item variant/texture. -1 for random variant
    • spawnchance

      public float spawnchance
      Spawn chance for this fish (0-100)
    • waittime

      public int waittime
      Additional wait time until this fish is hooked
    • size

      public Fishing.Size size
      Size of the fish
    • cm

      public int cm
      Default size of this fish (cm)
    • movespeed

      public float movespeed
      Determines 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 reelspeed
      Factor how fast the fish can be reeled in. Must be above 0. Default: 1
    • sinkfactor

      public float sinkfactor
      Factor at which the fish will sink. 0 for no sinking
    • bendfactor

      public float bendfactor
      Factor how much the fishing rod will bend
    • watertypes

      public Fishing.WaterType[] watertypes
    • minwaterdepth

      public int minwaterdepth
    • maxwaterdepth

      public int maxwaterdepth
    • seasons

      public Seasons.Season[] seasons
      Seasons during which this fish can be caught. Never null
    • regions

      public String[] regions
      Optional regions where this fish can spawn. If null, there is no region limit (so the fish can spawn in all regions)
    • biomes

      public String[] 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 starttime
      Start time (hours) when this fish/loot can be caught. Default: 0
    • endtime

      public int endtime
      End time (hours) when this fish/loot can be caught. Default: 24
    • weathers

      public String[] 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 requiresbait
      Determines whether or not a bait is strictly required for this fish
    • offset

      public Vector3f offset
      Optional offset for the asset when hooked on the fishing line. Default: 0 0 0
    • rotation

      public Quaternion rotation
      Optional rotation for the asset when hooked on the fishing line. Default: 0 0 0 1 (identity)
    • scale

      public Vector3f scale
      Optional scale for the asset when hooked on the fishing line. Default: 1 1 1
  • Method Details

    • synchronize

      public void synchronize()