本文整理匯總了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();
}