-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial release
- Loading branch information
Showing
15 changed files
with
144 additions
and
147 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
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
17 changes: 0 additions & 17 deletions
17
src/main/java/net/wyvest/template/tweaker/RequisiteEssentialTweaker.java
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package net.wyvest.behindyou | ||
|
||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent | ||
import net.minecraftforge.fml.common.gameevent.TickEvent | ||
import net.wyvest.behindyou.config.BehindYouConfig | ||
|
||
object Listener { | ||
|
||
@SubscribeEvent | ||
fun listen(e : TickEvent.ClientTickEvent) { | ||
if (e.phase == TickEvent.Phase.END) { | ||
if (BehindYouConfig.toggled) { | ||
if (BehindYou.mc.gameSettings.thirdPersonView == 1) { | ||
++BehindYou.mc.gameSettings.thirdPersonView | ||
} | ||
} | ||
} | ||
} | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
src/main/kotlin/net/wyvest/behindyou/commands/BehindYouCommand.kt
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,26 @@ | ||
package net.wyvest.behindyou.commands | ||
|
||
import gg.essential.api.EssentialAPI | ||
import gg.essential.api.commands.Command | ||
import gg.essential.api.commands.DefaultHandler | ||
import gg.essential.api.commands.SubCommand | ||
import net.wyvest.behindyou.BehindYou | ||
import net.wyvest.behindyou.config.BehindYouConfig | ||
|
||
@Suppress("unused") | ||
object BehindYouCommand : Command(BehindYou.ID, true) { | ||
|
||
override val commandAliases = setOf( | ||
Alias("behind") | ||
) | ||
|
||
@DefaultHandler | ||
fun handle() { | ||
EssentialAPI.getGuiUtil().openScreen(BehindYouConfig.gui()) | ||
} | ||
|
||
@SubCommand("config", description = "Opens the config GUI for " + BehindYou.NAME) | ||
fun config() { | ||
EssentialAPI.getGuiUtil().openScreen(BehindYouConfig.gui()) | ||
} | ||
} |
27 changes: 18 additions & 9 deletions
27
.../wyvest/template/config/TemplateConfig.kt → ...yvest/behindyou/config/BehindYouConfig.kt
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.