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 (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 Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.world.level.material.Fluid
     
    protected final net.minecraft.world.level.material.Fluid
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    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 net.minecraft.world.level.block.state.BlockState defaultState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.Level
     
    net.minecraft.core.BlockPos
     
    @Nullable net.minecraft.world.level.block.state.BlockState
     
    void
    setState(@Nullable net.minecraft.world.level.block.state.BlockState state)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)