Class HandlerMap

java.lang.Object
net.ixdarklord.coolcatcore.api.handler.HandlerMap

public final class HandlerMap extends Object
The handlers one holder hands out, by type and side.
handlers.add(ENERGY, this.battery);                                 // every side
handlers.addSided(HandlerTypes.CONTAINER, side -> side == Direction.DOWN ? output : input);
If what a holder hands out changes after it's placed, call ExtendedBlockEntity.invalidateHandlers() so caches look again.
  • Constructor Details

    • HandlerMap

      public HandlerMap()
  • Method Details