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

项目:pnc-repressurized    文件:BlockFluidEtchingAcid.java   
public BlockFluidEtchingAcid(Fluid fluid) {
    super(fluid, new MaterialLiquid(MapColor.EMERALD) {
        @Override
        public EnumPushReaction getMobilityFlag() {
            return EnumPushReaction.DESTROY;
        }
    });
}
项目:BetterThanWeagles    文件:CommonProxy.java   
@SubscribeEvent
public static void registerBlocks(RegistryEvent.Register<Block> event)
{
    event.getRegistry().register(new BlockButter());
    event.getRegistry().register(new BlockMemeOre());

    event.getRegistry().register(new BlockFluidClassic(ModFluids.liquid_butter, MaterialLiquid.WATER).setRegistryName("liquid_butter").setUnlocalizedName("liquid_butter").setCreativeTab(BetterThanWeagles.tabBTWeagles));
}
项目:advanced-turbines    文件:adtuFluids.java   
public static void initFluids(){
    Material materialSteam = new MaterialLiquid(MapColor.ironColor);
    Steam steam = new Steam();
    adtuSteam = new FluidAdtuSteam(steam, materialSteam);
    GameRegistry.registerBlock(adtuSteam, "adtuSteam");
    FluidRegistry.registerFluid(steam);
}
项目:Project-Zed    文件:AbstractTileEntityDigger.java   
/**
 * Checks to see if given material has been black listed.
 *
 * @param material material to check.
 * @return true if blacklisted, else returns false.
 */
public boolean blackListContains(final Material material, final boolean checkForLiquid) {
    if (blackList != null && blackList.length > 0 && material != null) {

        if (checkForLiquid && (material.isLiquid() || material instanceof MaterialLiquid)) return true;

        for (int i = 0; i < blackList.length; i++) {
            if (blackList[i] != null) {
                if (blackList[i].equals(material)) return true;
            }
        }
    }

    return false;
}
项目:PneumaticCraft    文件:BlockFluidEtchingAcid.java   
public BlockFluidEtchingAcid(){
    super(Fluids.etchingAcid, new MaterialLiquid(MapColor.waterColor){
        @Override
        public int getMaterialMobility(){
            return 1;
        }
    });
    setBlockName("etchingAcid");
}
项目:It-s-About-Time-Minecraft-Mod    文件:ModBlocks.java   
public static void initializeBlocks(){
    plastered_Fossil_Cambrian = new BlockPlasterFossil(Material.clay).setBlockTextureName("iat:plaster_Fossil").setBlockName("iat.fossil_Plaster").setCreativeTab(ItsAboutTime.iatTab).setHardness(2F).setResistance(15F);
    plastered_Fossil_Ordovician = new BlockPlasterFossil(Material.clay).setBlockTextureName("iat:plaster_Fossil").setBlockName("iat.fossil_Plaster").setCreativeTab(ItsAboutTime.iatTab).setHardness(2F).setResistance(15F);
    plastered_Fossil_Silurian = new BlockPlasterFossil(Material.clay).setBlockTextureName("iat:plaster_Fossil").setBlockName("iat.fossil_Plaster").setCreativeTab(ItsAboutTime.iatTab).setHardness(2F).setResistance(15F);
    plastered_Fossil_Devonian = new BlockPlasterFossil(Material.clay).setBlockTextureName("iat:plaster_Fossil").setBlockName("iat.fossil_Plaster").setCreativeTab(ItsAboutTime.iatTab).setHardness(2F).setResistance(15F);
    plastered_Fossil_Carboniferous = new BlockPlasterFossil(Material.clay).setBlockTextureName("iat:plaster_Fossil").setBlockName("iat.fossil_Plaster").setCreativeTab(ItsAboutTime.iatTab).setHardness(2F).setResistance(15F);
    plastered_Fossil_Permian = new BlockPlasterFossil(Material.clay).setBlockTextureName("iat:plaster_Fossil").setBlockName("iat.fossil_Plaster").setCreativeTab(ItsAboutTime.iatTab).setHardness(2F).setResistance(15F);
    plastered_Fossil_Triassic = new BlockPlasterFossil(Material.clay).setBlockTextureName("iat:plaster_Fossil").setBlockName("iat.fossil_Plaster").setCreativeTab(ItsAboutTime.iatTab).setHardness(2F).setResistance(15F);
    plastered_Fossil_Jurassic = new BlockPlasterFossil(Material.clay).setBlockTextureName("iat:plaster_Fossil").setBlockName("iat.fossil_Plaster").setCreativeTab(ItsAboutTime.iatTab).setHardness(2F).setResistance(15F);
    plastered_Fossil_Cretaceous = new BlockPlasterFossil(Material.clay).setBlockTextureName("iat:plaster_Fossil").setBlockName("iat.fossil_Plaster").setCreativeTab(ItsAboutTime.iatTab).setHardness(2F).setResistance(15F);
    plastered_Fossil_Paleogene = new BlockPlasterFossil(Material.clay).setBlockTextureName("iat:plaster_Fossil").setBlockName("iat.fossil_Plaster").setCreativeTab(ItsAboutTime.iatTab).setHardness(2F).setResistance(15F);
    plastered_Fossil_Neogene = new BlockPlasterFossil(Material.clay).setBlockTextureName("iat:plaster_Fossil").setBlockName("iat.fossil_Plaster").setCreativeTab(ItsAboutTime.iatTab).setHardness(2F).setResistance(15F);
    fossil_Ore_Cambrian = new BlockFossil(Material.rock, plastered_Fossil_Cambrian).setBlockTextureName("iat:fossil_Ore").setBlockName("iat.fossil").setCreativeTab(ItsAboutTime.iatTab).setHardness(3F).setResistance(15F);
    fossil_Ore_Ordovician = new BlockFossil(Material.rock, plastered_Fossil_Ordovician).setBlockTextureName("iat:fossil_Ore").setBlockName("iat.fossil").setCreativeTab(ItsAboutTime.iatTab).setHardness(3F).setResistance(15F);
    fossil_Ore_Silurian = new BlockFossil(Material.rock, plastered_Fossil_Silurian).setBlockTextureName("iat:fossil_Ore").setBlockName("iat.fossil").setCreativeTab(ItsAboutTime.iatTab).setHardness(3F).setResistance(15F);
    fossil_Ore_Devonian = new BlockFossil(Material.rock, plastered_Fossil_Devonian).setBlockTextureName("iat:fossil_Ore").setBlockName("iat.fossil").setCreativeTab(ItsAboutTime.iatTab).setHardness(3F).setResistance(15F);
    fossil_Ore_Carboniferous = new BlockFossil(Material.rock, plastered_Fossil_Carboniferous).setBlockTextureName("iat:fossil_Ore").setBlockName("iat.fossil").setCreativeTab(ItsAboutTime.iatTab).setHardness(3F).setResistance(15F);
    fossil_Ore_Permian = new BlockFossil(Material.rock, plastered_Fossil_Permian).setBlockTextureName("iat:fossil_Ore").setBlockName("iat.fossil").setCreativeTab(ItsAboutTime.iatTab).setHardness(3F).setResistance(15F);
    fossil_Ore_Triassic = new BlockFossil(Material.rock, plastered_Fossil_Triassic).setBlockTextureName("iat:fossil_Ore").setBlockName("iat.fossil").setCreativeTab(ItsAboutTime.iatTab).setHardness(3F).setResistance(15F);
    fossil_Ore_Jurassic = new BlockFossil(Material.rock, plastered_Fossil_Jurassic).setBlockTextureName("iat:fossil_Ore").setBlockName("iat.fossil").setCreativeTab(ItsAboutTime.iatTab).setHardness(3F).setResistance(15F);
    fossil_Ore_Cretaceous = new BlockFossil(Material.rock, plastered_Fossil_Cretaceous).setBlockTextureName("iat:fossil_Ore").setBlockName("iat.fossil").setCreativeTab(ItsAboutTime.iatTab).setHardness(3F).setResistance(15F);
    fossil_Ore_Paleogene = new BlockFossil(Material.rock, plastered_Fossil_Paleogene).setBlockTextureName("iat:fossil_Ore").setBlockName("iat.fossil").setCreativeTab(ItsAboutTime.iatTab).setHardness(3F).setResistance(15F);
    fossil_Ore_Neogene = new BlockFossil(Material.rock, plastered_Fossil_Neogene).setBlockTextureName("iat:fossil_Ore").setBlockName("iat.fossil").setCreativeTab(ItsAboutTime.iatTab).setHardness(3F).setResistance(15F);
    amber_Silverfish = new BlockAmber(Material.rock, 0).setBlockTextureName("iat:amber").setBlockName("iat.amber").setHardness(3F).setResistance(5F).setStepSound(Block.soundTypeGlass);
    amber_Spider = new BlockAmber(Material.rock, 1).setBlockTextureName("iat:amber").setBlockName("iat.amber").setHardness(3F).setResistance(5F).setStepSound(Block.soundTypeGlass);
    amber_Compsognathus = new BlockAmber(Material.rock, 2).setBlockTextureName("iat:amber").setBlockName("iat.amber").setHardness(3F).setResistance(5F).setStepSound(Block.soundTypeGlass);
    cleaning_Table_Off = new BlockCleaningTable(Material.wood, false).setBlockTextureName("log_oak_top").setBlockName("iat.cleaning_Table").setCreativeTab(ItsAboutTime.iatTab).setHardness(2F).setResistance(5F).setStepSound(Block.soundTypeWood);
    cleaning_Table_On = new BlockCleaningTable(Material.wood, true).setBlockTextureName("log_oak_top").setBlockName("iat.cleaning_Table").setHardness(2F).setResistance(5F).setStepSound(Block.soundTypeWood);
    plaster = new BlockPlaster(Material.clay).setBlockTextureName("iat:plaster_Block").setBlockName("iat.plaster").setCreativeTab(ItsAboutTime.iatTab).setHardness(0.7F).setResistance(15F).setStepSound(Block.soundTypeGravel);
    plaster_Wall = new BlockPlasterWall(plaster).setBlockTextureName("iat:plaster_Block").setBlockName("iat.plaster_Wall").setCreativeTab(ItsAboutTime.iatTab).setHardness(0.5F).setResistance(15F).setStepSound(Block.soundTypeGravel);
    Matter_converter_on = new BlockMatterConverter(Material.iron, true).setBlockName("iat.matter_converter").setHardness(5F).setResistance(15F).setStepSound(Block.soundTypeMetal);
    Matter_converter_off = new BlockMatterConverter(Material.iron, false).setBlockName("iat.matter_converter").setHardness(5F).setResistance(15F).setCreativeTab(ItsAboutTime.iatTab).setStepSound(Block.soundTypeMetal);
    timeRift_nowhere = new BlockTimeRift(Material.portal, ModDimensions.Dim_nowhere).setBlockName("iat.timeRift").setHardness(2F).setResistance(1000F).setLightLevel(0.5F).setCreativeTab(ItsAboutTime.iatTab);
    timeRift_cretaceous = new BlockTimeRift(Material.portal, ModDimensions.Dim_cretaceous).setBlockName("iat.timeRift").setHardness(2F).setResistance(1000F).setLightLevel(0.5F).setCreativeTab(ItsAboutTime.iatTab);
    mud = new BlockMud(Material.ground, "spade", 1, 0.8F, 1F).setBlockName("iat.mud").setBlockTextureName("iat:mud").setStepSound(Block.soundTypeGravel).setCreativeTab(ItsAboutTime.iatTab);
    dried_Mud = new BlockBasic(Material.ground, "pickaxe", 1, 0.5F, 3.5F).setBlockName("iat.dried_Mud").setBlockTextureName("iat:dried_Mud").setCreativeTab(ItsAboutTime.iatTab);
    low_Fern_Block = new BlockLowFern().setBlockName("iat.low_Fern").setBlockTextureName("iat:low_Fern").setCreativeTab(ItsAboutTime.iatTab).setHardness(0.6F).setStepSound(Block.soundTypeGrass);
    horsetail = new BlockHorseTail(Material.plants).setBlockName("iat.horsetail").setBlockTextureName("iat:horsetail").setCreativeTab(ItsAboutTime.iatTab).setHardness(0.3F).setStepSound(Block.soundTypeGrass);
    for (int i = 0; i < EnumPrehistoricTrees.values().length; i++) {
        EnumPrehistoricTrees.values()[i].logBlock = new BlockPrehistoricWood("iat:log_" + EnumPrehistoricTrees.values()[i].name()).setBlockName("iat.log." + EnumPrehistoricTrees.values()[i].name()).setCreativeTab(ItsAboutTime.iatTab).setStepSound(Block.soundTypeWood);
        EnumPrehistoricTrees.values()[i].leavesBlock = new BlockPrehistoricLeaves("iat:leaves_" + EnumPrehistoricTrees.values()[i].name()).setBlockName("iat.leaves." + EnumPrehistoricTrees.values()[i].name()).setCreativeTab(ItsAboutTime.iatTab).setStepSound(Block.soundTypeGrass);
        EnumPrehistoricTrees.values()[i].saplingBlock = new BlockPrehistoricSapling(EnumPrehistoricTrees.values()[i].tree, "iat:sapling_" + EnumPrehistoricTrees.values()[i].name()).setBlockName("iat.sapling." + EnumPrehistoricTrees.values()[i].name()).setCreativeTab(ItsAboutTime.iatTab).setStepSound(Block.soundTypeGrass);
    }
    ginkoNut = new BlockGinkoNut().setHardness(0.3F).setBlockName("iat.ginkoNut");
    grid = new BlockGrid(Material.rock).setBlockUnbreakable().setBlockTextureName("iat:grid").setBlockName("iat.grid").setCreativeTab(ItsAboutTime.iatTab);
    fluidTime = new FluidTime("fluidTime").setBlock(fluidTimeBlock).setUnlocalizedName("fluidTime");
    FluidRegistry.registerFluid(fluidTime);
    materialFluidTime = new MaterialLiquid(MapColor.limeColor);
    fluidTimeBlock=new BlockTimeFluid(fluidTime, materialFluidTime).setBlockName("iat.fluid_Time");
}
项目:FantasyCraft-Mod    文件:FCraftMaterials.java   
public static void init(){

    materialMako = new MaterialLiquid(MapColor.waterColor);
    materialSandsea = new MaterialLiquid(MapColor.sandColor);
}