Class SlotAddresses

java.lang.Object
com.trevlar.menukit.core.SlotAddresses

public final class SlotAddresses extends Object
The one MKC-side entry that mints the Address of any live slot, kind-dispatched — the server/enforcement counterpart of the client resolver. THE ONE WINDOW's keystone is "one address scheme for every slot, vanilla or created"; this is where the two enter through it: Both the menu interaction seams (WindowGating) and a created slot's own behavioral overrides (MKCSlot) resolve through the same encoding, so a behavior set on a slot's address is found no matter which path reaches it. Server-safe: MKCSlotAccess.asMKCSlot(Slot) rides Slots.target, whose creative-wrapper unwrap is simply absent server-side.
  • Method Details

    • of

      @Internal public static Address of(net.minecraft.world.inventory.AbstractContainerMenu menu, net.minecraft.world.inventory.Slot slot)
      The Address of slot as it sits in menu, kind-dispatched.

      Internal minter. Live-SlotAddress mapping is the MKC enforcement/addressing-port plumbing (installed into ClientSlotAddressing + called by WindowGating). Consumers hold the created-slot address minted by identity (CreatedSlotAdapter.addressOf(MKCSlot)), not raw slots.