ForgePatch/src/main/java/net/minecraftforge/items
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
..
wrapper Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
CapabilityItemHandler.java Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
IItemHandler.java Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
IItemHandlerModifiable.java Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
ItemHandlerHelper.java Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
ItemStackHandler.java Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
SlotItemHandler.java Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
VanillaHopperItemHandler.java Update copyright year to 2020. 2020-07-02 19:49:11 +02:00
VanillaInventoryCodeHooks.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