本文整理汇总了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);
// }
}
示例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();
}
示例3: FirmaMod
import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
public FirmaMod() {
instance = this;
FluidRegistry.enableUniversalBucket();
}
示例4: MooncakeCraft
import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
private MooncakeCraft() {
FluidRegistry.enableUniversalBucket(); // For future usage
}
示例5: construct
import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
@OverridingMethodsMustInvokeSuper
public void construct(FMLConstructionEvent event) {
FluidRegistry.enableUniversalBucket();
loaderManager.invoke(event, LoaderState.CONSTRUCTING, Side.SERVER);
}
示例6: registerBucket
import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
public static void registerBucket() {
FluidRegistry.enableUniversalBucket();
}
示例7: AquaMunda
import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
public AquaMunda() {
// This has to be done VERY early
FluidRegistry.enableUniversalBucket();
}
示例8: constructing
import net.minecraftforge.fluids.FluidRegistry; //导入方法依赖的package包/类
@EventHandler
public void constructing(FMLConstructionEvent event) {
FluidRegistry.enableUniversalBucket();
}