public class DispenseFluidContainer extends BehaviorDefaultDispenseItem
Modifier and Type | Field and Description |
---|---|
private BehaviorDefaultDispenseItem |
dispenseBehavior |
private static DispenseFluidContainer |
INSTANCE |
DEFAULT_BEHAVIOR
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
private static final DispenseFluidContainer INSTANCE
private final BehaviorDefaultDispenseItem dispenseBehavior
public static DispenseFluidContainer getInstance()
@Nonnull public ItemStack dispenseStack(@Nonnull IBlockSource source, @Nonnull ItemStack stack)
dispenseStack
in class BehaviorDefaultDispenseItem
@Nonnull private ItemStack fillContainer(@Nonnull IBlockSource source, @Nonnull ItemStack stack)
@Nonnull private ItemStack dumpContainer(IBlockSource source, @Nonnull ItemStack stack)