blob: 2428f5bb8550c9a907ac37849292638a19d1b8b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
import { SoopyGui } from "../../../guimanager"
const ContainerChest = Java.type("net.minecraft.inventory.ContainerChest")
class DungeonReadyGui {
constructor(){
this.checkMenu = false
this.soopyGui = new SoopyGui()
this.soopyGui.optimisedLocations = true
}
tickMenu(){
}
guiOpened(event){
let name = ""
if(event.gui && event.gui.field_147002_h instanceof ContainerChest){
name = event.gui.field_147002_h.func_85151_d().func_145748_c_().func_150260_c()
}
if(this.soopyGui.ctGui.isOpen()){
if(event.gui && event.gui.field_147002_h){
Player.getPlayer().field_71070_bA = event.gui.field_147002_h
if(!Player.getOpenedInventory().getName().startsWith("Catacombs - Floor ")){
return
}
event.gui = this.soopyGui.ctGui
this.soopyGui.ctGui.open()
}
return
}
if(name === "Start Dungeon"){
if(event.gui && event.gui.field_147002_h) Player.getPlayer().field_71070_bA = event.gui.field_147002_h
this.soopyGui.open()
event.gui = this.soopyGui.ctGui
}
}
tick(){
if(this.soopyGui.ctGui.isOpen()){
this.tickMenu()
}
}
}
export default DungeonReadyGui;
|