mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 11:49:23 +01:00
The heck!?
This commit is contained in:
parent
2d476a0b6d
commit
348dc518c6
1 changed files with 6 additions and 2 deletions
|
@ -105,7 +105,9 @@ public abstract class TileEntityInventoryBase extends TileEntityBase implements
|
|||
else{
|
||||
return new int[0];
|
||||
}
|
||||
} @Override
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInventoryStackLimit(){
|
||||
return 64;
|
||||
}
|
||||
|
@ -113,7 +115,9 @@ public abstract class TileEntityInventoryBase extends TileEntityBase implements
|
|||
@Override
|
||||
public boolean hasCapability(net.minecraftforge.common.capabilities.Capability<?> capability, net.minecraft.util.EnumFacing facing){
|
||||
return this.getCapability(capability, facing) != null;
|
||||
} @Override
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUseableByPlayer(EntityPlayer player){
|
||||
return player.getDistanceSq(this.getPos().getX()+0.5D, this.pos.getY()+0.5D, this.pos.getZ()+0.5D) <= 64 && !this.isInvalid() && this.worldObj.getTileEntity(this.pos) == this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue