Class PipeConnection
java.lang.Object
com.simibubi.create.content.contraptions.fluids.PipeConnection
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final intstatic final Randomstatic final floatnet.minecraft.core.Directionstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPressure(boolean inbound, float pressure) floatvoiddeserializeNBT(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.BlockPos tilePos, boolean clientPacket) booleandetermineSource(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) booleannet.minecraftforge.fluids.FluidStackbooleanhasFlow()booleanbooleanstatic booleanisRenderEntityWithinDistance(net.minecraft.core.BlockPos pos) booleanmanageFlows(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraftforge.fluids.FluidStack internalFluid, Predicate<net.minecraftforge.fluids.FluidStack> extractionPredicate) voidmanageSource(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) net.minecraftforge.fluids.FluidStackvoidvoidserializeNBT(net.minecraft.nbt.CompoundTag tag, boolean clientPacket) voidspawnParticles(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraftforge.fluids.FluidStack fluid) voidspawnSplashOnRim(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraftforge.fluids.FluidStack fluid) voidtickFlowProgress(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) void
-
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
-
-
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)
-