mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
19 lines
633 B
Java
19 lines
633 B
Java
package com.hbm.util;
|
|
|
|
import com.hbm.inventory.fluid.FluidType;
|
|
import com.hbm.inventory.fluid.Fluids;
|
|
import com.hbm.render.util.EnumSymbol;
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public class CompatFluidRegistry {
|
|
|
|
/** Registers a fluid with a custom ID. */
|
|
public static FluidType registerFluid(String name, int id, int color, int p, int f, int r, EnumSymbol symbol, ResourceLocation texture) {
|
|
FluidType type = Fluids.fluidMigration.get(name);
|
|
if(type == null) type = new FluidType(name, id, color, p, f, r, symbol, texture);
|
|
else type.setupForeign(name, id, color, p, f, r, symbol, texture);
|
|
return type;
|
|
}
|
|
}
|