-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Started working on Enchantment Configuration
- Loading branch information
1 parent
04a20d0
commit 1f45dd5
Showing
6 changed files
with
109 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 11 additions & 30 deletions
41
src/main/java/dev/timefall/mcdw/configs/McdwEnchantmentSettingsConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,23 @@ | ||
/* | ||
* Timefall Development License 1.2 | ||
* Copyright (c) 2020-2024. Chronosacaria, Kluzzio, Timefall Development. All Rights Reserved. | ||
* Copyright (c) 2024. Chronosacaria, Kluzzio, Timefall Development. All Rights Reserved. | ||
* | ||
* This software's content is licensed under the Timefall Development License 1.2. You can find this license information here: https://github.com/Timefall-Development/Timefall-Development-Licence/blob/main/TimefallDevelopmentLicense1.2.txt | ||
*/ | ||
package dev.timefall.mcdw.configs; | ||
/* | ||
import dev.timefall.mcdw.enums.SettingsID; | ||
import me.shedaniel.autoconfig.ConfigData; | ||
import me.shedaniel.autoconfig.annotation.Config; | ||
import me.shedaniel.cloth.clothconfig.shadowed.blue.endless.jankson.Comment; | ||
|
||
import java.util.LinkedHashMap; | ||
package dev.timefall.mcdw.configs; | ||
|
||
@Config(name = "mcdw_enchantment_settings_config") | ||
public class McdwEnchantmentSettingsConfig implements ConfigData { | ||
import dev.timefall.mcdw.Mcdw; | ||
import me.fzzyhmstrs.fzzy_config.api.ConfigApi; | ||
import me.fzzyhmstrs.fzzy_config.config.Config; | ||
|
||
@Comment(""" | ||
Default (0): Everything other than self | ||
Next Permission (1): Not self and not teammates or pets of self | ||
Next Permission (2): Not self and not teammates or pets of self or AnimalEntities (not hitting farm animals is not present in permission 3) | ||
Next Permission (3): Not self and not Potential allies (pets of any player, iron golems, villagers, players) | ||
Final Permission (4): Only hostile mobs | ||
WARNING: LOOKS AT HOSTILE ENTITY CLASS WHICH DOES NOT INCLUDE ENDER DRAGON AND OTHERS. | ||
If anything else is put, it will be treated as default""") | ||
public int aoePermission = 0; | ||
import java.util.function.Supplier; | ||
|
||
// Enchantment Settings | ||
public final LinkedHashMap<SettingsID, Boolean> ENABLE_ENCHANTMENT_SETTINGS = new LinkedHashMap<>(); | ||
public class McdwEnchantmentSettingsConfig extends Config { | ||
public static final McdwEnchantmentSettingsConfig CONFIG = ConfigApi.registerAndLoadConfig((Supplier<McdwEnchantmentSettingsConfig>) McdwEnchantmentSettingsConfig::new); | ||
|
||
public McdwEnchantmentSettingsConfig(){ | ||
ENABLE_ENCHANTMENT_SETTINGS.put(SettingsID.ENABLE_OP_ENCHANTMENT_MIXING, false); | ||
ENABLE_ENCHANTMENT_SETTINGS.put(SettingsID.LEECHING_CAN_BE_MIXED_WITH_HEALING, false); | ||
ENABLE_ENCHANTMENT_SETTINGS.put(SettingsID.EXTRA_XP_HEALING, false); | ||
ENABLE_ENCHANTMENT_SETTINGS.put(SettingsID.SHARED_PAIN_CAN_DAMAGE_USER, false); | ||
ENABLE_ENCHANTMENT_SETTINGS.put(SettingsID.AREA_OF_EFFECT_ENCHANTS_DONT_AFFECT_PLAYERS, true); | ||
ENABLE_ENCHANTMENT_SETTINGS.put(SettingsID.ENABLE_INNATE_ENCHANTMENTS, true); | ||
public McdwEnchantmentSettingsConfig() { | ||
super(Mcdw.ID("mcdw_enchantment_settings_config")); | ||
} | ||
} | ||
|
||
*/ | ||
} |
40 changes: 40 additions & 0 deletions
40
src/main/java/dev/timefall/mcdw/configs/McdwEnchantmentSettingsConfigOld.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Timefall Development License 1.2 | ||
* Copyright (c) 2020-2024. Chronosacaria, Kluzzio, Timefall Development. All Rights Reserved. | ||
* | ||
* This software's content is licensed under the Timefall Development License 1.2. You can find this license information here: https://github.com/Timefall-Development/Timefall-Development-Licence/blob/main/TimefallDevelopmentLicense1.2.txt | ||
*/ | ||
package dev.timefall.mcdw.configs; | ||
|
||
import dev.timefall.mcdw.enums.SettingsID; | ||
import me.shedaniel.autoconfig.ConfigData; | ||
import me.shedaniel.autoconfig.annotation.Config; | ||
import me.shedaniel.cloth.clothconfig.shadowed.blue.endless.jankson.Comment; | ||
|
||
import java.util.LinkedHashMap; | ||
|
||
@Config(name = "mcdw_enchantment_settings_config") | ||
public class McdwEnchantmentSettingsConfigOld implements ConfigData { | ||
|
||
@Comment(""" | ||
Default (0): Everything other than self | ||
Next Permission (1): Not self and not teammates or pets of self | ||
Next Permission (2): Not self and not teammates or pets of self or AnimalEntities (not hitting farm animals is not present in permission 3) | ||
Next Permission (3): Not self and not Potential allies (pets of any player, iron golems, villagers, players) | ||
Final Permission (4): Only hostile mobs | ||
WARNING: LOOKS AT HOSTILE ENTITY CLASS WHICH DOES NOT INCLUDE ENDER DRAGON AND OTHERS. | ||
If anything else is put, it will be treated as default""") | ||
public int aoePermission = 0; | ||
|
||
// Enchantment Settings | ||
public final LinkedHashMap<SettingsID, Boolean> ENABLE_ENCHANTMENT_SETTINGS = new LinkedHashMap<>(); | ||
|
||
public McdwEnchantmentSettingsConfigOld(){ | ||
ENABLE_ENCHANTMENT_SETTINGS.put(SettingsID.ENABLE_OP_ENCHANTMENT_MIXING, false); | ||
ENABLE_ENCHANTMENT_SETTINGS.put(SettingsID.LEECHING_CAN_BE_MIXED_WITH_HEALING, false); | ||
ENABLE_ENCHANTMENT_SETTINGS.put(SettingsID.EXTRA_XP_HEALING, false); | ||
ENABLE_ENCHANTMENT_SETTINGS.put(SettingsID.SHARED_PAIN_CAN_DAMAGE_USER, false); | ||
ENABLE_ENCHANTMENT_SETTINGS.put(SettingsID.AREA_OF_EFFECT_ENCHANTS_DONT_AFFECT_PLAYERS, true); | ||
ENABLE_ENCHANTMENT_SETTINGS.put(SettingsID.ENABLE_INNATE_ENCHANTMENTS, true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters