Class FluidPropagator

java.lang.Object
com.simibubi.create.content.contraptions.fluids.FluidPropagator

public class FluidPropagator extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getPipe(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos)
     
    static List<net.minecraft.core.Direction>
    getPipeConnections(net.minecraft.world.level.block.state.BlockState state, FluidTransportBehaviour pipe)
     
    static int
     
    static net.minecraft.core.Direction.Axis
    getStraightPipeAxis(net.minecraft.world.level.block.state.BlockState state)
     
    static boolean
    hasFluidCapability(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side)
     
    static boolean
    isOpenEnd(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side)
     
    static void
    propagateChangedPipe(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pipePos, net.minecraft.world.level.block.state.BlockState pipeState)
     
    static void
    resetAffectedFluidNetworks(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos start, net.minecraft.core.Direction side)
     
    static net.minecraft.core.Direction
    validateNeighbourChange(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block otherBlock, net.minecraft.core.BlockPos neighborPos, boolean isMoving)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FluidPropagator

      public FluidPropagator()
  • Method Details

    • propagateChangedPipe

      public static void propagateChangedPipe(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pipePos, net.minecraft.world.level.block.state.BlockState pipeState)
    • resetAffectedFluidNetworks

      public static void resetAffectedFluidNetworks(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos start, net.minecraft.core.Direction side)
    • validateNeighbourChange

      public static net.minecraft.core.Direction validateNeighbourChange(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block otherBlock, net.minecraft.core.BlockPos neighborPos, boolean isMoving)
    • getPipe

      public static FluidTransportBehaviour getPipe(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos)
    • isOpenEnd

      public static boolean isOpenEnd(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side)
    • getPipeConnections

      public static List<net.minecraft.core.Direction> getPipeConnections(net.minecraft.world.level.block.state.BlockState state, FluidTransportBehaviour pipe)
    • getPumpRange

      public static int getPumpRange()
    • hasFluidCapability

      public static boolean hasFluidCapability(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side)
    • getStraightPipeAxis

      @Nullable public static net.minecraft.core.Direction.Axis getStraightPipeAxis(net.minecraft.world.level.block.state.BlockState state)