Package com.simibubi.create.api.event
Class PipeCollisionEvent
java.lang.Object
net.neoforged.bus.api.Event
com.simibubi.create.api.event.PipeCollisionEvent
- Direct Known Subclasses:
PipeCollisionEvent.Flow,PipeCollisionEvent.Spill
public class PipeCollisionEvent
extends net.neoforged.bus.api.Event
This Event is fired when two fluids meet in a pipe (
or when a fluid in a pipe meets with a fluid in the world (
If it is not null, the event's BlockState will be placed in world after firing.
PipeCollisionEvent.Flow)or when a fluid in a pipe meets with a fluid in the world (
PipeCollisionEvent.Spill).If it is not null, the event's BlockState will be placed in world after firing.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.minecraft.world.level.material.Fluidprotected final net.minecraft.world.level.material.Fluid -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPipeCollisionEvent(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.Fluid firstFluid, net.minecraft.world.level.material.Fluid secondFluid, @Nullable net.minecraft.world.level.block.state.BlockState defaultState) -
Method Summary
-
Field Details
-
firstFluid
protected final net.minecraft.world.level.material.Fluid firstFluid -
secondFluid
protected final net.minecraft.world.level.material.Fluid secondFluid
-
-
Constructor Details
-
PipeCollisionEvent
protected PipeCollisionEvent(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.Fluid firstFluid, net.minecraft.world.level.material.Fluid secondFluid, @Nullable @Nullable net.minecraft.world.level.block.state.BlockState defaultState)
-
-
Method Details
-
getLevel
public net.minecraft.world.level.Level getLevel() -
getPos
public net.minecraft.core.BlockPos getPos() -
getState
@Nullable public @Nullable net.minecraft.world.level.block.state.BlockState getState() -
setState
public void setState(@Nullable @Nullable net.minecraft.world.level.block.state.BlockState state)
-