content: package zmaster587.advancedRocketry.entity;
  
  import net.minecraft.entity.player.EntityPlayer;
  import net.minecraft.util.EnumHand;
  import net.minecraft.world.World;
  import zmaster587.advancedRocketry.tile.station.TileHolographicPlanetSelector;
  
  public class EntityUIButton extends EntityUIPlanet {
  
  	int id;
  	TileHolographicPlanetSelector tile;
  	
  	public EntityUIButton(World worldIn, int id, TileHolographicPlanetSelector tile) {
  		this(worldIn);
  		this.id = id;
  		this.tile = tile;
  	}
  	
  	public EntityUIButton(World worldIn) {
  		super(worldIn);
  		setSize(0.2f, 0.2f);
  	}
  	
  	@Override
  	protected void entityInit() {
  		this.dataManager.register(planetID, id);
  		this.dataManager.register(scale, 1f);
  		this.dataManager.register(selected, false);
  		
  	}
  	
  	@Override
  	public boolean processInitialInteract(EntityPlayer player, EnumHand hand) {
  		if(!world.isRemote && tile != null) {
  			tile.onInventoryButtonPressed(getPlanetID());
  		}
  		return true;
  	}
  	
  	public int getPlanetID() {
  		return this.dataManager.get(planetID);
  	}
  }
  