Java 类net.minecraft.block.BlockDaylightDetector 实例源码

项目:DecompiledMinecraft    文件:TileEntityDaylightDetector.java   
/**
 * Like the old updateEntity(), except more generic.
 */
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).updatePower(this.worldObj, this.pos);
        }
    }
}
项目:DecompiledMinecraft    文件:TileEntityDaylightDetector.java   
/**
 * Like the old updateEntity(), except more generic.
 */
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).updatePower(this.worldObj, this.pos);
        }
    }
}
项目:BaseClient    文件:TileEntityDaylightDetector.java   
/**
 * Like the old updateEntity(), except more generic.
 */
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).updatePower(this.worldObj, this.pos);
        }
    }
}
项目:BaseClient    文件:TileEntityDaylightDetector.java   
/**
 * Like the old updateEntity(), except more generic.
 */
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).updatePower(this.worldObj, this.pos);
        }
    }
}
项目:Backmemed    文件:TileEntityDaylightDetector.java   
/**
 * Like the old updateEntity(), except more generic.
 */
public void update()
{
    if (this.world != null && !this.world.isRemote && this.world.getTotalWorldTime() % 20L == 0L)
    {
        this.blockType = this.getBlockType();

        if (this.blockType instanceof BlockDaylightDetector)
        {
            ((BlockDaylightDetector)this.blockType).updatePower(this.world, this.pos);
        }
    }
}
项目:CustomWorldGen    文件:TileEntityDaylightDetector.java   
/**
 * Like the old updateEntity(), except more generic.
 */
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).updatePower(this.worldObj, this.pos);
        }
    }
}
项目:Resilience-Client-Source    文件:TileEntityDaylightDetector.java   
public void updateEntity()
{
    if (this.worldObj != null && !this.worldObj.isClient && this.worldObj.getTotalWorldTime() % 20L == 0L)
    {
        this.blockType = this.getBlockType();

        if (this.blockType instanceof BlockDaylightDetector)
        {
            ((BlockDaylightDetector)this.blockType).func_149957_e(this.worldObj, this.field_145851_c, this.field_145848_d, this.field_145849_e);
        }
    }
}
项目:Cauldron    文件:TileEntityDaylightDetector.java   
public void updateEntity()
{
    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_149957_e(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
        }
    }
}
项目:Cauldron    文件:TileEntityDaylightDetector.java   
public void updateEntity()
{
    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_149957_e(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
        }
    }
}
项目:RuneCraftery    文件:TileEntityDaylightDetector.java   
public void func_70316_g() {
   if(this.field_70331_k != null && !this.field_70331_k.field_72995_K && this.field_70331_k.func_82737_E() % 20L == 0L) {
      this.field_70324_q = this.func_70311_o();
      if(this.field_70324_q != null && this.field_70324_q instanceof BlockDaylightDetector) {
         ((BlockDaylightDetector)this.field_70324_q).func_94444_j_(this.field_70331_k, this.field_70329_l, this.field_70330_m, this.field_70327_n);
      }
   }

}
项目:RuneCraftery    文件:TileEntityDaylightDetector.java   
/**
 * Allows the entity to update its state. Overridden in most subclasses, e.g. the mob spawner uses this to count
 * ticks and creates a new spawn inside its implementation.
 */
public void updateEntity()
{
    if (this.worldObj != null && !this.worldObj.isRemote && this.worldObj.getTotalWorldTime() % 20L == 0L)
    {
        this.blockType = this.getBlockType();

        if (this.blockType != null && this.blockType instanceof BlockDaylightDetector)
        {
            ((BlockDaylightDetector)this.blockType).updateLightLevel(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
        }
    }
}
项目:BetterNutritionMod    文件:TileEntityDaylightDetector.java   
/**
 * Allows the entity to update its state. Overridden in most subclasses, e.g. the mob spawner uses this to count
 * ticks and creates a new spawn inside its implementation.
 */
public void updateEntity()
{
    if (this.worldObj != null && !this.worldObj.isRemote && this.worldObj.getTotalWorldTime() % 20L == 0L)
    {
        this.blockType = this.getBlockType();

        if (this.blockType != null && this.blockType instanceof BlockDaylightDetector)
        {
            ((BlockDaylightDetector)this.blockType).updateLightLevel(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
        }
    }
}