File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
modules/fabric-1.21.6/src/main/java/io/chaws/expandedenderchest/mixin Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 33import com .mojang .authlib .GameProfile ;
44import org .spongepowered .asm .mixin .Mixin ;
55import org .spongepowered .asm .mixin .Shadow ;
6+ import org .spongepowered .asm .mixin .Unique ;
67import org .spongepowered .asm .mixin .injection .At ;
78import org .spongepowered .asm .mixin .injection .Inject ;
89import org .spongepowered .asm .mixin .injection .callback .CallbackInfo ;
1112import net .minecraft .inventory .EnderChestInventory ;
1213import net .minecraft .item .ItemStack ;
1314import net .minecraft .util .collection .DefaultedList ;
14- import net .minecraft .util .math .BlockPos ;
1515import net .minecraft .world .World ;
1616
1717@ Mixin (PlayerEntity .class )
1818public abstract class PlayerEntityMixin {
19+ @ Unique
1920 private static final int EXPANDED_ENDERCHEST_SIZE = 9 * 6 ;
2021
2122 @ Shadow
2223 public abstract EnderChestInventory getEnderChestInventory ();
2324
2425 @ Inject (method = "<init>" , at = @ At (value = "RETURN" ))
2526 private void expandEnderChest (
26- final World world ,
27- final BlockPos pos ,
28- final float yaw ,
29- final GameProfile gameProfile ,
30- final CallbackInfo ci
27+ World world ,
28+ GameProfile profile ,
29+ CallbackInfo ci
3130 ) {
3231 var accessor = (SimpleInventoryAccessor )getEnderChestInventory ();
3332 accessor .setSize (EXPANDED_ENDERCHEST_SIZE );
You can’t perform that action at this time.
0 commit comments