public class SpoutCasting extends BlockSpoutingBehaviour
| Constructor and Description |
|---|
SpoutCasting() |
| Modifier and Type | Method and Description |
|---|---|
int |
fillBlock(net.minecraft.world.World level,
net.minecraft.util.math.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) |
addCustomSpoutInteraction, forEach, registerpublic int fillBlock(net.minecraft.world.World level,
net.minecraft.util.math.BlockPos pos,
SpoutTileEntity spout,
net.minecraftforge.fluids.FluidStack availableFluid,
boolean simulate)
BlockSpoutingBehaviourfillBlock in class BlockSpoutingBehaviourpos - of the affected blockavailableFluid - do not modify, return the amount to be subtracted insteadsimulate - whether the spout is testing or actually performing this behaviour