Class FabricPlatformHelper

java.lang.Object
dev.dhyces.compostbag.platform.FabricPlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class FabricPlatformHelper extends Object implements IPlatformHelper
  • Constructor Details

    • FabricPlatformHelper

      public FabricPlatformHelper()
  • Method Details

    • getPlatformName

      public String getPlatformName()
      Description copied from interface: IPlatformHelper
      Gets the name of the current platform
      Specified by:
      getPlatformName in interface IPlatformHelper
      Returns:
      The name of the current platform.
    • isModLoaded

      public boolean isModLoaded(String modId)
      Description copied from interface: IPlatformHelper
      Checks if a mod with the given id is loaded.
      Specified by:
      isModLoaded in interface IPlatformHelper
      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: IPlatformHelper
      Check if the game is currently in a development environment.
      Specified by:
      isDevelopmentEnvironment in interface IPlatformHelper
      Returns:
      True if in a development environment, false otherwise.
    • isSideClient

      public boolean isSideClient()
      Specified by:
      isSideClient in interface IPlatformHelper
    • registerItem

      public Supplier<net.minecraft.world.item.Item> registerItem(String id, Supplier<net.minecraft.world.item.Item> obj)
      Specified by:
      registerItem in interface IPlatformHelper
    • copyWithSize

      public net.minecraft.world.item.ItemStack copyWithSize(net.minecraft.world.item.ItemStack stack, int size)
      Specified by:
      copyWithSize in interface IPlatformHelper
    • bonemeal

      public boolean bonemeal(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos blockPos, net.minecraft.world.entity.player.Player player)
      Specified by:
      bonemeal in interface IPlatformHelper
    • maxBonemeal

      public Supplier<Integer> maxBonemeal()
      Specified by:
      maxBonemeal in interface IPlatformHelper