-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dbbfefd
commit 2dcf49d
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<IClientFluidTypeExtensions> 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 | ||
|
||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.obsilab.mcsc.fluid; | ||
|
||
public class ModFluidsTypes { // liquid, gas, plasma ? | ||
//TODO | ||
} |