forked from TAIGA/TAIGA
Created base class for fluids. Implemented all necessary fluids with nearly correct colors.
This commit is contained in:
20
src/main/java/fluids/BasicFluid.java
Normal file
20
src/main/java/fluids/BasicFluid.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package fluids;
|
||||
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
|
||||
public class BasicFluid extends Fluid {
|
||||
|
||||
private int color;
|
||||
|
||||
public BasicFluid(String fluidName, int color) {
|
||||
super(fluidName, new ResourceLocation("tconstruct:blocks/fluids/molten_metal"), new ResourceLocation("tconstruct:blocks/fluids/molten_metal_flow"));
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getColor() {
|
||||
return color;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user