Interface Salmon

All Superinterfaces:
Attributable, Audience, Bucketable, CommandSender, Creature, Damageable, DataComponentView, Entity, Fish, Frictional, HoverEventSource<HoverEvent.ShowEntity>, Leashable, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ProjectileSource, SchoolableFish, ServerOperator, Sound.Emitter, WaterMob

public interface Salmon extends SchoolableFish
Represents a salmon fish.
  • Method Details

    • getVariant

      @NotNull @NotNull Salmon.Variant getVariant()
      Get the variant of this salmon.
      Returns:
      salmon variant
    • setVariant

      void setVariant(@NotNull @NotNull Salmon.Variant variant)
      Set the variant of this salmon.
      Parameters:
      variant - salmon variant