forked from CaffeineMC/lithium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimized ItemEntity stacking using item count categorization
- Loading branch information
Showing
8 changed files
with
381 additions
and
39 deletions.
There are no files selected for viewing
339 changes: 333 additions & 6 deletions
339
src/main/java/me/jellysquid/mods/lithium/common/entity/item/ItemEntityCategorizingList.java
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 6 additions & 1 deletion
7
src/main/java/me/jellysquid/mods/lithium/common/entity/item/ItemStackSubscriber.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
package me.jellysquid.mods.lithium.common.entity.item; | ||
|
||
import net.minecraft.entity.ItemEntity; | ||
import net.minecraft.item.ItemStack; | ||
|
||
public interface ItemStackSubscriber { | ||
|
||
void lithium$notifyBeforeCountChange(int slot, int newCount); | ||
void lithium$notifyBeforeCountChange(ItemStack itemStack, int slot, int newCount); | ||
|
||
default void lithium$notifyItemEntityStackSwap(ItemEntity itemEntity, ItemStack oldStack) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters