Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. package nessiesson.usefulmod.config
  2.  
  3. import com.google.gson.annotations.Expose
  4. import com.google.gson.annotations.SerializedName
  5. import com.mumfrey.liteloader.core.LiteLoader
  6. import com.mumfrey.liteloader.modconfig.ConfigStrategy
  7. import com.mumfrey.liteloader.modconfig.Exposable
  8. import com.mumfrey.liteloader.modconfig.ExposableOptions
  9.  
  10. @ExposableOptions(strategy = ConfigStrategy.Unversioned, filename = "usefulmod.json")
  11. class UsefulModConfig : Exposable {
  12. @Expose
  13. @SerializedName("shulkerbox_display")
  14. var isShulkerBoxDisplayEnabled = true
  15. @Expose
  16. @SerializedName("narrator_shortcut")
  17. var isNarratorShortcutEnabled = false
  18. @Expose
  19. @SerializedName("death_location")
  20. var isDeathLocationEnabled = true
  21. @Expose
  22. @SerializedName("spectator_to_spectator")
  23. var isSpectatorToSpectatorEnabled = true
  24. @Expose
  25. @SerializedName("mining_ghostblock_fix")
  26. var isMiningGhostblockFixEnabled = false
  27. @Expose
  28. @SerializedName("test")
  29. var isTestEnabled = false
  30. @Expose
  31. @SerializedName("centered_plants")
  32. var isCenteredPlantsEnabled = false
  33. @Expose
  34. @SerializedName("packed_ice_translucent")
  35. var isTranslucentPackedIceEnabled = false
  36. @Expose
  37. @SerializedName("clear_lava")
  38. var isClearLavaEnabled = false
  39. @Expose
  40. @SerializedName("smooth_item_movement")
  41. var isSmoothItemMovementEnabled = true
  42. @Expose
  43. @SerializedName("no_slime_slowdown")
  44. var isNoSlimeSlowdownEnabled = false
  45. @Expose
  46. @SerializedName("show_beacon_range")
  47. var isShowBeaconRangeEnabled = false
  48. @Expose
  49. @SerializedName("show_block_breaking_particles")
  50. var showBlockBreakingParticles = true
  51. @Expose
  52. @SerializedName("jump_boost_step_assist")
  53. var isJumpBoostStepAssistEnabled = false
  54. @Expose
  55. @SerializedName("respawn_on_death")
  56. var isRespawnOnDeathEnabled = false
  57. @Expose
  58. @SerializedName("1.8_pistons")
  59. var isOneEightPistonsEnabled = false
  60. @Expose
  61. @SerializedName("map_display")
  62. var isMapDisplayEnabled = false
  63. @Expose
  64. @SerializedName("nofall")
  65. var isNoFallEnabled = false
  66. @Expose
  67. @SerializedName("always_singleplayer_cheats")
  68. var isAlwaysSingleplayerCheatedEnabled = true
  69.  
  70. init {
  71. if (instance == null) {
  72. instance = this
  73. LiteLoader.getInstance().registerExposable(instance, null)
  74. }
  75. }
  76.  
  77. companion object {
  78. private var instance: UsefulModConfig? = null
  79.  
  80. internal fun save() {
  81. LiteLoader.getInstance().writeConfig(instance)
  82. }
  83. }
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement