Interface Horse

    • Method Detail

      • getColor

        @NotNull
        Horse.Color getColor()
        Gets the horse's color.

        Colors only apply to horses, not to donkeys, mules, skeleton horses or undead horses.

        Returns:
        a Horse.Color representing the horse's group
      • setColor

        void setColor​(@NotNull
                      Horse.Color color)
        Sets the horse's color.

        Attempting to set a color for any donkey, mule, skeleton horse or undead horse will not result in a change.

        Parameters:
        color - a Horse.Color for this horse
      • getStyle

        @NotNull
        Horse.Style getStyle()
        Gets the horse's style. Styles determine what kind of markings or patterns a horse has.

        Styles only apply to horses, not to donkeys, mules, skeleton horses or undead horses.

        Returns:
        a Horse.Style representing the horse's style
      • setStyle

        void setStyle​(@NotNull
                      Horse.Style style)
        Sets the style of this horse. Styles determine what kind of markings or patterns a horse has.

        Attempting to set a style for any donkey, mule, skeleton horse or undead horse will not result in a change.

        Parameters:
        style - a Horse.Style for this horse
      • isCarryingChest

        @Deprecated
        boolean isCarryingChest()
        Deprecated.
        Returns:
        carrying chest status
      • setCarryingChest

        @Deprecated
        void setCarryingChest​(boolean chest)
        Deprecated.
        Parameters:
        chest - chest