Class SpoutCasting
java.lang.Object
com.simibubi.create.api.behaviour.BlockSpoutingBehaviour
com.simibubi.create.compat.tconstruct.SpoutCasting
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfillBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, SpoutTileEntity spout, net.minecraftforge.fluids.FluidStack availableFluid, boolean simulate) While idle, Spouts will call this every tick with simulate == true
When fillBlock returns > 0, the Spout will start its animation cycle
During this animation cycle, fillBlock is called once again with simulate == false but only on the relevant SpoutingBehaviour
When fillBlock returns > 0 once again, the Spout will drain its content by the returned amount of units
Perform any other side-effects in this method
This method is called server-side only (except in ponder)Methods inherited from class com.simibubi.create.api.behaviour.BlockSpoutingBehaviour
addCustomSpoutInteraction, forEach, register
-
Constructor Details
-
SpoutCasting
public SpoutCasting()
-
-
Method Details
-
fillBlock
public int fillBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, SpoutTileEntity spout, net.minecraftforge.fluids.FluidStack availableFluid, boolean simulate) Description copied from class:BlockSpoutingBehaviourWhile idle, Spouts will call this every tick with simulate == true
When fillBlock returns > 0, the Spout will start its animation cycle
During this animation cycle, fillBlock is called once again with simulate == false but only on the relevant SpoutingBehaviour
When fillBlock returns > 0 once again, the Spout will drain its content by the returned amount of units
Perform any other side-effects in this method
This method is called server-side only (except in ponder)- Specified by:
fillBlockin classBlockSpoutingBehaviourpos- of the affected blockavailableFluid- do not modify, return the amount to be subtracted insteadsimulate- whether the spout is testing or actually performing this behaviour- Returns:
- amount filled into the block, 0 to idle/cancel
-