Class FluidManipulationBehaviour
java.lang.Object
com.simibubi.create.foundation.tileEntity.TileEntityBehaviour
com.simibubi.create.content.contraptions.fluids.actors.FluidManipulationBehaviour
- Direct Known Subclasses:
FluidDrainingBehaviour,FluidFillingBehaviour
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classstatic enum -
Field Summary
FieldsFields inherited from class com.simibubi.create.foundation.tileEntity.TileEntityBehaviour
tileEntity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanDrainInfinitely(net.minecraft.world.level.material.Fluid fluid) protected intcomparePositions(FluidManipulationBehaviour.BlockPosEntry e1, FluidManipulationBehaviour.BlockPosEntry e2) voidvoiddestroy()protected booleanprotected intprotected intmaxRange()protected voidplayEffect(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.Fluid fluid, boolean fillSound) voidread(net.minecraft.nbt.CompoundTag nbt, boolean clientPacket) voidreset()protected voidprotected net.minecraft.world.level.material.Fluidsearch(net.minecraft.world.level.material.Fluid fluid, List<FluidManipulationBehaviour.BlockPosEntry> frontier, Set<net.minecraft.core.BlockPos> visited, BiConsumer<net.minecraft.core.BlockPos, Integer> add, boolean searchDownward) protected intprotected intprotected intvoidwrite(net.minecraft.nbt.CompoundTag nbt, boolean clientPacket) Methods inherited from class com.simibubi.create.foundation.tileEntity.TileEntityBehaviour
destroy, get, get, getPos, getRequiredItems, getType, getWorld, initialize, isSafeNBT, lazyTick, onBlockChanged, onNeighborChanged, remove, setLazyTickRate, tick
-
Field Details
-
counterpartActed
protected boolean counterpartActed
-
-
Constructor Details
-
FluidManipulationBehaviour
-
-
Method Details
-
counterpartActed
public void counterpartActed() -
validationTimer
protected int validationTimer() -
setValidationTimer
protected int setValidationTimer() -
setLongValidationTimer
protected int setLongValidationTimer() -
maxRange
protected int maxRange() -
maxBlocks
protected int maxBlocks() -
fillInfinite
protected boolean fillInfinite() -
reset
public void reset() -
destroy
public void destroy()- Overrides:
destroyin classTileEntityBehaviour
-
scheduleUpdatesInAffectedArea
protected void scheduleUpdatesInAffectedArea() -
comparePositions
protected int comparePositions(FluidManipulationBehaviour.BlockPosEntry e1, FluidManipulationBehaviour.BlockPosEntry e2) -
search
protected net.minecraft.world.level.material.Fluid search(net.minecraft.world.level.material.Fluid fluid, List<FluidManipulationBehaviour.BlockPosEntry> frontier, Set<net.minecraft.core.BlockPos> visited, BiConsumer<net.minecraft.core.BlockPos, Integer> add, boolean searchDownward) -
playEffect
protected void playEffect(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.Fluid fluid, boolean fillSound) -
canDrainInfinitely
protected boolean canDrainInfinitely(net.minecraft.world.level.material.Fluid fluid) -
write
public void write(net.minecraft.nbt.CompoundTag nbt, boolean clientPacket) - Overrides:
writein classTileEntityBehaviour
-
read
public void read(net.minecraft.nbt.CompoundTag nbt, boolean clientPacket) - Overrides:
readin classTileEntityBehaviour
-