Class FabricPlatformHelper
java.lang.Object
de.cech12.brickfurnace.platform.FabricPlatformHelper
- All Implemented Interfaces:
IPlatformHelper
The platform service implementation for Fabric.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackTemplategetCraftingRemainingItem(net.minecraft.world.item.ItemStack stack) Gets the name of the current platformbooleanhasCraftingRemainingItem(net.minecraft.world.item.ItemStack stack) booleanCheck if the game is currently in a development environment.booleanisModLoaded(String modId) Checks if a mod with the given id is loaded.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IPlatformHelper
getEnvironmentName
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
getPlatformName
Description copied from interface:IPlatformHelperGets the name of the current platform- Specified by:
getPlatformNamein interfaceIPlatformHelper- Returns:
- The name of the current platform.
-
isModLoaded
Description copied from interface:IPlatformHelperChecks if a mod with the given id is loaded.- Specified by:
isModLoadedin interfaceIPlatformHelper- Parameters:
modId- The mod to check if it is loaded.- Returns:
- True if the mod is loaded, false otherwise.
-
isDevelopmentEnvironment
public boolean isDevelopmentEnvironment()Description copied from interface:IPlatformHelperCheck if the game is currently in a development environment.- Specified by:
isDevelopmentEnvironmentin interfaceIPlatformHelper- Returns:
- True if in a development environment, false otherwise.
-
hasCraftingRemainingItem
public boolean hasCraftingRemainingItem(net.minecraft.world.item.ItemStack stack) - Specified by:
hasCraftingRemainingItemin interfaceIPlatformHelper
-
getCraftingRemainingItem
public net.minecraft.world.item.ItemStackTemplate getCraftingRemainingItem(net.minecraft.world.item.ItemStack stack) - Specified by:
getCraftingRemainingItemin interfaceIPlatformHelper
-