-
-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code style improvements and review findings
- var -> explicit type, unless it's obvious from a constructor call - extracted API interface for ConfigDataManager - replace "drop nothing" flag in LooniumComponent with "override drop"; mobs will drop whatever is defined as "to drop" when that flag is set - don't bother creating specialized map types for detected structures - adjust variable names in renderHUD code - replaced some manually validated attribute CODECs with corresponding predefined ExtraCodecs variants - allow configured mana cost for a structure to be zero - add default translation for botania:loonium_offhand_equipment tag
- Loading branch information
1 parent
1c516fd
commit 39cc716
Showing
14 changed files
with
151 additions
and
155 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
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
11 changes: 11 additions & 0 deletions
11
Xplat/src/main/java/vazkii/botania/api/configdata/ConfigDataManager.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,11 @@ | ||
package vazkii.botania.api.configdata; | ||
|
||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.server.packs.resources.PreparableReloadListener; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
|
||
public interface ConfigDataManager extends PreparableReloadListener { | ||
@Nullable | ||
LooniumStructureConfiguration getEffectiveLooniumStructureConfiguration(ResourceLocation id); | ||
} |
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
Oops, something went wrong.