Package com.mrbysco.captcha.platform
Class FabricPlatformHelper
java.lang.Object
com.mrbysco.captcha.platform.FabricPlatformHelper
- All Implemented Interfaces:
IPlatformHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the max X value for the addition operation.intGet the max Y value for the addition operation.intGet the Captcha Cooldown from the config.intGet the max X value for the division operation.intGet the max Y value for the division operation.intGet the Grace Period from the config.intGet the max X value for the multiplication operation.intGet the max Y value for the multiplication operation.intGet the max X value for the subtraction operation.intGet the max Y value for the subtraction operation.voidSend Completed Captcha Message to the server.voidsendRequireCaptchaMessage(net.minecraft.server.level.ServerPlayer serverPlayer, String captchaName, String code) Send Require Captcha Message to the client.
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
getCaptchaCooldown
public int getCaptchaCooldown()Description copied from interface:IPlatformHelperGet the Captcha Cooldown from the config.- Specified by:
getCaptchaCooldownin interfaceIPlatformHelper- Returns:
- The cooldown in seconds.
-
getGracePeriod
public int getGracePeriod()Description copied from interface:IPlatformHelperGet the Grace Period from the config.- Specified by:
getGracePeriodin interfaceIPlatformHelper- Returns:
- The grace period in ticks.
-
getAdditionMaxX
public int getAdditionMaxX()Description copied from interface:IPlatformHelperGet the max X value for the addition operation.- Specified by:
getAdditionMaxXin interfaceIPlatformHelper- Returns:
- The max X value.
-
getAdditionMaxY
public int getAdditionMaxY()Description copied from interface:IPlatformHelperGet the max Y value for the addition operation.- Specified by:
getAdditionMaxYin interfaceIPlatformHelper- Returns:
- The max Y value.
-
getSubtractionMaxX
public int getSubtractionMaxX()Description copied from interface:IPlatformHelperGet the max X value for the subtraction operation.- Specified by:
getSubtractionMaxXin interfaceIPlatformHelper- Returns:
- The max X value.
-
getSubtractionMaxY
public int getSubtractionMaxY()Description copied from interface:IPlatformHelperGet the max Y value for the subtraction operation.- Specified by:
getSubtractionMaxYin interfaceIPlatformHelper- Returns:
- The max Y value.
-
getMultiplicationMaxX
public int getMultiplicationMaxX()Description copied from interface:IPlatformHelperGet the max X value for the multiplication operation.- Specified by:
getMultiplicationMaxXin interfaceIPlatformHelper- Returns:
- The max X value.
-
getMultiplicationMaxY
public int getMultiplicationMaxY()Description copied from interface:IPlatformHelperGet the max Y value for the multiplication operation.- Specified by:
getMultiplicationMaxYin interfaceIPlatformHelper- Returns:
- The max Y value.
-
getDivisionMaxX
public int getDivisionMaxX()Description copied from interface:IPlatformHelperGet the max X value for the division operation.- Specified by:
getDivisionMaxXin interfaceIPlatformHelper- Returns:
- The max X value.
-
getDivisionMaxY
public int getDivisionMaxY()Description copied from interface:IPlatformHelperGet the max Y value for the division operation.- Specified by:
getDivisionMaxYin interfaceIPlatformHelper- Returns:
- The max Y value.
-
sendRequireCaptchaMessage
public void sendRequireCaptchaMessage(net.minecraft.server.level.ServerPlayer serverPlayer, String captchaName, String code) Description copied from interface:IPlatformHelperSend Require Captcha Message to the client.- Specified by:
sendRequireCaptchaMessagein interfaceIPlatformHelper- Parameters:
serverPlayer- The player to send the message to.captchaName- The name of the captcha.code- The code for the captcha.
-
sendCompletedCaptchaMessage
Description copied from interface:IPlatformHelperSend Completed Captcha Message to the server.- Specified by:
sendCompletedCaptchaMessagein interfaceIPlatformHelper- Parameters:
code- The code for the captcha.
-