Interface IPlatformHelper

All Known Implementing Classes:
NeoPlatformHelper

public interface IPlatformHelper
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    net.minecraft.world.item.ItemStack
    copyWithSize(net.minecraft.world.item.ItemStack stack, int size)
     
    Gets the name of the current platform
    boolean
    Check if the game is currently in a development environment.
    boolean
    Checks if a mod with the given id is loaded.
    boolean
     
     
    Supplier<net.minecraft.world.item.Item>
    registerItem(String id, Supplier<net.minecraft.world.item.Item> obj)
     
  • Method Details

    • 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.
    • isSideClient

      boolean isSideClient()
    • registerItem

      Supplier<net.minecraft.world.item.Item> registerItem(String id, Supplier<net.minecraft.world.item.Item> obj)
    • copyWithSize

      net.minecraft.world.item.ItemStack copyWithSize(net.minecraft.world.item.ItemStack stack, int size)
    • bonemeal

      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)
    • maxBonemeal

      Supplier<Integer> maxBonemeal()