Rename and cleanup default isAccessibleByPlayer

This commit is contained in:
tterrag1098 committed 2015-09-02 14:06:55 -04:00
1 parent 6c3d88d321
commit 4a6f3ee93d
1 file changed
+2 -9
@@ -102,15 +102,8 @@ public abstract class TileEntityEnder extends TileEntity {
readCustomNBT(pkt.func_148857_g());
}
// This implements the IInventory method in a standard way
public boolean isUseableByPlayer(EntityPlayer player) {
if (worldObj == null) {
return true;
}
if (worldObj.getTileEntity(xCoord, yCoord, zCoord) != this) {
return false;
}
return player.getDistanceSq(xCoord + 0.5D, yCoord + 0.5D, zCoord + 0.5D) <= 64D;
public boolean canPlayerAccess(EntityPlayer player) {
return !isInvalid() && player.getDistanceSq(xCoord + 0.5D, yCoord + 0.5D, zCoord + 0.5D) <= 64D;
}
protected abstract void writeCustomNBT(NBTTagCompound root);