接口 TropicalFish

所有超级接口:
Attributable, CommandSender, Creature, Damageable, Entity, Fish, Leashable, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator, WaterMob

public interface TropicalFish extends Fish
代表热带鱼.
  • 方法详细资料

    • getPatternColor

      @NotNull @NotNull DyeColor getPatternColor()
      获取热带鱼的花纹颜色.

      原文: Gets the color of the fish's pattern.

      返回:
      花纹颜色
    • setPatternColor

      void setPatternColor(@NotNull @NotNull DyeColor color)
      设置热带鱼的花纹颜色.

      原文: Sets the color of the fish's pattern

      参数:
      color - 花纹颜色
    • getBodyColor

      @NotNull @NotNull DyeColor getBodyColor()
      获取热带鱼的身体颜色.

      原文: Gets the color of the fish's body.

      返回:
      身体颜色
    • setBodyColor

      void setBodyColor(@NotNull @NotNull DyeColor color)
      设置热带鱼的身体颜色.

      原文: Sets the color of the fish's body

      参数:
      color - 身体颜色
    • getPattern

      获取热带鱼的花纹.

      原文: Gets the fish's pattern.

      返回:
      花纹
    • setPattern

      void setPattern(@NotNull @NotNull TropicalFish.Pattern pattern)
      设置热带鱼的花纹.

      原文: Sets the fish's pattern

      参数:
      pattern - 新花纹