Class ForgePlatformHelper
java.lang.Object
com.mrbysco.measurements.platform.ForgePlatformHelper
- All Implemented Interfaces:
IPlatformHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the linecolor specified in the configfloatGets the lineWidth specified in the configfloatGets the lineWidthMax specified in the configGets the textColor specified in the configfloatGets the textSize specified in the configbooleanisValidUser(net.minecraft.world.entity.player.Player player) if the user trying to right-click with the tape is allowed to use the tape
-
Constructor Details
-
ForgePlatformHelper
public ForgePlatformHelper()
-
-
Method Details
-
isValidUser
public boolean isValidUser(net.minecraft.world.entity.player.Player player) Description copied from interface:IPlatformHelperif the user trying to right-click with the tape is allowed to use the tape- Specified by:
isValidUserin interfaceIPlatformHelper- Returns:
- If it's a valid user
-
getLineColor
Description copied from interface:IPlatformHelperGets the linecolor specified in the config- Specified by:
getLineColorin interfaceIPlatformHelper- Returns:
- Configured LineColor
-
getTextColor
Description copied from interface:IPlatformHelperGets the textColor specified in the config- Specified by:
getTextColorin interfaceIPlatformHelper- Returns:
- Configured TextColor
-
getLineWidth
public float getLineWidth()Description copied from interface:IPlatformHelperGets the lineWidth specified in the config- Specified by:
getLineWidthin interfaceIPlatformHelper- Returns:
- Configured lineWidth
-
getLineWidthMax
public float getLineWidthMax()Description copied from interface:IPlatformHelperGets the lineWidthMax specified in the config- Specified by:
getLineWidthMaxin interfaceIPlatformHelper- Returns:
- Configured lineWidthMax
-
getTextSize
public float getTextSize()Description copied from interface:IPlatformHelperGets the textSize specified in the config- Specified by:
getTextSizein interfaceIPlatformHelper- Returns:
- Configured textSize
-