Java Code Examples for net.minecraftforge.fluids.FluidRegistry#isFluidRegistered()
The following examples show how to use
net.minecraftforge.fluids.FluidRegistry#isFluidRegistered() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CompatTConstruct.java From ExNihiloAdscensio with MIT License | 5 votes |
public static void registerMelting() { for (ItemOre ore : OreRegistry.getItemOreRegistry()) { if (FluidRegistry.isFluidRegistered(ore.getOre().getName())) { Fluid fluid = FluidRegistry.getFluid(ore.getOre().getName()); TinkerRegistry.registerMelting(new ItemStack(ore, 1, 1), fluid, 2*Material.VALUE_Ingot); } } }
Example 2
Source File: CrucibleRegistry.java From ExNihiloAdscensio with MIT License | 4 votes |
public static boolean canBeMelted(ItemInfo info) { return registry.containsKey(info) && FluidRegistry.isFluidRegistered(registry.get(info).getFluid()); }