public abstract class BlockSpoutingBehaviour
extends java.lang.Object
| Constructor and Description |
|---|
BlockSpoutingBehaviour() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCustomSpoutInteraction(net.minecraft.util.ResourceLocation resourceLocation,
BlockSpoutingBehaviour movementBehaviour) |
abstract int |
fillBlock(net.minecraft.world.World world,
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) |
static void |
forEach(java.util.function.Consumer<? super BlockSpoutingBehaviour> accept) |
static void |
register() |
public static void addCustomSpoutInteraction(net.minecraft.util.ResourceLocation resourceLocation,
BlockSpoutingBehaviour movementBehaviour)
public static void forEach(java.util.function.Consumer<? super BlockSpoutingBehaviour> accept)
public abstract int fillBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
SpoutTileEntity spout,
net.minecraftforge.fluids.FluidStack availableFluid,
boolean simulate)
world - pos - of the affected blockspout - availableFluid - do not modify, return the amount to be subtracted insteadsimulate - whether the spout is testing or actually performing this behaviourpublic static void register()