package net.minecraft.tileentity;
import net.minecraft.block.BlockDaylightDetector;
import net.minecraft.server.gui.IUpdatePlayerListBox;
public class TileEntityDaylightDetector extends TileEntity implements IUpdatePlayerListBox
{
private static final String __OBFID = "CL_00000350";
/**
* Updates the JList with a new model.
*/
public void update()
{
if (this.worldObj != null && !this.worldObj.isRemote && this.worldObj.getTotalWorldTime() % 20L == 0L)
{
this.blockType = this.getBlockType();
if (this.blockType instanceof BlockDaylightDetector)
{
((BlockDaylightDetector)this.blockType).func_180677_d(this.worldObj, this.pos);
}
}
}
}