mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Polished capabilities, still need to decide if we're allowed to ship capability references in API
This commit is contained in:
1 parent
1141de024c
commit
c9f8fd011e
71 files changed
+566
-234
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package mekanism.common.capabilities;
|
||||
|
||||
import mekanism.api.gas.ITubeConnection;
|
||||
import mekanism.common.capabilities.DefaultStorageHelper.NullStorage;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraftforge.common.capabilities.CapabilityManager;
|
||||
|
||||
public class DefaultTubeConnection implements ITubeConnection
|
||||
{
|
||||
@Override
|
||||
public boolean canTubeConnect(EnumFacing side)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void register()
|
||||
{
|
||||
CapabilityManager.INSTANCE.register(ITubeConnection.class, new NullStorage<>(), DefaultTubeConnection.class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user