mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 11:49:23 +01:00
Fix capabilities
This commit is contained in:
parent
1e3f0dbe45
commit
091b6cbfc3
1 changed files with 5 additions and 0 deletions
|
@ -216,6 +216,11 @@ public abstract class TileEntityInventoryBase extends TileEntityBase implements
|
|||
return new ChatComponentText(StringUtil.localize(this.getName()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasCapability(net.minecraftforge.common.capabilities.Capability<?> capability, net.minecraft.util.EnumFacing facing){
|
||||
return this.getCapability(capability, facing) != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> T getCapability(Capability<T> capability, EnumFacing facing){
|
||||
if(facing != null && capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY){
|
||||
|
|
Loading…
Reference in a new issue