Class EnchantRenderStateFactory
java.lang.Object
johnsmith.enchantingoverhauled.menu.enchant.controller.EnchantRenderStateFactory
A factory utility that translates pure functional backend
EnchantContext records
into purely visual frontend EnchantRenderState records for the UI to consume.
Decouples the UI widgets from needing to understand enchantment conflict resolution logic, isolating the view from the model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnchantRenderStateReturns a blank placeholder state representing a visually empty slot with no valid target or available options.static EnchantRenderStatecreateFrom(EnchantContext context) Evaluates a backend context and transforms it into a visual render state.
-
Constructor Details
-
EnchantRenderStateFactory
public EnchantRenderStateFactory()
-
-
Method Details
-
buildEmptyState
Returns a blank placeholder state representing a visually empty slot with no valid target or available options.