Class EnchantmentMixin
java.lang.Object
johnsmith.enchantmentcore.mixin.enchantment.EnchantmentMixin
- All Implemented Interfaces:
ConfigurableEnchantmentDefinition
Mixin targeting the base Enchantment class.
Implements the ConfigurableEnchantmentDefinition interface to hold configuration wrapper state.
Intercepts core property accessors to inject dynamic runtime configuration values.
Rebuilds the EnchantmentDefinition record dynamically when configuration state deviates from the vanilla baseline.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the dynamic configuration wrapper controlling the enchantment's anvil combination cost.Retrieves the dynamic configuration wrapper controlling the enchantment's maximum enchanting table cost.Retrieves the dynamic configuration wrapper controlling the enchantment's maximum level.Retrieves the dynamic configuration wrapper controlling the enchantment's minimum enchanting table cost.Retrieves the dynamic configuration wrapper controlling the primary items for this enchantment in the enchanting table.Retrieves the dynamic configuration wrapper controlling the active equipment slot groups for this enchantment.Retrieves the dynamic configuration wrapper controlling the set of items compatible with this enchantment.Retrieves the dynamic configuration wrapper controlling the enchantment's rarity weight.voidAttaches the dynamic configuration wrapper controlling the enchantment's anvil combination cost.voidAttaches the dynamic configuration wrapper controlling the enchantment's maximum enchanting table cost.voidAttaches the dynamic configuration wrapper controlling the enchantment's maximum level.voidAttaches the dynamic configuration wrapper controlling the enchantment's minimum enchanting table cost.voidAttaches the dynamic configuration wrapper controlling the primary items for this enchantment in the enchanting table.voidAttaches the dynamic configuration wrapper controlling the active equipment slot groups for this enchantment.voidAttaches the dynamic configuration wrapper controlling the set of items compatible with this enchantment.voidAttaches the dynamic configuration wrapper controlling the enchantment's rarity weight.
-
Constructor Details
-
EnchantmentMixin
public EnchantmentMixin()
-
-
Method Details
-
enchantment_core$setMaxLevelWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionAttaches the dynamic configuration wrapper controlling the enchantment's maximum level.- Specified by:
enchantment_core$setMaxLevelWrapperin interfaceConfigurableEnchantmentDefinition- Parameters:
wrapper- TheIntPropertyWrapperformax_level.
-
enchantment_core$getMaxLevelWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionRetrieves the dynamic configuration wrapper controlling the enchantment's maximum level.- Specified by:
enchantment_core$getMaxLevelWrapperin interfaceConfigurableEnchantmentDefinition- Returns:
- The attached
IntPropertyWrapper, ornullif not configured.
-
enchantment_core$setWeightWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionAttaches the dynamic configuration wrapper controlling the enchantment's rarity weight.- Specified by:
enchantment_core$setWeightWrapperin interfaceConfigurableEnchantmentDefinition- Parameters:
wrapper- TheIntPropertyWrapperforweight.
-
enchantment_core$getWeightWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionRetrieves the dynamic configuration wrapper controlling the enchantment's rarity weight.- Specified by:
enchantment_core$getWeightWrapperin interfaceConfigurableEnchantmentDefinition- Returns:
- The attached
IntPropertyWrapper, ornullif not configured.
-
enchantment_core$setAnvilCostWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionAttaches the dynamic configuration wrapper controlling the enchantment's anvil combination cost.- Specified by:
enchantment_core$setAnvilCostWrapperin interfaceConfigurableEnchantmentDefinition- Parameters:
wrapper- TheIntPropertyWrapperforanvil_cost.
-
enchantment_core$getAnvilCostWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionRetrieves the dynamic configuration wrapper controlling the enchantment's anvil combination cost.- Specified by:
enchantment_core$getAnvilCostWrapperin interfaceConfigurableEnchantmentDefinition- Returns:
- The attached
IntPropertyWrapper, ornullif not configured.
-
enchantment_core$setMinCostWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionAttaches the dynamic configuration wrapper controlling the enchantment's minimum enchanting table cost.- Specified by:
enchantment_core$setMinCostWrapperin interfaceConfigurableEnchantmentDefinition- Parameters:
wrapper- TheCostPropertyWrapperformin_cost.
-
enchantment_core$getMinCostWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionRetrieves the dynamic configuration wrapper controlling the enchantment's minimum enchanting table cost.- Specified by:
enchantment_core$getMinCostWrapperin interfaceConfigurableEnchantmentDefinition- Returns:
- The attached
CostPropertyWrapper, ornullif not configured.
-
enchantment_core$setMaxCostWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionAttaches the dynamic configuration wrapper controlling the enchantment's maximum enchanting table cost.- Specified by:
enchantment_core$setMaxCostWrapperin interfaceConfigurableEnchantmentDefinition- Parameters:
wrapper- TheCostPropertyWrapperformax_cost.
-
enchantment_core$getMaxCostWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionRetrieves the dynamic configuration wrapper controlling the enchantment's maximum enchanting table cost.- Specified by:
enchantment_core$getMaxCostWrapperin interfaceConfigurableEnchantmentDefinition- Returns:
- The attached
CostPropertyWrapper, ornullif not configured.
-
enchantment_core$setSupportedItemsWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionAttaches the dynamic configuration wrapper controlling the set of items compatible with this enchantment.- Specified by:
enchantment_core$setSupportedItemsWrapperin interfaceConfigurableEnchantmentDefinition- Parameters:
wrapper- TheItemSetPropertyWrapperforsupported_items.
-
enchantment_core$getSupportedItemsWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionRetrieves the dynamic configuration wrapper controlling the set of items compatible with this enchantment.- Specified by:
enchantment_core$getSupportedItemsWrapperin interfaceConfigurableEnchantmentDefinition- Returns:
- The attached
ItemSetPropertyWrapper, ornullif not configured.
-
enchantment_core$setPrimaryItemsWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionAttaches the dynamic configuration wrapper controlling the primary items for this enchantment in the enchanting table.- Specified by:
enchantment_core$setPrimaryItemsWrapperin interfaceConfigurableEnchantmentDefinition- Parameters:
wrapper- TheItemSetPropertyWrapperforprimary_items.
-
enchantment_core$getPrimaryItemsWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionRetrieves the dynamic configuration wrapper controlling the primary items for this enchantment in the enchanting table.- Specified by:
enchantment_core$getPrimaryItemsWrapperin interfaceConfigurableEnchantmentDefinition- Returns:
- The attached
ItemSetPropertyWrapper, ornullif not configured.
-
enchantment_core$setSlotsWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionAttaches the dynamic configuration wrapper controlling the active equipment slot groups for this enchantment.- Specified by:
enchantment_core$setSlotsWrapperin interfaceConfigurableEnchantmentDefinition- Parameters:
wrapper- TheSlotListPropertyWrapperforslots.
-
enchantment_core$getSlotsWrapper
Description copied from interface:ConfigurableEnchantmentDefinitionRetrieves the dynamic configuration wrapper controlling the active equipment slot groups for this enchantment.- Specified by:
enchantment_core$getSlotsWrapperin interfaceConfigurableEnchantmentDefinition- Returns:
- The attached
SlotListPropertyWrapper, ornullif not configured.
-