diff --git a/src/main/java/com/obsilab/mcsc/fluid/BaseFluidType.java b/src/main/java/com/obsilab/mcsc/fluid/BaseFluidType.java new file mode 100644 index 0000000..b7a426a --- /dev/null +++ b/src/main/java/com/obsilab/mcsc/fluid/BaseFluidType.java @@ -0,0 +1,41 @@ +package com.obsilab.mcsc.fluid; + +import net.minecraft.resources.ResourceLocation; +import net.minecraftforge.client.extensions.common.IClientFluidTypeExtensions; +import net.minecraftforge.fluids.FluidType; +import org.joml.Vector3f; + +import java.util.function.Consumer; + +public class BaseFluidType extends FluidType { + private final ResourceLocation stillTexture; // only this for gas, not placeable + //private final ResourceLocation flowingTexture; + //private final ResourceLocation overlayTexture; + //private final int tintColor; + //private final Vector3f fogColor; // fog when inside the fluid + + //contructor: + public BaseFluidType(final ResourceLocation stillTexture, final Properties properties) { + super(properties); + this.stillTexture = stillTexture; + } + + //getter(s): + public ResourceLocation getStillTexture() { + return stillTexture; + } + + @Override + public void initializeClient(Consumer consumer) { + consumer.accept(new IClientFluidTypeExtensions() { + @Override + public ResourceLocation getStillTexture() { + return stillTexture; + } + + // @Nullable for the getOverlayTexture override, if used + // @NotNull for the modifyFogColor override, if used + + }); + } +} diff --git a/src/main/java/com/obsilab/mcsc/fluid/ModFluids.java b/src/main/java/com/obsilab/mcsc/fluid/ModFluids.java new file mode 100644 index 0000000..eaa8ebf --- /dev/null +++ b/src/main/java/com/obsilab/mcsc/fluid/ModFluids.java @@ -0,0 +1,8 @@ +package com.obsilab.mcsc.fluid; + + + +// fluids: NF3 gas (Nitrogen Trifluoride) for dry (plasma) etching, Nitrogen gas for internal FOUP atmosphere ... +public class ModFluids { + //TODO +} diff --git a/src/main/java/com/obsilab/mcsc/fluid/ModFluidsTypes.java b/src/main/java/com/obsilab/mcsc/fluid/ModFluidsTypes.java new file mode 100644 index 0000000..644c9ab --- /dev/null +++ b/src/main/java/com/obsilab/mcsc/fluid/ModFluidsTypes.java @@ -0,0 +1,5 @@ +package com.obsilab.mcsc.fluid; + +public class ModFluidsTypes { // liquid, gas, plasma ? + //TODO +}