Available Methods
- getTileEntity ( )
- getBlockState ( )
- setBlockState ( )
- getBlock ( )
- setBlockToAir ( )
- getBlockMetadata ( )
- playSound ( )
- isAirBlock ( )
- setBlock ( )
- spawnEntityInWorld ( )
- setBlockMetadataWithNotify ( )
- spawnEntity ( )
- getTotalWorldTime ( )
- spawnParticle ( )
- isBlockLoaded ( )
- getEntitiesWithinAABB ( )
- removeTileEntity ( )
- scheduleBlockUpdate ( )
- getEntitiesWithinAABBExcludingEntity ( )
- playSoundEffect ( )
- getEntityByID ( )
- getLightFromNeighbors ( )
- getChunkProvider ( )
- isBlockModifiable ( )
- getBlockTileEntity ( )
- markBlockForUpdate ( )
- getChunkFromBlockCoords ( )
- getBlockId ( )
- updateComparatorOutputLevel ( )
- destroyBlock ( )
- isAreaLoaded ( )
- scheduleUpdate ( )
- isBlockPowered ( )
- getBiome ( )
- notifyNeighborsOfStateChange ( )
- getActualHeight ( )
- setTileEntity ( )
- getHeight ( )
- getWorld ( )
- notifyBlocksOfNeighborChange ( )
- getChunkFromChunkCoords ( )
- addParticle ( )
- checkNoEntityCollision ( )
- getChunk ( )
- func_147480_a ( )
- loadItemData ( )
- getBlockEntity ( )
- playSoundAtEntity ( )
- doesBlockHaveSolidTopSurface ( )
- getEntitiesInAABBexcluding ( )
- isDaytime ( )
- neighborChanged ( )
- createExplosion ( )
- isBlockIndirectlyGettingPowered ( )
- removeEntity ( )
- rayTraceBlocks ( )
- breakBlock ( )
- checkLight ( )
- getMinecraftServer ( )
- removeBlockEntity ( )
- getTopSolidOrLiquidBlock ( )
- getEntities ( )
- getWorldInfo ( )
- containsAnyLiquid ( )
- playEvent ( )
- addWeatherEffect ( )
- getCelestialAngleRadians ( )
- getFluidState ( )
- func_147453_f ( )
- checkChunksExist ( )
- notifyBlockUpdate ( )
- addImportantParticle ( )
- newExplosion ( )
- isReceivingRedstonePower ( )
- getBlockLightValue ( )
- getBiomeGenForCoords ( )
- setItemData ( )
Related Classes
- java.util.Iterator
- java.util.Random
- java.util.Optional
- javax.annotation.Nullable
- javax.annotation.Nonnull
- org.jetbrains.annotations.NotNull
- net.minecraft.item.ItemStack
- net.minecraft.block.Block
- net.minecraft.client.Minecraft
- net.minecraft.item.Item
- net.minecraft.entity.Entity
- net.minecraft.entity.player.EntityPlayer
- net.minecraft.util.ResourceLocation
- net.minecraft.nbt.NBTTagCompound
- net.minecraft.tileentity.TileEntity
- net.minecraft.init.Blocks
- net.minecraft.block.material.Material
- net.minecraft.entity.EntityLivingBase
- net.minecraft.entity.player.EntityPlayerMP
- net.minecraft.init.Items
- net.minecraft.util.math.BlockPos
- net.minecraft.entity.item.EntityItem
- net.minecraft.world.chunk.Chunk
- net.minecraft.inventory.IInventory
- net.minecraftforge.fml.relauncher.Side
Java Code Examples for net.minecraft.world.World#getCelestialAngleRadians()
The following examples show how to use
net.minecraft.world.World#getCelestialAngleRadians() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InvertedDaylightDetector.java From Et-Futurum with The Unlicense | 6 votes |
@Override public void func_149957_e(World world, int x, int y, int z) { if (!world.provider.hasNoSky) { int meta = world.getBlockMetadata(x, y, z); int light = world.getSavedLightValue(EnumSkyBlock.Sky, x, y, z) - world.skylightSubtracted; float angle = world.getCelestialAngleRadians(1.0F); if (angle < (float) Math.PI) angle += (0.0F - angle) * 0.2F; else angle += ((float) Math.PI * 2F - angle) * 0.2F; light = Math.round(light * MathHelper.cos(angle)); if (light < 0) light = 0; if (light > 15) light = 15; light = invertedValues[light]; if (meta != light) world.setBlockMetadataWithNotify(x, y, z, light, 3); } }
Example 2
Source File: WorldDayLightSensor.java From PneumaticCraft with GNU General Public License v3.0 | 6 votes |
private int updateLightLevel(World par1World, int par2, int par3, int par4){ if(!par1World.provider.hasNoSky) { int i1 = par1World.getSavedLightValue(EnumSkyBlock.Sky, par2, par3, par4) - par1World.skylightSubtracted; float f = par1World.getCelestialAngleRadians(1.0F); if(f < (float)Math.PI) { f += (0.0F - f) * 0.2F; } else { f += ((float)Math.PI * 2F - f) * 0.2F; } i1 = Math.round(i1 * MathHelper.cos(f)); if(i1 < 0) { i1 = 0; } if(i1 > 15) { i1 = 15; } return i1; } return 0; }