Class VoiceRegionImpl

java.lang.Object
com.mewna.catnip.entity.impl.voice.VoiceRegionImpl
All Implemented Interfaces:
Entity, HasName, RequiresCatnip, VoiceRegion

public class VoiceRegionImpl extends Object implements VoiceRegion, RequiresCatnip
Since:
9/14/18
Author:
natanbc
  • Constructor Details

    • VoiceRegionImpl

      public VoiceRegionImpl()
    • VoiceRegionImpl

      public VoiceRegionImpl(Catnip catnip, String id, String name, boolean vip, boolean optimal, boolean deprecated, boolean custom)
  • Method Details

    • catnip

      public void catnip(@Nonnull Catnip catnip)
      Specified by:
      catnip in interface RequiresCatnip
    • builder

      public static VoiceRegionImpl.VoiceRegionImplBuilder builder()
    • catnip

      public Catnip catnip()
      Description copied from interface: Entity
      Returns the catnip instance associated with this entity.
      Specified by:
      catnip in interface Entity
      Returns:
      The catnip instance of this entity.
    • id

      public String id()
      Specified by:
      id in interface VoiceRegion
      Returns:
      The id of the voice region.
    • name

      public String name()
      Specified by:
      name in interface HasName
    • vip

      public boolean vip()
      Specified by:
      vip in interface VoiceRegion
      Returns:
      Whether the voice region is VIP-only.
    • optimal

      public boolean optimal()
      Specified by:
      optimal in interface VoiceRegion
      Returns:
      Whether the voice region is optimal.
    • deprecated

      public boolean deprecated()
      Specified by:
      deprecated in interface VoiceRegion
      Returns:
      Whether the voice region is deprecated.
    • custom

      public boolean custom()
      Specified by:
      custom in interface VoiceRegion
      Returns:
      Whether the voice region is custom.
    • id

      public VoiceRegionImpl id(String id)
      Returns:
      this.
    • name

      public VoiceRegionImpl name(String name)
      Returns:
      this.
    • vip

      public VoiceRegionImpl vip(boolean vip)
      Returns:
      this.
    • optimal

      public VoiceRegionImpl optimal(boolean optimal)
      Returns:
      this.
    • deprecated

      public VoiceRegionImpl deprecated(boolean deprecated)
      Returns:
      this.
    • custom

      public VoiceRegionImpl custom(boolean custom)
      Returns:
      this.