Skip to content

Commit 7616ec7

Browse files
committed
Add LiquidFlowIntoBlockEvent.getFluid() API
1 parent 62462f1 commit 7616ec7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

loader/src/main/java/com/fox2code/foxloader/event/world/LiquidFlowIntoBlockEvent.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import com.fox2code.foxevents.Event;
2727
import net.minecraft.common.block.children.BlockFluid;
28+
import net.minecraft.common.block.fluid.Fluid;
2829
import net.minecraft.common.entity.Entity;
2930
import net.minecraft.common.world.World;
3031
import org.jetbrains.annotations.Nullable;
@@ -49,6 +50,10 @@ public BlockFluid getBlockFluid() {
4950
return this.blockFluid;
5051
}
5152

53+
public Fluid getFluid() {
54+
return this.blockFluid.getFluid();
55+
}
56+
5257
public int getMetadata() {
5358
return this.metadata;
5459
}

0 commit comments

Comments
 (0)