Java Code Examples for net.minecraft.block.material.Material#ground()
The following examples show how to use
net.minecraft.block.material.Material#ground() .
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: CoarseDirt.java From Et-Futurum with The Unlicense | 5 votes |
public CoarseDirt() { super(Material.ground); setHardness(0.5F); setHarvestLevel("shovel", 0); setStepSound(soundTypeGravel); setBlockTextureName("coarse_dirt"); setBlockName(Utils.getUnlocalisedName("coarse_dirt")); setCreativeTab(EtFuturum.enableCoarseDirt ? EtFuturum.creativeTab : null); }
Example 2
Source File: BlockGardenFarmland.java From GardenCollection with MIT License | 5 votes |
public BlockGardenFarmland (String blockName) { super(blockName, Material.ground); setCreativeTab(ModCreativeTabs.tabGardenCore); setHardness(0.5f); setStepSound(Block.soundTypeGrass); setBlockBounds(0, 0, 0, 1, .9375f, 1); if (GardenCore.config.enableTilledSoilGrowthBonus) setTickRandomly(true); connectionProfile = new BasicConnectionProfile(); slotShareProfile = new SlotShare0Profile(); slotProfile = new BasicSlotProfile(new BasicSlotProfile.Slot[0]); }
Example 3
Source File: BlockGardenSoil.java From GardenCollection with MIT License | 5 votes |
public BlockGardenSoil (String blockName) { super(blockName, Material.ground); setCreativeTab(ModCreativeTabs.tabGardenCore); setHardness(0.5f); setStepSound(Block.soundTypeGrass); PlantType[] commonType = new PlantType[] { PlantType.GROUND, PlantType.AQUATIC, PlantType.AQUATIC_EMERGENT}; PlantSize[] commonSize = new PlantSize[] { PlantSize.LARGE, PlantSize.MEDIUM, PlantSize.SMALL }; PlantSize[] allSize = new PlantSize[] { PlantSize.FULL, PlantSize.LARGE, PlantSize.MEDIUM, PlantSize.SMALL }; connectionProfile = new BasicConnectionProfile(); slotShareProfile = new SlotShare8Profile(Slot14Profile.SLOT_TOP_LEFT, Slot14Profile.SLOT_TOP, Slot14Profile.SLOT_TOP_RIGHT, Slot14Profile.SLOT_RIGHT, Slot14Profile.SLOT_BOTTOM_RIGHT, Slot14Profile.SLOT_BOTTOM, Slot14Profile.SLOT_BOTTOM_LEFT, Slot14Profile.SLOT_LEFT); slotProfile = new Slot14ProfileBounded(this, new BasicSlotProfile.Slot[]{ new BasicSlotProfile.Slot(Slot14Profile.SLOT_CENTER, commonType, allSize), new BasicSlotProfile.Slot(Slot14Profile.SLOT_COVER, new PlantType[]{PlantType.GROUND_COVER}, allSize), new BasicSlotProfile.Slot(Slot14Profile.SLOT_NW, commonType, commonSize), new BasicSlotProfile.Slot(Slot14Profile.SLOT_NE, commonType, commonSize), new BasicSlotProfile.Slot(Slot14Profile.SLOT_SW, commonType, commonSize), new BasicSlotProfile.Slot(Slot14Profile.SLOT_SE, commonType, commonSize), new BasicSlotProfile.Slot(Slot14Profile.SLOT_TOP_LEFT, commonType, commonSize), new BasicSlotProfile.Slot(Slot14Profile.SLOT_TOP, commonType, commonSize), new BasicSlotProfile.Slot(Slot14Profile.SLOT_TOP_RIGHT, commonType, commonSize), new BasicSlotProfile.Slot(Slot14Profile.SLOT_RIGHT, commonType, commonSize), new BasicSlotProfile.Slot(Slot14Profile.SLOT_BOTTOM_RIGHT, commonType, commonSize), new BasicSlotProfile.Slot(Slot14Profile.SLOT_BOTTOM, commonType, commonSize), new BasicSlotProfile.Slot(Slot14Profile.SLOT_BOTTOM_LEFT, commonType, commonSize), new BasicSlotProfile.Slot(Slot14Profile.SLOT_LEFT, commonType, commonSize), }); }
Example 4
Source File: BlockSelector.java From OpenPeripheral-Addons with MIT License | 5 votes |
public BlockSelector() { super(Material.ground); setRotationMode(BlockRotationMode.TWELVE_DIRECTIONS); setPlacementMode(BlockPlacementMode.ENTITY_ANGLE); setRenderMode(RenderMode.BOTH); setInventoryRenderOrientation(Orientation.XP_ZP); }
Example 5
Source File: WrapperMaterial.java From ClientBase with MIT License | 4 votes |
public WrapperMaterial getGround() { return new WrapperMaterial(Material.ground); }
Example 6
Source File: MoCBlockDirt.java From mocreaturesdev with GNU General Public License v3.0 | 4 votes |
public MoCBlockDirt(int par1) { super(par1, Material.ground); setTickRandomly(true); this.setCreativeTab(CreativeTabs.tabBlock); }
Example 7
Source File: BlockPeripheralProxy.java From OpenPeripheral-Addons with MIT License | 4 votes |
public BlockPeripheralProxy() { super(Material.ground); setRotationMode(BlockRotationMode.SIX_DIRECTIONS); setPlacementMode(BlockPlacementMode.ENTITY_ANGLE); setRenderMode(RenderMode.BLOCK_ONLY); }
Example 8
Source File: BlockGlassesBridge.java From OpenPeripheral-Addons with MIT License | 4 votes |
public BlockGlassesBridge() { super(Material.ground); setRenderMode(RenderMode.BLOCK_ONLY); }
Example 9
Source File: BlockPIM.java From OpenPeripheral-Addons with MIT License | 4 votes |
public BlockPIM() { super(Material.ground); setStepSound(soundTypeMetal); setBlockBounds(0f, 0f, 0f, 1f, 0.3f, 1f); setRenderMode(RenderMode.BLOCK_ONLY); }