java.lang.Object
java.lang.Enum<ShipSize>
com.minecolonies.core.colony.events.raid.pirateEvent.ShipSize
All Implemented Interfaces:
Serializable, Comparable<ShipSize>, Constable

public enum ShipSize extends Enum<ShipSize>
Enum for ship sizes.
  • Enum Constant Details

    • SMALL

      public static final ShipSize SMALL
    • MEDIUM

      public static final ShipSize MEDIUM
    • BIG

      public static final ShipSize BIG
  • Field Details

    • raidLevel

      public final int raidLevel
      The ships raidlevel
    • schematicPrefix

      public final String schematicPrefix
      Structure schematic prefix
    • messageID

      public final int messageID
      Raid message id
    • spawnerCount

      public final int spawnerCount
      Amount of spawners for the ship
    • normal

      public final int normal
      Array of pirates which are spawned for landing, one wave.
    • archer

      public final int archer
    • boss

      public final int boss
  • Method Details

    • values

      public static ShipSize[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ShipSize valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getShipForRaiderAmount

      public static ShipSize getShipForRaiderAmount(int raidLevel)
      Returns the right shipsize for the given raidlevel
      Parameters:
      raidLevel - the raid level.
      Returns:
      the ship size.