Java 类net.minecraft.block.material.MapColor 实例源码

项目:DecompiledMinecraft    文件:BlockHugeMushroom.java   
/**
 * 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);
    }
}
项目:BaseClient    文件:BlockHugeMushroom.java   
/**
 * 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);
    }
}
项目:BaseClient    文件:BlockPlanks.java   
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_;
}
项目:ThermionicsWorld    文件:BlockGemrock.java   
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));
}
项目:DecompiledMinecraft    文件:BlockOldLog.java   
/**
 * 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();
    }
}
项目:BaseClient    文件:BlockNetherWart.java   
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);
}
项目:Backmemed    文件:BlockNetherWart.java   
protected BlockNetherWart()
{
    super(Material.PLANTS, MapColor.RED);
    this.setDefaultState(this.blockState.getBaseState().withProperty(AGE, Integer.valueOf(0)));
    this.setTickRandomly(true);
    this.setCreativeTab((CreativeTabs)null);
}
项目:BaseClient    文件:BlockSand.java   
private EnumType(int meta, String name, String unlocalizedName, MapColor mapColor)
{
    this.meta = meta;
    this.name = name;
    this.mapColor = mapColor;
    this.unlocalizedName = unlocalizedName;
}
项目:DankNull    文件:BlockContainerBase.java   
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());
}
项目:Backmemed    文件:BlockDirt.java   
private DirtType(int metadataIn, String nameIn, String unlocalizedNameIn, MapColor color)
{
    this.metadata = metadataIn;
    this.name = nameIn;
    this.unlocalizedName = unlocalizedNameIn;
    this.color = color;
}
项目:DecompiledMinecraft    文件:BlockSand.java   
private EnumType(int meta, String name, String unlocalizedName, MapColor mapColor)
{
    this.meta = meta;
    this.name = name;
    this.mapColor = mapColor;
    this.unlocalizedName = unlocalizedName;
}
项目:BaseClient    文件:BlockPumpkin.java   
protected BlockPumpkin()
{
    super(Material.gourd, MapColor.adobeColor);
    this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    this.setTickRandomly(true);
    this.setCreativeTab(CreativeTabs.tabBlock);
}
项目:CustomWorldGen    文件:BlockOldLog.java   
/**
 * 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();
    }
}
项目:CustomWorldGen    文件:BlockPumpkin.java   
protected BlockPumpkin()
{
    super(Material.GOURD, MapColor.ADOBE);
    this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    this.setTickRandomly(true);
    this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
}
项目:DecompiledMinecraft    文件:BlockBush.java   
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);
}
项目:BaseClient    文件:BlockOldLog.java   
/**
 * 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();
    }
}
项目:Backmemed    文件:BlockBone.java   
public BlockBone()
{
    super(Material.ROCK, MapColor.SAND);
    this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
    this.setHardness(2.0F);
    this.setSoundType(SoundType.STONE);
}
项目:BaseClient    文件:Block.java   
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());
}
项目:BaseClient    文件:BlockHopper.java   
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);
}
项目:DecompiledMinecraft    文件:BlockDirt.java   
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_;
}
项目:BaseClient    文件:BlockNetherBrick.java   
/**
 * Get the MapColor for this Block and the given BlockState
 */
public MapColor getMapColor(IBlockState state)
{
    return MapColor.netherrackColor;
}
项目:DecompiledMinecraft    文件:BlockCauldron.java   
public BlockCauldron()
{
    super(Material.iron, MapColor.stoneColor);
    this.setDefaultState(this.blockState.getBaseState().withProperty(LEVEL, Integer.valueOf(0)));
}
项目:HardVox    文件:BlockStateDelegate.java   
@Override
public MapColor getMapColor(IBlockAccess p_185909_1_, BlockPos p_185909_2_) {
    return delegate.getMapColor(p_185909_1_, p_185909_2_);
}
项目:CustomWorldGen    文件:BlockStone.java   
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_);
}
项目:BaseClient    文件:BlockStone.java   
public MapColor func_181072_c()
{
    return this.field_181073_l;
}
项目:CustomWorldGen    文件:BlockStoneSlabNew.java   
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_;
}
项目:DecompiledMinecraft    文件:BlockPlanks.java   
/**
 * Get the MapColor for this Block and the given BlockState
 */
public MapColor getMapColor(IBlockState state)
{
    return ((BlockPlanks.EnumType)state.getValue(VARIANT)).func_181070_c();
}
项目:BaseClient    文件:BlockBeacon.java   
public BlockBeacon()
{
    super(Material.glass, MapColor.diamondColor);
    this.setHardness(3.0F);
    this.setCreativeTab(CreativeTabs.tabMisc);
}
项目:CustomWorldGen    文件:BlockSoulSand.java   
public BlockSoulSand()
{
    super(Material.SAND, MapColor.BROWN);
    this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
}
项目:DecompiledMinecraft    文件:BlockNetherrack.java   
/**
 * Get the MapColor for this Block and the given BlockState
 */
public MapColor getMapColor(IBlockState state)
{
    return MapColor.netherrackColor;
}
项目:DecompiledMinecraft    文件:BlockGravel.java   
/**
 * Get the MapColor for this Block and the given BlockState
 */
public MapColor getMapColor(IBlockState state)
{
    return MapColor.stoneColor;
}
项目:BaseClient    文件:BlockStoneSlab.java   
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_);
}
项目:CustomWorldGen    文件:BlockJukebox.java   
protected BlockJukebox()
{
    super(Material.WOOD, MapColor.DIRT);
    this.setDefaultState(this.blockState.getBaseState().withProperty(HAS_RECORD, Boolean.valueOf(false)));
    this.setCreativeTab(CreativeTabs.DECORATIONS);
}
项目:Backmemed    文件:BlockMagma.java   
/**
 * Get the MapColor for this Block and the given BlockState
 */
public MapColor getMapColor(IBlockState state)
{
    return MapColor.NETHERRACK;
}
项目:Backmemed    文件:BlockCarpet.java   
/**
 * Get the MapColor for this Block and the given BlockState
 */
public MapColor getMapColor(IBlockState state)
{
    return ((EnumDyeColor)state.getValue(COLOR)).getMapColor();
}
项目:CustomWorldGen    文件:BlockQuartz.java   
/**
 * Get the MapColor for this Block and the given BlockState
 */
public MapColor getMapColor(IBlockState state)
{
    return MapColor.QUARTZ;
}
项目:DecompiledMinecraft    文件:BlockCompressedPowered.java   
public BlockCompressedPowered(Material p_i46386_1_, MapColor p_i46386_2_)
{
    super(p_i46386_1_, p_i46386_2_);
}
项目:CustomWorldGen    文件:BlockGravel.java   
/**
 * Get the MapColor for this Block and the given BlockState
 */
public MapColor getMapColor(IBlockState state)
{
    return MapColor.STONE;
}
项目:GardenStuff    文件:BlockStoneMaterial.java   
public MapColor getColor () {
    return color;
}
项目:Backmemed    文件:BlockBreakable.java   
protected BlockBreakable(Material materialIn, boolean ignoreSimilarityIn, MapColor mapColorIn)
{
    super(materialIn, mapColorIn);
    this.ignoreSimilarity = ignoreSimilarityIn;
}