mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 16:58:34 +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{
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue