Available Methods
- AIR
- WATER
- DIRT
- LOG
- STONE
- GRASS
- SNOW_LAYER
- FARMLAND
- LEAVES
- tallgrass ( )
- netherrack ( )
- BEDROCK
- gold_ore ( )
- WEB
- STAINED_HARDENED_CLAY
- lava ( )
- vine ( )
- CHEST
- gold_block ( )
- cobblestone ( )
- ICE
- END_PORTAL
- emerald_block ( )
- stonebrick ( )
- fire ( )
- planks ( )
- lapis_block ( )
- trapped_chest ( )
- pumpkin ( )
- flowing_water ( )
- HOPPER
- SAND
- GRAVEL
- OBSIDIAN
- EMERALD_ORE
- hardened_clay ( )
- SAPLING
- LEAVES2 ( )
- FLOWING_LAVA
- LOG2 ( )
- end_stone ( )
- UNPOWERED_REPEATER
- bed ( )
- COAL_BLOCK
- CAKE
- LEVER
- quartz_ore ( )
- detector_rail ( )
- ender_chest ( )
- heavy_weighted_pressure_plate ( )
- DIAMOND_ORE
- iron_block ( )
- SNOW
- FURNACE
- STICKY_PISTON
- TORCH
- melon_block ( )
- wooden_door ( )
- LAPIS_ORE
- END_PORTAL_FRAME
- PISTON
- packed_ice ( )
- rail ( )
- MYCELIUM
- WOOL
- SOUL_SAND
Related Classes
- java.util.Arrays
- java.util.Random
- javax.annotation.Nullable
- javax.annotation.Nonnull
- net.minecraft.world.World
- 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.block.material.Material
- net.minecraft.entity.EntityLivingBase
- net.minecraft.init.Items
- net.minecraft.util.math.BlockPos
- net.minecraft.world.IBlockAccess
- net.minecraft.inventory.IInventory
- net.minecraftforge.fml.relauncher.Side
- net.minecraftforge.fml.common.eventhandler.SubscribeEvent
- net.minecraftforge.oredict.OreDictionary
- net.minecraft.util.EnumFacing
- net.minecraftforge.fml.relauncher.SideOnly
Java Code Examples for net.minecraft.init.Blocks#COAL_BLOCK
The following examples show how to use
net.minecraft.init.Blocks#COAL_BLOCK .
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: TileEntityEnderFurnace.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
/** * Returns the number of ticks that the supplied fuel item will keep the furnace burning, or 0 if the item isn't fuel * @param stack * @return */ private static int getItemBurnTime(ItemStack stack) { if (stack.isEmpty()) { return 0; } int burnTime = ForgeEventFactory.getItemBurnTime(stack) * COOKTIME_DEFAULT * 3 / 400; if (burnTime >= 0) { return burnTime; } Item item = stack.getItem(); if (item instanceof ItemBlock && Block.getBlockFromItem(item) != Blocks.AIR) { Block block = Block.getBlockFromItem(item); if (block.getDefaultState().getMaterial() == Material.WOOD) { return COOKTIME_DEFAULT * 225 / 100; } if (block == Blocks.COAL_BLOCK) { return COOKTIME_DEFAULT * 120; } if (block == Blocks.WOODEN_SLAB) { return COOKTIME_DEFAULT * 45 / 40; } if (block == Blocks.SAPLING) return COOKTIME_DEFAULT * 3 / 4; } else { if (item == Items.COAL) return COOKTIME_DEFAULT * 12; if (item == Items.BLAZE_ROD) return COOKTIME_DEFAULT * 18; if (item == Items.LAVA_BUCKET) return COOKTIME_DEFAULT * 150; if (item == Items.STICK) return COOKTIME_DEFAULT * 3 / 4; if (item instanceof ItemTool && ((ItemTool)item).getToolMaterialName().equals("WOOD")) return COOKTIME_DEFAULT * 15 / 10; if (item instanceof ItemSword && ((ItemSword)item).getToolMaterialName().equals("WOOD")) return COOKTIME_DEFAULT * 15 / 10; if (item instanceof ItemHoe && ((ItemHoe)item).getMaterialName().equals("WOOD")) return COOKTIME_DEFAULT * 15 / 10; // Ender Furnace custom fuels if (item == Items.BLAZE_POWDER) return COOKTIME_DEFAULT * 9; if (item == Items.ENDER_PEARL) { return COOKTIME_DEFAULT * 8; } if (item == Items.ENDER_EYE) { return COOKTIME_DEFAULT * 17; } } return 0; }