Klasse Items.ProjectileDefinition

java.lang.Object
net.risingworld.api.definitions.Items.ProjectileDefinition
Umschließende Klasse:
Items

public final class Items.ProjectileDefinition extends Object
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    float
    Accurancy of the projectile.
    Path to the projectile model.
    int
    Bullet crack sound parameter ID
    int
    Total amount of damage this projectile deals to players
    int
    Total amount of damage this projectile deals to construction elements
    int
    Total amount of damage this projectile deals to npcs
    int
    Total amount of damage this projectile deals to objects, world, items etc.
    boolean
    If true, the projectile is destroyed when it hits a target
    float
    Range of the explosion (only for explosive projectiles)
    boolean
    If true, this projectile creates an explosion on hit (or when it despawns)
    int
    Hit sound parameter ID
    byte
    Internal ID of this projectile
    float
    Impact impulse intensity that is applied when the projectile hits a target (e.g an item)
    Item which relates to this projectile (e.g arrow).
    float
    Lifetime (in seconds) of this projectile until it despawns or explodes.
    float
    Projectile mass.
    float
    Max range of the projectile (until it despawns)
    Name of this projectile
    float
    Penetration factor (max "thickness" in blocks projectile can pass through)
    boolean
    If true, this projectile can be picked up again after hitting a target (requires itemname to be set)
    boolean
    If true, the projectile may ricochet from a surface (depending on the angle of impact)
    Sound when projectile hits a target
    float
    Fly speed of this projectile
    int
    Splash damage this projectile deals (when it does not hit a player directly, instead impacts in proximity)
    float
    Offset (along z axis) where the tip of this projectile is located.
    Projectile type (i.e is it a bullet or an arrow etc?)
    boolean
    If true, this projectile is actually visible when fired
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
     

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • id

      public byte id
      Internal ID of this projectile
    • name

      public String name
      Name of this projectile
    • type

      public Items.ProjectileType type
      Projectile type (i.e is it a bullet or an arrow etc?)
    • itemname

      public String itemname
      Item which relates to this projectile (e.g arrow). Usually only relevant if projectile is pickupable. May be null
    • assetpath

      public String assetpath
      Path to the projectile model. May be null
    • damage

      public int damage
      Total amount of damage this projectile deals to players
    • damagenpcs

      public int damagenpcs
      Total amount of damage this projectile deals to npcs
    • damageobjects

      public int damageobjects
      Total amount of damage this projectile deals to objects, world, items etc.
    • damageconstructions

      public int damageconstructions
      Total amount of damage this projectile deals to construction elements
    • penetration

      public float penetration
      Penetration factor (max "thickness" in blocks projectile can pass through)
    • maxrange

      public float maxrange
      Max range of the projectile (until it despawns)
    • accurancy

      public float accurancy
      Accurancy of the projectile. 1.0 means 100% accurancy
    • speed

      public float speed
      Fly speed of this projectile
    • lifetime

      public float lifetime
      Lifetime (in seconds) of this projectile until it despawns or explodes. -1 for infinite lifetime
    • mass

      public float mass
      Projectile mass. Default: 1.0
    • explosive

      public boolean explosive
      If true, this projectile creates an explosion on hit (or when it despawns)
    • explosionrange

      public float explosionrange
      Range of the explosion (only for explosive projectiles)
    • splashdamage

      public int splashdamage
      Splash damage this projectile deals (when it does not hit a player directly, instead impacts in proximity)
    • impactimpulse

      public float impactimpulse
      Impact impulse intensity that is applied when the projectile hits a target (e.g an item)
    • tipoffset

      public float tipoffset
      Offset (along z axis) where the tip of this projectile is located. For small projectiles, this can be kept at 0
    • sound

      public String sound
      Sound when projectile hits a target
    • hitsound

      public int hitsound
      Hit sound parameter ID
    • cracksound

      public int cracksound
      Bullet crack sound parameter ID
    • visible

      public boolean visible
      If true, this projectile is actually visible when fired
    • ricochet

      public boolean ricochet
      If true, the projectile may ricochet from a surface (depending on the angle of impact)
    • destroyonhit

      public boolean destroyonhit
      If true, the projectile is destroyed when it hits a target
    • pickupable

      public boolean pickupable
      If true, this projectile can be picked up again after hitting a target (requires itemname to be set)
  • Methodendetails

    • synchronize

      public void synchronize()