Class SpoutCasting

java.lang.Object
com.simibubi.create.api.behaviour.BlockSpoutingBehaviour
com.simibubi.create.compat.tconstruct.SpoutCasting

public class SpoutCasting extends BlockSpoutingBehaviour
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    fillBlock(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: BlockSpoutingBehaviour
      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)
      Specified by:
      fillBlock in class BlockSpoutingBehaviour
      pos - of the affected block
      availableFluid - do not modify, return the amount to be subtracted instead
      simulate - whether the spout is testing or actually performing this behaviour
      Returns:
      amount filled into the block, 0 to idle/cancel