-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.1.1 - Mod Water, Compat, Thermometer HUD
Adds update checker Adds configurable Material.WATER from mods Adds some default json settings for mod compatibilitiy (Biomes O' Plenty, LycanitesMobs, Simple Camp Fire) Adds a toggleable thermometer HUD, displays if a thermometer is in your inventory. The display isn't in a great place but it'll work for now. Refactored ArmorTemperature and BlockTemperature to be generic, JsonTemperature and JsonPropertyTemperature.
- Loading branch information
1 parent
7bae4cc
commit d1c4ee1
Showing
16 changed files
with
226 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
{ | ||
"homepage": "https://www.curseforge.com/minecraft/mc-mods/simpledifficulty/files", | ||
"promos": { | ||
"1.12.2-latest": "0.1.2", | ||
"1.12.2-recommended": "0.1.2" | ||
"1.12.2-latest": "0.1.1", | ||
"1.12.2-recommended": "0.1.1" | ||
}, | ||
"1.12.2": { | ||
"0.1.2": "Dummy update to test out the update checker", | ||
"0.1.1": "Update Checker, Mod Compatibility, Configurable mod water temperatures", | ||
"0.1.1": "Update Checker, Mod Compatibility, Thermometer HUD, Configurable mod water temperatures", | ||
"0.1.0": "Initial Release" | ||
} | ||
} |
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
64 changes: 64 additions & 0 deletions
64
src/main/java/com/charles445/simpledifficulty/compat/JsonCompatDefaults.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,64 @@ | ||
package com.charles445.simpledifficulty.compat; | ||
|
||
import static com.charles445.simpledifficulty.config.JsonConfig.armorTemperatures; | ||
import static com.charles445.simpledifficulty.config.JsonConfig.blockTemperatures; | ||
import static com.charles445.simpledifficulty.config.JsonConfig.fluidTemperatures; | ||
|
||
import com.charles445.simpledifficulty.config.json.JsonPropertyTemperature; | ||
import com.charles445.simpledifficulty.config.json.JsonTemperature; | ||
import com.charles445.simpledifficulty.config.json.PropertyValue; | ||
|
||
public class JsonCompatDefaults | ||
{ | ||
public static JsonCompatDefaults instance = new JsonCompatDefaults(); | ||
//Default mod support for JSON | ||
|
||
public void populate() | ||
{ | ||
populateBiomesOPlenty(); | ||
populateLycanitesMobs(); | ||
populateSimpleCampfire(); | ||
} | ||
|
||
//Biomes O' Plenty | ||
private void populateBiomesOPlenty() | ||
{ | ||
fluidTemperatures.put("hot_spring_water", temperature(3.0f)); | ||
} | ||
|
||
//Lycanites Mobs | ||
private void populateLycanitesMobs() | ||
{ | ||
blockTemperatures.put("lycanitesmobs:purelava", propTemp(15.0f)); | ||
|
||
//TODO considering adding the ooze to actually chill the surrounding area | ||
//That could be fun | ||
} | ||
|
||
//Simple Camp Fire | ||
private void populateSimpleCampfire() | ||
{ | ||
blockTemperatures.put("campfire:campfire", propTemp(7.0f)); | ||
} | ||
|
||
|
||
|
||
//Utility | ||
|
||
private JsonTemperature temperature(float temp) | ||
{ | ||
return new JsonTemperature(temp); | ||
} | ||
|
||
private JsonPropertyTemperature propTemp(float temp) | ||
{ | ||
return new JsonPropertyTemperature(temp); | ||
} | ||
|
||
private JsonPropertyTemperature propTemp(float temp, PropertyValue... props) | ||
{ | ||
return new JsonPropertyTemperature(temp, props); | ||
} | ||
|
||
|
||
} |
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
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.