Package wtf.choco.veinminer
Interface VeinMiner
- All Known Implementing Classes:
VeinMinerServer
public interface VeinMiner
A class holding VeinMiner's core common functionality.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Pattern
A pattern to match a Minecraft block state.static final PluginMessageProtocol
VeinMiner's messaging protocol.static final NamespacedKey
TheNamespacedKey
of the VeinMiner messaging channel.static final PluginMessageProtocol
Deprecated, for removal: This API element is subject to removal in a future version.legacystatic final int
The version of the VeinMiner protocol. -
Method Summary
-
Field Details
-
PATTERN_BLOCK_STATE
A pattern to match a Minecraft block state. e.g.minecraft:chest[waterlogged=false]
- Group 1: The block's type
- Group 2: The block's states (without the [] brackets)
-
PROTOCOL_CHANNEL
TheNamespacedKey
of the VeinMiner messaging channel.- See Also:
-
PROTOCOL_VERSION
static final int PROTOCOL_VERSIONThe version of the VeinMiner protocol. -
PROTOCOL
VeinMiner's messaging protocol.- See Also:
-
PROTOCOL_LEGACY
Deprecated, for removal: This API element is subject to removal in a future version.legacyThe legacy protocol for versions before VeinMiner 2.0.0. This protocol is not to be used under any circumstances.- See Also:
-
-
Method Details
-
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:
-