Package appeng.api.features
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 TypeMethodDescriptionbooleancanLink(net.minecraft.world.item.ItemStack stack) Tests if the given item stack supports being linked to a grid.voidlink(net.minecraft.world.item.ItemStack itemStack, long securityKey) Link the given stack to the given grid security key.voidunlink(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 usingLocatables.securityStations(). -
unlink
void unlink(net.minecraft.world.item.ItemStack itemStack) Unlink the given stack from any previously linked grid.
-