Class FluidPropagator
java.lang.Object
com.simibubi.create.content.contraptions.fluids.FluidPropagator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FluidTransportBehaviourgetPipe(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 intstatic CreateAdvancement[]static net.minecraft.core.Direction.AxisgetStraightPipeAxis(net.minecraft.world.level.block.state.BlockState state) static booleanhasFluidCapability(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) static booleanisOpenEnd(net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) static voidpropagateChangedPipe(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pipePos, net.minecraft.world.level.block.state.BlockState pipeState) static voidresetAffectedFluidNetworks(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos start, net.minecraft.core.Direction side) static net.minecraft.core.DirectionvalidateNeighbourChange(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)
-
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)