Interface IPlatformHelper
public interface IPlatformHelper
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.BlockHitResultgetHitResult(net.minecraft.world.item.context.UseOnContext context) Get's the BlockHitResult from the context because it's private on commonGets 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
-
Method Details
-
isValidUser
boolean isValidUser(net.minecraft.world.entity.player.Player player) if the user trying to right-click with the tape is allowed to use the tape- Returns:
- If it's a valid user
-
getHitResult
net.minecraft.world.phys.BlockHitResult getHitResult(net.minecraft.world.item.context.UseOnContext context) Get's the BlockHitResult from the context because it's private on common- Returns:
- the hitResult
-
getLineColor
LineColor getLineColor()Gets the linecolor specified in the config- Returns:
- Configured LineColor
-
getTextColor
TextColor getTextColor()Gets the textColor specified in the config- Returns:
- Configured TextColor
-
getLineWidth
float getLineWidth()Gets the lineWidth specified in the config- Returns:
- Configured lineWidth
-
getLineWidthMax
float getLineWidthMax()Gets the lineWidthMax specified in the config- Returns:
- Configured lineWidthMax
-
getTextSize
float getTextSize()Gets the textSize specified in the config- Returns:
- Configured textSize
-