File Details
v0.8.7 [1.16.2/1.16.3/1.16.4/1.16.5]
- R
- Feb 27, 2021
- 436.78 KB
- 22.1K
- 1.16.5+3
- Fabric
File Name
libblockattributes-all-0.8.7.jar
Supported Versions
- 1.16.5
- 1.16.4
- 1.16.3
- 1.16.2
Curse Maven Snippet
Changes:
-
Added "lba.misc.OpenWrapper", which is meant to be the opposite of Convertible.
- This is used in cases where an object really is a "simple wrapper" from one type to another
-
This has a single method: "Object getWrapped()".
- Note that this may return null if an implementation can't expose the inner object without also exposing more details than they wish.
-
All of LBA's base wrapper implementations implement this:
- GroupedItemInvViewFixedWrapper (returned by FixedItemInvView.getGroupedInv())
- GroupedFluidInvViewFixedWrapper (returned by FixedFluidInvView.getGroupedInv())
- FixedInventoryViewVanillaWrapper (turns a vanilla Inventory into an LBA FixedItemInvView)
- InventoryFixedWrapper (turns an LBA FixedItemInv into a vanilla Inventory)
- None of LBA's mod-compat implementations implement this.
-
Added "lba.misc.Combined", which is meant to be the opposite of AttributeCombiner.
- This is used in cases where an object is a "simpler combiner" of a list of objects (of the same type)
-
This has two methods:
- "int getSubObjectCount()": Returns the number of objects that this combines.
-
"Object getSubObject(int index)": Returns the sub-object at that particular index.
- Unlike "OpenWrapper" this must not return null, unless the index is invalid.
- However getSubObjectCount() may return 0, or -1 if the sub-objects cannot be exposed normally.
- There's also a new abstract class to make implementing these simpler: "lba.misc.AbstractCombined".
- All of LBA's base combined implementations implement this.