mirror of
https://github.com/GTNewHorizons/EnderCore.git
synced 2026-11-21 12:32:15 +00:00
Rename and cleanup default isAccessibleByPlayer
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user