generated from FabricMC/fabric-example-mod
-
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.
Merge pull request #207 from boholder/1.19-crosshair-target-location-cue
Crosshair target location cue
- Loading branch information
Showing
40 changed files
with
739 additions
and
255 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
60 changes: 60 additions & 0 deletions
60
.../khanshoaib3/minecraft_access/config/config_maps/RCRelativePositionSoundCueConfigMap.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,60 @@ | ||
package com.github.khanshoaib3.minecraft_access.config.config_maps; | ||
|
||
import com.github.khanshoaib3.minecraft_access.config.Config; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
public class RCRelativePositionSoundCueConfigMap { | ||
private static RCRelativePositionSoundCueConfigMap instance; | ||
|
||
@SerializedName("Enabled") | ||
private boolean enabled = true; | ||
@SerializedName("Min Sound Volume") | ||
private float minSoundVolume = 0.25f; | ||
@SerializedName("Max Sound Volume") | ||
private float maxSoundVolume = 0.4f; | ||
|
||
private RCRelativePositionSoundCueConfigMap() { | ||
} | ||
|
||
public static RCRelativePositionSoundCueConfigMap buildDefault() { | ||
RCRelativePositionSoundCueConfigMap m = new RCRelativePositionSoundCueConfigMap(); | ||
m.enabled = true; | ||
m.minSoundVolume = 0.25f; | ||
m.maxSoundVolume = 0.4f; | ||
setInstance(m); | ||
return m; | ||
} | ||
|
||
public static RCRelativePositionSoundCueConfigMap getInstance() { | ||
if (instance == null) Config.getInstance().loadConfig(); | ||
return instance; | ||
} | ||
|
||
public static void setInstance(RCRelativePositionSoundCueConfigMap map) { | ||
instance = map; | ||
} | ||
|
||
public boolean isEnabled() { | ||
return enabled; | ||
} | ||
|
||
public void setEnabled(boolean enabled) { | ||
this.enabled = enabled; | ||
} | ||
|
||
public float getMinSoundVolume() { | ||
return minSoundVolume; | ||
} | ||
|
||
public void setMinSoundVolume(float minSoundVolume) { | ||
this.minSoundVolume = minSoundVolume; | ||
} | ||
|
||
public float getMaxSoundVolume() { | ||
return maxSoundVolume; | ||
} | ||
|
||
public void setMaxSoundVolume(float maxSoundVolume) { | ||
this.maxSoundVolume = maxSoundVolume; | ||
} | ||
} |
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
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.