Class SableCompat

java.lang.Object
com.mrbysco.spoiled.compat.sable.SableCompat

public class SableCompat extends Object
Mod support for the Sable mod
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable net.neoforged.neoforge.items.IItemHandler
    findItemHandler(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
    Finds an item handler at the given position, searching through sublevels if necessary.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SableCompat

      public SableCompat()
  • Method Details

    • findItemHandler

      @Nullable public static @Nullable net.neoforged.neoforge.items.IItemHandler findItemHandler(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Finds an item handler at the given position, searching through sublevels if necessary.
      Parameters:
      level - The level
      pos - The position
      Returns:
      The item handler, or null if none was found