Renames the Ref methods that have the same name and parameters as a method of the vanilla class they're mixed into, so saturnclient's mixins can implement them explicitly:
WindowRef: getWidth/getHeight → getWindowWidth/getWindowHeight. With Mojang's names, Window.getWidth() is the framebuffer's width, so the old name would also have meant the wrong thing.
Callers in ImageTexture and ArmorDisplayMod are updated. The saturnclient side (explicit implementations in the mixins, part of the move to Mojang mappings for saturnclient#39) follows once this is merged.
Renames the Ref methods that have the same name and parameters as a method of the vanilla class they're mixed into, so saturnclient's mixins can implement them explicitly:
- `WindowRef`: `getWidth`/`getHeight` → `getWindowWidth`/`getWindowHeight`. With Mojang's names, `Window.getWidth()` is the framebuffer's width, so the old name would also have meant the wrong thing.
- `ItemStackRef`: `isEmpty`/`getMaxDamage`/`getDamage` → `isEmptyStack`/`getMaxItemDamage`/`getItemDamage`.
Callers in `ImageTexture` and `ArmorDisplayMod` are updated. The saturnclient side (explicit implementations in the mixins, part of the move to Mojang mappings for saturnclient#39) follows once this is merged.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
WindowRef.getWidth/getHeight and ItemStackRef.isEmpty/getMaxDamage
match methods of the classes they're mixed into, so the mixins can't
implement them explicitly. With Mojang's names, Window.getWidth is
also the framebuffer's width rather than the window's. They're now
getWindowWidth/getWindowHeight and isEmptyStack/getMaxItemDamage
(with getItemDamage to match).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Renames the Ref methods that have the same name and parameters as a method of the vanilla class they're mixed into, so saturnclient's mixins can implement them explicitly:
WindowRef:getWidth/getHeight→getWindowWidth/getWindowHeight. With Mojang's names,Window.getWidth()is the framebuffer's width, so the old name would also have meant the wrong thing.ItemStackRef:isEmpty/getMaxDamage/getDamage→isEmptyStack/getMaxItemDamage/getItemDamage.Callers in
ImageTextureandArmorDisplayModare updated. The saturnclient side (explicit implementations in the mixins, part of the move to Mojang mappings for saturnclient#39) follows once this is merged.🤖 Generated with Claude Code