77 lines
1.4 KiB
Java
77 lines
1.4 KiB
Java
package org.bukkit.entity;
|
|
|
|
import org.bukkit.DyeColor;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/**
|
|
* Tropical fish.
|
|
*/
|
|
public interface TropicalFish extends Fish {
|
|
|
|
/**
|
|
* Gets the color of the fish's pattern.
|
|
*
|
|
* @return pattern color
|
|
*/
|
|
@NotNull
|
|
DyeColor getPatternColor();
|
|
|
|
/**
|
|
* Sets the color of the fish's pattern
|
|
*
|
|
* @param color pattern color
|
|
*/
|
|
void setPatternColor(@NotNull DyeColor color);
|
|
|
|
/**
|
|
* Gets the color of the fish's body.
|
|
*
|
|
* @return pattern color
|
|
*/
|
|
@NotNull
|
|
DyeColor getBodyColor();
|
|
|
|
/**
|
|
* Sets the color of the fish's body
|
|
*
|
|
* @param color body color
|
|
*/
|
|
void setBodyColor(@NotNull DyeColor color);
|
|
|
|
/**
|
|
* Gets the fish's pattern.
|
|
*
|
|
* @return pattern
|
|
*/
|
|
@NotNull
|
|
Pattern getPattern();
|
|
|
|
/**
|
|
* Sets the fish's pattern
|
|
*
|
|
* @param pattern new pattern
|
|
*/
|
|
void setPattern(@NotNull Pattern pattern);
|
|
|
|
/**
|
|
* Enumeration of all different fish patterns. Refer to the
|
|
* <a href="https://minecraft.gamepedia.com/Fish_(mob)">Minecraft Wiki</a>
|
|
* for pictures.
|
|
*/
|
|
public static enum Pattern {
|
|
|
|
KOB,
|
|
SUNSTREAK,
|
|
SNOOPER,
|
|
DASHER,
|
|
BRINELY,
|
|
SPOTTY,
|
|
FLOPPER,
|
|
STRIPEY,
|
|
GLITTER,
|
|
BLOCKFISH,
|
|
BETTY,
|
|
CLAYFISH;
|
|
}
|
|
}
|