feat: added PortalGui

This commit is contained in:
əlemi 2023-02-19 23:46:35 +01:00
parent 7473f181d4
commit 15a2b1ac09
Signed by: alemi
GPG key ID: A4895B84D311642C
3 changed files with 27 additions and 0 deletions

View file

@ -69,6 +69,7 @@ public class BoSCoVicino implements ICommons {
BoSCoVicino.mods.add(new EntityList(cfg, dp).done(cfg)); BoSCoVicino.mods.add(new EntityList(cfg, dp).done(cfg));
BoSCoVicino.mods.add(new Fullbright(cfg, dp).done(cfg)); BoSCoVicino.mods.add(new Fullbright(cfg, dp).done(cfg));
BoSCoVicino.mods.add(new AntiHunger(cfg, dp).done(cfg)); BoSCoVicino.mods.add(new AntiHunger(cfg, dp).done(cfg));
BoSCoVicino.mods.add(new PortalGui(cfg, dp).done(cfg));
BoSCoVicino.mods.add(new AutoFish(cfg, dp).done(cfg)); BoSCoVicino.mods.add(new AutoFish(cfg, dp).done(cfg));
BoSCoVicino.mods.add(new AutoTool(cfg, dp).done(cfg)); BoSCoVicino.mods.add(new AutoTool(cfg, dp).done(cfg));
BoSCoVicino.mods.add(new Freecam(cfg, dp).done(cfg)); BoSCoVicino.mods.add(new Freecam(cfg, dp).done(cfg));

View file

@ -0,0 +1,25 @@
package ftbsc.bscv.modules.self;
import com.mojang.brigadier.CommandDispatcher;
import ftbsc.bscv.ICommons;
import ftbsc.bscv.modules.Module;
import net.minecraft.command.CommandSource;
import net.minecraftforge.common.ForgeConfigSpec;
import net.minecraftforge.event.TickEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
public class PortalGui extends Module implements ICommons {
public PortalGui(ForgeConfigSpec.Builder builder, CommandDispatcher<CommandSource> dispatcher) {
super("PortalGui", Group.SELF, builder, dispatcher);
}
@SubscribeEvent
public void onTick(TickEvent.ClientTickEvent event) {
if (MC.player == null) return;
// TODO is there a more elegant way to do this?
MC.player.isInsidePortal = false; // ACCESSTRANSFORMER
}
}

View file

@ -2,3 +2,4 @@ public net.minecraft.client.gui.screen.Screen field_230710_m_ # buttons
public net.minecraft.client.gui.screen.Screen field_230705_e_ # children public net.minecraft.client.gui.screen.Screen field_230705_e_ # children
public net.minecraft.client.network.play.NetworkPlayerInfo field_178866_b # gameMode public net.minecraft.client.network.play.NetworkPlayerInfo field_178866_b # gameMode
public net.minecraft.network.play.client.CPlayerPacket field_149474_g # onGround public net.minecraft.network.play.client.CPlayerPacket field_149474_g # onGround
public net.minecraft.entity.Entity field_71087_bX # isInsidePortal