/** * Get the MapColor for this Block and the given BlockState */ public MapColor getMapColor(IBlockState state) { switch ((BlockHugeMushroom.EnumType)state.getValue(VARIANT)) { case ALL_STEM: return MapColor.clothColor; case ALL_INSIDE: return MapColor.sandColor; case STEM: return MapColor.sandColor; default: return super.getMapColor(state); } }
private EnumType(int p_i46389_3_, String p_i46389_4_, String p_i46389_5_, MapColor p_i46389_6_) { this.meta = p_i46389_3_; this.name = p_i46389_4_; this.unlocalizedName = p_i46389_5_; this.field_181071_k = p_i46389_6_; }
public BlockGemrock(String name, EnumDyeColor dyeColor) { super(Material.ROCK, MapColor.getBlockColor(dyeColor)); this.setRegistryName("gemrock."+name); this.setUnlocalizedName("thermionics_world.gemrock."+name); this.setHarvestLevel("pickaxe", 1); this.setHardness(1.5f); this.setResistance(25f); this.setCreativeTab(ThermionicsWorld.TAB_THERMIONICS_WORLD); this.setDefaultState(blockState.getBaseState().withProperty(BlockVarieties.VARIANT, 0)); }
/** * Get the MapColor for this Block and the given BlockState */ public MapColor getMapColor(IBlockState state) { BlockPlanks.EnumType blockplanks$enumtype = (BlockPlanks.EnumType)state.getValue(VARIANT); switch ((BlockLog.EnumAxis)state.getValue(LOG_AXIS)) { case X: case Z: case NONE: default: switch (blockplanks$enumtype) { case OAK: default: return BlockPlanks.EnumType.SPRUCE.func_181070_c(); case SPRUCE: return BlockPlanks.EnumType.DARK_OAK.func_181070_c(); case BIRCH: return MapColor.quartzColor; case JUNGLE: return BlockPlanks.EnumType.SPRUCE.func_181070_c(); } case Y: return blockplanks$enumtype.func_181070_c(); } }
protected BlockNetherWart() { super(Material.plants, MapColor.redColor); this.setDefaultState(this.blockState.getBaseState().withProperty(AGE, Integer.valueOf(0))); this.setTickRandomly(true); float f = 0.5F; this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.25F, 0.5F + f); this.setCreativeTab((CreativeTabs)null); }
protected BlockNetherWart() { super(Material.PLANTS, MapColor.RED); this.setDefaultState(this.blockState.getBaseState().withProperty(AGE, Integer.valueOf(0))); this.setTickRandomly(true); this.setCreativeTab((CreativeTabs)null); }
private EnumType(int meta, String name, String unlocalizedName, MapColor mapColor) { this.meta = meta; this.name = name; this.mapColor = mapColor; this.unlocalizedName = unlocalizedName; }
public BlockContainerBase(Material materialIn, MapColor color, String name, float hardness, float resistance) { super(materialIn, color); setUnlocalizedName(name); setRegistryName(name); setResistance(resistance); setHardness(hardness); GameRegistry.register(this); GameRegistry.register(new ItemBlock(this), getRegistryName()); }
private DirtType(int metadataIn, String nameIn, String unlocalizedNameIn, MapColor color) { this.metadata = metadataIn; this.name = nameIn; this.unlocalizedName = unlocalizedNameIn; this.color = color; }
protected BlockPumpkin() { super(Material.gourd, MapColor.adobeColor); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH)); this.setTickRandomly(true); this.setCreativeTab(CreativeTabs.tabBlock); }
/** * Get the MapColor for this Block and the given BlockState */ public MapColor getMapColor(IBlockState state) { BlockPlanks.EnumType blockplanks$enumtype = (BlockPlanks.EnumType)state.getValue(VARIANT); switch ((BlockLog.EnumAxis)state.getValue(LOG_AXIS)) { case X: case Z: case NONE: default: switch (blockplanks$enumtype) { case OAK: default: return BlockPlanks.EnumType.SPRUCE.getMapColor(); case SPRUCE: return BlockPlanks.EnumType.DARK_OAK.getMapColor(); case BIRCH: return MapColor.QUARTZ; case JUNGLE: return BlockPlanks.EnumType.SPRUCE.getMapColor(); } case Y: return blockplanks$enumtype.getMapColor(); } }
protected BlockPumpkin() { super(Material.GOURD, MapColor.ADOBE); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH)); this.setTickRandomly(true); this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS); }
protected BlockBush(Material p_i46452_1_, MapColor p_i46452_2_) { super(p_i46452_1_, p_i46452_2_); this.setTickRandomly(true); float f = 0.2F; this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f * 3.0F, 0.5F + f); this.setCreativeTab(CreativeTabs.tabDecorations); }
public BlockBone() { super(Material.ROCK, MapColor.SAND); this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS); this.setHardness(2.0F); this.setSoundType(SoundType.STONE); }
public Block(Material p_i46399_1_, MapColor p_i46399_2_) { this.enableStats = true; this.stepSound = soundTypeStone; this.blockParticleGravity = 1.0F; this.slipperiness = 0.6F; this.blockMaterial = p_i46399_1_; this.field_181083_K = p_i46399_2_; this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); this.fullBlock = this.isOpaqueCube(); this.lightOpacity = this.isOpaqueCube() ? 255 : 0; this.translucent = !p_i46399_1_.blocksLight(); this.blockState = this.createBlockState(); this.setDefaultState(this.blockState.getBaseState()); }
public BlockHopper() { super(Material.iron, MapColor.stoneColor); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.DOWN).withProperty(ENABLED, Boolean.valueOf(true))); this.setCreativeTab(CreativeTabs.tabRedstone); this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); }
private DirtType(int p_i46397_3_, String p_i46397_4_, String p_i46397_5_, MapColor p_i46397_6_) { this.metadata = p_i46397_3_; this.name = p_i46397_4_; this.unlocalizedName = p_i46397_5_; this.field_181067_h = p_i46397_6_; }
/** * Get the MapColor for this Block and the given BlockState */ public MapColor getMapColor(IBlockState state) { return MapColor.netherrackColor; }
public BlockCauldron() { super(Material.iron, MapColor.stoneColor); this.setDefaultState(this.blockState.getBaseState().withProperty(LEVEL, Integer.valueOf(0))); }
@Override public MapColor getMapColor(IBlockAccess p_185909_1_, BlockPos p_185909_2_) { return delegate.getMapColor(p_185909_1_, p_185909_2_); }
private EnumType(int p_i46383_3_, MapColor p_i46383_4_, String p_i46383_5_) { this(p_i46383_3_, p_i46383_4_, p_i46383_5_, p_i46383_5_); }
public MapColor func_181072_c() { return this.field_181073_l; }
private EnumType(int p_i46391_3_, String p_i46391_4_, MapColor p_i46391_5_) { this.meta = p_i46391_3_; this.name = p_i46391_4_; this.mapColor = p_i46391_5_; }
/** * Get the MapColor for this Block and the given BlockState */ public MapColor getMapColor(IBlockState state) { return ((BlockPlanks.EnumType)state.getValue(VARIANT)).func_181070_c(); }
public BlockBeacon() { super(Material.glass, MapColor.diamondColor); this.setHardness(3.0F); this.setCreativeTab(CreativeTabs.tabMisc); }
public BlockSoulSand() { super(Material.SAND, MapColor.BROWN); this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS); }
/** * Get the MapColor for this Block and the given BlockState */ public MapColor getMapColor(IBlockState state) { return MapColor.stoneColor; }
private EnumType(int p_i46381_3_, MapColor p_i46381_4_, String p_i46381_5_) { this(p_i46381_3_, p_i46381_4_, p_i46381_5_, p_i46381_5_); }
protected BlockJukebox() { super(Material.WOOD, MapColor.DIRT); this.setDefaultState(this.blockState.getBaseState().withProperty(HAS_RECORD, Boolean.valueOf(false))); this.setCreativeTab(CreativeTabs.DECORATIONS); }
/** * Get the MapColor for this Block and the given BlockState */ public MapColor getMapColor(IBlockState state) { return MapColor.NETHERRACK; }
/** * Get the MapColor for this Block and the given BlockState */ public MapColor getMapColor(IBlockState state) { return ((EnumDyeColor)state.getValue(COLOR)).getMapColor(); }
/** * Get the MapColor for this Block and the given BlockState */ public MapColor getMapColor(IBlockState state) { return MapColor.QUARTZ; }
public BlockCompressedPowered(Material p_i46386_1_, MapColor p_i46386_2_) { super(p_i46386_1_, p_i46386_2_); }
/** * Get the MapColor for this Block and the given BlockState */ public MapColor getMapColor(IBlockState state) { return MapColor.STONE; }
public MapColor getColor () { return color; }
protected BlockBreakable(Material materialIn, boolean ignoreSimilarityIn, MapColor mapColorIn) { super(materialIn, mapColorIn); this.ignoreSimilarity = ignoreSimilarityIn; }