当前位置: 首页>>代码示例>>Java>>正文


Java BlockDaylightDetector类代码示例

本文整理汇总了Java中net.minecraft.block.BlockDaylightDetector的典型用法代码示例。如果您正苦于以下问题:Java BlockDaylightDetector类的具体用法?Java BlockDaylightDetector怎么用?Java BlockDaylightDetector使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


BlockDaylightDetector类属于net.minecraft.block包,在下文中一共展示了BlockDaylightDetector类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: update

import net.minecraft.block.BlockDaylightDetector; //导入依赖的package包/类
/**
 * 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);
        }
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:16,代码来源:TileEntityDaylightDetector.java

示例2: update

import net.minecraft.block.BlockDaylightDetector; //导入依赖的package包/类
/**
 * 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);
        }
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:16,代码来源:TileEntityDaylightDetector.java

示例3: updateEntity

import net.minecraft.block.BlockDaylightDetector; //导入依赖的package包/类
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);
        }
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:13,代码来源:TileEntityDaylightDetector.java

示例4: updateEntity

import net.minecraft.block.BlockDaylightDetector; //导入依赖的package包/类
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);
        }
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:13,代码来源:TileEntityDaylightDetector.java

示例5: func_70316_g

import net.minecraft.block.BlockDaylightDetector; //导入依赖的package包/类
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);
      }
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:10,代码来源:TileEntityDaylightDetector.java

示例6: updateEntity

import net.minecraft.block.BlockDaylightDetector; //导入依赖的package包/类
/**
 * 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);
        }
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:17,代码来源:TileEntityDaylightDetector.java


注:本文中的net.minecraft.block.BlockDaylightDetector类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。