mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
22 lines
527 B
Java
22 lines
527 B
Java
package com.hbm.tileentity.machine.rbmk;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
/**
|
|
* Base class for all RBMK components that have a GUI
|
|
* @author hbm
|
|
*
|
|
*/
|
|
public abstract class TileEntityRBMKActiveBase extends TileEntityRBMKBase {
|
|
|
|
public abstract String getName();
|
|
|
|
public boolean isUseableByPlayer(EntityPlayer player) {
|
|
if(worldObj.getTileEntity(xCoord, yCoord, zCoord) != this) {
|
|
return false;
|
|
} else {
|
|
return player.getDistanceSq(xCoord + 0.5D, yCoord + 0.5D, zCoord + 0.5D) <= 128;
|
|
}
|
|
}
|
|
}
|