Class EnchantWidgetFactory
java.lang.Object
johnsmith.enchantingoverhauled.client.gui.widget.enchant.EnchantWidgetFactory
A simple factory utility that translates an evaluated
EnchantRenderState
into the corresponding concrete EnchantWidget subclass implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnchantWidgetcreateFrom(int x, int y, EnchantRenderState state, int texIndex, boolean usePlainBackground, Runnable onPress) Instantiates the correct EnchantmentWidget object based on the state's classification.
-
Constructor Details
-
EnchantWidgetFactory
public EnchantWidgetFactory()
-
-
Method Details