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 SummaryFieldsModifier and TypeFieldDescriptionprivate final DefaultDispenseItemBehaviorprivate static final DispenseFluidContainerFields inherited from interface net.minecraft.core.dispenser.DispenseItemBehaviorLOGGER, NOOP
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate @NotNull ItemStackdumpContainer(BlockSource source, @NotNull ItemStack stack) Drains a filled container and places the fluid in front of the Dispenser.@NotNull ItemStackexecute(@NotNull BlockSource source, @NotNull ItemStack stack) private @NotNull ItemStackfillContainer(@NotNull BlockSource source, @NotNull ItemStack stack) Picks up fluid in front of a Dispenser and fills a container with it.static DispenseFluidContainerMethods inherited from class net.minecraft.core.dispenser.DefaultDispenseItemBehaviordispense, playAnimation, playSound, spawnItem
- 
Field Details- 
INSTANCE
- 
dispenseBehavior
 
- 
- 
Constructor Details- 
DispenseFluidContainerprivate DispenseFluidContainer()
 
- 
- 
Method Details- 
getInstance
- 
execute@NotNull public @NotNull ItemStack execute(@NotNull @NotNull BlockSource source, @NotNull @NotNull ItemStack stack) - Overrides:
- executein class- DefaultDispenseItemBehavior
 
- 
fillContainer@NotNull private @NotNull ItemStack fillContainer(@NotNull @NotNull BlockSource source, @NotNull @NotNull ItemStack stack) Picks up fluid in front of a Dispenser and fills a container with it.
- 
dumpContainer@NotNull private @NotNull ItemStack dumpContainer(BlockSource source, @NotNull @NotNull ItemStack stack) Drains a filled container and places the fluid in front of the Dispenser.
 
-