Skip to content

Commit 4403649

Browse files
committed
stub classes with classes
(cherry picked from commit 146e613) (cherry picked from commit 8e1abfa) (cherry picked from commit 26eacb9)
1 parent a843ccc commit 4403649

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

src/apiPlatformStub/java/net/minecraftforge/fluids/FluidStack.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@
33
import net.minecraft.nbt.CompoundTag;
44
import net.minecraft.world.level.material.Fluid;
55

6-
public interface FluidStack {
6+
public final class FluidStack {
77

8-
Fluid getFluid();
8+
public Fluid getFluid() {
9+
throw new AssertionError("stub");
10+
}
911

10-
CompoundTag getTag();
12+
public CompoundTag getTag() {
13+
throw new AssertionError("stub");
14+
}
1115

12-
int getAmount();
16+
public int getAmount() {
17+
throw new AssertionError("stub");
18+
}
1319

1420
}

src/apiPlatformStub/java/net/neoforged/neoforge/fluids/FluidStack.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@
33
import net.minecraft.core.component.DataComponentPatch;
44
import net.minecraft.world.level.material.Fluid;
55

6-
public interface FluidStack {
6+
public final class FluidStack {
77

8-
Fluid getFluid();
8+
public Fluid getFluid() {
9+
throw new AssertionError("stub");
10+
}
911

10-
DataComponentPatch getComponentsPatch();
12+
public DataComponentPatch getComponentsPatch() {
13+
throw new AssertionError("stub");
14+
}
1115

12-
int getAmount();
16+
public int getAmount() {
17+
throw new AssertionError("stub");
18+
}
1319

1420
}

0 commit comments

Comments
 (0)