You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running the latest beta/release version of BlockUI for my Minecraft version.
I am also running the latest versions of other mods that are part of my problem.
public <T, C> TgetCapability(BlockCapability<T, C> cap, BlockPospos, Ccontext)
{
// Noop
returnnull;
}
@Override
@Nullable
public <T, C> TgetCapability(BlockCapability<T, C> cap,
BlockPospos,
@NullableBlockStatestate,
@NullableBlockEntityblockEntity,
Ccontext)
{
// Noop
returnnull;
}
Expected Behavior
Structurize expects that they are, in order to produce the correct resource list from a block that is not a Container but does have an IItemHandler capability (i.e. most modded storage blocks, including MineColonies racks).
Reproduction Steps
Place a rack with some items.
Scan it with Structurize.
With MineColonies loaded, build and Assign to Builder.
Observe that only the rack is listed in the required items.
When the builder builds it, it contains the items anyway.
Logs
n/a
Anything else?
This is not an issue in 1.20 because that doesn't use FakeLevel, and some common cases are read directly from NBT instead of querying item handlers, both of which were changed in 1.21.
Footer
Viewers
Add a thumbs-up to the bug report if you are also affected. This helps the bug report become more visible to the team and doesn't clutter the comments.
Add a comment if you have any insights or background information that isn't already part of the conversation.
The text was updated successfully, but these errors were encountered:
I mean I haven't done caps back then because the fakelevel should be as immutable as possible, but feel free to provide some kind of PR enabling them. Impl note: impl should be in fakeLevel, other classes like fakeChunk should redirect back to fakeLevel
tbf most inventories have the capability on the blockentity not on the block itself, those redirects are mostly a neoforge thing to support block capabilities. We could directly query the blockentity's capability in most cases
Is there an existing issue for this?
Are you using the latest BlockUI Version?
I am also running the latest versions of other mods that are part of my problem.
Minecraft Version
1.21
BlockUI Version
1.0.192-1.21.1-snapshot
Current Behavior
Capabilities are not implemented in FakeLevel.
BlockUI/src/main/java/com/ldtteam/common/fakelevel/FakeLevel.java
Lines 810 to 828 in cc8ed88
Expected Behavior
Structurize expects that they are, in order to produce the correct resource list from a block that is not a
Container
but does have anIItemHandler
capability (i.e. most modded storage blocks, including MineColonies racks).Reproduction Steps
Logs
n/a
Anything else?
This is not an issue in 1.20 because that doesn't use
FakeLevel
, and some common cases are read directly from NBT instead of querying item handlers, both of which were changed in 1.21.Footer
Viewers
The text was updated successfully, but these errors were encountered: