當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。