Class ItemStackRenderStateMixin
java.lang.Object
johnsmith.enchantmentcore.mixin.client.render.ItemStackRenderStateMixin
- All Implemented Interfaces:
ItemRenderStateAlphaAccessor
Injects alpha state storage and node collector wrapping into the item render state.
Implements
ItemRenderStateAlphaAccessor to manage visual transparency limits.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatRetrieves the stored alpha multiplier for the current render state.voidenchantment_core$setAlpha(float alpha) Sets the internal alpha multiplier for the current render state.
-
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$setAlphain interfaceItemRenderStateAlphaAccessor- 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$getAlphain interfaceItemRenderStateAlphaAccessor- Returns:
- The stored alpha multiplier.
-