-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
146 additions
and
119 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
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
9 changes: 7 additions & 2 deletions
9
odinclient/src/main/java/me/odinclient/mixin/mixins/MixinGuiScreen.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
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
43 changes: 25 additions & 18 deletions
43
odinmain/src/main/kotlin/me/odinmain/events/impl/GuiEvents.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 |
---|---|---|
@@ -1,34 +1,41 @@ | ||
package me.odinmain.events.impl | ||
|
||
import net.minecraft.client.gui.GuiScreen | ||
import net.minecraft.client.gui.inventory.GuiContainer | ||
import net.minecraft.inventory.* | ||
import net.minecraft.inventory.Container | ||
import net.minecraft.inventory.ContainerChest | ||
import net.minecraft.inventory.Slot | ||
import net.minecraft.item.ItemStack | ||
import net.minecraftforge.fml.common.eventhandler.Cancelable | ||
import net.minecraftforge.fml.common.eventhandler.Event | ||
|
||
@Cancelable | ||
class DrawGuiContainerScreenEvent(val container: Container, val gui: GuiContainer, val xSize: Int, val ySize: Int, val guiLeft: Int, val guiTop: Int) : Event() | ||
|
||
class GuiLoadedEvent(val name: String, val gui: ContainerChest) : Event() | ||
abstract class GuiEvent : Event() { | ||
|
||
@Cancelable | ||
class GuiClickEvent(val container: Container, val gui: GuiContainer, val x: Int, val y: Int, val button: Int) : Event() | ||
data class GuiLoadedEvent(val name: String, val gui: ContainerChest) : GuiEvent() | ||
|
||
@Cancelable | ||
data class DrawGuiContainerScreenEvent(val container: Container, val gui: GuiContainer, val xSize: Int, val ySize: Int, val guiLeft: Int, val guiTop: Int) : GuiEvent() | ||
|
||
@Cancelable | ||
class DrawSlotEvent(val container: Container, val gui: GuiContainer, var slot: Slot, val x: Int, val y: Int) : GuiEvent() | ||
|
||
@Cancelable | ||
class DrawSlotOverlayEvent(val stack: ItemStack?, val x: Int?, val y: Int?, val text: String?) : GuiEvent() | ||
|
||
@Cancelable | ||
data class GuiMouseClickEvent(val gui: GuiScreen, val button: Int, val x: Int, val y: Int) : GuiEvent() | ||
|
||
@Cancelable | ||
class GuiKeyPressEvent(val container: Container, val gui: GuiContainer, val keyCode: Int) : Event() | ||
|
||
|
||
class GuiClosedEvent(val gui: GuiContainer) : GuiEvent() | ||
} | ||
|
||
@Cancelable | ||
class PreGuiClickEvent(val button: Int) : Event() | ||
|
||
@Cancelable | ||
class GuiKeyPressEvent(val container: Container, val gui: GuiContainer, val keyCode: Int) : Event() | ||
|
||
@Cancelable | ||
class GuiClosedEvent(val gui: GuiContainer) : Event() | ||
|
||
@Cancelable | ||
class DrawSlotOverlayEvent(val stack: ItemStack?, val x: Int?, val y: Int?, val text: String?) : Event() | ||
|
||
@Cancelable | ||
class DrawSlotEvent(val container: Container, val gui: GuiContainer, var slot: Slot, val x: Int, val y: Int) : Event() | ||
|
||
@Cancelable | ||
class DrawItemStackEvent(val container: Container, val gui: GuiContainer, val stack: ItemStack, val x: Int, val y: Int) : Event() | ||
|
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
File renamed without changes.
Oops, something went wrong.