Class ItemStackRenderStateMixin

java.lang.Object
johnsmith.enchantmentcore.mixin.client.render.ItemStackRenderStateMixin
All Implemented Interfaces:
ItemRenderStateAlphaAccessor

public class ItemStackRenderStateMixin extends Object implements ItemRenderStateAlphaAccessor
Injects alpha state storage and node collector wrapping into the item render state. Implements ItemRenderStateAlphaAccessor to manage visual transparency limits.
  • Constructor Details

    • ItemStackRenderStateMixin

      public ItemStackRenderStateMixin()
  • Method Details

    • enchantment_core$setAlpha

      public void enchantment_core$setAlpha(float alpha)
      Sets the internal alpha multiplier for the current render state.
      Specified by:
      enchantment_core$setAlpha in interface ItemRenderStateAlphaAccessor
      Parameters:
      alpha - The alpha multiplier to apply.
    • enchantment_core$getAlpha

      public float enchantment_core$getAlpha()
      Retrieves the stored alpha multiplier for the current render state.
      Specified by:
      enchantment_core$getAlpha in interface ItemRenderStateAlphaAccessor
      Returns:
      The stored alpha multiplier.