Class ForgeTransferCompat

java.lang.Object
net.ixdarklord.coolcatcore.internal.platform.forge.ForgeTransferCompat

public final class ForgeTransferCompat extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    invalidate(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
    Drops the item handlers CoolCatLib handed out for the block entity at a position (telling whoever keeps them), so the next lookup finds the current ones.
    static void
    register(net.minecraftforge.eventbus.api.IEventBus forgeBus)
    Registers the capability listeners on Forge's event bus (MinecraftForge.EVENT_BUS).

    Methods inherited from class java.lang.Object

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

    • register

      public static void register(net.minecraftforge.eventbus.api.IEventBus forgeBus)
      Registers the capability listeners on Forge's event bus (MinecraftForge.EVENT_BUS).
    • invalidate

      public static void invalidate(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Drops the item handlers CoolCatLib handed out for the block entity at a position (telling whoever keeps them), so the next lookup finds the current ones. Does nothing when the position isn't loaded.