Class FabricPlatformHelper
-
- All Implemented Interfaces:
-
com.mynamesraph.chiseled.platform.services.PlatformHelper
public final class FabricPlatformHelper implements PlatformHelper
-
-
Field Summary
Fields Modifier and Type Field Description private final Map<ChiseledBlocks, Block>blockMap
-
Constructor Summary
Constructors Constructor Description FabricPlatformHelper()
-
Method Summary
Modifier and Type Method Description Map<ChiseledBlocks, Block>getBlockMap()StringgetPlatformName()Gets the name of the current platform BooleanisModLoaded(String modId)Checks if a mod with the given id is loaded. BooleanisDevelopmentEnvironment()Check if the game is currently in a development environment. UnitsendClientboundPacket(ServerPlayer player, CustomPacketPayload payload)UnitsendServerboundPacket(CustomPacketPayload payload)-
-
Method Detail
-
getBlockMap
Map<ChiseledBlocks, Block> getBlockMap()
-
getPlatformName
String getPlatformName()
Gets the name of the current platform
- Returns:
The name of the current platform.
-
isModLoaded
Boolean isModLoaded(String modId)
Checks if a mod with the given id is loaded.
- Parameters:
modId- The mod to check if it is loaded.- Returns:
True if the mod is loaded, false otherwise.
-
isDevelopmentEnvironment
Boolean isDevelopmentEnvironment()
Check if the game is currently in a development environment.
- Returns:
True if in a development environment, false otherwise.
-
sendClientboundPacket
Unit sendClientboundPacket(ServerPlayer player, CustomPacketPayload payload)
-
sendServerboundPacket
Unit sendServerboundPacket(CustomPacketPayload payload)
-
-
-
-