The heck!?

This commit is contained in:
Ellpeck 2016-02-01 20:31:27 +01:00
parent 2d476a0b6d
commit 348dc518c6

View file

@ -105,7 +105,9 @@ public abstract class TileEntityInventoryBase extends TileEntityBase implements
else{ else{
return new int[0]; return new int[0];
} }
} @Override }
@Override
public int getInventoryStackLimit(){ public int getInventoryStackLimit(){
return 64; return 64;
} }
@ -113,7 +115,9 @@ public abstract class TileEntityInventoryBase extends TileEntityBase implements
@Override @Override
public boolean hasCapability(net.minecraftforge.common.capabilities.Capability<?> capability, net.minecraft.util.EnumFacing facing){ public boolean hasCapability(net.minecraftforge.common.capabilities.Capability<?> capability, net.minecraft.util.EnumFacing facing){
return this.getCapability(capability, facing) != null; return this.getCapability(capability, facing) != null;
} @Override }
@Override
public boolean isUseableByPlayer(EntityPlayer player){ 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; 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;
} }