Skip to content

Commit 32cccca

Browse files
committed
Animated Flowing Amber + Hardcoded Textures
1 parent a57d846 commit 32cccca

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

src/main/java/com/uraneptus/sullysmod/common/fluids/MoltenAmberFluidType.java

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,18 @@
11
package com.uraneptus.sullysmod.common.fluids;
22

3+
import com.uraneptus.sullysmod.SullysMod;
34
import net.minecraft.resources.ResourceLocation;
45
import net.minecraftforge.client.extensions.common.IClientFluidTypeExtensions;
56
import net.minecraftforge.fluids.FluidType;
67

78
import java.util.function.Consumer;
89

910
public class MoltenAmberFluidType extends FluidType {
10-
private final ResourceLocation stillTexture;
11-
private final ResourceLocation flowingTexture;
11+
private final ResourceLocation stillTexture = new ResourceLocation(SullysMod.MOD_ID,"block/amber");;
12+
private final ResourceLocation flowingTexture = new ResourceLocation(SullysMod.MOD_ID,"block/flowing_molten_amber");;
1213

13-
public MoltenAmberFluidType(final ResourceLocation stillTexture, final ResourceLocation flowingTexture, final Properties properties) {
14+
public MoltenAmberFluidType(final Properties properties) {
1415
super(properties);
15-
this.stillTexture = stillTexture;
16-
this.flowingTexture = flowingTexture;
17-
}
18-
19-
public ResourceLocation getStillTexture() {
20-
return stillTexture;
21-
}
22-
23-
public ResourceLocation getFlowingTexture() {
24-
return flowingTexture;
2516
}
2617

2718

src/main/java/com/uraneptus/sullysmod/core/registry/SMFluidTypes.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212

1313
public class SMFluidTypes {
1414

15-
public static final ResourceLocation MOLTEN_AMBER_STILL = new ResourceLocation(SullysMod.MOD_ID,"block/amber");
16-
public static final ResourceLocation MOLTEN_AMBER_FLOWING = new ResourceLocation(SullysMod.MOD_ID,"block/amber");
17-
1815
public static final DeferredRegister<FluidType> FLUID_TYPES = DeferredRegister.create(ForgeRegistries.Keys.FLUID_TYPES, SullysMod.MOD_ID);
1916

2017
public static final RegistryObject<FluidType> MOLTEN_AMBER_FLUID_TYPE = register("molten_amber_fluid",
@@ -23,6 +20,6 @@ public class SMFluidTypes {
2320

2421

2522
private static RegistryObject<FluidType> register(String name, FluidType.Properties properties) {
26-
return FLUID_TYPES.register(name, () -> new MoltenAmberFluidType(MOLTEN_AMBER_STILL, MOLTEN_AMBER_FLOWING, properties));
23+
return FLUID_TYPES.register(name, () -> new MoltenAmberFluidType(properties));
2724
}
2825
}
Loading
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"animation": {
3+
"frametime": 4
4+
}
5+
}

0 commit comments

Comments
 (0)