Class DolphinMeta


public class DolphinMeta extends WaterAnimalMeta
  • Field Details

  • Constructor Details

    • DolphinMeta

      public DolphinMeta(@NotNull @NotNull Entity entity, @NotNull @NotNull Metadata metadata)
      Creates a new meta data for a dolphin.
      Parameters:
      entity - the involved entity
      metadata - the base metadata
  • Method Details

    • getTreasurePosition

      @NotNull public @NotNull Point getTreasurePosition()
      Get the given destination point for a treasure.
      Returns:
      the point or Vec.ZERO when no point is set
    • setTreasurePosition

      public void setTreasurePosition(@NotNull @NotNull Point value)
      Set the destination point to lead a player to a treasure.
      Parameters:
      value - the point to set
    • hasFish

      public boolean hasFish()
      Returns an indicator if a Dolphin received a fish from a player.
      Returns:
      true when yes otherwise false
    • setHasFish

      public void setHasFish(boolean value)
      Set the indicator if a Dolphin got a fish from a player.
      Parameters:
      value - the value to set
    • getMoistureLevel

      public int getMoistureLevel()
      Get the current moisture level.
      Returns:
      the given level
    • setMoistureLevel

      public void setMoistureLevel(int level)
      Updates the given moisture level.
      Parameters:
      level - the level to set