-
Recently Browsing
No registered users viewing this page.
-
Posts
-
By diesieben07 · Posted
Then you need an IItemHandler that combines the default slots (call super.getCapability to get them) and your own. -
To get my itemhandler.i need to get default living entity slots and my custom slots
-
By diesieben07 · Posted
That's an infinite loop. Why are you overriding getCapability at all? -
Like this public <T> LazyOptional<T> getCapability(@Nonnull Capability<T> cap, @Nullable Direction side) { if(cap == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) { return getCapability(cap,side).cast(); } return super.getCapability(cap, side); }
-
By diesieben07 · Posted
Call getCapability.
-
-
Topics
-
Who's Online (See full list)