java.lang.Object
johnsmith.enchantingoverhauled.mixin.entity.player.PlayerMixin

public class PlayerMixin extends Object
Mixin to Player to adjust core mechanics related to experience and tool efficiency.

This class implements:

  • Efficiency Scaling: Adjusts the calculation of the Efficiency enchantment boost to remain viable even if the maximum enchantment level is capped at 1 or 2.
  • XP Curve: Flattens or modifies the experience requirement per level to support the mod's new progression system (often linearizing it).
  • Level Cap: Enforces a hard limit on the player's experience level.
  • Field Details

    • experienceLevel

      public int experienceLevel
  • Constructor Details

    • PlayerMixin

      public PlayerMixin()