Interface VeinMiner

All Known Implementing Classes:
VeinMinerServer

public interface VeinMiner
A class holding VeinMiner's core common functionality.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Pattern
    A pattern to match a Minecraft block state.
    VeinMiner's messaging protocol.
    static final NamespacedKey
    The NamespacedKey of the VeinMiner messaging channel.
    Deprecated, for removal: This API element is subject to removal in a future version.
    legacy
    static final int
    The version of the VeinMiner protocol.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    Get the version of VeinMiner (not to be confused with the protocol version).
    default boolean
    Check whether or not VeinMiner is running on the client.
    boolean
    Check whether or not VeinMiner is running on the server.
  • Field Details

  • Method Details

    • getVersion

      @NotNull @NotNull String getVersion()
      Get the version of VeinMiner (not to be confused with the protocol version).
      Returns:
      the version
    • isServer

      boolean isServer()
      Check whether or not VeinMiner is running on the server.
      Returns:
      true if running on the server, false if running on the client
      See Also:
    • isClient

      default boolean isClient()
      Check whether or not VeinMiner is running on the client.
      Returns:
      true if running on the client, false if running on the server
      See Also: