Class FabricPlatformHelper

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

public class FabricPlatformHelper extends Object implements IPlatformHelper
  • Constructor Details

    • FabricPlatformHelper

      public FabricPlatformHelper()
  • Method Details

    • isValidUser

      public boolean isValidUser(net.minecraft.world.entity.player.Player player)
      Description copied from interface: IPlatformHelper
      if the user trying to right-click with the tape is allowed to use the tape
      Specified by:
      isValidUser in interface IPlatformHelper
      Returns:
      If it's a valid user
    • getLineColor

      public LineColor getLineColor()
      Description copied from interface: IPlatformHelper
      Gets the linecolor specified in the config
      Specified by:
      getLineColor in interface IPlatformHelper
      Returns:
      Configured LineColor
    • getTextColor

      public TextColor getTextColor()
      Description copied from interface: IPlatformHelper
      Gets the textColor specified in the config
      Specified by:
      getTextColor in interface IPlatformHelper
      Returns:
      Configured TextColor
    • getLineWidth

      public float getLineWidth()
      Description copied from interface: IPlatformHelper
      Gets the lineWidth specified in the config
      Specified by:
      getLineWidth in interface IPlatformHelper
      Returns:
      Configured lineWidth
    • getLineWidthMax

      public float getLineWidthMax()
      Description copied from interface: IPlatformHelper
      Gets the lineWidthMax specified in the config
      Specified by:
      getLineWidthMax in interface IPlatformHelper
      Returns:
      Configured lineWidthMax
    • getTextSize

      public float getTextSize()
      Description copied from interface: IPlatformHelper
      Gets the textSize specified in the config
      Specified by:
      getTextSize in interface IPlatformHelper
      Returns:
      Configured textSize