Java 类net.minecraft.tileentity.TileEntityDaylightDetector 实例源码

项目:DecompiledMinecraft    文件:BlockDaylightDetector.java   
/**
 * Returns a new instance of a block's tile entity class. Called on placing the block.
 */
public TileEntity createNewTileEntity(World worldIn, int meta)
{
    return new TileEntityDaylightDetector();
}
项目:DecompiledMinecraft    文件:BlockDaylightDetector.java   
/**
 * Returns a new instance of a block's tile entity class. Called on placing the block.
 */
public TileEntity createNewTileEntity(World worldIn, int meta)
{
    return new TileEntityDaylightDetector();
}
项目:BaseClient    文件:BlockDaylightDetector.java   
/**
 * Returns a new instance of a block's tile entity class. Called on placing the block.
 */
public TileEntity createNewTileEntity(World worldIn, int meta)
{
    return new TileEntityDaylightDetector();
}
项目:BaseClient    文件:BlockDaylightDetector.java   
/**
 * Returns a new instance of a block's tile entity class. Called on placing the block.
 */
public TileEntity createNewTileEntity(World worldIn, int meta)
{
    return new TileEntityDaylightDetector();
}
项目:Backmemed    文件:BlockDaylightDetector.java   
/**
 * Returns a new instance of a block's tile entity class. Called on placing the block.
 */
public TileEntity createNewTileEntity(World worldIn, int meta)
{
    return new TileEntityDaylightDetector();
}
项目:CustomWorldGen    文件:BlockDaylightDetector.java   
/**
 * Returns a new instance of a block's tile entity class. Called on placing the block.
 */
public TileEntity createNewTileEntity(World worldIn, int meta)
{
    return new TileEntityDaylightDetector();
}
项目:Resilience-Client-Source    文件:BlockDaylightDetector.java   
/**
 * Returns a new instance of a block's tile entity class. Called on placing the block.
 */
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_)
{
    return new TileEntityDaylightDetector();
}
项目:OpenPeripheral-Integration    文件:AdapterDaylightSensor.java   
@Override
public Class<?> getTargetClass() {
    return TileEntityDaylightDetector.class;
}
项目:OpenPeripheral-Integration    文件:AdapterDaylightSensor.java   
@ScriptCallable(returnTypes = ReturnType.BOOLEAN, description = "Get true if age has normal sky")
public boolean hasSky(TileEntityDaylightDetector target) {
    World world = target.getWorldObj();
    return !world.provider.hasNoSky;
}
项目:OpenPeripheral-Integration    文件:AdapterDaylightSensor.java   
@ScriptCallable(returnTypes = ReturnType.NUMBER, description = "Get level of natural light (sky)")
public int getSkyLight(TileEntityDaylightDetector target) {
    World world = target.getWorldObj();
    Preconditions.checkArgument(!world.provider.hasNoSky, "World has no sky");
    return world.getSavedLightValue(EnumSkyBlock.Sky, target.xCoord, target.yCoord, target.zCoord) - world.skylightSubtracted;
}
项目:OpenPeripheral-Integration    文件:AdapterDaylightSensor.java   
@ScriptCallable(returnTypes = ReturnType.NUMBER, description = "Get level of block light")
public int getBlockLight(TileEntityDaylightDetector target) {
    World world = target.getWorldObj();
    return world.getSavedLightValue(EnumSkyBlock.Block, target.xCoord, target.yCoord, target.zCoord);
}
项目:OpenPeripheral-Integration    文件:AdapterDaylightSensor.java   
@ScriptCallable(returnTypes = ReturnType.NUMBER, description = "Get angle of sun (in degrees, 0 is zenith)")
public float getCelestialAngle(TileEntityDaylightDetector target) {
    World world = target.getWorldObj();
    return world.getCelestialAngle(1) * 360;
}
项目:ExpandedRailsMod    文件:BlockDaylightDetector.java   
/**
 * Returns a new instance of a block's tile entity class. Called on placing the block.
 */
public TileEntity createNewTileEntity(World worldIn, int meta)
{
    return new TileEntityDaylightDetector();
}
项目:Cauldron    文件:BlockDaylightDetector.java   
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_)
{
    return new TileEntityDaylightDetector();
}
项目:Cauldron    文件:BlockDaylightDetector.java   
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_)
{
    return new TileEntityDaylightDetector();
}
项目:RuneCraftery    文件:BlockDaylightDetector.java   
public TileEntity func_72274_a(World p_72274_1_) {
   return new TileEntityDaylightDetector();
}
项目:RuneCraftery    文件:BlockDaylightDetector.java   
/**
 * Returns a new instance of a block's tile entity class. Called on placing the block.
 */
public TileEntity createNewTileEntity(World par1World)
{
    return new TileEntityDaylightDetector();
}
项目:BetterNutritionMod    文件:BlockDaylightDetector.java   
/**
 * Returns a new instance of a block's tile entity class. Called on placing the block.
 */
public TileEntity createNewTileEntity(World par1World)
{
    return new TileEntityDaylightDetector();
}