Class PipeConnection

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

public class PipeConnection extends Object
  • Field Details

    • side

      public net.minecraft.core.Direction side
    • MAX_PARTICLE_RENDER_DISTANCE

      public static final int MAX_PARTICLE_RENDER_DISTANCE
      See Also:
    • SPLASH_PARTICLE_AMOUNT

      public static final int SPLASH_PARTICLE_AMOUNT
      See Also:
    • IDLE_PARTICLE_SPAWN_CHANCE

      public static final float IDLE_PARTICLE_SPAWN_CHANCE
      See Also:
    • RIM_RADIUS

      public static final float RIM_RADIUS
      See Also:
    • r

      public static final Random r
  • Constructor Details

    • PipeConnection

      public PipeConnection(net.minecraft.core.Direction side)
  • Method Details

    • getProvidedFluid

      public net.minecraftforge.fluids.FluidStack getProvidedFluid()
    • flipFlowsIfPressureReversed

      public boolean flipFlowsIfPressureReversed()
    • manageSource

      public void manageSource(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
    • manageFlows

      public boolean manageFlows(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraftforge.fluids.FluidStack internalFluid, Predicate<net.minecraftforge.fluids.FluidStack> extractionPredicate)
    • determineSource

      public boolean determineSource(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
    • tickFlowProgress

      public void tickFlowProgress(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
    • serializeNBT

      public void serializeNBT(net.minecraft.nbt.CompoundTag tag, boolean clientPacket)
    • deserializeNBT

      public void deserializeNBT(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.BlockPos tilePos, boolean clientPacket)
    • comparePressure

      public float comparePressure()
      Returns:
      zero if outward == inbound
      positive if outward > inbound
      negative if outward < inbound
    • wipePressure

      public void wipePressure()
    • provideOutboundFlow

      public net.minecraftforge.fluids.FluidStack provideOutboundFlow()
    • addPressure

      public void addPressure(boolean inbound, float pressure)
    • hasPressure

      public boolean hasPressure()
    • hasFlow

      public boolean hasFlow()
    • hasNetwork

      public boolean hasNetwork()
    • resetNetwork

      public void resetNetwork()
    • spawnSplashOnRim

      public void spawnSplashOnRim(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraftforge.fluids.FluidStack fluid)
    • spawnParticles

      public void spawnParticles(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraftforge.fluids.FluidStack fluid)
    • isRenderEntityWithinDistance

      public static boolean isRenderEntityWithinDistance(net.minecraft.core.BlockPos pos)