-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated config API's - Removed Awful 'Hectic' config option - Separated pitch and yaw in config for locking screenshots
- Loading branch information
Showing
7 changed files
with
35 additions
and
41 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
30 changes: 15 additions & 15 deletions
30
src/main/java/com/terraformersmc/vistas/config/PanoramaConfig.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,25 +1,25 @@ | ||
package com.terraformersmc.vistas.config; | ||
|
||
import me.sargunvohra.mcmods.autoconfig1u.AutoConfig; | ||
import me.sargunvohra.mcmods.autoconfig1u.ConfigData; | ||
import me.sargunvohra.mcmods.autoconfig1u.annotation.Config; | ||
import me.sargunvohra.mcmods.autoconfig1u.serializer.GsonConfigSerializer; | ||
import me.shedaniel.autoconfig.AutoConfig; | ||
import me.shedaniel.autoconfig.ConfigData; | ||
import me.shedaniel.autoconfig.annotation.Config; | ||
import me.shedaniel.autoconfig.serializer.GsonConfigSerializer; | ||
|
||
@Config(name = "vistas") | ||
public class PanoramaConfig implements ConfigData { | ||
|
||
public String panorama = "minecraft"; | ||
public boolean forcePanorama = false; | ||
public boolean randomPerScreen = false; | ||
public boolean hectic = false; | ||
public boolean lockPanoramicScreenshotRotation = true; | ||
public String panorama = "minecraft"; | ||
public boolean forcePanorama = false; | ||
public boolean randomPerScreen = false; | ||
public boolean lockScreenshotPitch = true; | ||
public boolean lockScreenshotYaw = false; | ||
|
||
public static void init() { | ||
AutoConfig.register(PanoramaConfig.class, GsonConfigSerializer::new); | ||
} | ||
public static void init() { | ||
AutoConfig.register(PanoramaConfig.class, GsonConfigSerializer::new); | ||
} | ||
|
||
public static PanoramaConfig getInstance() { | ||
return AutoConfig.getConfigHolder(PanoramaConfig.class).getConfig(); | ||
} | ||
public static PanoramaConfig getInstance() { | ||
return AutoConfig.getConfigHolder(PanoramaConfig.class).getConfig(); | ||
} | ||
|
||
} |
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