public interface IP2PTunnelRegistry
| Modifier and Type | Method and Description |
|---|---|
void |
addNewAttunement(net.minecraftforge.common.capabilities.Capability<?> cap,
TunnelType type) |
void |
addNewAttunement(net.minecraft.item.ItemStack trigger,
TunnelType type)
Allows third parties to register items from their mod as potential
attunements for AE's P2P Tunnels
|
void |
addNewAttunement(java.lang.String ModId,
TunnelType type) |
TunnelType |
getTunnelTypeByItem(net.minecraft.item.ItemStack trigger)
returns null if no attunement can be found.
|
void addNewAttunement(@Nonnull
net.minecraft.item.ItemStack trigger,
@Nullable
TunnelType type)
trigger - - the item which triggers attunement. Nullable, but then ignoredtype - - the type of tunnel. Nullable, but then ignoredvoid addNewAttunement(@Nonnull
java.lang.String ModId,
@Nullable
TunnelType type)
void addNewAttunement(@Nonnull
net.minecraftforge.common.capabilities.Capability<?> cap,
@Nullable
TunnelType type)
@Nonnull TunnelType getTunnelTypeByItem(net.minecraft.item.ItemStack trigger)
trigger - attunement trigger