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#HOPPER
The following examples show how to use
net.minecraft.init.Blocks#HOPPER .
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: ToolWrench.java From GregTech with GNU Lesser General Public License v3.0 | 5 votes |
@Override public boolean canMineBlock(IBlockState blockState, ItemStack stack) { Block block = blockState.getBlock(); String tool = block.getHarvestTool(blockState); return (tool != null && tool.equals("wrench")) || blockState.getMaterial() == Material.PISTON || block == Blocks.HOPPER || block == Blocks.DISPENSER || block == Blocks.DROPPER || blockState.getMaterial() == Material.IRON; }
Example 2
Source File: MCUtil.java From Kettle with GNU General Public License v3.0 | 5 votes |
@Nullable public static TileEntityHopper getHopper(World world, BlockPos pos) { Chunk chunk = world.getChunkIfLoaded(pos.getX() >> 4, pos.getZ() >> 4); if (chunk != null && chunk.getBlockState(pos).getBlock() == Blocks.HOPPER) { TileEntity tileEntity = chunk.getTileEntity(pos, Chunk.EnumCreateEntityType.IMMEDIATE); if (tileEntity instanceof TileEntityHopper) { return (TileEntityHopper) tileEntity; } } return null; }
Example 3
Source File: Hopper.java From minecraft-roguelike with GNU General Public License v3.0 | 5 votes |
public static void generate(IWorldEditor editor, Cardinal dir, Coord pos){ MetaBlock hopper = new MetaBlock(Blocks.HOPPER); if(Arrays.asList(Cardinal.directions).contains(dir)){ hopper.withProperty(BlockHopper.FACING, Cardinal.facing(Cardinal.reverse(dir))); } hopper.set(editor, pos); }