promotional bannermobile promotional banner

Lib Block Attributes

Pure library mod: used by other mods to allow for exchanging items and fluids between blocks.
Back to Files

[1.14.2/1.14.3] v0.4.9

File namelibblockattributes-all-0.4.9.jar
Uploader
AlexIILAlexIIL
Uploaded
Jul 6, 2019
Downloads
1.7K
Size
321.7 KB
Mod Loaders
Fabric
File ID
2736488
Type
R
Release
Supported game versions
  • 1.14.3
  • 1.14.2

Curse Maven Snippet

Fabric

modImplementation "curse.maven:libblockattributes-317995:2736488"

Learn more about Curse Maven

What's new

Changes:

  • Added a new interface "Convertible", with a single method "<T> T convertTo(Class<T> clazz)"
    • AttributeList.offer() now uses this to attempt to convert the given object into the desired one.
    • This is primarily used to fix the bug below.
  • Deprecated FixedItemInvView.offerSelfAsAttribute and FixedFluidInvView.offerSelfAsAttribute because they now implement the convertible interface.

Bug Fixes:

  • Fixed SimpleFixedItemInvView.offerSelfAsAttribute adding two instances of ItemTransferable rather than just one.