Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package nessiesson.usefulmod.config
- import com.google.gson.annotations.Expose
- import com.google.gson.annotations.SerializedName
- import com.mumfrey.liteloader.core.LiteLoader
- import com.mumfrey.liteloader.modconfig.ConfigStrategy
- import com.mumfrey.liteloader.modconfig.Exposable
- import com.mumfrey.liteloader.modconfig.ExposableOptions
- @ExposableOptions(strategy = ConfigStrategy.Unversioned, filename = "usefulmod.json")
- class UsefulModConfig : Exposable {
- @Expose
- @SerializedName("shulkerbox_display")
- var isShulkerBoxDisplayEnabled = true
- @Expose
- @SerializedName("narrator_shortcut")
- var isNarratorShortcutEnabled = false
- @Expose
- @SerializedName("death_location")
- var isDeathLocationEnabled = true
- @Expose
- @SerializedName("spectator_to_spectator")
- var isSpectatorToSpectatorEnabled = true
- @Expose
- @SerializedName("mining_ghostblock_fix")
- var isMiningGhostblockFixEnabled = false
- @Expose
- @SerializedName("test")
- var isTestEnabled = false
- @Expose
- @SerializedName("centered_plants")
- var isCenteredPlantsEnabled = false
- @Expose
- @SerializedName("packed_ice_translucent")
- var isTranslucentPackedIceEnabled = false
- @Expose
- @SerializedName("clear_lava")
- var isClearLavaEnabled = false
- @Expose
- @SerializedName("smooth_item_movement")
- var isSmoothItemMovementEnabled = true
- @Expose
- @SerializedName("no_slime_slowdown")
- var isNoSlimeSlowdownEnabled = false
- @Expose
- @SerializedName("show_beacon_range")
- var isShowBeaconRangeEnabled = false
- @Expose
- @SerializedName("show_block_breaking_particles")
- var showBlockBreakingParticles = true
- @Expose
- @SerializedName("jump_boost_step_assist")
- var isJumpBoostStepAssistEnabled = false
- @Expose
- @SerializedName("respawn_on_death")
- var isRespawnOnDeathEnabled = false
- @Expose
- @SerializedName("1.8_pistons")
- var isOneEightPistonsEnabled = false
- @Expose
- @SerializedName("map_display")
- var isMapDisplayEnabled = false
- @Expose
- @SerializedName("nofall")
- var isNoFallEnabled = false
- @Expose
- @SerializedName("always_singleplayer_cheats")
- var isAlwaysSingleplayerCheatedEnabled = true
- init {
- if (instance == null) {
- instance = this
- LiteLoader.getInstance().registerExposable(instance, null)
- }
- }
- companion object {
- private var instance: UsefulModConfig? = null
- internal fun save() {
- LiteLoader.getInstance().writeConfig(instance)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement