File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
java/net/darkhax/bookshelf/mixin/util/random Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1+ package net .darkhax .bookshelf .mixin .util .random ;
2+
3+ import com .google .common .collect .ImmutableList ;
4+ import net .minecraft .util .random .WeightedRandomList ;
5+ import org .spongepowered .asm .mixin .Mixin ;
6+ import org .spongepowered .asm .mixin .gen .Accessor ;
7+
8+ @ Mixin (WeightedRandomList .class )
9+ public interface AccessorWeightedRandomList <E > {
10+
11+ @ Accessor ("totalWeight" )
12+ int bookshelf$getTotalWeight ();
13+
14+ @ Accessor ("items" )
15+ ImmutableList <E > bookshelf$getEntries ();
16+ }
Original file line number Diff line number Diff line change 1717 " item.AccessorItem" ,
1818 " item.AccessorItemCooldowns" ,
1919 " item.crafting.AccessorShapedRecipe" ,
20- " loot.MixinLootItemKilledByPlayerCondition"
20+ " loot.MixinLootItemKilledByPlayerCondition" ,
21+ " util.random.AccessorWeightedRandomList"
2122 ],
2223 "client" : [
2324 " client.AccessorFontManager" ,
You can’t perform that action at this time.
0 commit comments