/** * 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); } } }
/** * 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); } } }
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); } } }
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); } } }
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); } } }
/** * 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); } } }