Interface IGridLinkableHandler


public interface IGridLinkableHandler
Handles the linking of items to specific grids when they're put into the security terminal linking slot.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canLink(net.minecraft.world.item.ItemStack stack)
    Tests if the given item stack supports being linked to a grid.
    void
    link(net.minecraft.world.item.ItemStack itemStack, long securityKey)
    Link the given stack to the given grid security key.
    void
    unlink(net.minecraft.world.item.ItemStack itemStack)
    Unlink the given stack from any previously linked grid.
  • Method Details

    • canLink

      boolean canLink(net.minecraft.world.item.ItemStack stack)
      Tests if the given item stack supports being linked to a grid.
    • link

      void link(net.minecraft.world.item.ItemStack itemStack, long securityKey)
      Link the given stack to the given grid security key.

      The security key can be used to obtain the security station using Locatables.securityStations().

    • unlink

      void unlink(net.minecraft.world.item.ItemStack itemStack)
      Unlink the given stack from any previously linked grid.