Class FluidManipulationBehaviour
java.lang.Object
com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
com.simibubi.create.content.fluids.transfer.FluidManipulationBehaviour
- Direct Known Subclasses:
FluidDrainingBehaviour,FluidFillingBehaviour
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumstatic class -
Field Summary
FieldsFields inherited from class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
blockEntity -
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()Block destroyed or removed.protected booleanbooleanprotected 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, net.minecraft.core.HolderLookup.Provider registries, 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, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Methods inherited from class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
get, get, getPos, getRequiredItems, getType, getWorld, initialize, isSafeNBT, lazyTick, onBlockChanged, onNeighborChanged, setLazyTickRate, tick, unload, writeSafe
-
Field Details
-
counterpartActed
protected boolean counterpartActed
-
-
Constructor Details
-
FluidManipulationBehaviour
-
-
Method Details
-
isInfinite
public boolean isInfinite() -
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()Description copied from class:BlockEntityBehaviourBlock destroyed or removed. Requires block to call ITE::onRemove- Overrides:
destroyin classBlockEntityBehaviour
-
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) throws FluidManipulationBehaviour.ChunkNotLoadedException -
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, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
writein classBlockEntityBehaviour
-
read
public void read(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
readin classBlockEntityBehaviour
-