Class FabricPlatformHelper

java.lang.Object
com.mrbysco.captcha.platform.FabricPlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class FabricPlatformHelper extends Object implements IPlatformHelper
  • Constructor Details

    • FabricPlatformHelper

      public FabricPlatformHelper()
  • Method Details

    • getCaptchaCooldown

      public int getCaptchaCooldown()
      Description copied from interface: IPlatformHelper
      Get the Captcha Cooldown from the config.
      Specified by:
      getCaptchaCooldown in interface IPlatformHelper
      Returns:
      The cooldown in seconds.
    • getGracePeriod

      public int getGracePeriod()
      Description copied from interface: IPlatformHelper
      Get the Grace Period from the config.
      Specified by:
      getGracePeriod in interface IPlatformHelper
      Returns:
      The grace period in ticks.
    • getAdditionMaxX

      public int getAdditionMaxX()
      Description copied from interface: IPlatformHelper
      Get the max X value for the addition operation.
      Specified by:
      getAdditionMaxX in interface IPlatformHelper
      Returns:
      The max X value.
    • getAdditionMaxY

      public int getAdditionMaxY()
      Description copied from interface: IPlatformHelper
      Get the max Y value for the addition operation.
      Specified by:
      getAdditionMaxY in interface IPlatformHelper
      Returns:
      The max Y value.
    • getSubtractionMaxX

      public int getSubtractionMaxX()
      Description copied from interface: IPlatformHelper
      Get the max X value for the subtraction operation.
      Specified by:
      getSubtractionMaxX in interface IPlatformHelper
      Returns:
      The max X value.
    • getSubtractionMaxY

      public int getSubtractionMaxY()
      Description copied from interface: IPlatformHelper
      Get the max Y value for the subtraction operation.
      Specified by:
      getSubtractionMaxY in interface IPlatformHelper
      Returns:
      The max Y value.
    • getMultiplicationMaxX

      public int getMultiplicationMaxX()
      Description copied from interface: IPlatformHelper
      Get the max X value for the multiplication operation.
      Specified by:
      getMultiplicationMaxX in interface IPlatformHelper
      Returns:
      The max X value.
    • getMultiplicationMaxY

      public int getMultiplicationMaxY()
      Description copied from interface: IPlatformHelper
      Get the max Y value for the multiplication operation.
      Specified by:
      getMultiplicationMaxY in interface IPlatformHelper
      Returns:
      The max Y value.
    • getDivisionMaxX

      public int getDivisionMaxX()
      Description copied from interface: IPlatformHelper
      Get the max X value for the division operation.
      Specified by:
      getDivisionMaxX in interface IPlatformHelper
      Returns:
      The max X value.
    • getDivisionMaxY

      public int getDivisionMaxY()
      Description copied from interface: IPlatformHelper
      Get the max Y value for the division operation.
      Specified by:
      getDivisionMaxY in interface IPlatformHelper
      Returns:
      The max Y value.
    • sendRequireCaptchaMessage

      public void sendRequireCaptchaMessage(net.minecraft.server.level.ServerPlayer serverPlayer, String captchaName, String code)
      Description copied from interface: IPlatformHelper
      Send Require Captcha Message to the client.
      Specified by:
      sendRequireCaptchaMessage in interface IPlatformHelper
      Parameters:
      serverPlayer - The player to send the message to.
      captchaName - The name of the captcha.
      code - The code for the captcha.
    • sendCompletedCaptchaMessage

      public void sendCompletedCaptchaMessage(String code)
      Description copied from interface: IPlatformHelper
      Send Completed Captcha Message to the server.
      Specified by:
      sendCompletedCaptchaMessage in interface IPlatformHelper
      Parameters:
      code - The code for the captcha.