当前位置: 首页>>代码示例>>Java>>正文


Java FluidRegistry.enableUniversalBucket方法代码示例

本文整理汇总了Java中net.minecraftforge.fluids.FluidRegistry.enableUniversalBucket方法的典型用法代码示例。如果您正苦于以下问题:Java FluidRegistry.enableUniversalBucket方法的具体用法?Java FluidRegistry.enableUniversalBucket怎么用?Java FluidRegistry.enableUniversalBucket使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraftforge.fluids.FluidRegistry的用法示例。


在下文中一共展示了FluidRegistry.enableUniversalBucket方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createFluids

import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
public static final void createFluids() {
        FluidRegistry.enableUniversalBucket();

        FluidsRegistry.sewage = new SewageFluid();
        FluidsRegistry.sewage.register();

        (FluidsRegistry.liquidXP = new LiquidXPFluid()).register();

//        Fluid liquidXP = null;
////        for(Fluid f : FluidRegistry.getRegisteredFluids().values()) {
////            if (Objects.equals(f.getUnlocalizedName(), "eio.xpjuice")) {
////                liquidXP = f;
////                break;
////            }
////        }
//        if (null == (FluidsRegistry.liquidXP = liquidXP)) {
//            FluidsRegistry.liquidXP = new Fluid("liquidxp",
//                    new ResourceLocation(MekfarmMod.MODID, "blocks/liquidxp_still"),
//                    new ResourceLocation(MekfarmMod.MODID, "blocks/liquidxp_flow"))
//                    .setLuminosity(10)
//                    .setDensity(800)
//                    .setViscosity(1500);
//            FluidRegistry.registerFluid(FluidsRegistry.liquidXP);
//            FluidRegistry.addBucketForFluid(FluidsRegistry.liquidXP);
//        }
    }
 
开发者ID:faceofcat,项目名称:Mekfarm,代码行数:27,代码来源:FluidsRegistry.java

示例2: construction

import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
@EventHandler
public static void construction(FMLConstructionEvent event) {
	log.info("Tom's Mod Version: " + Configs.version);
	FluidRegistry.enableUniversalBucket();
	modids.add(new IMod() {
		@Override
		public String getModID() {
			return modid;
		}

		@Override
		public boolean hadPreInit() {
			return hadPreInit;
		}
	});
	proxy.construction();
}
 
开发者ID:tom5454,项目名称:Toms-Mod,代码行数:18,代码来源:CoreInit.java

示例3: FirmaMod

import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
public FirmaMod() {
	instance = this;
	FluidRegistry.enableUniversalBucket();
}
 
开发者ID:trigg,项目名称:Firma,代码行数:5,代码来源:FirmaMod.java

示例4: MooncakeCraft

import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
private MooncakeCraft() {
    FluidRegistry.enableUniversalBucket(); // For future usage
}
 
开发者ID:TeamCovertDragon,项目名称:MooncakeCraft,代码行数:4,代码来源:MooncakeCraft.java

示例5: construct

import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
@OverridingMethodsMustInvokeSuper
public void construct(FMLConstructionEvent event) {
    FluidRegistry.enableUniversalBucket();
    loaderManager.invoke(event, LoaderState.CONSTRUCTING, Side.SERVER);
}
 
开发者ID:LasmGratel,项目名称:FoodCraft-Reloaded,代码行数:6,代码来源:CommonProxy.java

示例6: registerBucket

import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
public static void registerBucket() {
	FluidRegistry.enableUniversalBucket();
}
 
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:4,代码来源:ModFluids.java

示例7: AquaMunda

import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
public AquaMunda() {
    // This has to be done VERY early
    FluidRegistry.enableUniversalBucket();
}
 
开发者ID:McJty,项目名称:AquaMunda,代码行数:5,代码来源:AquaMunda.java

示例8: constructing

import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
@EventHandler
public void constructing(FMLConstructionEvent event) {
	FluidRegistry.enableUniversalBucket();
}
 
开发者ID:AshIndigo,项目名称:Alloycraft,代码行数:5,代码来源:UtilsMod.java


注:本文中的net.minecraftforge.fluids.FluidRegistry.enableUniversalBucket方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。