ForgePatch/src/main/java/net/minecraftforge/fluids
David Quintana 600e68cace
Clarify in the LazyOptional which methods carry the lazyness over to the returned value and which don't. (#6750)
For consistency, this meant making a few changes:
- Renamed the existing lazy mapping method to lazyMap, to indicate that it doesn't run the mapping immediately.
- Added a new implementation of map(), which returns Optional<T>, and resolves the value in the process.
- Changed filter() to return Optional, since there's no way to filter lazily.
- Added a new method resolve(), which helps convert the custom LazyOptional class into a standard Optional, for use
with library methods that expect Optional<T>.

* Update License headers.
2020-08-25 03:11:28 +02:00
..
capability Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
DispenseFluidContainer.java Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
FluidActionResult.java Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
FluidAttributes.java Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
FluidStack.java Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
FluidUtil.java Clarify in the LazyOptional which methods carry the lazyness over to the returned value and which don't. (#6750) 2020-08-25 03:11:28 +02:00
ForgeFlowingFluid.java Initial 1.16.2 Update 2020-08-13 00:35:08 -07:00
IFluidBlock.java Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
IFluidTank.java Update copyright year to 2020. 2020-07-02 19:49:11 +02:00