Package net.minecraftforge.fluids
Class DispenseFluidContainer
java.lang.Object
net.minecraft.dispenser.DefaultDispenseItemBehavior
net.minecraftforge.fluids.DispenseFluidContainer
- All Implemented Interfaces:
IDispenseItemBehavior
Fills or drains a fluid container item using a Dispenser.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DefaultDispenseItemBehavior
private static final DispenseFluidContainer
Fields inherited from interface net.minecraft.dispenser.IDispenseItemBehavior
LOGGER, NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate ItemStack
dumpContainer
(IBlockSource source, ItemStack stack) Drains a filled container and places the fluid in front of the Dispenser.execute
(IBlockSource source, ItemStack stack) private ItemStack
fillContainer
(IBlockSource source, ItemStack stack) Picks up fluid in front of a Dispenser and fills a container with it.static DispenseFluidContainer
Methods inherited from class net.minecraft.dispenser.DefaultDispenseItemBehavior
dispense, playAnimation, playSound, spawnItem
-
Field Details
-
INSTANCE
-
dispenseBehavior
-
-
Constructor Details
-
DispenseFluidContainer
private DispenseFluidContainer()
-
-
Method Details
-
getInstance
-
execute
- Overrides:
execute
in classDefaultDispenseItemBehavior
-
fillContainer
Picks up fluid in front of a Dispenser and fills a container with it. -
dumpContainer
Drains a filled container and places the fluid in front of the Dispenser.
-