Package net.minecraftforge.fluids
Class DispenseFluidContainer
java.lang.Object
net.minecraft.core.dispenser.DefaultDispenseItemBehavior
net.minecraftforge.fluids.DispenseFluidContainer
- All Implemented Interfaces:
DispenseItemBehavior
Fills or drains a fluid container item using a Dispenser.
-
Field Summary
Modifier and TypeFieldDescriptionprivate DefaultDispenseItemBehavior
private static DispenseFluidContainer
Fields inherited from interface net.minecraft.core.dispenser.DispenseItemBehavior
LOGGER, NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate ItemStack
dumpContainer(BlockSource source, ItemStack stack)
Drains a filled container and places the fluid in front of the Dispenser.execute(BlockSource source, ItemStack stack)
private ItemStack
fillContainer(BlockSource 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.core.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.
-