MixinPlayerScreenHandler
Mixin for PlayerScreenHandler to add wearable slot support.
Overview
Mixin to inject Wearable slots into the player's inventory screen handler.
This mixin adds to new slots for rings to the player's screen handler, allowing players to equip accessories in these slots.
Mixin Tag
@Mixin(PlayerScreenHandler.class)
Method
Injects Wearable slots into the player's inventory screen handler, after the constructor has finished executing.
@param ci - the callback info for the injection
@param player - the player entity for which the screen hander is being created, captured as a local variable from the constructr.
injectWearableSlots()
@Inject(method = "<init>", at = @At("RETURN"))
private void injectWearableSlots(CallbackInfo ci, @Local(argsOnly = true) PlayerEntity player) {}
