Interface IPlatformHelper
public interface IPlatformHelper
-
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.
-
Method Details
-
getCaptchaCooldown
int getCaptchaCooldown()Get the Captcha Cooldown from the config.- Returns:
- The cooldown in seconds.
-
getGracePeriod
int getGracePeriod()Get the Grace Period from the config.- Returns:
- The grace period in ticks.
-
getAdditionMaxX
int getAdditionMaxX()Get the max X value for the addition operation.- Returns:
- The max X value.
-
getAdditionMaxY
int getAdditionMaxY()Get the max Y value for the addition operation.- Returns:
- The max Y value.
-
getSubtractionMaxX
int getSubtractionMaxX()Get the max X value for the subtraction operation.- Returns:
- The max X value.
-
getSubtractionMaxY
int getSubtractionMaxY()Get the max Y value for the subtraction operation.- Returns:
- The max Y value.
-
getMultiplicationMaxX
int getMultiplicationMaxX()Get the max X value for the multiplication operation.- Returns:
- The max X value.
-
getMultiplicationMaxY
int getMultiplicationMaxY()Get the max Y value for the multiplication operation.- Returns:
- The max Y value.
-
getDivisionMaxX
int getDivisionMaxX()Get the max X value for the division operation.- Returns:
- The max X value.
-
getDivisionMaxY
int getDivisionMaxY()Get the max Y value for the division operation.- Returns:
- The max Y value.
-
sendRequireCaptchaMessage
void sendRequireCaptchaMessage(net.minecraft.server.level.ServerPlayer serverPlayer, String captchaName, String code) Send Require Captcha Message to the client.- Parameters:
serverPlayer- The player to send the message to.captchaName- The name of the captcha.code- The code for the captcha.
-
sendCompletedCaptchaMessage
Send Completed Captcha Message to the server.- Parameters:
code- The code for the captcha.
-