Class ParticleEffect.OrdinaryColor

    • Constructor Summary

      Constructors 
      Constructor Description
      OrdinaryColor​(int red, int green, int blue)
      Construct a new ordinary color
      OrdinaryColor​(org.bukkit.Color color)
      Construct a new ordinary color
    • Method Summary

      Modifier and Type Method Description
      int getBlue()
      Returns the blue value of the RGB format
      int getGreen()
      Returns the green value of the RGB format
      int getRed()
      Returns the red value of the RGB format
      float getValueX()
      Returns the red value divided by 255
      float getValueY()
      Returns the green value divided by 255
      float getValueZ()
      Returns the blue value divided by 255
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrdinaryColor

        public OrdinaryColor​(int red,
                             int green,
                             int blue)
                      throws java.lang.IllegalArgumentException
        Construct a new ordinary color
        Parameters:
        red - Red value of the RGB format
        green - Green value of the RGB format
        blue - Blue value of the RGB format
        Throws:
        java.lang.IllegalArgumentException - If one of the values is lower than 0 or higher than 255
      • OrdinaryColor

        public OrdinaryColor​(org.bukkit.Color color)
        Construct a new ordinary color
        Parameters:
        color - Bukkit color
    • Method Detail

      • getRed

        public int getRed()
        Returns the red value of the RGB format
        Returns:
        The red value
      • getGreen

        public int getGreen()
        Returns the green value of the RGB format
        Returns:
        The green value
      • getBlue

        public int getBlue()
        Returns the blue value of the RGB format
        Returns:
        The blue value