blob: b08889b42b3a37aa3af270b39764d45808415811 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
package gtPlusPlus.core.fluids;
import static gregtech.api.enums.Mods.GTPlusPlus;
import static gtPlusPlus.core.block.ModBlocks.blockFluidSludge;
import static gtPlusPlus.core.block.ModBlocks.fluidSludge;
import net.minecraft.block.material.Material;
import net.minecraftforge.fluids.FluidRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import gtPlusPlus.core.block.general.fluids.BlockFluidSludge;
public class FluidRegistryHandler {
// Fluids
/**
*
* Luminosity .setLuminosity(luminosity) How much light does the fluid emit. Default: 0, Lava uses 15 Density
* .setDensity(density) How dense is the fluid, the only effect is whether or not a fluid replaces another fluid
* when they flow into each other. Default: 1000, the density of water at 4 degrees Celsius in kg/m³ Temperature
* .setTemperature(temp) How hot, or cold is the fluid. Has currently no effect. Default: 295, the "normal" room
* temperature in degrees Kelvin, this is approximately 72°F or 22°C. Viscosity .setViscosity(viscosity) How thick
* the fluid is. Determines how fast it flows. Default: 1000 for water, lava uses 6000 Is Gaseous
* .setGaseous(boolean) Indicates if the fluid is gaseous. Used for rendering. Default: false
*
*/
public static void registerFluids() {
run();
}
private static void run() {
fluidSludge();
}
private static void fluidSludge() {
// testFluid
fluidSludge.setLuminosity(8);
fluidSludge.setDensity(8196);
fluidSludge.setTemperature(295);
fluidSludge.setViscosity(3000);
fluidSludge.setGaseous(false);
fluidSludge.setUnlocalizedName("fluid.sludge");
FluidRegistry.registerFluid(fluidSludge);
blockFluidSludge = new BlockFluidSludge(fluidSludge, Material.cactus).setBlockName("fluidBlockSludge");
GameRegistry.registerBlock(
blockFluidSludge,
GTPlusPlus.ID + "_"
+ blockFluidSludge.getUnlocalizedName()
.substring(5));
fluidSludge.setUnlocalizedName(blockFluidSludge.getUnlocalizedName());
}
}
|