public class DispenseFluidContainer extends DefaultDispenseItemBehavior
Modifier and Type | Field and Description |
---|---|
private DefaultDispenseItemBehavior |
dispenseBehavior |
private static DispenseFluidContainer |
INSTANCE |
NOOP
Modifier | Constructor and Description |
---|---|
private |
DispenseFluidContainer() |
Modifier and Type | Method and Description |
---|---|
ItemStack |
dispenseStack(IBlockSource source,
ItemStack stack) |
private ItemStack |
dumpContainer(IBlockSource source,
ItemStack stack)
Drains a filled container and places the fluid in front of the Dispenser.
|
private ItemStack |
fillContainer(IBlockSource source,
ItemStack stack)
Picks up fluid in front of a Dispenser and fills a container with it.
|
static DispenseFluidContainer |
getInstance() |
dispense, doDispense, playDispenseSound, spawnDispenseParticles
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
private static final DispenseFluidContainer INSTANCE
private final DefaultDispenseItemBehavior dispenseBehavior
public static DispenseFluidContainer getInstance()
@Nonnull public ItemStack dispenseStack(@Nonnull IBlockSource source, @Nonnull ItemStack stack)
dispenseStack
in class DefaultDispenseItemBehavior
@Nonnull private ItemStack fillContainer(@Nonnull IBlockSource source, @Nonnull ItemStack stack)
@Nonnull private ItemStack dumpContainer(IBlockSource source, @Nonnull ItemStack stack)