This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
generated from MeteorDevelopment/meteor-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 24
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
26 changed files
with
762 additions
and
451 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
27 changes: 27 additions & 0 deletions
27
src/main/java/nekiplay/bozeplus/features/modules/movement/nofall/NoFallMode.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package nekiplay.bozeplus.features.modules.movement.nofall; | ||
|
||
import dev.boze.api.event.EventTick; | ||
import nekiplay.bozeplus.events.packets.PacketEvent; | ||
import nekiplay.bozeplus.features.modules.movement.spider.SpiderPlus; | ||
import net.minecraft.client.MinecraftClient; | ||
|
||
public class NoFallMode { | ||
protected final MinecraftClient mc; | ||
protected final NoFallPlus settings; | ||
private final NoFallModes type; | ||
|
||
public NoFallMode(NoFallModes type, NoFallPlus settings) { | ||
this.settings = settings; | ||
this.mc = MinecraftClient.getInstance(); | ||
this.type = type; | ||
} | ||
|
||
public void onSendPacket(PacketEvent.Send event) {} | ||
public void onSentPacket(PacketEvent.Sent event) {} | ||
|
||
public void onTickEventPre(EventTick.Pre event) {} | ||
public void onTickEventPost(EventTick.Post event) {} | ||
|
||
public void onActivate() {} | ||
public void onDeactivate() {} | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/nekiplay/bozeplus/features/modules/movement/nofall/NoFallModes.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package nekiplay.bozeplus.features.modules.movement.nofall; | ||
|
||
public enum NoFallModes { | ||
MatrixNew, | ||
} |
64 changes: 64 additions & 0 deletions
64
src/main/java/nekiplay/bozeplus/features/modules/movement/nofall/NoFallPlus.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package nekiplay.bozeplus.features.modules.movement.nofall; | ||
|
||
import dev.boze.api.addon.module.ToggleableModule; | ||
import dev.boze.api.event.EventTick; | ||
import dev.boze.api.setting.SettingMode; | ||
import meteordevelopment.orbit.EventHandler; | ||
import nekiplay.bozeplus.events.packets.PacketEvent; | ||
import nekiplay.bozeplus.features.modules.movement.nofall.modes.MatrixNew; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class NoFallPlus extends ToggleableModule { | ||
private final SettingMode mode = new SettingMode("Mode", "Bypass mode", new ArrayList<>() {{ | ||
add("Matrix"); | ||
}}); | ||
|
||
public NoFallPlus() { | ||
super("No Fall+", "Bypass no fall"); | ||
elements.add(mode); | ||
onNoFallModeChanged(mode.getMode()); | ||
} | ||
|
||
@Override | ||
protected void onEnable() { | ||
onNoFallModeChanged(mode.getMode()); | ||
if (currentMode != null) { | ||
currentMode.onActivate(); | ||
} | ||
} | ||
|
||
@EventHandler | ||
public void onSendPacket(PacketEvent.Send event) { | ||
if (currentMode != null) { | ||
currentMode.onSendPacket(event); | ||
} | ||
} | ||
|
||
@EventHandler | ||
public void onSentPacket(PacketEvent.Sent event) { | ||
if (currentMode != null) { | ||
currentMode.onSentPacket(event); | ||
} | ||
} | ||
|
||
@EventHandler | ||
public void onTickEventPre(EventTick.Pre event) { | ||
if (currentMode != null) { | ||
currentMode.onTickEventPre(event); | ||
} | ||
} | ||
|
||
@EventHandler | ||
public void onTickEventPost(EventTick.Post event) { | ||
if (currentMode != null) { | ||
currentMode.onTickEventPost(event); | ||
} | ||
} | ||
private NoFallMode currentMode = null; | ||
private void onNoFallModeChanged(int mode) { | ||
switch (mode) { | ||
case 0 -> currentMode = new MatrixNew(this); | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/nekiplay/bozeplus/features/modules/movement/nofall/modes/MatrixNew.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package nekiplay.bozeplus.features.modules.movement.nofall.modes; | ||
|
||
import nekiplay.Main; | ||
import nekiplay.bozeplus.features.modules.movement.nofall.NoFallMode; | ||
import nekiplay.bozeplus.features.modules.movement.nofall.NoFallModes; | ||
import nekiplay.bozeplus.features.modules.movement.nofall.NoFallPlus; | ||
import nekiplay.bozeplus.features.modules.movement.spider.SpiderModes; | ||
import nekiplay.bozeplus.features.modules.movement.spider.SpiderPlus; | ||
|
||
public class MatrixNew extends NoFallMode { | ||
public MatrixNew(NoFallPlus noFallPlus) { | ||
super(NoFallModes.MatrixNew, noFallPlus); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/nekiplay/bozeplus/features/modules/movement/spider/SpiderMode.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package nekiplay.bozeplus.features.modules.movement.spider; | ||
import dev.boze.api.event.EventTick; | ||
import nekiplay.bozeplus.events.packets.PacketEvent; | ||
import net.minecraft.client.MinecraftClient; | ||
|
||
public class SpiderMode { | ||
protected final MinecraftClient mc; | ||
protected final SpiderPlus settings; | ||
private final SpiderModes type; | ||
|
||
public SpiderMode(SpiderModes type, SpiderPlus settings) { | ||
this.settings = settings; | ||
this.mc = MinecraftClient.getInstance(); | ||
this.type = type; | ||
} | ||
|
||
public void onSendPacket(PacketEvent.Send event) {} | ||
public void onSentPacket(PacketEvent.Sent event) {} | ||
|
||
public void onTickEventPre(EventTick.Pre event) {} | ||
public void onTickEventPost(EventTick.Post event) {} | ||
|
||
public void onActivate() {} | ||
public void onDeactivate() {} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/nekiplay/bozeplus/features/modules/movement/spider/SpiderModes.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package nekiplay.bozeplus.features.modules.movement.spider; | ||
|
||
public enum SpiderModes { | ||
Matrix_Lower_7, | ||
Vulcan, | ||
Elytra_clip; | ||
|
||
@Override | ||
public String toString() { | ||
return super.toString().replace('_', ' ').replaceAll("_Lower_", "<"); | ||
} | ||
} |
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.