├── cmd.bat ├── splash ├── splash_1.png ├── splash_2.png ├── splash_3.png ├── splash_4.png ├── splash_5.png ├── splash_6.png └── splash_7.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── src └── main │ ├── resources │ ├── images │ │ └── onepop.png │ ├── win32-x86 │ │ └── discord-rpc.dll │ ├── darwin │ │ └── libdiscord-rpc.dylib │ ├── linux-x86-64 │ │ └── libdiscord-rpc.so │ ├── win32-x86-64 │ │ └── discord-rpc.dll │ ├── assets │ │ └── onepop │ │ │ └── images │ │ │ └── transparent.png │ ├── pack.mcmeta │ ├── mcmod.info │ └── mixins.onepop.json │ └── java │ ├── rina │ └── onepop │ │ └── club │ │ ├── client │ │ ├── component │ │ │ ├── Meter.java │ │ │ ├── Type.java │ │ │ ├── XPType.java │ │ │ ├── CrystalType.java │ │ │ ├── Direction.java │ │ │ ├── Placement.java │ │ │ ├── GoldenAppleType.java │ │ │ ├── MessageType.java │ │ │ ├── ComponentPlayerCount.java │ │ │ ├── ComponentFPS.java │ │ │ ├── ComponentTPS.java │ │ │ ├── ComponentDurability.java │ │ │ ├── ComponentCrystalsPerSecond.java │ │ │ ├── ComponentWatermark.java │ │ │ ├── ComponentPing.java │ │ │ ├── ComponentSpeedMeter.java │ │ │ └── ComponentRinaMessage.java │ │ ├── gui │ │ │ ├── rocan │ │ │ │ └── Type.java │ │ │ ├── minecraft │ │ │ │ ├── GameOver.java │ │ │ │ ├── PauseGame.java │ │ │ │ ├── Reconnect.java │ │ │ │ ├── ServerList.java │ │ │ │ └── MainMenu.java │ │ │ └── imperador │ │ │ │ └── util │ │ │ │ └── ClipboardUtil.java │ │ ├── manager │ │ │ ├── overlay │ │ │ │ └── Priority.java │ │ │ ├── network │ │ │ │ ├── Rotation.java │ │ │ │ └── HotBarManager.java │ │ │ └── world │ │ │ │ └── BreakManager.java │ │ ├── module │ │ │ ├── combat │ │ │ │ ├── quiver │ │ │ │ │ └── Mode.java │ │ │ │ ├── burrow │ │ │ │ │ └── Mode.java │ │ │ │ ├── selfweb │ │ │ │ │ └── Mode.java │ │ │ │ ├── critical │ │ │ │ │ └── Mode.java │ │ │ │ ├── offhand │ │ │ │ │ ├── NoFail.java │ │ │ │ │ ├── FindMode.java │ │ │ │ │ └── OffhandMode.java │ │ │ │ ├── surround │ │ │ │ │ └── Render.java │ │ │ │ ├── holefiller │ │ │ │ │ └── Mode.java │ │ │ │ ├── autocity │ │ │ │ │ └── BreakModes.java │ │ │ │ ├── bedaura │ │ │ │ │ ├── Rotation.java │ │ │ │ │ ├── Loop.java │ │ │ │ │ ├── TargetMode.java │ │ │ │ │ └── ClickHand.java │ │ │ │ ├── autocrystalrewrite │ │ │ │ │ ├── Tab.java │ │ │ │ │ ├── Verify.java │ │ │ │ │ ├── Switch.java │ │ │ │ │ ├── Priority.java │ │ │ │ │ └── PacketThread.java │ │ │ │ ├── autoweb │ │ │ │ │ └── Mode.java │ │ │ │ ├── autotrap │ │ │ │ │ └── Mode.java │ │ │ │ ├── selftrap │ │ │ │ │ └── Mode.java │ │ │ │ ├── ModuleEffectDetector.java │ │ │ │ └── ModuleFastBow.java │ │ │ ├── exploit │ │ │ │ ├── autohat │ │ │ │ │ ├── Flag.java │ │ │ │ │ └── PostHatMode.java │ │ │ │ ├── ModulePacketFly.java │ │ │ │ ├── ModuleExtraSlots.java │ │ │ │ ├── ModuleNoEatFall.java │ │ │ │ ├── ModuleNoPlaceDelay.java │ │ │ │ └── ModuleNoServerRotate.java │ │ │ ├── misc │ │ │ │ ├── autoeat │ │ │ │ │ └── Mode.java │ │ │ │ ├── armoralert │ │ │ │ │ └── Mode.java │ │ │ │ ├── autofish │ │ │ │ │ └── Flag.java │ │ │ │ ├── ModuleAutoReconnect.java │ │ │ │ ├── middleclick │ │ │ │ │ └── Mode.java │ │ │ │ ├── ModuleMultitask.java │ │ │ │ ├── ModulePortalGUI.java │ │ │ │ ├── ModuleNoServerSwing.java │ │ │ │ ├── ModuleSwitch.java │ │ │ │ ├── ModuleNoEntityTrace.java │ │ │ │ ├── ModuleBuildHeight.java │ │ │ │ ├── ModuleNoBreakAnimation.java │ │ │ │ ├── ModuleBetterExperience.java │ │ │ │ ├── ModuleAntiHunger.java │ │ │ │ ├── ModuleAutoMine.java │ │ │ │ └── ModuleTimer.java │ │ │ ├── client │ │ │ │ ├── anticheat │ │ │ │ │ ├── Type.java │ │ │ │ │ └── ModuleAntiCheat.java │ │ │ │ ├── developer │ │ │ │ │ └── Sector.java │ │ │ │ ├── ModuleTPSSync.java │ │ │ │ └── ModuleRPC.java │ │ │ ├── player │ │ │ │ ├── elyraflight │ │ │ │ │ ├── Mode.java │ │ │ │ │ └── Fly.java │ │ │ │ ├── liquidspeed │ │ │ │ │ └── Mode.java │ │ │ │ ├── longjump │ │ │ │ │ ├── Mode.java │ │ │ │ │ └── CalculateMode.java │ │ │ │ ├── strafe │ │ │ │ │ ├── JumpMode.java │ │ │ │ │ ├── SpeedMode.java │ │ │ │ │ ├── BoostType.java │ │ │ │ │ └── BoostOnGround.java │ │ │ │ ├── phasewalk │ │ │ │ │ ├── Mode.java │ │ │ │ │ └── TeleportMode.java │ │ │ │ ├── reversestep │ │ │ │ │ └── Mode.java │ │ │ │ ├── autowalk │ │ │ │ │ └── Direction.java │ │ │ │ ├── straferewrite │ │ │ │ │ ├── Mode.java │ │ │ │ │ ├── Boost.java │ │ │ │ │ └── CalculateMode.java │ │ │ │ ├── ModuleSafeWalk.java │ │ │ │ ├── ModuleJesus.java │ │ │ │ ├── ModulePortalGodMode.java │ │ │ │ ├── ModuleCreativeFly.java │ │ │ │ ├── ModuleNoFall.java │ │ │ │ ├── ModuleWeb.java │ │ │ │ ├── ModuleInventoryWalk.java │ │ │ │ ├── ModuleAirJump.java │ │ │ │ ├── ModuleSprint.java │ │ │ │ └── ModuleNoSlowDown.java │ │ │ └── render │ │ │ │ ├── fullbright │ │ │ │ ├── Mode.java │ │ │ │ └── ModuleFullBright.java │ │ │ │ ├── esp │ │ │ │ └── impl │ │ │ │ │ ├── Category.java │ │ │ │ │ ├── Mode.java │ │ │ │ │ ├── Type.java │ │ │ │ │ └── ModeRender.java │ │ │ │ └── waypoints │ │ │ │ └── impl │ │ │ │ ├── Render.java │ │ │ │ └── Waypoint.java │ │ ├── render │ │ │ └── type │ │ │ │ └── EnumCube.java │ │ ├── event │ │ │ ├── entity │ │ │ │ ├── TravelEvent.java │ │ │ │ ├── PigEvent.java │ │ │ │ ├── PushBlockEvent.java │ │ │ │ ├── PlayerJumpEvent.java │ │ │ │ ├── PushPlayerEvent.java │ │ │ │ ├── PushWatterEvent.java │ │ │ │ ├── EntityUpdateEvent.java │ │ │ │ ├── AbstractHorseEvent.java │ │ │ │ ├── EntityCollisionEvent.java │ │ │ │ ├── PlayerDamageBlockEvent.java │ │ │ │ ├── UseEntityWorldProcessEvent.java │ │ │ │ ├── SetHealthEvent.java │ │ │ │ └── PlayerMoveEvent.java │ │ │ ├── client │ │ │ │ ├── ClientTickEvent.java │ │ │ │ ├── RunTickEvent.java │ │ │ │ ├── ModuleStatusEvent.java │ │ │ │ └── PresetTaskEvent.java │ │ │ ├── render │ │ │ │ ├── RenderNameEvent.java │ │ │ │ ├── RenderPotionEffects.java │ │ │ │ ├── RenderPortalOverlayEvent.java │ │ │ │ ├── EnumHandSideEvent.java │ │ │ │ ├── PerspectiveEvent.java │ │ │ │ ├── Render2DEvent.java │ │ │ │ └── Render3DEvent.java │ │ │ ├── network │ │ │ │ ├── ConfirmEntityPacketEvent.java │ │ │ │ ├── StateServerPlayerEvent.java │ │ │ │ ├── TextComponentEvent.java │ │ │ │ └── PacketEvent.java │ │ │ └── underground │ │ │ │ └── DisplayGuiScreenEvent.java │ │ ├── command │ │ │ ├── CommandPrefix.java │ │ │ ├── CommandCoords.java │ │ │ └── CommandToggle.java │ │ └── Wrapper.java │ │ ├── api │ │ ├── component │ │ │ ├── ColorMode.java │ │ │ ├── StringType.java │ │ │ ├── Dock.java │ │ │ └── impl │ │ │ │ └── ComponentSetting.java │ │ ├── setting │ │ │ ├── value │ │ │ │ ├── Smooth.java │ │ │ │ ├── InputType.java │ │ │ │ ├── Picker.java │ │ │ │ ├── ValueBoolean.java │ │ │ │ ├── ValueString.java │ │ │ │ ├── ValueBind.java │ │ │ │ └── ValueEnum.java │ │ │ └── impl │ │ │ │ └── SettingStructure.java │ │ ├── util │ │ │ ├── entity │ │ │ │ ├── Dimension.java │ │ │ │ ├── PlayerRotationUtil.java │ │ │ │ └── PlayerPositionUtil.java │ │ │ ├── client │ │ │ │ ├── FlagBoolUtil.java │ │ │ │ ├── FlagModeUtil.java │ │ │ │ ├── ByteManipulator.java │ │ │ │ ├── DateTimerUtil.java │ │ │ │ ├── NullUtil.java │ │ │ │ └── KeyUtil.java │ │ │ ├── item │ │ │ │ └── PlayerInventoryUtil.java │ │ │ ├── network │ │ │ │ ├── ServerUtil.java │ │ │ │ └── PacketUtil.java │ │ │ ├── math │ │ │ │ └── PositionUtil.java │ │ │ └── chat │ │ │ │ ├── ChatSuffixUtil.java │ │ │ │ └── ChatUtil.java │ │ ├── event │ │ │ ├── impl │ │ │ │ └── EventStage.java │ │ │ └── Event.java │ │ ├── social │ │ │ ├── type │ │ │ │ └── SocialType.java │ │ │ └── Social.java │ │ ├── strict │ │ │ └── util │ │ │ │ ├── EnumRotation.java │ │ │ │ └── StrictVec.java │ │ ├── gui │ │ │ ├── flag │ │ │ │ └── Flag.java │ │ │ └── IScreenBasic.java │ │ ├── manager │ │ │ ├── impl │ │ │ │ └── ManageStructure.java │ │ │ └── Manager.java │ │ ├── ISLClass.java │ │ ├── module │ │ │ ├── impl │ │ │ │ └── ModuleCategory.java │ │ │ └── registry │ │ │ │ └── Registry.java │ │ ├── command │ │ │ ├── impl │ │ │ │ └── CommandPrefix.java │ │ │ └── Command.java │ │ ├── preset │ │ │ ├── impl │ │ │ │ ├── PresetState.java │ │ │ │ └── PresetValidator.java │ │ │ └── Preset.java │ │ ├── engine │ │ │ ├── Engine.java │ │ │ └── caller │ │ │ │ └── Processor.java │ │ ├── tool │ │ │ └── CounterTool.java │ │ └── tracker │ │ │ ├── impl │ │ │ ├── PlayerStopBreakBlockTracker.java │ │ │ ├── PlayerAbortBreakBlockTracker.java │ │ │ ├── RightMouseClickTracker.java │ │ │ ├── PlayerStartBreakBlockTracker.java │ │ │ └── WindowClickTracker.java │ │ │ ├── Tracker.java │ │ │ └── management │ │ │ └── TrackerManager.java │ │ ├── mixin │ │ ├── interfaces │ │ │ ├── IMinecraft.java │ │ │ └── IEntityPlayerSP.java │ │ ├── mixins │ │ │ ├── render │ │ │ │ ├── MixinRenderItem.java │ │ │ │ ├── MixinRenderBlock.java │ │ │ │ └── MixinRenderEnderCrystal.java │ │ │ ├── network │ │ │ │ ├── MixinServerPinger.java │ │ │ │ ├── MixinNetHandlerPlayClient.java │ │ │ │ └── MixinNetHandlerPlayServer.java │ │ │ ├── entity │ │ │ │ ├── MixinEntityBoat.java │ │ │ │ ├── MixinEntityLivingBase.java │ │ │ │ ├── MixinEntityPlayerSP.java │ │ │ │ ├── MixinAbstractHorse.java │ │ │ │ ├── MixinEntityPig.java │ │ │ │ └── MixinEntity.java │ │ │ ├── MixinWorld.java │ │ │ └── gui │ │ │ │ ├── MixinBossOverlay.java │ │ │ │ └── MixinGuiInGame.java │ │ └── loader │ │ │ └── MixinLoader.java │ │ └── OnepopMod.java │ ├── me │ └── rina │ │ └── turok │ │ ├── hardware │ │ ├── keyboard │ │ │ └── TurokKeyboard.java │ │ └── mouse │ │ │ └── TurokMouse.java │ │ ├── util │ │ ├── TurokGeneric.java │ │ ├── TurokClass.java │ │ └── TurokTick.java │ │ ├── Turok.java │ │ └── render │ │ ├── font │ │ └── TurokFont.java │ │ └── image │ │ ├── management │ │ └── TurokImageManager.java │ │ └── TurokImage.java │ └── team │ └── stiff │ └── pomelo │ ├── dispatch │ └── EventDispatcher.java │ ├── filter │ ├── EventFilterScanner.java │ └── EventFilter.java │ ├── impl │ └── annotated │ │ ├── handler │ │ ├── scan │ │ │ ├── AnnotatedListenerPredicate.java │ │ │ └── MethodHandlerScanner.java │ │ └── annotation │ │ │ └── Listener.java │ │ ├── dispatch │ │ └── MethodEventDispatcher.java │ │ └── filter │ │ └── MethodFilterScanner.java │ ├── handler │ ├── scan │ │ └── EventHandlerScanner.java │ ├── ListenerPriority.java │ └── EventHandler.java │ └── EventManager.java ├── readme_dev.txt ├── gradle.properties ├── SublimeTextBuild.py └── .gitignore /cmd.bat: -------------------------------------------------------------------------------- 1 | gradlew setupDecompWorkspace --stop && gradlew clean build 2 | 3 | pause 4 | -------------------------------------------------------------------------------- /splash/splash_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/splash/splash_1.png -------------------------------------------------------------------------------- /splash/splash_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/splash/splash_2.png -------------------------------------------------------------------------------- /splash/splash_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/splash/splash_3.png -------------------------------------------------------------------------------- /splash/splash_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/splash/splash_4.png -------------------------------------------------------------------------------- /splash/splash_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/splash/splash_5.png -------------------------------------------------------------------------------- /splash/splash_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/splash/splash_6.png -------------------------------------------------------------------------------- /splash/splash_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/splash/splash_7.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/main/resources/images/onepop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/src/main/resources/images/onepop.png -------------------------------------------------------------------------------- /src/main/resources/win32-x86/discord-rpc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/src/main/resources/win32-x86/discord-rpc.dll -------------------------------------------------------------------------------- /src/main/resources/darwin/libdiscord-rpc.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/src/main/resources/darwin/libdiscord-rpc.dylib -------------------------------------------------------------------------------- /src/main/resources/linux-x86-64/libdiscord-rpc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/src/main/resources/linux-x86-64/libdiscord-rpc.so -------------------------------------------------------------------------------- /src/main/resources/win32-x86-64/discord-rpc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/src/main/resources/win32-x86-64/discord-rpc.dll -------------------------------------------------------------------------------- /readme_dev.txt: -------------------------------------------------------------------------------- 1 | gradlew setupDecompWorkspace --stop && gradlew clean build 2 | 3 | 4 | 5 | 6 | 7 | gradlew setupDecompWorkspace --refresh-dependencies 8 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/Meter.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | public enum Meter { 4 | BPS, KMH; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/Type.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | public enum Type { 4 | TEXT, IMAGE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/XPType.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | public enum XPType { 4 | TEXT, IMAGE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/assets/onepop/images/transparent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrsrina/onepop/HEAD/src/main/resources/assets/onepop/images/transparent.png -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/component/ColorMode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.component; 2 | 3 | public enum ColorMode { 4 | HUD, RGB, HUE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/component/StringType.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.component; 2 | 3 | public enum StringType { 4 | USE, NOT_USE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/setting/value/Smooth.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.setting.value; 2 | 3 | public enum Smooth { 4 | PRIMITIVE, INTEGER; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/CrystalType.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | public enum CrystalType { 4 | TEXT, IMAGE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/Direction.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | public enum Direction { 4 | NSWE, XZ, NONE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/Placement.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | public enum Placement { 4 | Flat, Stacked 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/gui/rocan/Type.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.gui.rocan; 2 | 3 | public enum Type { 4 | TEXT, DOUBLE, UP, LEFT; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/setting/value/InputType.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.setting.value; 2 | 3 | public enum InputType { 4 | MOUSE, KEYBOARD; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/entity/Dimension.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.entity; 2 | 3 | public enum Dimension { 4 | WORLD, NETHER, END; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/GoldenAppleType.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | public enum GoldenAppleType { 4 | TEXT, IMAGE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/manager/overlay/Priority.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.manager.overlay; 2 | 3 | public enum Priority { 4 | HIGH, NORMAL; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/quiver/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.quiver; 2 | 3 | public enum Mode { 4 | TOGGLE, SMART; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/exploit/autohat/Flag.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.exploit.autohat; 2 | 3 | public enum Flag { 4 | PRE, POST; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/autoeat/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc.autoeat; 2 | 3 | public enum Mode { 4 | HEALTH, FOOD; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/component/Dock.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.component; 2 | 3 | public enum Dock { 4 | TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/client/anticheat/Type.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.client.anticheat; 2 | 3 | public enum Type { 4 | NCP, VANILLA; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/burrow/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.burrow; 2 | 3 | public enum Mode { 4 | TP, JUMP, STRICT; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/selfweb/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.selfweb; 2 | 3 | public enum Mode { 4 | TOGGLE, SMART; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/manager/network/Rotation.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.manager.network; 2 | 3 | public enum Rotation { 4 | SEND, REL, LEGIT, NONE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/elyraflight/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.elyraflight; 2 | 3 | public enum Mode { 4 | NORMAL, STATIC 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/liquidspeed/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.liquidspeed; 2 | 3 | public enum Mode { 4 | BOOST, STATIC; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/longjump/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.longjump; 2 | 3 | public enum Mode { 4 | MOTION, INSTANT; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/strafe/JumpMode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.strafe; 2 | 3 | public enum JumpMode { 4 | AUTO, MANUAL; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/strafe/SpeedMode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.strafe; 2 | 3 | public enum SpeedMode { 4 | FLAG, NONE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/render/fullbright/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.render.fullbright; 2 | 3 | public enum Mode { 4 | POTION, GAMMA; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/critical/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.critical; 2 | 3 | public enum Mode { 4 | PACKET, JUMP, LOWHOP; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/offhand/NoFail.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.offhand; 2 | 3 | public enum NoFail { 4 | PACKET, HEALTH, NONE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/surround/Render.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.surround; 2 | 3 | public enum Render { 4 | SOLID, OUTLINE, NONE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/armoralert/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc.armoralert; 2 | 3 | public enum Mode { 4 | CHAT, NOTIFIER, RENDER; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/autofish/Flag.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc.autofish; 2 | 3 | public enum Flag { 4 | Splash, Fishing, NoFishing; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/elyraflight/Fly.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.elyraflight; 2 | 3 | public enum Fly { 4 | PACKET, LEGIT, NONE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/phasewalk/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.phasewalk; 2 | 3 | public enum Mode { 4 | SMOOTH, 5 | CLIP 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/render/esp/impl/Category.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.render.esp.impl; 2 | 3 | public enum Category { 4 | SAFE, UNSAFE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/interfaces/IMinecraft.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.interfaces; 2 | 3 | public interface IMinecraft { 4 | void setRightClickDelayTimer(int delay); 5 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/MessageType.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | public enum MessageType { 4 | PIG, CACHORRO_DO_HERO, CACHORRO_DO_RINA 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/longjump/CalculateMode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.longjump; 2 | 3 | public enum CalculateMode { 4 | AIR, BASE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/reversestep/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.reversestep; 2 | 3 | public enum Mode { 4 | SMOOTH, NORMAL, BYPASS; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/strafe/BoostType.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.strafe; 2 | 3 | public enum BoostType { 4 | HERMES, SPEED, MOTION, NONE; 5 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/holefiller/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.holefiller; 2 | 3 | public enum Mode { 4 | WEB, OBSIDIAN, ENCHEST, ALL; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/offhand/FindMode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.offhand; 2 | 3 | public enum FindMode { 4 | INVENTORY, HOT_BAR, FULL; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/strafe/BoostOnGround.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.strafe; 2 | 3 | public enum BoostOnGround { 4 | STAMP, STATIC, NONE; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/render/esp/impl/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.render.esp.impl; 2 | 3 | public enum Mode { 4 | SMOOTH, FILL, LINE, OUTLINE, SKIN; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/autocity/BreakModes.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.autocity; 2 | 3 | enum BreakModes { 4 | PacketMine, 5 | InstantMine 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/exploit/autohat/PostHatMode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.exploit.autohat; 2 | 3 | public enum PostHatMode { 4 | DROP, MOVE_TO_INVENTORY; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/autowalk/Direction.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.autowalk; 2 | 3 | public enum Direction { 4 | FORWARD, BACK, LEFT, RIGHT; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/gui/minecraft/GameOver.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.gui.minecraft; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 01/06/2021 at 01:37 6 | **/ 7 | public class GameOver { 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/offhand/OffhandMode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.offhand; 2 | 3 | public enum OffhandMode { 4 | TOTEM, CRYSTAL, GAPPLE, BOW, BED, SPLASH; 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/event/impl/EventStage.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.event.impl; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 15/11/20 at 7:45pm 6 | */ 7 | public enum EventStage { 8 | PRE, POST; 9 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/gui/minecraft/PauseGame.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.gui.minecraft; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 01/06/2021 at 01:35 6 | **/ 7 | public class PauseGame { 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/gui/minecraft/Reconnect.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.gui.minecraft; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 01/06/2021 at 01:36 6 | **/ 7 | public class Reconnect { 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/gui/minecraft/ServerList.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.gui.minecraft; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 01/06/2021 at 01:36 6 | **/ 7 | public class ServerList { 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/client/FlagBoolUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.client; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 04/02/2021 at 21:06 6 | **/ 7 | public enum FlagBoolUtil { 8 | TRUE, FALSE; 9 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/social/type/SocialType.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.social.type; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 22/01/2021 at 17:10 6 | **/ 7 | public enum SocialType { 8 | FRIEND, ENEMY, UNKNOWN; 9 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/setting/value/Picker.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.setting.value; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 06/07/2021 at 09:21 6 | **/ 7 | public enum Picker { 8 | BOOLEAN, NORMAL; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/client/FlagModeUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.client; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 07/02/2021 at 00:02 6 | **/ 7 | public enum FlagModeUtil { 8 | ENABLE, DISABLE, CANCEL; 9 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/render/esp/impl/Type.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.render.esp.impl; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 16/09/2021 at 22:23 6 | **/ 7 | public enum Type { 8 | SOFT, WIRE; 9 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/strict/util/EnumRotation.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.strict.util; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 06/07/2021 at 19:33 6 | **/ 7 | public enum EnumRotation { 8 | PACKET, LEGIT; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/bedaura/Rotation.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.bedaura; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 28/09/2021 at 17:31 6 | **/ 7 | public enum Rotation { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/render/type/EnumCube.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.render.type; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 16/07/2021 at 21:07 6 | **/ 7 | public enum EnumCube { 8 | NORMAL, MODERN; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/gui/flag/Flag.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.gui.flag; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 18/11/20 at 7:00pm 6 | */ 7 | public enum Flag { 8 | MOUSE_OVER, MOUSE_NOT_OVER, ANIMATION_START, ANIMATION_END 9 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/bedaura/Loop.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.bedaura; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 04/10/2021 at 18:39 6 | **/ 7 | public enum Loop { 8 | RECEIVE, FAST, POST; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/client/developer/Sector.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.client.developer; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 30/09/2021 at 18:48 6 | **/ 7 | public enum Sector { 8 | PLAYER, ROTATIONS; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/bedaura/TargetMode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.bedaura; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 04/10/2021 at 18:33 6 | **/ 7 | public enum TargetMode { 8 | UNSAFE, CLOSEST; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/straferewrite/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.straferewrite; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 03/10/2021 at 11:35am 6 | **/ 7 | public enum Mode { 8 | CROUCH, HOP, LEGIT; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/straferewrite/Boost.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.straferewrite; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 09/10/2021 at 00:12 6 | **/ 7 | public enum Boost { 8 | HERMES, CONTROL, OFF; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/render/esp/impl/ModeRender.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.render.esp.impl; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 19/07/2021 at 19:35 6 | **/ 7 | public enum ModeRender { 8 | TOUCH, BOX, MINECRAFT; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/render/waypoints/impl/Render.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.render.waypoints.impl; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 13/07/2021 at 01:36 6 | **/ 7 | public enum Render { 8 | OUTLINE, AABB, TAG; 9 | } 10 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Oct 22 11:12:30 MDT 2019 2 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-all.zip 3 | distributionBase=GRADLE_USER_HOME 4 | distributionPath=wrapper/dists 5 | zipStorePath=wrapper/dists 6 | zipStoreBase=GRADLE_USER_HOME 7 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/autocrystalrewrite/Tab.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.autocrystalrewrite; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 19/09/2021 at 23:35 6 | **/ 7 | public enum Tab { 8 | CRYSTAL, MISC, RENDER; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/autocrystalrewrite/Verify.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.autocrystalrewrite; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 19/09/2021 at 16:12 6 | **/ 7 | public enum Verify { 8 | PRE, POLL, POST; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/phasewalk/TeleportMode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.phasewalk; 2 | 3 | public enum TeleportMode { 4 | ALL, 5 | BELOW, 6 | ABOVE, 7 | NOBAND, 8 | LAST, 9 | CANCEL, 10 | NONE 11 | } 12 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Created by Rina. 2 | org.gradle.jvmargs =-Xmx3G 3 | 4 | # Client stuff. 5 | clientName = onepop 6 | clientVersion = 2.5 7 | clientGroup = rina.onepop.club 8 | clientBaseName = 1pop 9 | mappings12 = 39-1.12 10 | forgeGradle3 = 3.0.191 11 | mincreaft12 = 1.12.2-14.23.5.2854 -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/autocrystalrewrite/Switch.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.autocrystalrewrite; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 20/09/2021 at 19:43 6 | **/ 7 | public enum Switch { 8 | NORMAL, SILENT, NONE; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/straferewrite/CalculateMode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player.straferewrite; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 03/10/2021 at 11:47am 6 | **/ 7 | public enum CalculateMode { 8 | MINIMAL, LARGE; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/entity/TravelEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.entity; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 25/10/2021 at 18:16 8 | **/ 9 | public class TravelEvent extends Event { 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/autocrystalrewrite/Priority.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.autocrystalrewrite; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 01/10/2021 at 10:02am 6 | * 7 | **/ 8 | public enum Priority { 9 | HIGH, LOW, OFF; 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/ModuleAutoReconnect.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 15/05/2021 at 17:17 8 | **/ 9 | 10 | public class ModuleAutoReconnect extends Module { 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/hardware/keyboard/TurokKeyboard.java: -------------------------------------------------------------------------------- 1 | package me.rina.turok.hardware.keyboard; 2 | 3 | import org.lwjgl.input.Keyboard; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 07/01/2021 at 12:33 8 | **/ 9 | public class TurokKeyboard { 10 | public static String toString(int key) { 11 | return (key != -1 ? Keyboard.getKeyName(key) : "NONE"); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/render/MixinRenderItem.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.render; 2 | 3 | import net.minecraft.client.renderer.entity.RenderEntityItem; 4 | import org.spongepowered.asm.mixin.Mixin; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 12/07/2021 at 16:35 9 | **/ 10 | @Mixin(RenderEntityItem.class) 11 | public class MixinRenderItem { 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/render/MixinRenderBlock.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.render; 2 | 3 | import net.minecraft.client.renderer.BlockRendererDispatcher; 4 | import org.spongepowered.asm.mixin.Mixin; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 17/07/2021 at 23:50 9 | **/ 10 | @Mixin(BlockRendererDispatcher.class) 11 | public class MixinRenderBlock { 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/item/PlayerInventoryUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.item; 2 | 3 | import rina.onepop.club.Onepop; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 07/03/2021 at 18:24 8 | **/ 9 | public class PlayerInventoryUtil { 10 | public static void setCurrentHotBarItem(int slotIn) { 11 | Onepop.MC.player.inventory.currentItem = slotIn; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/interfaces/IEntityPlayerSP.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.interfaces; 2 | 3 | /** 4 | * @author Scrim | Brennan 5 | * 6 | * - Scrim!, you are awesome, now kisses, let me skid it 7 | **/ 8 | public interface IEntityPlayerSP { 9 | boolean isInLiquid(); 10 | boolean isOnLiquid(); 11 | boolean isMoving(); 12 | 13 | void setInPortal(boolean portal); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/entity/PigEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.entity; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 16/05/2021 at 19:41 9 | **/ 10 | public class PigEvent extends Event { 11 | public PigEvent(EventStage stage) { 12 | super(stage); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/manager/world/BreakManager.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.manager.world; 2 | 3 | import rina.onepop.club.api.manager.Manager; 4 | 5 | /** 6 | * Rina... 7 | **/ 8 | public class BreakManager extends Manager { 9 | public static int ID; 10 | public static boolean DEBUG; 11 | 12 | public BreakManager() { 13 | super("Break Manager", "Manage breaks!"); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/client/ClientTickEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.client; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 06/12/20 at 12:02am 9 | */ 10 | public class ClientTickEvent extends Event { 11 | public ClientTickEvent() { 12 | super(EventStage.PRE); 13 | } 14 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/client/RunTickEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.client; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 17/04/2021 at 15:40 9 | **/ 10 | public class RunTickEvent extends Event { 11 | public RunTickEvent() { 12 | super(EventStage.PRE); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/entity/PushBlockEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.entity; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 19/05/2021 at 01:39 9 | **/ 10 | public class PushBlockEvent extends Event { 11 | public PushBlockEvent() { 12 | super(EventStage.PRE); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/entity/PlayerJumpEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.entity; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 09/11/2021 at 23:57 9 | **/ 10 | public class PlayerJumpEvent extends Event { 11 | public PlayerJumpEvent() { 12 | super(EventStage.PRE); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/entity/PushPlayerEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.entity; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 19/05/2021 at 01:38 9 | **/ 10 | public class PushPlayerEvent extends Event { 11 | public PushPlayerEvent() { 12 | super(EventStage.PRE); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/entity/PushWatterEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.entity; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 19/05/2021 at 01:38 9 | **/ 10 | public class PushWatterEvent extends Event { 11 | public PushWatterEvent() { 12 | super(EventStage.PRE); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/render/RenderNameEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.render; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 25/02/2021 at 16:26 9 | **/ 10 | public class RenderNameEvent extends Event { 11 | public RenderNameEvent(EventStage stage) { 12 | super(stage); 13 | } 14 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/entity/EntityUpdateEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.entity; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 01/10/2021 at 00:24 9 | **/ 10 | public class EntityUpdateEvent extends Event { 11 | public EntityUpdateEvent() { 12 | super(EventStage.PRE); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/network/MixinServerPinger.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.network; 2 | 3 | import net.minecraft.client.network.ServerPinger; 4 | import org.spongepowered.asm.mixin.Mixin; 5 | import org.spongepowered.asm.mixin.injection.Inject; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 01/07/2021 at 20:50 10 | **/ 11 | @Mixin(ServerPinger.class) 12 | public class MixinServerPinger { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/main/resources/pack.mcmeta: -------------------------------------------------------------------------------- 1 | { 2 | "pack": { 3 | "description": "examplemod resources", 4 | "pack_format": 3, 5 | "_comment": "A pack_format of 3 should be used starting with Minecraft 1.11. All resources, including language files, should be lowercase (eg: en_us.lang). A pack_format of 2 will load your mod resources with LegacyV2Adapter, which requires language files to have uppercase letters (eg: en_US.lang)." 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/entity/AbstractHorseEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.entity; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 16/05/2021 at 19:51 9 | **/ 10 | public class AbstractHorseEvent extends Event { 11 | public AbstractHorseEvent(EventStage stage) { 12 | super(stage); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/render/RenderPotionEffects.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.render; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 25/02/2021 at 22:29 9 | **/ 10 | public class RenderPotionEffects extends Event { 11 | public RenderPotionEffects(EventStage stage) { 12 | super(stage); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/render/RenderPortalOverlayEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.render; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 25/02/2021 at 22:36 9 | **/ 10 | public class RenderPortalOverlayEvent extends Event { 11 | public RenderPortalOverlayEvent(EventStage stage) { 12 | super(stage); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/resources/mcmod.info: -------------------------------------------------------------------------------- 1 | [{ 2 | "modid": "onepop", 3 | "name": "Onepop", 4 | "description": "Onepop is an utility combat client paid made by Rina, but now open source & free.", 5 | "version": "2.5.4", 6 | "mcversion": "1.12.2", 7 | "url": "https://github.com/SirRina/onepop", 8 | "updateUrl": "", 9 | "authorList": ["rina", "doctor-swag", "hero"], 10 | "logoFile": "", 11 | "credits": "rina", 12 | "screenshots": [], 13 | "dependencies": [] 14 | }] -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/autoweb/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.autoweb; 2 | 3 | import net.minecraft.util.math.BlockPos; 4 | 5 | public enum Mode { 6 | TRAP(ModuleAutoWeb.MASK_FULLY), POSITION(ModuleAutoWeb.EMPTY); 7 | 8 | BlockPos[] mask; 9 | 10 | Mode(final BlockPos[] mask) { 11 | this.mask = mask; 12 | } 13 | 14 | public BlockPos[] getMask() { 15 | return mask; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/entity/MixinEntityBoat.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.entity; 2 | 3 | import net.minecraft.entity.item.EntityBoat; 4 | import org.spongepowered.asm.mixin.Mixin; 5 | import org.spongepowered.asm.mixin.injection.Redirect; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 27/06/2021 at 04:09 10 | **/ 11 | @Mixin(EntityBoat.class) 12 | public class MixinEntityBoat { 13 | //@Redirect(method = "getBoatStatus", ) 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/util/TurokGeneric.java: -------------------------------------------------------------------------------- 1 | package me.rina.turok.util; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 26/11/20 at 7:19pm 6 | */ 7 | public class TurokGeneric { 8 | private S value; 9 | 10 | public TurokGeneric(final S value) { 11 | this.value = value; 12 | } 13 | 14 | public void setValue(S value) { 15 | this.value = value; 16 | } 17 | 18 | public S getValue() { 19 | return value; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/manager/impl/ManageStructure.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.manager.impl; 2 | 3 | import rina.onepop.club.Onepop; 4 | import net.minecraft.client.Minecraft; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 14/02/2021 at 11:12 9 | **/ 10 | public interface ManageStructure { 11 | Minecraft mc = Onepop.getMinecraft(); 12 | 13 | /** 14 | * Called in ClientTickEvent forge. 15 | */ 16 | public void onUpdateAll(); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/network/ServerUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.network; 2 | 3 | import net.minecraft.client.network.NetworkPlayerInfo; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 23/02/2021 at 20:17 8 | **/ 9 | public class ServerUtil { 10 | public static int getPing(NetworkPlayerInfo player) { 11 | boolean flag = player.getResponseTime() < 0; 12 | 13 | return flag ? -1 : player.getResponseTime(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/autotrap/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.autotrap; 2 | 3 | import net.minecraft.util.math.BlockPos; 4 | 5 | public enum Mode { 6 | FULLY(ModuleAutoTrap.MASK_FULLY), CITY(ModuleAutoTrap.MASK_CITY); 7 | 8 | BlockPos[] mask; 9 | 10 | Mode(final BlockPos[] mask) { 11 | this.mask = mask; 12 | } 13 | 14 | public BlockPos[] getMask() { 15 | return mask; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/selftrap/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.selftrap; 2 | 3 | import net.minecraft.util.math.BlockPos; 4 | 5 | public enum Mode { 6 | FULLY(ModuleSelfTrap.MASK_FULLY), CITY(ModuleSelfTrap.MASK_CITY); 7 | 8 | BlockPos[] mask; 9 | 10 | Mode(final BlockPos[] mask) { 11 | this.mask = mask; 12 | } 13 | 14 | public BlockPos[] getMask() { 15 | return mask; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/gui/minecraft/MainMenu.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.gui.minecraft; 2 | 3 | import net.minecraft.client.gui.GuiMainMenu; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 28/04/2021 at 23:55 8 | **/ 9 | public class MainMenu extends GuiMainMenu { 10 | 11 | 12 | @Override 13 | public void drawScreen(int mx, int my, float partialTicks) { 14 | super.drawScreen(mx, my, partialTicks); 15 | 16 | this.selectedButton = null; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/OnepopMod.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club; 2 | 3 | import net.minecraftforge.fml.common.Mod; 4 | import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; 5 | 6 | @Mod(modid = "onepop", name = Onepop.NAME, version = Onepop.VERSION) 7 | public class OnepopMod { 8 | public static Onepop INSTANCE = new Onepop(); 9 | 10 | @Mod.EventHandler 11 | public void preInit(FMLPreInitializationEvent event) { 12 | INSTANCE.onClientStarted(event); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/ISLClass.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api; 2 | 3 | import rina.onepop.club.Onepop; 4 | import net.minecraft.client.Minecraft; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 06/12/20 at 01:04am 9 | */ 10 | public interface ISLClass { 11 | Minecraft mc = Onepop.getMinecraft(); 12 | 13 | /** 14 | * Make the class savable; 15 | */ 16 | public void onSave(); 17 | 18 | /** 19 | * Make the class loadable; 20 | */ 21 | public void onLoad(); 22 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/client/ByteManipulator.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.client; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 12/08/2021 at 23:55 6 | **/ 7 | public class ByteManipulator { 8 | public static byte FALSE = 0; 9 | public static byte TRUE = 1; 10 | 11 | public static boolean byteToBoolean(byte value) { 12 | return value == TRUE; 13 | } 14 | 15 | public static boolean intToBoolean(int i) { 16 | return i == TRUE; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/middleclick/Mode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc.middleclick; 2 | 3 | import net.minecraft.init.Items; 4 | import net.minecraft.item.Item; 5 | 6 | public enum Mode { 7 | ENDER_PEARL(Items.ENDER_PEARL), XP(Items.EXPERIENCE_BOTTLE), FRIEND(null), ENEMY(null), BURROW(null); 8 | 9 | Item item; 10 | 11 | Mode(Item item) { 12 | this.item = item; 13 | } 14 | 15 | public Item getItem() { 16 | return item; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/module/impl/ModuleCategory.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.module.impl; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 15/11/20 at 4:51pm 6 | */ 7 | public enum ModuleCategory { 8 | COMBAT("Combat"), PLAYER("Player"), RENDER("Render"), EXPLOIT("Exploit"), MISC("Misc"), CLIENT("Client"); 9 | 10 | private final String tag; 11 | 12 | ModuleCategory(String tag) { 13 | this.tag = tag; 14 | } 15 | 16 | public String getTag() { 17 | return tag; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/render/EnumHandSideEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.render; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import net.minecraft.util.EnumHandSide; 5 | 6 | public class EnumHandSideEvent extends Event { 7 | 8 | private final EnumHandSide handSide; 9 | 10 | public EnumHandSideEvent(EnumHandSide handSide) { 11 | this.handSide = handSide; 12 | } 13 | 14 | public EnumHandSide getHandSide() { 15 | return handSide; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/team/stiff/pomelo/dispatch/EventDispatcher.java: -------------------------------------------------------------------------------- 1 | package team.stiff.pomelo.dispatch; 2 | 3 | /** 4 | * The dispatcher handles invocation of all registered listeners. 5 | * 6 | * @author Daniel 7 | * @since May 31, 2017 8 | */ 9 | public interface EventDispatcher { 10 | 11 | /** 12 | * Dispatch all listeners that are listening for the 13 | * given event. 14 | * 15 | * @param event event instance 16 | * @param event type 17 | */ 18 | void dispatch(E event); 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/command/impl/CommandPrefix.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.command.impl; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 16/11/20 at 02:03pm 6 | */ 7 | public class CommandPrefix { 8 | private String prefix; 9 | 10 | public CommandPrefix(String prefix) { 11 | this.prefix = prefix; 12 | } 13 | 14 | public void setPrefix(String prefix) { 15 | this.prefix = prefix; 16 | } 17 | 18 | public String getPrefix() { 19 | return prefix; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/render/PerspectiveEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.render; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | 5 | public class PerspectiveEvent extends Event { 6 | private float aspect; 7 | 8 | public PerspectiveEvent(float aspect) { 9 | this.aspect = aspect; 10 | } 11 | 12 | public float getAspect() { 13 | return aspect; 14 | } 15 | 16 | public void setAspect(float aspect) { 17 | this.aspect = aspect; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/team/stiff/pomelo/filter/EventFilterScanner.java: -------------------------------------------------------------------------------- 1 | package team.stiff.pomelo.filter; 2 | 3 | import java.util.Set; 4 | 5 | /** 6 | * Scans a listener for any filters associated with the listener. 7 | * 8 | * @author Daniel 9 | * @since Jun 13, 2017 10 | */ 11 | public interface EventFilterScanner { 12 | 13 | /** 14 | * Finds all associated filters with the given listener 15 | * type. 16 | * 17 | * @param listener listener instance 18 | */ 19 | Set scan(T listener); 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/bedaura/ClickHand.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.bedaura; 2 | 3 | import net.minecraft.util.EnumHand; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 04/10/2021 at 18:34 8 | **/ 9 | public enum ClickHand { 10 | AUTO(null), OFF(EnumHand.OFF_HAND), MAIN(EnumHand.MAIN_HAND); 11 | 12 | EnumHand hand; 13 | 14 | ClickHand(EnumHand hand) { 15 | this.hand = hand; 16 | } 17 | 18 | public EnumHand getHand() { 19 | return hand; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/module/registry/Registry.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.module.registry; 2 | 3 | import rina.onepop.club.api.module.impl.ModuleCategory; 4 | 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | 8 | /** 9 | * @author SrRina 10 | * @since 08/02/2021 at 11:50 11 | **/ 12 | @Retention(RetentionPolicy.RUNTIME) 13 | public @interface Registry { 14 | String name(); 15 | String tag(); 16 | String description() default ""; 17 | 18 | ModuleCategory category(); 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/preset/impl/PresetState.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.preset.impl; 2 | 3 | import com.google.gson.JsonObject; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 10/07/2021 at 14:18 8 | **/ 9 | public class PresetState { 10 | protected JsonObject metaData; 11 | 12 | public PresetState() { 13 | 14 | } 15 | 16 | public void setMetaData(JsonObject metaData) { 17 | this.metaData = metaData; 18 | } 19 | 20 | public JsonObject getMetaData() { 21 | return metaData; 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/exploit/ModulePacketFly.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.exploit; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 09/05/2021 at 00:44 10 | **/ 11 | @Registry(name = "Packet Fly", tag = "PacketFly", description = "Allows you fly on any server!", category = ModuleCategory.EXPLOIT) 12 | public class ModulePacketFly extends Module { 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/entity/EntityCollisionEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.entity; 2 | 3 | import net.minecraft.entity.Entity; 4 | import rina.onepop.club.api.event.Event; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 04/07/2021 at 16:46 9 | **/ 10 | public class EntityCollisionEvent extends Event { 11 | private final Entity entity; 12 | 13 | public EntityCollisionEvent(Entity player) { 14 | super(); 15 | 16 | this.entity = player; 17 | } 18 | 19 | public Entity getEntity() { 20 | return entity; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/team/stiff/pomelo/impl/annotated/handler/scan/AnnotatedListenerPredicate.java: -------------------------------------------------------------------------------- 1 | package team.stiff.pomelo.impl.annotated.handler.scan; 2 | 3 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 4 | 5 | import java.lang.reflect.Method; 6 | import java.util.function.Predicate; 7 | 8 | public final class AnnotatedListenerPredicate implements Predicate { 9 | 10 | @Override 11 | public boolean test(final Method method) { 12 | return method.isAnnotationPresent(Listener.class) && 13 | method.getParameterCount() == 1; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/network/ConfirmEntityPacketEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.network; 2 | 3 | import net.minecraft.entity.Entity; 4 | import rina.onepop.club.api.event.Event; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 07/07/2021 at 01:12 9 | **/ 10 | public class ConfirmEntityPacketEvent extends Event { 11 | private final Entity entity; 12 | 13 | public ConfirmEntityPacketEvent(Entity entityIn) { 14 | super(); 15 | 16 | this.entity = entityIn; 17 | } 18 | 19 | public Entity getEntity() { 20 | return entity; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/util/TurokClass.java: -------------------------------------------------------------------------------- 1 | package me.rina.turok.util; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 03/12/20 at 10:49pm 6 | */ 7 | public class TurokClass { 8 | public static Enum getEnumByName(Enum _enum, String name) { 9 | for (Enum enums : _enum.getClass().getEnumConstants()) { 10 | if (enums.name().equalsIgnoreCase(name)) { 11 | return enums; 12 | } 13 | } 14 | 15 | return _enum; 16 | } 17 | 18 | public static boolean isAnnotationPreset(Class clazz, Class clazz1) { 19 | return clazz.isAnnotationPresent(clazz1); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/client/DateTimerUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.client; 2 | 3 | import java.time.LocalDateTime; 4 | import java.time.format.DateTimeFormatter; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 13/08/2021 at 00:01 9 | **/ 10 | public class DateTimerUtil { 11 | public static final String TIME_AND_DATE = "HH:mm:ss dd/MM/uuuu"; 12 | 13 | public static String time(String pattern) { 14 | final DateTimeFormatter formatter = DateTimeFormatter.ofPattern(pattern); 15 | final LocalDateTime time = LocalDateTime.now(); 16 | 17 | return formatter.format(time); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/ModuleMultitask.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 26/04/2021 at 23:51 10 | **/ 11 | @Registry(name = "Multitask", tag = "Multitask", description = "Magic hands!", category = ModuleCategory.MISC) 12 | public class ModuleMultitask extends Module { 13 | public static ModuleMultitask INSTANCE; 14 | 15 | public ModuleMultitask() { 16 | INSTANCE = this; 17 | } 18 | } -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/Turok.java: -------------------------------------------------------------------------------- 1 | package me.rina.turok; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 19/11/20 at 8:14pm 6 | * 7 | * - Turok framework is one helper and util to Minecraft modding. 8 | */ 9 | public class Turok { 10 | public static String AUTHOR = "SrRina"; 11 | public static String VERSION = "6.0.6"; 12 | public static String NAME = "Turok Framework"; 13 | 14 | public static String getAuthor() { 15 | return AUTHOR; 16 | } 17 | 18 | public static String getVersion() { 19 | return VERSION; 20 | } 21 | 22 | public static String getName() { 23 | return NAME; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/setting/value/ValueBoolean.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.setting.value; 2 | 3 | import rina.onepop.club.api.setting.Setting; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 20/01/2021 at 09:34 8 | **/ 9 | public class ValueBoolean extends Setting { 10 | private boolean value; 11 | 12 | public ValueBoolean(String name, String tag, String description, boolean value) { 13 | super(name, tag, description); 14 | 15 | this.value = value; 16 | } 17 | 18 | public void setValue(boolean value) { 19 | this.value = value; 20 | } 21 | 22 | public boolean getValue() { 23 | return this.value; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/client/NullUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.client; 2 | 3 | import rina.onepop.club.Onepop; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 02/02/2021 at 00:01 8 | **/ 9 | public class NullUtil { 10 | public static boolean isPlayerWorld() { 11 | return Onepop.MC.player == null && Onepop.MC.world == null; 12 | } 13 | 14 | public static boolean isWorld() { 15 | return Onepop.MC.world == null; 16 | } 17 | 18 | public static boolean isPlayer() { 19 | return Onepop.MC.player == null; 20 | } 21 | 22 | public static boolean isGUI() { 23 | return Onepop.MC.currentScreen == null; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/engine/Engine.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.engine; 2 | 3 | import rina.onepop.club.api.engine.caller.Processor; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 14/07/2021 at 23:57 8 | **/ 9 | public class Engine { 10 | public static final String VERSION = "0.1"; 11 | public static final int ID = 0; 12 | 13 | public static Engine INSTANCE; 14 | public static Processor THE_PROCESSOR; 15 | 16 | public Engine() { 17 | THE_PROCESSOR = new Processor(); 18 | } 19 | 20 | public static void initialize() { 21 | INSTANCE = new Engine(); 22 | } 23 | 24 | public static Processor callGPU() { 25 | return THE_PROCESSOR; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/client/ModuleTPSSync.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.client; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.client.event.network.PacketEvent; 7 | 8 | /** 9 | * @author SrRina 10 | * @since 24/02/2021 at 12:15 11 | **/ 12 | @Registry(name = "TPS Sync", tag = "TPSSync", description = "Sync client actions with TPS.", category = ModuleCategory.CLIENT) 13 | public class ModuleTPSSync extends Module { 14 | public static ModuleTPSSync INSTANCE; 15 | 16 | public ModuleTPSSync() { 17 | INSTANCE = this; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/network/StateServerPlayerEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.network; 2 | 3 | import net.minecraft.client.network.NetworkPlayerInfo; 4 | import rina.onepop.club.api.event.Event; 5 | import rina.onepop.club.api.event.impl.EventStage; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 13/07/2021 at 01:42 10 | **/ 11 | public class StateServerPlayerEvent extends Event { 12 | private final NetworkPlayerInfo player; 13 | 14 | public StateServerPlayerEvent(EventStage stage, NetworkPlayerInfo player) { 15 | super(stage); 16 | 17 | this.player = player; 18 | } 19 | 20 | public NetworkPlayerInfo getPlayer() { 21 | return player; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /SublimeTextBuild.py: -------------------------------------------------------------------------------- 1 | class Compile: 2 | def __init__(self, version, final): 3 | self.run(version, final) 4 | 5 | def run(self, version, final): 6 | import os 7 | os.system("gradlew setupDecompWorkspace --stop && gradlew clean build") 8 | #os.system("cd Rocan && gradlew runClient --stop && gradlew clean build") 9 | 10 | import shutil 11 | try: 12 | shutil.copyfile("build/libs/Rocan-" + version + "-all.jar", os.getenv("APPDATA") + "\\.minecraft\\mods\\Rocan-" + final + ".jar") 13 | os.system("start C:/Users/Public/Desktop/Minecraft_Launcher"); 14 | print("Build has been finished. No errors."); 15 | except: 16 | print("A error ocurred in BUILD."); 17 | 18 | import sys 19 | sys.exit() 20 | 21 | Compile("0.1.7", "0.1.7b"); -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/render/Render2DEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.render; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 06/12/20 at 12:22am 9 | */ 10 | public class Render2DEvent extends Event { 11 | private float partialTicks; 12 | 13 | public Render2DEvent(float partialTicks) { 14 | super(EventStage.PRE); 15 | 16 | this.partialTicks = partialTicks; 17 | } 18 | 19 | protected void setPartialTicks(float partialTicks) { 20 | this.partialTicks = partialTicks; 21 | } 22 | 23 | public float getPartialTicks() { 24 | return partialTicks; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/render/Render3DEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.render; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 06/12/20 at 12:25am 9 | */ 10 | public class Render3DEvent extends Event { 11 | private float partialTicks; 12 | 13 | public Render3DEvent(float partialTicks) { 14 | super(EventStage.PRE); 15 | 16 | this.partialTicks = partialTicks; 17 | } 18 | 19 | protected void setPartialTicks(float partialTicks) { 20 | this.partialTicks = partialTicks; 21 | } 22 | 23 | public float getPartialTicks() { 24 | return partialTicks; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/client/ModuleStatusEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.client; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.module.Module; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 08/05/2021 at 21:08 9 | **/ 10 | public class ModuleStatusEvent extends Event { 11 | private Module module; 12 | private boolean newStatus; 13 | 14 | public ModuleStatusEvent(Module module, boolean enabled) { 15 | super(); 16 | 17 | this.module = module; 18 | this.newStatus = enabled; 19 | } 20 | 21 | public boolean isNewStatus() { 22 | return newStatus; 23 | } 24 | 25 | public Module getModule() { 26 | return module; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/team/stiff/pomelo/handler/scan/EventHandlerScanner.java: -------------------------------------------------------------------------------- 1 | package team.stiff.pomelo.handler.scan; 2 | 3 | import team.stiff.pomelo.handler.EventHandler; 4 | 5 | import java.util.Map; 6 | import java.util.Set; 7 | 8 | /** 9 | * Attempts to locate all event listeners in a given object and 10 | * stores them in a unmodifiable list. ({@see #getImmutableListeners}) 11 | * 12 | * @author Daniel 13 | * @since May 31, 2017 14 | */ 15 | public interface EventHandlerScanner { 16 | 17 | /** 18 | * Check the given object for any possible listeners that are 19 | * contained inside. 20 | * 21 | * @return true if listeners located, false otherwise 22 | */ 23 | Map, Set> locate(Object listenerContainer); 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/entity/PlayerDamageBlockEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.entity; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import net.minecraft.util.EnumFacing; 5 | import net.minecraft.util.math.BlockPos; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 08/02/2021 at 15:31 10 | **/ 11 | public class PlayerDamageBlockEvent extends Event { 12 | private BlockPos pos; 13 | private EnumFacing facing; 14 | 15 | public PlayerDamageBlockEvent(BlockPos pos, EnumFacing facing) { 16 | this.pos = pos; 17 | this.facing = facing; 18 | } 19 | 20 | public BlockPos getPos() { 21 | return pos; 22 | } 23 | 24 | public EnumFacing getFacing() { 25 | return facing; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/team/stiff/pomelo/handler/ListenerPriority.java: -------------------------------------------------------------------------------- 1 | package team.stiff.pomelo.handler; 2 | 3 | /** 4 | * Designates the order within a listener of event distribution. This 5 | * is not globally sorted as the current structure of stored event listeners is 6 | * too complex to properly sort without major code refactoring. 7 | * 8 | * todo: hint hint... 9 | */ 10 | public enum ListenerPriority { 11 | LOWEST(-750), 12 | LOWER(-500), 13 | LOW(-250), 14 | NORMAL(0), 15 | HIGH(250), 16 | HIGHER(500), 17 | HIGHEST(750); 18 | 19 | private final int priorityLevel; 20 | 21 | ListenerPriority(final int priorityLevel) { 22 | this.priorityLevel = priorityLevel; 23 | } 24 | 25 | public int getPriorityLevel() { 26 | return priorityLevel; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/underground/DisplayGuiScreenEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.underground; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | import net.minecraft.client.gui.GuiScreen; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 07/06/2021 at 20:58 10 | **/ 11 | public class DisplayGuiScreenEvent extends Event { 12 | private GuiScreen guiScreen; 13 | 14 | public DisplayGuiScreenEvent(final GuiScreen guiScreen) { 15 | super(EventStage.POST); 16 | 17 | this.guiScreen = guiScreen; 18 | } 19 | 20 | public GuiScreen getGuiScreen() { 21 | return guiScreen; 22 | } 23 | 24 | public void setGuiScreen(GuiScreen guiScreen) { 25 | this.guiScreen = guiScreen; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/team/stiff/pomelo/filter/EventFilter.java: -------------------------------------------------------------------------------- 1 | package team.stiff.pomelo.filter; 2 | 3 | import team.stiff.pomelo.handler.EventHandler; 4 | 5 | /** 6 | * An event filter tests whether or not certain conditions 7 | * are met whatever situation the filter will be used in 8 | * before allowing the event handler to be invoked. 9 | * 10 | * @author Daniel 11 | * @since May 31, 2017 12 | */ 13 | public interface EventFilter { 14 | 15 | /** 16 | * Tests the given predicate when the handling 17 | * event is dispatched. 18 | * 19 | * @param eventHandler event handler instance 20 | * @param event instance of event being dispatched 21 | * @return true if listener passes all filters, false otherwise 22 | */ 23 | boolean test(EventHandler eventHandler, E event); 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/preset/impl/PresetValidator.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.preset.impl; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 10/07/2021 at 13:53 6 | **/ 7 | public class PresetValidator { 8 | private String metaData; 9 | private byte certifier; 10 | 11 | public PresetValidator(String metaData, byte certifier) { 12 | this.metaData = metaData; 13 | this.certifier = certifier; 14 | } 15 | 16 | public void setMetaData(String metaData) { 17 | this.metaData = metaData; 18 | } 19 | 20 | public String getMetaData() { 21 | return metaData; 22 | } 23 | 24 | public void setCertifier(byte certifier) { 25 | this.certifier = certifier; 26 | } 27 | 28 | public byte getCertifier() { 29 | return certifier; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/tool/CounterTool.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.tool; 2 | 3 | import java.util.HashMap; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 17/04/2021 at 16:26 8 | **/ 9 | public class CounterTool { 10 | private final HashMap node = new HashMap<>(); 11 | 12 | public CounterTool() { 13 | } 14 | 15 | public void dispatch(T key) { 16 | this.node.put(key, getCount(key) == null ? 1 : getCount(key) + 1); 17 | } 18 | 19 | public void remove(T key) { 20 | this.node.remove(key); 21 | } 22 | 23 | public Integer getCount(T key) { 24 | return this.node.get(key); 25 | } 26 | 27 | public HashMap getNode() { 28 | return node; 29 | } 30 | 31 | public void clear() { 32 | this.node.clear(); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/engine/caller/Processor.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.engine.caller; 2 | 3 | import net.minecraft.client.renderer.BufferBuilder; 4 | import net.minecraft.client.renderer.Tessellator; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 15/07/2021 at 00:08 9 | **/ 10 | public class Processor { 11 | public static Tessellator INSTANCE; 12 | 13 | private BufferBuilder bufferMemory; 14 | 15 | public void setBuffer() { 16 | INSTANCE = Tessellator.getInstance(); 17 | 18 | this.bufferMemory = INSTANCE.getBuffer(); 19 | } 20 | 21 | public void unsetBuffer() { 22 | if (this.bufferMemory == null) { 23 | return; 24 | } 25 | 26 | INSTANCE.draw(); 27 | } 28 | 29 | public BufferBuilder work() { 30 | return this.bufferMemory; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/network/MixinNetHandlerPlayClient.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.network; 2 | 3 | import net.minecraft.client.network.NetHandlerPlayClient; 4 | import net.minecraft.network.play.server.SPacketDisconnect; 5 | import net.minecraft.util.text.ITextComponent; 6 | import org.spongepowered.asm.mixin.Mixin; 7 | import org.spongepowered.asm.mixin.injection.At; 8 | import org.spongepowered.asm.mixin.injection.Inject; 9 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 10 | import rina.onepop.club.Onepop; 11 | import rina.onepop.club.api.event.impl.EventStage; 12 | import rina.onepop.club.client.event.network.TextComponentEvent; 13 | 14 | /** 15 | * @author SrRina 16 | * @since 01/07/2021 at 18:01 17 | **/ 18 | @Mixin(NetHandlerPlayClient.class) 19 | public class MixinNetHandlerPlayClient { 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/event/Event.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.event; 2 | 3 | import rina.onepop.club.api.event.impl.EventStage; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 15/11/20 at 7:45pm 8 | */ 9 | public class Event { 10 | private EventStage stage; 11 | 12 | private boolean isCanceled; 13 | 14 | public Event() { 15 | this.stage = EventStage.PRE; 16 | } 17 | 18 | public Event(EventStage stage) { 19 | this.stage = stage; 20 | } 21 | 22 | public void setStage(EventStage stage) { 23 | this.stage = stage; 24 | } 25 | 26 | public EventStage getStage() { 27 | return stage; 28 | } 29 | 30 | public void setCanceled(boolean canceled) { 31 | isCanceled = canceled; 32 | } 33 | 34 | public boolean isCanceled() { 35 | return isCanceled; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/ComponentPlayerCount.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | import com.mojang.realmsclient.gui.ChatFormatting; 4 | import rina.onepop.club.api.component.Component; 5 | import rina.onepop.club.api.component.StringType; 6 | 7 | public class ComponentPlayerCount extends Component { 8 | 9 | public ComponentPlayerCount() { 10 | super("PlayerCount", "PlayerCount", "Shows the number of players on your screen", StringType.USE); 11 | } 12 | 13 | @Override 14 | public void onRender(float partialTicks) { 15 | String players = "Players " + ChatFormatting.WHITE + mc.player.connection.getPlayerInfoMap().size();; 16 | 17 | render(players,0,0); 18 | 19 | this.rect.setHeight(getStringHeight(players)); 20 | this.rect.setWidth(getStringWidth(players)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/autocrystalrewrite/PacketThread.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat.autocrystalrewrite; 2 | 3 | import net.minecraft.client.Minecraft; 4 | import net.minecraft.network.play.client.CPacketUseEntity; 5 | import net.minecraft.util.EnumHand; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 07/05/2022 at 13:00 10 | **/ 11 | public class PacketThread extends Thread { 12 | private int entityId; 13 | 14 | public PacketThread(int entityId) { 15 | this.entityId = entityId; 16 | } 17 | 18 | @Override 19 | public void run() { 20 | CPacketUseEntity packet = new CPacketUseEntity(); 21 | 22 | packet.entityId = this.entityId; 23 | packet.action = CPacketUseEntity.Action.ATTACK; 24 | 25 | Minecraft.getMinecraft().player.connection.sendPacket(packet); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/render/font/TurokFont.java: -------------------------------------------------------------------------------- 1 | package me.rina.turok.render.font; 2 | 3 | import me.rina.turok.render.font.hal.CFontRenderer; 4 | 5 | import java.awt.*; 6 | 7 | /** 8 | * @author Rina. 9 | * @since 19/11/20 at 1:23pm 10 | */ 11 | public class TurokFont extends CFontRenderer { 12 | private Font font; 13 | private boolean isRenderingCustomFont; 14 | 15 | public TurokFont(Font font, boolean antiAlias, boolean fractionalMetrics) { 16 | super(font, antiAlias, fractionalMetrics); 17 | 18 | this.font = font; 19 | this.isRenderingCustomFont = true; 20 | } 21 | 22 | public void setRenderingCustomFont(boolean renderingCustomFont) { 23 | this.isRenderingCustomFont = renderingCustomFont; 24 | } 25 | 26 | public boolean isRenderingCustomFont() { 27 | return isRenderingCustomFont; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/strict/util/StrictVec.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.strict.util; 2 | 3 | import net.minecraft.util.math.Vec3d; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 06/07/2021 at 18:13 8 | * 9 | * - Doctor swag :heart_eyes: 10 | * 11 | **/ 12 | public class StrictVec { 13 | private Vec3d vec; 14 | private Rotation rotation; 15 | 16 | public StrictVec(Vec3d vec, Rotation rotation) { 17 | this.setVec(vec); 18 | this.setRotation(rotation); 19 | } 20 | 21 | public Vec3d getVec() { 22 | return this.vec; 23 | } 24 | 25 | public void setVec(Vec3d vec) { 26 | this.vec = vec; 27 | } 28 | 29 | public Rotation getRotation() { 30 | return this.rotation; 31 | } 32 | 33 | public void setRotation(Rotation rotation) { 34 | this.rotation = rotation; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/ComponentFPS.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | import com.mojang.realmsclient.gui.ChatFormatting; 4 | import rina.onepop.club.api.component.Component; 5 | import net.minecraft.client.Minecraft; 6 | import rina.onepop.club.api.component.StringType; 7 | 8 | /** 9 | * @author SrRina 10 | * @since 06/04/2021 at 14:02 11 | **/ 12 | public class ComponentFPS extends Component { 13 | public ComponentFPS() { 14 | super("FPS", "FPS", "Shows your FPS!!", StringType.USE); 15 | } 16 | 17 | @Override 18 | public void onRender(float partialTicks) { 19 | String fps = "FPS " + ChatFormatting.GRAY + Minecraft.getDebugFPS(); 20 | 21 | this.render(fps, 0, 0); 22 | 23 | this.rect.setWidth(this.getStringWidth(fps)); 24 | this.rect.setHeight(this.getStringHeight(fps)); 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/social/Social.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.social; 2 | 3 | import rina.onepop.club.api.social.type.SocialType; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 22/01/2021 at 17:09 8 | **/ 9 | public class Social { 10 | public String name; 11 | public SocialType type; 12 | 13 | public Social(String name) { 14 | this.name = name; 15 | this.type = SocialType.UNKNOWN; 16 | } 17 | 18 | public Social(String name, SocialType type) { 19 | this.name = name; 20 | this.type = type; 21 | } 22 | 23 | public void setName(String name) { 24 | this.name = name; 25 | } 26 | 27 | public String getName() { 28 | return name; 29 | } 30 | 31 | public void setType(SocialType type) { 32 | this.type = type; 33 | } 34 | 35 | public SocialType getType() { 36 | return type; 37 | } 38 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/ComponentTPS.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | import com.mojang.realmsclient.gui.ChatFormatting; 4 | import rina.onepop.club.Onepop; 5 | import rina.onepop.club.api.component.Component; 6 | import rina.onepop.club.api.component.StringType; 7 | 8 | /** 9 | * @author SrRina 10 | * @since 06/04/2021 at 14:02 11 | **/ 12 | public class ComponentTPS extends Component { 13 | public ComponentTPS() { 14 | super("TPS", "TPS", "Shows the current TPS!!", StringType.USE); 15 | } 16 | 17 | @Override 18 | public void onRender(float partialTicks) { 19 | String tps = "TPS " + ChatFormatting.GRAY + String.format("%.1f", Onepop.getTPSManager().getTPS()); 20 | 21 | this.render(tps, 0, 0); 22 | 23 | this.rect.setWidth(this.getStringWidth(tps)); 24 | this.rect.setHeight(this.getStringHeight(tps)); 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/render/waypoints/impl/Waypoint.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.render.waypoints.impl; 2 | 3 | import me.rina.turok.util.TurokTick; 4 | import net.minecraft.util.math.BlockPos; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 13/07/2021 at 01:35 9 | **/ 10 | public class Waypoint { 11 | private final BlockPos position; 12 | private final String tag; 13 | private final TurokTick timer = new TurokTick(); 14 | 15 | public Waypoint(BlockPos position, String tag) { 16 | this.position = position; 17 | this.tag = tag; 18 | 19 | this.timer.reset(); 20 | } 21 | 22 | public String getTag() { 23 | return tag; 24 | } 25 | 26 | public BlockPos getPosition() { 27 | return position; 28 | } 29 | 30 | public boolean isAlive(int minutes) { 31 | return !this.timer.isPassedSI(minutes * 60); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/entity/MixinEntityLivingBase.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.entity; 2 | 3 | import net.minecraft.entity.EntityLivingBase; 4 | import org.spongepowered.asm.mixin.Mixin; 5 | import org.spongepowered.asm.mixin.injection.At; 6 | import org.spongepowered.asm.mixin.injection.Inject; 7 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 8 | import rina.onepop.club.Onepop; 9 | import rina.onepop.club.client.event.entity.SetHealthEvent; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 03/05/2021 at 18:46 14 | **/ 15 | @Mixin(EntityLivingBase.class) 16 | public class MixinEntityLivingBase { 17 | // Event 18 | @Inject(method = "setHealth", at = @At("HEAD")) 19 | public void onSetHealth(float health, CallbackInfo ci) { 20 | SetHealthEvent event = new SetHealthEvent(health); 21 | 22 | Onepop.getPomeloEventManager().dispatchEvent(event); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/manager/Manager.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.manager; 2 | 3 | import rina.onepop.club.api.manager.impl.ManageStructure; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 04/02/2021 at 19:07 8 | **/ 9 | public class Manager implements ManageStructure { 10 | private String name; 11 | private String description; 12 | 13 | public Manager(String name, String description) { 14 | this.name = name; 15 | this.description = description; 16 | } 17 | 18 | public void setName(String name) { 19 | this.name = name; 20 | } 21 | 22 | public String getName() { 23 | return name; 24 | } 25 | 26 | public void setDescription(String description) { 27 | this.description = description; 28 | } 29 | 30 | public String getDescription() { 31 | return description; 32 | } 33 | 34 | @Override 35 | public void onUpdateAll() { 36 | 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/entity/UseEntityWorldProcessEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.entity; 2 | 3 | import net.minecraft.entity.Entity; 4 | import net.minecraft.network.play.client.CPacketUseEntity; 5 | import net.minecraft.world.World; 6 | import rina.onepop.club.api.event.Event; 7 | import rina.onepop.club.api.event.impl.EventStage; 8 | 9 | /** 10 | * @author SrRina 11 | * @since 30/06/2021 at 15:46 12 | **/ 13 | public class UseEntityWorldProcessEvent extends Event { 14 | private CPacketUseEntity packet; 15 | private World world; 16 | 17 | public UseEntityWorldProcessEvent(World world, CPacketUseEntity packet) { 18 | super(EventStage.PRE); 19 | 20 | this.packet = packet; 21 | this.world = world; 22 | } 23 | 24 | public World getWorld() { 25 | return world; 26 | } 27 | 28 | public CPacketUseEntity getPacket() { 29 | return packet; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/ComponentDurability.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | import com.mojang.realmsclient.gui.ChatFormatting; 4 | import rina.onepop.club.api.component.Component; 5 | import rina.onepop.club.api.component.StringType; 6 | 7 | /** 8 | * @author Manesko 9 | * @since 12:04am 14/4/2021 10 | */ 11 | public class ComponentDurability extends Component { 12 | public ComponentDurability() { 13 | super("Durability", "durability", "Shows the durability of an item", StringType.USE); 14 | } 15 | 16 | @Override 17 | public void onRender() { 18 | int d = mc.player.getHeldItemMainhand().getItemDamage() - mc.player.getHeldItemMainhand().getMaxDamage(); 19 | 20 | String dura = "Durability " + ChatFormatting.WHITE + d; 21 | 22 | render(dura,0,0); 23 | 24 | this.rect.setWidth(getStringWidth(dura)); 25 | this.rect.setHeight(getStringHeight(dura)); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/entity/SetHealthEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.entity; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | import net.minecraft.entity.player.EntityPlayer; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 04/05/2021 at 01:23 10 | **/ 11 | public class SetHealthEvent extends Event { 12 | private EntityPlayer player; 13 | private float health; 14 | 15 | public SetHealthEvent(float health) { 16 | super(EventStage.PRE); 17 | 18 | this.health = health; 19 | } 20 | 21 | public void setPlayer(EntityPlayer player) { 22 | this.player = player; 23 | } 24 | 25 | public EntityPlayer getPlayer() { 26 | return player; 27 | } 28 | 29 | public void setHealth(float health) { 30 | this.health = health; 31 | } 32 | 33 | public float getHealth() { 34 | return health; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/MixinWorld.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins; 2 | 3 | import rina.onepop.club.Onepop; 4 | import rina.onepop.club.client.event.entity.PushWatterEvent; 5 | import net.minecraft.entity.Entity; 6 | import net.minecraft.world.World; 7 | import org.spongepowered.asm.mixin.Mixin; 8 | import org.spongepowered.asm.mixin.injection.At; 9 | import org.spongepowered.asm.mixin.injection.Redirect; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 19/05/2021 at 01:37 14 | **/ 15 | @Mixin(World.class) 16 | public class MixinWorld { 17 | @Redirect(method = "handleMaterialAcceleration", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/Entity;isPushedByWater()Z")) 18 | public boolean onPushWatter(Entity entity) { 19 | final PushWatterEvent event = new PushWatterEvent(); 20 | 21 | Onepop.getPomeloEventManager().dispatchEvent(event); 22 | 23 | return !event.isCanceled() && entity.isPushedByWater(); 24 | } 25 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/ModulePortalGUI.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.util.client.NullUtil; 7 | import rina.onepop.club.client.event.client.RunTickEvent; 8 | import rina.onepop.club.api.ISLClass; 9 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 15/05/2021 at 17:14 14 | **/ 15 | @Registry(name = "Portal GUI", tag = "PortalGUI", description = "Allows open guis while in portal.", category = ModuleCategory.MISC) 16 | public class ModulePortalGUI extends Module { 17 | @Listener 18 | public void onTick(RunTickEvent event) { 19 | if (NullUtil.isPlayerWorld()) { 20 | return; 21 | } 22 | 23 | ISLClass.mc.player.inPortal = false; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/resources/mixins.onepop.json: -------------------------------------------------------------------------------- 1 | { 2 | "required": true, 3 | "compatibilityLevel": "JAVA_8", 4 | "package": "rina.onepop.club.mixin.mixins", 5 | "refmap": "mixins.onepop.refmap.json", 6 | "mixins": [ 7 | "MixinMinecraft", 8 | "MixinWorld", 9 | "entity.MixinAbstractHorse", 10 | "entity.MixinEntity", 11 | "entity.MixinEntityLivingBase", 12 | "entity.MixinEntityPig", 13 | "entity.MixinEntityPlayerSP", 14 | "entity.MixinEntityRenderer", 15 | "gui.MixinBossOverlay", 16 | "gui.MixinGuiInGame", 17 | "network.MixinNetHandlerPlayClient", 18 | "network.MixinNetHandlerPlayServer", 19 | "network.MixinNetworkManager", 20 | "network.MixinServerPinger", 21 | "player.MixinEntityPlayer", 22 | "player.MixinPlayerControllerMP", 23 | "render.MixinItemRenderer", 24 | "render.MixinRenderEnderCrystal", 25 | "render.MixinRenderItem", 26 | "render.MixinRenderLivingBase" 27 | ], 28 | "client": [ 29 | "MixinLayerBipedArmor" 30 | ] 31 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Build # 2 | ######### 3 | MANIFEST.MF 4 | dependency-reduced-pom.xml 5 | 6 | # Compiled # 7 | ############ 8 | bin 9 | build 10 | classes 11 | dist 12 | lib 13 | libs 14 | out 15 | run 16 | target 17 | *.com 18 | *.class 19 | *.exe 20 | *.o 21 | 22 | # Databases # 23 | ############# 24 | *.db 25 | *.sql 26 | *.sqlite 27 | 28 | # Packages # 29 | ############ 30 | *.7z 31 | *.dmg 32 | *.gz 33 | *.iso 34 | *.rar 35 | *.tar 36 | *.zip 37 | 38 | # Repository # 39 | ############## 40 | .git 41 | 42 | # Logging # 43 | ########### 44 | /logs 45 | *.log 46 | 47 | # Misc # 48 | ######## 49 | *.bak 50 | 51 | # System # 52 | ########## 53 | .DS_Store 54 | ehthumbs.db 55 | Thumbs.db 56 | *.sh 57 | 58 | # Project # 59 | ########### 60 | .checkstyle 61 | .classpath 62 | .externalToolBuilders 63 | .gradle 64 | .nb-gradle 65 | .idea 66 | .project 67 | .settings 68 | eclipse 69 | nbproject 70 | atlassian-ide-plugin.xml 71 | build.xml 72 | nb-configuration.xml 73 | *.iml 74 | *.ipr 75 | *.iws 76 | *.launch 77 | *.number 78 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/exploit/ModuleExtraSlots.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.exploit; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.client.event.network.PacketEvent; 7 | import net.minecraft.network.play.client.CPacketCloseWindow; 8 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 9 | 10 | /** 11 | * @author SrRina 12 | * @since 03/02/2021 at 23:28 13 | **/ 14 | @Registry(name = "Extra Slots", tag = "ExtraSlots", description = "Extra slot inventory.", category = ModuleCategory.EXPLOIT) 15 | public class ModuleExtraSlots extends Module { 16 | @Listener 17 | public void onListen(PacketEvent.Send event) { 18 | // Wow, I don't believe how I made this module. 19 | if (event.getPacket() instanceof CPacketCloseWindow) { 20 | event.setCanceled(true); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/ModuleSafeWalk.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.util.client.NullUtil; 7 | import rina.onepop.club.client.event.client.RunTickEvent; 8 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 9 | 10 | /** 11 | * @author SrRina 12 | * @since 19/05/2021 at 13:19 13 | **/ 14 | @Registry(name = "Safe Walk", tag = "SafeWalk", description = "Sneak on normal speed.", category = ModuleCategory.PLAYER) 15 | public class ModuleSafeWalk extends Module { 16 | public static ModuleSafeWalk INSTANCE; 17 | 18 | public ModuleSafeWalk() { 19 | INSTANCE = this; 20 | } 21 | 22 | @Listener 23 | public void onTick(RunTickEvent event) { 24 | if (NullUtil.isPlayerWorld()) { 25 | return; 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/ModuleJesus.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.util.client.NullUtil; 7 | import rina.onepop.club.client.event.client.RunTickEvent; 8 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 9 | 10 | /** 11 | * @author SrRina 12 | * @since 15/05/2021 at 17:15 13 | **/ 14 | @Registry(name = "Jesus", tag = "Jesus", description = "Make you walks on water/lava. Deprecated...", category = ModuleCategory.PLAYER) 15 | public class ModuleJesus extends Module { 16 | @Listener 17 | public void onTick(RunTickEvent event) { 18 | if (NullUtil.isPlayerWorld()) { 19 | return; 20 | } 21 | 22 | if (mc.player.isInLava() || mc.player.isInWater()) { 23 | mc.player.motionY += 0.1; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/ModuleNoServerSwing.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc; 2 | 3 | import net.minecraft.network.play.server.SPacketAnimation; 4 | import rina.onepop.club.api.module.Module; 5 | import rina.onepop.club.api.module.impl.ModuleCategory; 6 | import rina.onepop.club.api.module.registry.Registry; 7 | import rina.onepop.club.client.event.network.PacketEvent; 8 | import net.minecraft.network.play.client.CPacketAnimation; 9 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 31/05/2021 at 00:25 14 | **/ 15 | @Registry(name = "No Server Swing", tag = "NoServerSwing", description = "Cancel all swing from server.", category = ModuleCategory.MISC) 16 | public class ModuleNoServerSwing extends Module { 17 | @Listener 18 | public void onPacketReceive(PacketEvent.Receive event) { 19 | if (event.getPacket() instanceof SPacketAnimation) { 20 | event.setCanceled(true); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/client/ModuleRPC.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.client; 2 | 3 | import rina.onepop.club.Onepop; 4 | import rina.onepop.club.api.module.Module; 5 | import rina.onepop.club.api.module.impl.ModuleCategory; 6 | import rina.onepop.club.api.module.registry.Registry; 7 | import rina.onepop.club.api.setting.value.ValueBoolean; 8 | 9 | /** 10 | * @author Glauco 11 | */ 12 | @Registry(name = "RPC", tag = "RPC", description = "The cool RPC.", category = ModuleCategory.CLIENT) 13 | public class ModuleRPC extends Module { 14 | public static ModuleRPC INSTANCE; 15 | 16 | /* Misc. */ 17 | public static ValueBoolean showName = new ValueBoolean("Show Name", "RPCShowName", "shows your name in the rpc", true); 18 | 19 | public ModuleRPC() { 20 | INSTANCE = this; 21 | } 22 | 23 | @Override 24 | public void onEnable() { 25 | Onepop.getRPC().run(); 26 | } 27 | 28 | @Override 29 | public void onDisable() { 30 | Onepop.getRPC().stop(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/exploit/ModuleNoEatFall.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.exploit; 2 | 3 | import net.minecraft.item.ItemStack; 4 | import rina.onepop.club.api.module.Module; 5 | import rina.onepop.club.api.module.impl.ModuleCategory; 6 | import rina.onepop.club.api.module.registry.Registry; 7 | import rina.onepop.club.api.util.client.NullUtil; 8 | 9 | /** 10 | * @author SrRina 11 | * @since 04/10/2021 at 22:16 12 | **/ 13 | @Registry(name = "No Eat Fall", tag = "NoEatFall", description = "Prevents fall of eat...", category = ModuleCategory.EXPLOIT) 14 | public class ModuleNoEatFall extends Module { 15 | @Override 16 | public void onRender3D() { 17 | if (NullUtil.isPlayerWorld()) { 18 | return; 19 | } 20 | 21 | final ItemStack itemStack = mc.player.getHeldItemMainhand(); 22 | 23 | if (mc.player.isHandActive() && mc.player.getItemInUseMaxCount() >= itemStack.getMaxItemUseDuration()) { 24 | mc.player.resetActiveHand(); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/setting/value/ValueString.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.setting.value; 2 | 3 | import rina.onepop.club.api.setting.Setting; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 20/01/2021 at 09:57 8 | **/ 9 | public class ValueString extends Setting { 10 | private String format; 11 | private String value; 12 | 13 | public ValueString(String name, String tag, String description, String value) { 14 | super(name, tag, description); 15 | 16 | this.format = ""; 17 | this.value = value; 18 | } 19 | 20 | public ValueString addFormat(String format) { 21 | this.format = format; 22 | 23 | return this; 24 | } 25 | 26 | public void setFormat(String format) { 27 | this.format = format; 28 | } 29 | 30 | public String getFormat() { 31 | return format; 32 | } 33 | 34 | public void setValue(String value) { 35 | this.value = value; 36 | } 37 | 38 | public String getValue() { 39 | return value; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/tracker/impl/PlayerStopBreakBlockTracker.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.tracker.impl; 2 | 3 | import net.minecraft.network.play.client.CPacketPlayerDigging; 4 | import rina.onepop.club.api.tracker.Tracker; 5 | import rina.onepop.club.api.util.world.BlockUtil; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 09/02/2021 at 19:18 10 | **/ 11 | public class PlayerStopBreakBlockTracker extends Tracker { 12 | private BlockUtil.BlockDamage block; 13 | 14 | public PlayerStopBreakBlockTracker(BlockUtil.BlockDamage block) { 15 | super("Break Block", new CPacketPlayerDigging(CPacketPlayerDigging.Action.STOP_DESTROY_BLOCK, block.getPos(), block.getFacing())); 16 | 17 | this.block = block; 18 | } 19 | 20 | public void setBlock(BlockUtil.BlockDamage block) { 21 | this.block = block; 22 | } 23 | 24 | public BlockUtil.BlockDamage getBlock() { 25 | return block; 26 | } 27 | 28 | @Override 29 | public void onPre() { 30 | } 31 | 32 | @Override 33 | public void onPost() { 34 | } 35 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/ComponentCrystalsPerSecond.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | import com.mojang.realmsclient.gui.ChatFormatting; 4 | import rina.onepop.club.api.component.Component; 5 | import rina.onepop.club.api.component.StringType; 6 | import rina.onepop.club.client.manager.world.BlockManager; 7 | 8 | /** 9 | * @author SrRina 10 | * @since 20/06/2021 at 23:27 11 | **/ 12 | public class ComponentCrystalsPerSecond extends Component { 13 | public ComponentCrystalsPerSecond() { 14 | super("Crystals Per Second", "CrystalsPerSecond", "Counts crystals used by second.", StringType.USE); 15 | } 16 | 17 | @Override 18 | public void onRender(float partialTicks) { 19 | int crystalsPerSecond = BlockManager.getCrystalsPerSecond(); 20 | 21 | final String text = "Crystals " + ChatFormatting.GRAY + crystalsPerSecond + "/s"; 22 | 23 | render(text, 0, 0); 24 | 25 | this.rect.setWidth(this.getStringWidth(text)); 26 | this.rect.setHeight(this.getStringHeight(text)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/util/TurokTick.java: -------------------------------------------------------------------------------- 1 | package me.rina.turok.util; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 20/11/2020 at 12:00am 6 | */ 7 | public class TurokTick { 8 | private long ticks; 9 | 10 | public TurokTick() { 11 | this.ticks = -1; 12 | } 13 | 14 | public void reset() { 15 | this.ticks = System.currentTimeMillis(); 16 | } 17 | 18 | public void setTicks(long ticks) { 19 | this.ticks = ticks; 20 | } 21 | 22 | public long getTicks() { 23 | return ticks; 24 | } 25 | 26 | public float getCurrentTicks() { 27 | return System.currentTimeMillis() - this.ticks; 28 | } 29 | 30 | public int getCurrentTicksCount(double speed) { 31 | return (int) ((System.currentTimeMillis() - this.ticks) / speed); 32 | } 33 | 34 | public boolean isPassedMS(float ms) { 35 | return System.currentTimeMillis() - this.ticks >= ms; 36 | } 37 | 38 | public boolean isPassedSI(float si) { 39 | return System.currentTimeMillis() - this.ticks >= (si * 1000); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/network/TextComponentEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.network; 2 | 3 | import net.minecraft.util.text.ITextComponent; 4 | import rina.onepop.club.api.event.Event; 5 | import rina.onepop.club.api.event.impl.EventStage; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 01/07/2021 at 16:28 10 | **/ 11 | public class TextComponentEvent extends Event { 12 | public static class Disconnect extends TextComponentEvent { 13 | public Disconnect(EventStage stage, ITextComponent textComponent) { 14 | super(stage, textComponent); 15 | } 16 | } 17 | 18 | private ITextComponent textComponent; 19 | 20 | public TextComponentEvent(EventStage stage, ITextComponent textComponent) { 21 | super(stage); 22 | 23 | this.textComponent = textComponent; 24 | } 25 | 26 | public void setTextComponent(ITextComponent textComponent) { 27 | this.textComponent = textComponent; 28 | } 29 | 30 | public ITextComponent getTextComponent() { 31 | return textComponent; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/tracker/impl/PlayerAbortBreakBlockTracker.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.tracker.impl; 2 | 3 | import net.minecraft.network.play.client.CPacketPlayerDigging; 4 | import rina.onepop.club.api.tracker.Tracker; 5 | import rina.onepop.club.api.util.world.BlockUtil; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 09/02/2021 at 23:40 10 | **/ 11 | public class PlayerAbortBreakBlockTracker extends Tracker { 12 | private BlockUtil.BlockDamage block; 13 | 14 | public PlayerAbortBreakBlockTracker(BlockUtil.BlockDamage block) { 15 | super("Abort Break Tracker", new CPacketPlayerDigging(CPacketPlayerDigging.Action.ABORT_DESTROY_BLOCK, block.getPos(), block.getFacing())); 16 | 17 | this.block = block; 18 | } 19 | 20 | public void setBlock(BlockUtil.BlockDamage block) { 21 | this.block = block; 22 | } 23 | 24 | public BlockUtil.BlockDamage getBlock() { 25 | return block; 26 | } 27 | 28 | @Override 29 | public void onPre() { 30 | } 31 | 32 | @Override 33 | public void onPost() { 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/command/CommandPrefix.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.command; 2 | 3 | import rina.onepop.club.api.command.Command; 4 | import rina.onepop.club.api.command.management.CommandManager; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 16/11/20 at 02:03pm 9 | */ 10 | public class CommandPrefix extends Command { 11 | public CommandPrefix() { 12 | super(new String[] {"prefix", "p"}, "Sets a new prefix."); 13 | } 14 | 15 | @Override 16 | public String setSyntax() { 17 | return "prefix/p "; 18 | } 19 | 20 | @Override 21 | public void onCommand(String[] args) { 22 | String _char = null; 23 | 24 | if (args.length > 1) { 25 | _char = args[1]; 26 | } 27 | 28 | if (args.length > 2 || _char == null) { 29 | splash(); 30 | 31 | return; 32 | } 33 | 34 | CommandManager.getCommandPrefix().setPrefix(_char); 35 | 36 | this.print("Chat prefix has been update to " + "'" + CommandManager.getCommandPrefix().getPrefix() + "'"); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/team/stiff/pomelo/handler/EventHandler.java: -------------------------------------------------------------------------------- 1 | package team.stiff.pomelo.handler; 2 | 3 | import team.stiff.pomelo.filter.EventFilter; 4 | 5 | /** 6 | * The event handler is a container that will assist in the 7 | * process of handling the event. 8 | * 9 | * @author Daniel 10 | * @since May 31, 2017 11 | */ 12 | public interface EventHandler extends Comparable { 13 | 14 | /** 15 | * Invoked when the listener needs to handle 16 | * an event. 17 | */ 18 | void handle(final E event); 19 | 20 | /** 21 | * The object of the event listener. 22 | * 23 | * @return parent of listener 24 | */ 25 | Object getListener(); 26 | 27 | /** 28 | * The priority of the current listener inside the container. 29 | * 30 | * @return listener priority 31 | */ 32 | ListenerPriority getPriority(); 33 | 34 | /** 35 | * All of the filters that will be tested on the 36 | * handler when being dispatched. 37 | * 38 | * @return iterable filters 39 | */ 40 | Iterable getFilters(); 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/network/PacketEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.network; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | import net.minecraft.network.Packet; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 23/02/2021 at 00:24 10 | **/ 11 | public class PacketEvent extends Event { 12 | public static class Send extends PacketEvent { 13 | public Send(Packet packet) { 14 | super(packet, EventStage.PRE); 15 | } 16 | } 17 | 18 | public static class Receive extends PacketEvent { 19 | public Receive(Packet packet) { 20 | super(packet, EventStage.POST); 21 | } 22 | } 23 | 24 | private Packet packet; 25 | 26 | public PacketEvent(Packet packet, EventStage stage) { 27 | super(stage); 28 | 29 | this.packet = packet; 30 | } 31 | 32 | public void setPacket(Packet packet) { 33 | this.packet = packet; 34 | } 35 | 36 | public Packet getPacket() { 37 | return packet; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/tracker/impl/RightMouseClickTracker.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.tracker.impl; 2 | 3 | import net.minecraft.network.play.client.CPacketPlayerTryUseItem; 4 | import net.minecraft.util.EnumHand; 5 | import rina.onepop.club.Onepop; 6 | import rina.onepop.club.api.tracker.Tracker; 7 | 8 | /** 9 | * @author SrRina 10 | * @since 05/02/2021 at 13:16 11 | **/ 12 | public class RightMouseClickTracker extends Tracker { 13 | private EnumHand hand; 14 | 15 | public RightMouseClickTracker(EnumHand hand) { 16 | super("Right Mouse Click Tracker", new CPacketPlayerTryUseItem(hand == null ? EnumHand.MAIN_HAND : hand)); 17 | 18 | this.hand = hand; 19 | } 20 | 21 | public void setHand(EnumHand hand) { 22 | this.hand = hand; 23 | } 24 | 25 | public EnumHand getHand() { 26 | return hand; 27 | } 28 | 29 | @Override 30 | public void onPre() { 31 | if (this.hand != null) { 32 | Onepop.MC.player.swingArm(this.hand); 33 | } 34 | } 35 | 36 | @Override 37 | public void onPost() { 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/exploit/ModuleNoPlaceDelay.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.exploit; 2 | 3 | import net.minecraft.network.play.server.SPacketBlockChange; 4 | import rina.onepop.club.api.module.Module; 5 | import rina.onepop.club.api.module.impl.ModuleCategory; 6 | import rina.onepop.club.api.module.registry.Registry; 7 | import rina.onepop.club.client.event.network.PacketEvent; 8 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 9 | 10 | /** 11 | * @author SrRina 12 | * @since 30/06/2021 at 00:45 13 | **/ 14 | @Registry(name = "No Place Delay", tag = "NoPlaceDelay", description = "Prevents delay of places.", category = ModuleCategory.EXPLOIT) 15 | public class ModuleNoPlaceDelay extends Module { 16 | @Listener 17 | public void onPacketSend(PacketEvent.Receive event) { 18 | if (event.getPacket() instanceof SPacketBlockChange) { 19 | final SPacketBlockChange packet = (SPacketBlockChange) event.getPacket(); 20 | 21 | mc.world.setBlockState(packet.getBlockPosition(), packet.getBlockState()); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/ModuleEffectDetector.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.util.client.NullUtil; 7 | import rina.onepop.club.client.event.client.RunTickEvent; 8 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 9 | 10 | import java.util.ArrayList; 11 | import java.util.List; 12 | 13 | /** 14 | * @author SrRina 15 | * @since 02/06/2021 at 02:12 16 | **/ 17 | @Registry(name = "Effect Detector", tag = "EffectDetector", description = "Detects effects from players close of you!", category = ModuleCategory.COMBAT) 18 | public class ModuleEffectDetector extends Module { 19 | public static class PlayerEffect {} 20 | 21 | private final List currentPlayerList = new ArrayList<>(); 22 | 23 | @Listener 24 | public void onTick(RunTickEvent event) { 25 | if (NullUtil.isPlayerWorld()) { 26 | return; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/ModulePortalGodMode.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.client.event.client.RunTickEvent; 7 | import rina.onepop.club.client.event.network.PacketEvent; 8 | import net.minecraft.network.play.client.CPacketConfirmTeleport; 9 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 31/05/2021 at 00:21 14 | * 15 | * I don't think its work, possibly no, I need make a new. 16 | **/ 17 | @Registry(name = "Portal God Mode", tag = "PortalGodMode", description = "Cancel confirm teleport from client side.", category = ModuleCategory.PLAYER) 18 | public class ModulePortalGodMode extends Module { 19 | @Listener 20 | public void onReceivePacket(PacketEvent.Receive event) { 21 | if (event.getPacket() instanceof CPacketConfirmTeleport) { 22 | event.setCanceled(true); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/setting/value/ValueBind.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.setting.value; 2 | 3 | import rina.onepop.club.api.setting.Setting; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 01/02/2021 at 12:25 8 | **/ 9 | public class ValueBind extends Setting { 10 | private boolean value; 11 | private int keyCode; 12 | 13 | private InputType inputType; 14 | 15 | public ValueBind(String name, String tag, String description, int key) { 16 | super(name, tag, description); 17 | 18 | this.keyCode = key; 19 | this.inputType = InputType.KEYBOARD; 20 | } 21 | 22 | public void setInputType(InputType inputType) { 23 | this.inputType = inputType; 24 | } 25 | 26 | public InputType getInputType() { 27 | return inputType; 28 | } 29 | 30 | public void setKeyCode(int key) { 31 | this.keyCode = key; 32 | } 33 | 34 | public int getKeyCode() { 35 | return keyCode; 36 | } 37 | 38 | public void setValue(boolean value) { 39 | this.value = value; 40 | } 41 | 42 | public boolean getValue() { 43 | return value; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/ModuleSwitch.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.client.event.network.PacketEvent; 7 | import net.minecraft.network.play.client.CPacketAnimation; 8 | import net.minecraft.util.EnumHand; 9 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 26/05/2021 at 00:11 14 | **/ 15 | @Registry(name = "Switch", tag = "Switch", description = "Switch hands to server.", category = ModuleCategory.MISC) 16 | public class ModuleSwitch extends Module { 17 | @Listener 18 | public void onReceive(PacketEvent.Send event) { 19 | if (event.getPacket() instanceof CPacketAnimation) { 20 | final CPacketAnimation packet = (CPacketAnimation) event.getPacket(); 21 | final EnumHand hand = packet.hand; 22 | 23 | packet.hand = hand == EnumHand.MAIN_HAND ? EnumHand.OFF_HAND : EnumHand.MAIN_HAND; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/ModuleCreativeFly.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.util.client.NullUtil; 7 | import rina.onepop.club.client.event.client.RunTickEvent; 8 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 9 | 10 | /** 11 | * @author SrRina 12 | * @since 15/05/2021 at 17:21 13 | **/ 14 | @Registry(name = "Creative Fly", tag = "CreativeFly", description = "Forces you creative fly.", category = ModuleCategory.PLAYER) 15 | public class ModuleCreativeFly extends Module { 16 | @Override 17 | public void onDisable() { 18 | if (NullUtil.isPlayerWorld()) { 19 | return; 20 | } 21 | 22 | mc.player.capabilities.isFlying = false; 23 | } 24 | 25 | @Listener 26 | public void onTick(RunTickEvent event) { 27 | if (NullUtil.isPlayerWorld()) { 28 | return; 29 | } 30 | 31 | mc.player.capabilities.isFlying = true; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/gui/imperador/util/ClipboardUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.gui.imperador.util; 2 | 3 | import java.awt.*; 4 | import java.awt.datatransfer.*; 5 | import java.io.IOException; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 28/08/2021 at 19:05 10 | **/ 11 | public class ClipboardUtil { 12 | public static String get() { 13 | final java.awt.datatransfer.Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); 14 | final Transferable content = clipboard.getContents(null); 15 | 16 | if (content != null && content.isDataFlavorSupported(DataFlavor.stringFlavor)) { 17 | try { 18 | return content.getTransferData(DataFlavor.stringFlavor).toString(); 19 | } catch (UnsupportedFlavorException | IOException exc) { 20 | return null; 21 | } 22 | } 23 | 24 | return null; 25 | } 26 | 27 | public static void set(final String string) { 28 | final Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); 29 | 30 | clipboard.setContents(new StringSelection(string), null); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/ModuleNoFall.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.util.client.NullUtil; 7 | import rina.onepop.club.client.event.network.PacketEvent; 8 | import net.minecraft.network.play.client.CPacketPlayer; 9 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 15/05/2021 at 17:08 14 | **/ 15 | @Registry(name = "No Fall", tag = "NoFall", description = "Prevent fall.", category = ModuleCategory.PLAYER) 16 | public class ModuleNoFall extends Module { 17 | @Listener 18 | public void onPacketSend(PacketEvent.Send event) { 19 | if (NullUtil.isPlayerWorld()) { 20 | return; 21 | } 22 | 23 | if (event.getPacket() instanceof CPacketPlayer && mc.player.fallDistance > 0f && !mc.player.isElytraFlying()) { 24 | CPacketPlayer packet = (CPacketPlayer) event.getPacket(); 25 | 26 | packet.onGround = true; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/ComponentWatermark.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | import com.mojang.realmsclient.gui.ChatFormatting; 4 | import rina.onepop.club.Onepop; 5 | import rina.onepop.club.api.component.Component; 6 | import rina.onepop.club.api.component.StringType; 7 | import rina.onepop.club.api.component.impl.ComponentSetting; 8 | 9 | /** 10 | * @author SrRina 11 | * @since 06/04/2021 at 14:02 12 | **/ 13 | public class ComponentWatermark extends Component { 14 | /* bebe. */ 15 | private ComponentSetting settingVersion = new ComponentSetting<>("Version", "Version", "Shows the version!", true); 16 | 17 | public ComponentWatermark() { 18 | super("Watermark", "Watermark", "Show the client watermark!", StringType.USE); 19 | } 20 | 21 | @Override 22 | public void onRender(float partialTicks) { 23 | String watermark = Onepop.NAME + " " + ChatFormatting.GRAY + (this.settingVersion.getValue() ? Onepop.VERSION : ""); 24 | 25 | this.render(watermark, 0, 0); 26 | 27 | this.rect.setWidth(this.getStringWidth(watermark)); 28 | this.rect.setHeight(this.getStringHeight(watermark)); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/team/stiff/pomelo/impl/annotated/handler/annotation/Listener.java: -------------------------------------------------------------------------------- 1 | package team.stiff.pomelo.impl.annotated.handler.annotation; 2 | 3 | import team.stiff.pomelo.filter.EventFilter; 4 | import team.stiff.pomelo.handler.ListenerPriority; 5 | 6 | import java.lang.annotation.ElementType; 7 | import java.lang.annotation.Retention; 8 | import java.lang.annotation.RetentionPolicy; 9 | import java.lang.annotation.Target; 10 | 11 | /** 12 | * Annotation to denote that the method being marked 13 | * is a listener for event dispatching. 14 | * 15 | * @author Daniel 16 | * @since May 31, 2017 17 | */ 18 | @Retention(RetentionPolicy.RUNTIME) 19 | @Target(ElementType.METHOD) 20 | public @interface Listener { 21 | 22 | /** 23 | * An array of class filters that will be used to 24 | * determine if an event listener should be dispatched 25 | * or not. 26 | * 27 | * @return array of filters 28 | */ 29 | Class[] filters() default { }; 30 | 31 | /** 32 | * The priority of the event listener in the container. 33 | * 34 | * @return listener priority 35 | */ 36 | ListenerPriority priority() default ListenerPriority.NORMAL; 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/tracker/Tracker.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.tracker; 2 | 3 | import net.minecraft.network.Packet; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 05/02/2021 at 12:34 8 | **/ 9 | public class Tracker { 10 | private String name; 11 | private Packet packet; 12 | 13 | private boolean isCanceled; 14 | 15 | public Tracker(String name, Packet packet) { 16 | this.name = name; 17 | this.packet = packet; 18 | } 19 | 20 | public void setName(String name) { 21 | this.name = name; 22 | } 23 | 24 | public void setPacket(Packet packet) { 25 | this.packet = packet; 26 | } 27 | 28 | public String getName() { 29 | return name; 30 | } 31 | 32 | public Packet getPacket() { 33 | return packet; 34 | } 35 | 36 | public boolean isCanceled() { 37 | return isCanceled; 38 | } 39 | 40 | public void setCanceled(boolean canceled) { 41 | isCanceled = canceled; 42 | } 43 | 44 | /** 45 | * Pre event before send packet. 46 | */ 47 | public void onPre() {} 48 | 49 | /** 50 | * Post event after send packet. 51 | */ 52 | public void onPost() {} 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/ComponentPing.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | import com.mojang.realmsclient.gui.ChatFormatting; 4 | import rina.onepop.club.api.component.Component; 5 | import rina.onepop.club.api.component.StringType; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 06/04/2021 at 14:02 10 | **/ 11 | public class ComponentPing extends Component { 12 | public ComponentPing() { 13 | super("Ping", "Ping", "Shows your ping!!", StringType.USE); 14 | } 15 | 16 | @Override 17 | public void onRender(float partialTicks) { 18 | if (mc.player == null) { 19 | return; 20 | } 21 | 22 | String ping = "Ping " + ChatFormatting.GRAY + this.getPing(); 23 | 24 | this.render(ping, 0, 0); 25 | 26 | this.rect.setWidth(this.getStringWidth(ping)); 27 | this.rect.setHeight(this.getStringHeight(ping)); 28 | } 29 | 30 | public String getPing() { 31 | String ping = "?"; 32 | 33 | try { 34 | ping = "" + mc.getConnection().getPlayerInfo(mc.player.getUniqueID()).getResponseTime(); 35 | } catch (Exception e) { 36 | return "?"; 37 | } 38 | 39 | return ping; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/ModuleNoEntityTrace.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.setting.value.ValueBoolean; 7 | import rina.onepop.club.api.util.client.NullUtil; 8 | import net.minecraft.item.ItemPickaxe; 9 | 10 | /** 11 | * @author SrRina 12 | * @since 29/04/2021 at 00:17 13 | **/ 14 | @Registry(name = "No Entity Trace", tag = "NoEntityTrace", description = "No entity trace when mining!", category = ModuleCategory.MISC) 15 | public class ModuleNoEntityTrace extends Module { 16 | public static ModuleNoEntityTrace INSTANCE; 17 | 18 | /* Misc. */ 19 | public static ValueBoolean settingOnlyPickaxe = new ValueBoolean("Only Pickaxe", "OnlyPickaxe", "Only pickaxe.", false); 20 | 21 | public ModuleNoEntityTrace() { 22 | INSTANCE = this; 23 | } 24 | 25 | public boolean doAccept() { 26 | if (NullUtil.isPlayerWorld()) { 27 | return false; 28 | } 29 | 30 | return !settingOnlyPickaxe.getValue() || mc.player.getHeldItemMainhand().getItem() instanceof ItemPickaxe; 31 | } 32 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/ModuleBuildHeight.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.client.event.network.PacketEvent; 7 | import net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock; 8 | import net.minecraft.util.EnumFacing; 9 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 18/05/2021 at 11:56 14 | **/ 15 | @Registry(name = "Build Height", tag = "BuildHeight", description = "Extend build height at 255.", category = ModuleCategory.MISC) 16 | public class ModuleBuildHeight extends Module { 17 | @Listener 18 | public void onPacketReceive(PacketEvent.Send event) { 19 | if (event.getPacket() instanceof CPacketPlayerTryUseItemOnBlock) { 20 | CPacketPlayerTryUseItemOnBlock packet = (CPacketPlayerTryUseItemOnBlock) event.getPacket(); 21 | 22 | if (packet.getPos().getY() >= 255 && packet.getDirection() == EnumFacing.UP) { 23 | packet.placedBlockDirection = EnumFacing.DOWN; 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/ModuleWeb.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.setting.value.ValueBoolean; 7 | import rina.onepop.club.api.util.client.NullUtil; 8 | import rina.onepop.club.client.event.client.RunTickEvent; 9 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 31/05/2021 at 00:18 14 | **/ 15 | @Registry(name = "Web", tag = "Web", description = "Special module for webs!", category = ModuleCategory.PLAYER) 16 | public class ModuleWeb extends Module { 17 | /* Misc. */ 18 | public static ValueBoolean settingSideIgnore = new ValueBoolean("Side Ignore", "SideIgnore", "Side ignore webs.", true); 19 | 20 | @Listener 21 | public void onTick(RunTickEvent event) { 22 | if (NullUtil.isPlayerWorld()) { 23 | return; 24 | } 25 | 26 | if (settingSideIgnore.getValue()) { 27 | mc.player.isInWeb = false; 28 | } else { 29 | if (mc.player.isInWeb) { 30 | mc.player.motionY += 0.1f; 31 | } 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/gui/IScreenBasic.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.gui; 2 | 3 | import me.rina.turok.util.TurokRect; 4 | 5 | /** 6 | * @author SrRina 7 | * @since 17/11/20 at 11:12am 8 | */ 9 | public interface IScreenBasic { 10 | boolean isEnabled(); 11 | 12 | /* 13 | * Get rect instance. 14 | */ 15 | TurokRect getRect(); 16 | 17 | /* 18 | * Verify if booleans focus; 19 | */ 20 | boolean verifyFocus(int mx, int my); 21 | 22 | /* 23 | * Event opened on screen. 24 | */ 25 | void onScreenOpened(); 26 | void onCustomScreenOpened(); 27 | 28 | /* 29 | * Event closed on screen. 30 | */ 31 | void onScreenClosed(); 32 | void onCustomScreenClosed(); 33 | 34 | /* 35 | * Keyboard input. 36 | */ 37 | void onKeyboardPressed(char c, int keyCode); 38 | void onCustomKeyboardPressed(char c, int keyCode); 39 | 40 | /* 41 | * Mouse clicks down. 42 | */ 43 | void onMouseClicked(int button); 44 | void onCustomMouseClicked(int button); 45 | 46 | /* 47 | * Mouse clicks up. 48 | */ 49 | void onMouseReleased(int button); 50 | void onCustomMouseReleased(int button); 51 | 52 | /* 53 | * Render ticks. 54 | */ 55 | void onRender(); 56 | void onCustomRender(); 57 | 58 | /* 59 | * Saving!! 60 | */ 61 | void onSave(); 62 | void onLoad(); 63 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/client/PresetTaskEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.client; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | import rina.onepop.club.api.preset.Preset; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 12/06/2021 at 21:37 10 | **/ 11 | public class PresetTaskEvent extends Event { 12 | private final Preset preset; 13 | private boolean delete; 14 | 15 | private boolean save; 16 | private boolean load; 17 | 18 | public PresetTaskEvent(EventStage stage, Preset preset) { 19 | super(stage); 20 | 21 | this.preset = preset; 22 | 23 | this.save = stage == EventStage.PRE; 24 | this.load = stage == EventStage.POST; 25 | } 26 | 27 | public PresetTaskEvent(Preset preset) { 28 | super(EventStage.PRE); 29 | 30 | this.save = true; 31 | this.load = false; 32 | 33 | this.preset = preset; 34 | this.delete = true; 35 | } 36 | 37 | public Preset getPreset() { 38 | return preset; 39 | } 40 | 41 | public boolean isSave() { 42 | return save; 43 | } 44 | 45 | public boolean isLoad() { 46 | return load; 47 | } 48 | 49 | public boolean isDelete() { 50 | return delete; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/loader/MixinLoader.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.loader; 2 | 3 | import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin; 4 | import org.spongepowered.asm.launch.MixinBootstrap; 5 | import org.spongepowered.asm.mixin.MixinEnvironment; 6 | import org.spongepowered.asm.mixin.Mixins; 7 | 8 | import javax.annotation.Nullable; 9 | import java.util.Map; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 03/02/2021 at 13:38 14 | **/ 15 | @IFMLLoadingPlugin.MCVersion("1.12.2") 16 | public class MixinLoader implements IFMLLoadingPlugin { 17 | public MixinLoader() { 18 | MixinBootstrap.init(); 19 | Mixins.addConfiguration("mixins.onepop.json"); 20 | MixinEnvironment.getDefaultEnvironment().setObfuscationContext("searge"); 21 | } 22 | 23 | @Override 24 | public String[] getASMTransformerClass() { 25 | return new String[0]; 26 | } 27 | 28 | @Override 29 | public String getModContainerClass() { 30 | return null; 31 | } 32 | 33 | @Nullable 34 | @Override 35 | public String getSetupClass() { 36 | return null; 37 | } 38 | 39 | @Override 40 | public void injectData(Map data) {} 41 | 42 | @Override 43 | public String getAccessTransformerClass() { 44 | return null; 45 | } 46 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/gui/MixinBossOverlay.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.gui; 2 | 3 | import rina.onepop.club.client.module.render.ModuleNoRender; 4 | import net.minecraft.client.gui.GuiBossOverlay; 5 | import net.minecraft.world.BossInfo; 6 | import org.spongepowered.asm.mixin.Mixin; 7 | import org.spongepowered.asm.mixin.injection.At; 8 | import org.spongepowered.asm.mixin.injection.Inject; 9 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 22/03/2021 at 14:50 14 | **/ 15 | @Mixin(GuiBossOverlay.class) 16 | public class MixinBossOverlay { 17 | // event 18 | @Inject(method = "render", at = @At("HEAD"), cancellable = true) 19 | public void onRender(int x, int y, BossInfo info, CallbackInfo ci) { 20 | boolean flag = ModuleNoRender.INSTANCE.isEnabled() && ModuleNoRender.settingBossInfo.getValue(); 21 | 22 | if (flag) { 23 | ci.cancel(); 24 | } 25 | } 26 | // event 27 | @Inject(method = "renderBossHealth", at = @At("HEAD"), cancellable = true) 28 | public void onRenderBoosHealth(CallbackInfo ci) { 29 | boolean flag = ModuleNoRender.INSTANCE.isEnabled() && ModuleNoRender.settingBossInfo.getValue(); 30 | 31 | if (flag) { 32 | ci.cancel(); 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /src/main/java/team/stiff/pomelo/impl/annotated/dispatch/MethodEventDispatcher.java: -------------------------------------------------------------------------------- 1 | package team.stiff.pomelo.impl.annotated.dispatch; 2 | 3 | import team.stiff.pomelo.dispatch.EventDispatcher; 4 | import team.stiff.pomelo.handler.EventHandler; 5 | 6 | import java.lang.reflect.Method; 7 | import java.util.Collections; 8 | import java.util.Map; 9 | import java.util.Set; 10 | 11 | /** 12 | * An implementation of the {@link EventDispatcher} designed 13 | * to invoke the listeners via reflection as the handler is a 14 | * {@link Method} object. 15 | * 16 | * @author Daniel 17 | * @since May 31, 2017 18 | */ 19 | public final class MethodEventDispatcher implements EventDispatcher { 20 | /** 21 | * The scanning strategy chosen by the event-bus implementation. 22 | */ 23 | private final Map, Set> eventHandlers; 24 | 25 | public MethodEventDispatcher(final Map, Set> eventHandlers) { 26 | this.eventHandlers = eventHandlers; 27 | } 28 | 29 | @Override 30 | public void dispatch(final E event) { 31 | // iterate all registered event handlers and pass the event onto them 32 | for (final EventHandler eventHandler : eventHandlers.getOrDefault( 33 | event.getClass(), Collections.emptySet())) 34 | eventHandler.handle(event); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/ModuleNoBreakAnimation.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc; 2 | 3 | import net.minecraft.network.play.client.CPacketPlayerDigging; 4 | import rina.onepop.club.api.module.Module; 5 | import rina.onepop.club.api.module.impl.ModuleCategory; 6 | import rina.onepop.club.api.module.registry.Registry; 7 | import rina.onepop.club.client.event.network.PacketEvent; 8 | import net.minecraft.network.play.server.SPacketBlockBreakAnim; 9 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 31/05/2021 at 01:11 14 | **/ 15 | @Registry(name = "No Break Animation", tag = "NoBreakAnimation", description = "No break animation for server.", category = ModuleCategory.MISC) 16 | public class ModuleNoBreakAnimation extends Module { 17 | @Listener 18 | public void onReceivePacket(PacketEvent.Send event) { 19 | if (event.getPacket() instanceof CPacketPlayerDigging) { 20 | final CPacketPlayerDigging packet = (CPacketPlayerDigging) event.getPacket(); 21 | 22 | if (packet.getAction() == CPacketPlayerDigging.Action.START_DESTROY_BLOCK || packet.getAction() == CPacketPlayerDigging.Action.STOP_DESTROY_BLOCK || packet.getAction() == CPacketPlayerDigging.Action.ABORT_DESTROY_BLOCK) { 23 | event.setCanceled(true); 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/event/entity/PlayerMoveEvent.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.event.entity; 2 | 3 | import rina.onepop.club.api.event.Event; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | import net.minecraft.entity.MoverType; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 23/02/2021 at 23:21 10 | **/ 11 | public class PlayerMoveEvent extends Event { 12 | /* Type of movement. */ 13 | private MoverType type; 14 | 15 | /* Positions. */ 16 | public double x; 17 | public double y; 18 | public double z; 19 | 20 | public PlayerMoveEvent(MoverType type, double x, double y, double z) { 21 | super(EventStage.PRE); 22 | 23 | this.type = type; 24 | 25 | this.x = x; 26 | this.y = y; 27 | this.z = z; 28 | } 29 | 30 | public void setType(MoverType type) { 31 | this.type = type; 32 | } 33 | 34 | public MoverType getType() { 35 | return type; 36 | } 37 | 38 | public void setX(double x) { 39 | this.x = x; 40 | } 41 | 42 | public double getX() { 43 | return x; 44 | } 45 | 46 | public void setY(double y) { 47 | this.y = y; 48 | } 49 | 50 | public double getY() { 51 | return y; 52 | } 53 | 54 | public void setZ(double z) { 55 | this.z = z; 56 | } 57 | 58 | public double getZ() { 59 | return z; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/team/stiff/pomelo/impl/annotated/filter/MethodFilterScanner.java: -------------------------------------------------------------------------------- 1 | package team.stiff.pomelo.impl.annotated.filter; 2 | 3 | import team.stiff.pomelo.filter.EventFilter; 4 | import team.stiff.pomelo.filter.EventFilterScanner; 5 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 6 | 7 | import java.lang.reflect.Method; 8 | import java.util.Collections; 9 | import java.util.HashSet; 10 | import java.util.Set; 11 | 12 | /** 13 | * An implementation of the filter scanner that locates specific 14 | * filters based on annotations and reflection. 15 | * 16 | * @author Daniel 17 | * @since Jun 14, 2017 18 | */ 19 | public final class MethodFilterScanner implements EventFilterScanner { 20 | 21 | @Override 22 | public Set scan(final Method listener) { 23 | if (!listener.isAnnotationPresent(Listener.class)) 24 | return Collections.emptySet(); 25 | 26 | final Set filters = new HashSet<>(); 27 | // iterate all filters in the annotation and instantiate them 28 | for (final Class filter : listener 29 | .getDeclaredAnnotation(Listener.class).filters()) 30 | try { 31 | filters.add(filter.newInstance()); 32 | } catch (final Exception exception) { 33 | exception.printStackTrace(); 34 | } 35 | 36 | return filters; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/ComponentSpeedMeter.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | import com.mojang.realmsclient.gui.ChatFormatting; 4 | import rina.onepop.club.api.component.Component; 5 | import rina.onepop.club.api.component.StringType; 6 | import rina.onepop.club.api.component.impl.ComponentSetting; 7 | import rina.onepop.club.api.util.client.NullUtil; 8 | import rina.onepop.club.api.util.entity.PlayerUtil; 9 | 10 | /** 11 | * @author SrRina 12 | * @since 08/06/2021 at 01:24 13 | **/ 14 | public class ComponentSpeedMeter extends Component { 15 | public ComponentSetting settingMeter = new ComponentSetting<>("Meter", "Meter", "Modes for meter.", Meter.KMH); 16 | 17 | public ComponentSpeedMeter() { 18 | super("Speed Meter", "SpeedMeter", "Shows your speed!", StringType.USE); 19 | } 20 | 21 | @Override 22 | public void onRender(float partialTicks) { 23 | if (NullUtil.isPlayerWorld()) { 24 | return; 25 | } 26 | 27 | final double bps = PlayerUtil.getBPS(); 28 | final String speed = "Speed " + ChatFormatting.GRAY + String.format("%.1f", settingMeter.getValue() == Meter.KMH ? bps * 3.6f : bps) + "" + (settingMeter.getValue() == Meter.KMH ? "km/h" : "b/s"); 29 | 30 | this.render(speed, 0, 0); 31 | 32 | this.rect.setWidth(this.getStringWidth(speed)); 33 | this.rect.setHeight(this.getStringHeight(speed)); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/ModuleBetterExperience.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc; 2 | 3 | import net.minecraft.entity.Entity; 4 | import net.minecraft.entity.item.EntityXPOrb; 5 | import rina.onepop.club.api.module.Module; 6 | import rina.onepop.club.api.module.impl.ModuleCategory; 7 | import rina.onepop.club.api.module.registry.Registry; 8 | import rina.onepop.club.api.setting.value.ValueNumber; 9 | import rina.onepop.club.api.util.client.NullUtil; 10 | import rina.onepop.club.client.event.client.RunTickEvent; 11 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 12 | 13 | /** 14 | * @author SrRina 15 | * @since 27/06/2021 at 03:21 16 | **/ 17 | @Registry(name = "Better Experience", tag = "BetterExperience", description = "Collect better the experience of world!", category = ModuleCategory.MISC) 18 | public class ModuleBetterExperience extends Module { 19 | // Misc. 20 | public static ValueNumber settingRange = new ValueNumber("Range", "Range", "Minimum distance for player get XP.", 2f, 1f, 6f); 21 | 22 | @Listener 23 | public void onTick(RunTickEvent event) { 24 | if (NullUtil.isPlayerWorld()) { 25 | return; 26 | } 27 | 28 | for (Entity entity : mc.world.loadedEntityList) { 29 | if (entity instanceof EntityXPOrb && mc.player.getDistance(entity) <= settingRange.getValue().floatValue()) { 30 | 31 | } 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/ModuleInventoryWalk.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player; 2 | 3 | import rina.onepop.club.api.ISLClass; 4 | import rina.onepop.club.api.module.Module; 5 | import rina.onepop.club.api.module.impl.ModuleCategory; 6 | import rina.onepop.club.api.module.registry.Registry; 7 | import rina.onepop.club.api.util.client.KeyUtil; 8 | import rina.onepop.club.api.util.client.NullUtil; 9 | import rina.onepop.club.client.event.client.ClientTickEvent; 10 | import net.minecraft.client.gui.GuiChat; 11 | import net.minecraft.client.settings.KeyBinding; 12 | import org.lwjgl.input.Keyboard; 13 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 14 | 15 | /** 16 | * @author SrRina 17 | * @since 10/02/2021 at 12:36 18 | **/ 19 | @Registry(name = "Inventory Walk", tag = "InventoryWalk", description = "You can move while a GUI is open.", category = ModuleCategory.PLAYER) 20 | public class ModuleInventoryWalk extends Module { 21 | @Listener 22 | public void onListen(ClientTickEvent event) { 23 | if (NullUtil.isPlayer()) { 24 | return; 25 | } 26 | 27 | if (ISLClass.mc.currentScreen instanceof GuiChat || ISLClass.mc.currentScreen == null) { 28 | return; 29 | } 30 | 31 | for (KeyBinding keys : KeyUtil.ALL_MOVEMENT_KEY_BIND) { 32 | KeyUtil.press(keys, Keyboard.isKeyDown(keys.getKeyCode())); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/ModuleAirJump.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.setting.value.ValueBoolean; 7 | import rina.onepop.club.api.util.client.NullUtil; 8 | import rina.onepop.club.client.event.client.RunTickEvent; 9 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 31/05/2021 at 00:28 14 | **/ 15 | @Registry(name = "Air Jump", tag = "AirJump", description = "Jump at air!", category = ModuleCategory.PLAYER) 16 | public class ModuleAirJump extends Module { 17 | /* Misc. */ 18 | public static ValueBoolean settingBoost = new ValueBoolean("Boost", "Boost", "Boost jump.", false); 19 | 20 | private boolean pressed; 21 | 22 | @Listener 23 | public void onTick(RunTickEvent event) { 24 | if (NullUtil.isPlayerWorld()) { 25 | return; 26 | } 27 | 28 | if (mc.gameSettings.keyBindJump.isKeyDown()) { 29 | if (!this.pressed) { 30 | mc.player.jump(); 31 | 32 | if (!settingBoost.getValue()) { 33 | this.pressed = true; 34 | } 35 | } 36 | } else { 37 | this.pressed = false; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/ModuleSprint.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.setting.value.ValueBoolean; 7 | import rina.onepop.club.api.util.client.NullUtil; 8 | import rina.onepop.club.client.event.client.ClientTickEvent; 9 | import rina.onepop.club.api.ISLClass; 10 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 11 | 12 | /** 13 | * @author SrRina 14 | * @since 13/04/2021 at 20:48 15 | **/ 16 | @Registry(name = "Sprint", tag = "Sprint", description = "Automatically sprints player.", category = ModuleCategory.PLAYER) 17 | public class ModuleSprint extends Module { 18 | /* Misc. */ 19 | public static ValueBoolean settingAlways = new ValueBoolean("Always", "Always", "Set every tick sprint to true!", false); 20 | 21 | @Listener 22 | public void onTick(ClientTickEvent event) { 23 | if (NullUtil.isPlayerWorld()) { 24 | return; 25 | } 26 | 27 | boolean flag = settingAlways.getValue(); 28 | 29 | if ((ISLClass.mc.player.movementInput.moveForward != 0 || ISLClass.mc.player.movementInput.moveStrafe != 0) && !settingAlways.getValue()) { 30 | flag = true; 31 | } 32 | 33 | ISLClass.mc.player.setSprinting(flag); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/ModuleAntiHunger.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.util.client.NullUtil; 7 | import rina.onepop.club.client.event.client.RunTickEvent; 8 | import rina.onepop.club.client.event.network.PacketEvent; 9 | import net.minecraft.network.play.client.CPacketPlayer; 10 | import rina.onepop.club.api.ISLClass; 11 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 12 | 13 | /** 14 | * @author SrRina 15 | * @since 15/05/2021 at 17:16 16 | **/ 17 | @Registry(name = "Anti-Hunger", tag = "AntiHunger", description = "Prevents hunger from player!", category = ModuleCategory.MISC) 18 | public class ModuleAntiHunger extends Module { 19 | @Listener 20 | public void onPacketReceive(PacketEvent.Send event) { 21 | if (event.getPacket() instanceof CPacketPlayer) { 22 | CPacketPlayer packet = (CPacketPlayer) event.getPacket(); 23 | 24 | packet.onGround = false; 25 | } 26 | } 27 | 28 | @Listener 29 | public void onListen(RunTickEvent event) { 30 | if (NullUtil.isPlayerWorld()) { 31 | return; 32 | } 33 | 34 | if (ISLClass.mc.player.isSprinting()) { 35 | ISLClass.mc.player.setSprinting(false); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/entity/PlayerRotationUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.entity; 2 | 3 | import rina.onepop.club.Onepop; 4 | import rina.onepop.club.api.util.math.RotationUtil; 5 | import net.minecraft.network.play.client.CPacketPlayer; 6 | import net.minecraft.util.math.Vec3d; 7 | 8 | /** 9 | * @author SrRina 10 | * @since 14/02/2021 at 11:40 11 | **/ 12 | public class PlayerRotationUtil { 13 | public static void spamPacketRotation(Vec3d vec) { 14 | float[] rotate = RotationUtil.getPlaceRotation(vec); 15 | 16 | float yaw = rotate[0]; 17 | float pitch = rotate[1]; 18 | 19 | boolean flag = Onepop.MC.player.onGround; 20 | 21 | Onepop.MC.player.connection.sendPacket(new CPacketPlayer.Rotation(yaw, pitch, flag)); 22 | } 23 | 24 | public static void spamPacketRotation(float yaw, float pitch) { 25 | boolean flag = Onepop.MC.player.onGround; 26 | 27 | Onepop.MC.player.connection.sendPacket(new CPacketPlayer.Rotation(yaw, pitch, flag)); 28 | } 29 | 30 | public static void manual(Vec3d vec) { 31 | float[] rotate = RotationUtil.getPlaceRotation(vec); 32 | 33 | float yaw = rotate[0]; 34 | float pitch = rotate[1]; 35 | 36 | PlayerUtil.setYaw(yaw); 37 | PlayerUtil.setPitch(pitch); 38 | } 39 | 40 | public static void manual(float yaw, float pitch) { 41 | PlayerUtil.setYaw(yaw); 42 | PlayerUtil.setPitch(pitch); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/command/CommandCoords.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.command; 2 | 3 | import rina.onepop.club.Onepop; 4 | import rina.onepop.club.api.command.Command; 5 | import rina.onepop.club.api.util.chat.ChatUtil; 6 | 7 | import java.awt.*; 8 | import java.awt.datatransfer.Clipboard; 9 | import java.awt.datatransfer.StringSelection; 10 | 11 | /** 12 | * @author SrRina 13 | * i made this... 14 | * @since 16/11/20 at 02:03pm 15 | */ 16 | public class CommandCoords extends Command { 17 | public CommandCoords() { 18 | super(new String[] {"coords", "c"}, "Copies your coordinates to the clipboard"); 19 | } 20 | 21 | @Override 22 | public String setSyntax() { 23 | return "coords/c || coords/c name"; 24 | } 25 | 26 | @Override 27 | public void onCommand(String[] args) { 28 | if (args.length > 2) { 29 | splash(); 30 | 31 | return; 32 | } 33 | 34 | String coords = "X: " + Onepop.MC.player.getPosition().getX() + " Y: " + Onepop.MC.player.getPosition().getY() + " Z: " + Onepop.MC.player.getPosition().getZ(); 35 | 36 | if (args.length > 1) { 37 | ChatUtil.message("/w " + args[1] + " " + coords); 38 | 39 | return; 40 | } 41 | 42 | StringSelection stringSelection = new StringSelection(coords); 43 | Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); 44 | clipboard.setContents(stringSelection, null); 45 | this.print("Coordinates copied to clipboard"); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/ModuleAutoMine.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.util.client.KeyUtil; 7 | import rina.onepop.club.api.util.client.NullUtil; 8 | import rina.onepop.club.client.event.client.RunTickEvent; 9 | import net.minecraft.item.ItemPickaxe; 10 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 11 | 12 | /** 13 | * @author SrRina 14 | * @since 15/05/2021 at 17:11 15 | **/ 16 | @Registry(name = "Auto-Mine", tag = "AutoMine", description = "Auto clicks mouse for mine.", category = ModuleCategory.MISC) 17 | public class ModuleAutoMine extends Module { 18 | @Override 19 | public void onDisable() { 20 | KeyUtil.press(mc.gameSettings.keyBindAttack, false); 21 | } 22 | 23 | @Listener 24 | public void onTick(RunTickEvent event) { 25 | if (NullUtil.isPlayerWorld()) { 26 | return; 27 | } 28 | 29 | if (mc.player.getHeldItemMainhand().getItem() instanceof ItemPickaxe) { 30 | KeyUtil.press(mc.gameSettings.keyBindAttack, true); 31 | mc.gameSettings.keyBindAttack.pressed = true; 32 | } else { 33 | KeyUtil.press(mc.gameSettings.keyBindAttack, false); 34 | mc.gameSettings.keyBindAttack.pressed = false; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/tracker/impl/PlayerStartBreakBlockTracker.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.tracker.impl; 2 | 3 | import net.minecraft.network.play.client.CPacketPlayerDigging; 4 | import net.minecraft.util.EnumHand; 5 | import rina.onepop.club.Onepop; 6 | import rina.onepop.club.api.tracker.Tracker; 7 | import rina.onepop.club.api.util.world.BlockUtil; 8 | 9 | /** 10 | * @author SrRina 11 | * @since 09/02/2021 at 19:18 12 | **/ 13 | public class PlayerStartBreakBlockTracker extends Tracker { 14 | private BlockUtil.BlockDamage block; 15 | private EnumHand hand; 16 | 17 | public PlayerStartBreakBlockTracker(EnumHand hand, BlockUtil.BlockDamage block) { 18 | super("Break Block", new CPacketPlayerDigging(CPacketPlayerDigging.Action.START_DESTROY_BLOCK, block.getPos(), block.getFacing())); 19 | 20 | this.block = block; 21 | this.hand = hand; 22 | } 23 | 24 | public void setBlock(BlockUtil.BlockDamage block) { 25 | this.block = block; 26 | } 27 | 28 | public BlockUtil.BlockDamage getBlock() { 29 | return block; 30 | } 31 | 32 | public void setHand(EnumHand hand) { 33 | this.hand = hand; 34 | } 35 | 36 | public EnumHand getHand() { 37 | return hand; 38 | } 39 | 40 | @Override 41 | public void onPre() { 42 | if (this.hand != null) { 43 | Onepop.MC.player.swingArm(this.hand); 44 | } 45 | } 46 | 47 | @Override 48 | public void onPost() { 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/hardware/mouse/TurokMouse.java: -------------------------------------------------------------------------------- 1 | package me.rina.turok.hardware.mouse; 2 | 3 | import org.lwjgl.input.Mouse; 4 | 5 | /** 6 | * @author Rina. 7 | * @since 02/10/2020. 8 | */ 9 | public class TurokMouse { 10 | public final static int BUTTON_LEFT = 0; 11 | public final static int BUTTON_MIDDLE = 2; 12 | public final static int BUTTON_RIGHT = 3; 13 | 14 | private int scroll; 15 | 16 | private int x; 17 | private int y; 18 | 19 | public TurokMouse() {} 20 | 21 | public void setPos(int x, int y) { 22 | this.x = x; 23 | this.y = y; 24 | } 25 | 26 | public void setCursorPos(int x, int y) { 27 | this.x = x; 28 | this.y = y; 29 | 30 | Mouse.setCursorPosition(this.x, this.y); 31 | } 32 | 33 | public int[] getPos() { 34 | return new int[] { 35 | this.x, this.y 36 | }; 37 | } 38 | 39 | public void setCursorX(int x) { 40 | this.x = x; 41 | 42 | Mouse.setCursorPosition(this.x, this.y); 43 | } 44 | 45 | public int getX() { 46 | return x; 47 | } 48 | 49 | public void setCursorY(int y) { 50 | this.y = y; 51 | 52 | Mouse.setCursorPosition(this.x, this.y); 53 | } 54 | 55 | public int getY() { 56 | return y; 57 | } 58 | 59 | public int getScroll() { 60 | return -(Mouse.getDWheel() / 10); 61 | } 62 | 63 | public boolean hasWheel() { 64 | return Mouse.hasWheel(); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/math/PositionUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.math; 2 | 3 | import net.minecraft.client.Minecraft; 4 | import net.minecraft.network.play.client.CPacketPlayer; 5 | import net.minecraft.util.EnumFacing; 6 | import net.minecraft.util.math.BlockPos; 7 | import net.minecraft.util.math.Vec3d; 8 | import rina.onepop.club.Onepop; 9 | import rina.onepop.club.api.util.network.PacketUtil; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 12/02/2021 at 12:20 14 | **/ 15 | public class PositionUtil { 16 | public static void setPosition(double x, double y, double z) { 17 | PacketUtil.send(new CPacketPlayer.Position(x, y, z, Minecraft.getMinecraft().player.onGround)); 18 | Onepop.MC.player.setPosition(x, y, z); 19 | } 20 | 21 | public static BlockPos toBlockPos(double x, double y, double z) { 22 | return new BlockPos(x, y, z); 23 | } 24 | 25 | public static BlockPos toBlockPos(Vec3d pos) { 26 | return new BlockPos(pos.x, pos.y, pos.z); 27 | } 28 | 29 | public static Vec3d toVec(BlockPos pos) { 30 | return new Vec3d(pos.x, pos.y, pos.z); 31 | } 32 | 33 | public static boolean collideBlockPos(BlockPos a, BlockPos b) { 34 | return a.getX() == a.getX() && a.getY() == b.getY() && a.getZ() == b.getZ(); 35 | } 36 | 37 | public static Vec3d calculateHitPlace(BlockPos pos, EnumFacing facing) { 38 | return new Vec3d(pos).add(0.5, 0.5, 0.5).add(new Vec3d(facing.getDirectionVec()).scale(0.5)); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/command/CommandToggle.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.command; 2 | 3 | import com.mojang.realmsclient.gui.ChatFormatting; 4 | import rina.onepop.club.api.command.Command; 5 | import rina.onepop.club.api.module.Module; 6 | import rina.onepop.club.api.module.management.ModuleManager; 7 | import rina.onepop.club.api.setting.value.ValueBoolean; 8 | 9 | /** 10 | * @author SrRina 11 | * @since 16/11/20 at 10:43pm 12 | */ 13 | public class CommandToggle extends Command { 14 | public CommandToggle() { 15 | super(new String[] {"t", "toggle"}, "Toggle modules."); 16 | } 17 | 18 | @Override 19 | public String setSyntax() { 20 | return "t/toggle "; 21 | } 22 | 23 | @Override 24 | public void onCommand(String[] args) { 25 | String tag = null; 26 | 27 | if (args.length > 1) { 28 | tag = args[1]; 29 | } 30 | 31 | if (args.length > 2 || tag == null) { 32 | splash(); 33 | 34 | return; 35 | } 36 | 37 | Module module = ModuleManager.get(tag); 38 | 39 | if (module == null) { 40 | this.print(ChatFormatting.RED + "Unknown module"); 41 | 42 | return; 43 | } 44 | 45 | module.toggle(); 46 | 47 | ValueBoolean toggleMessage = (ValueBoolean) module.get("ToggleMessage"); 48 | 49 | if (!toggleMessage.getValue()) { 50 | this.print("Module has been updated to " + module.isEnabled()); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/entity/MixinEntityPlayerSP.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.entity; 2 | 3 | import net.minecraft.client.entity.EntityPlayerSP; 4 | import net.minecraft.entity.MoverType; 5 | import org.spongepowered.asm.mixin.Mixin; 6 | import rina.onepop.club.Onepop; 7 | import rina.onepop.club.client.event.entity.PlayerJumpEvent; 8 | import rina.onepop.club.client.event.entity.PlayerMoveEvent; 9 | import rina.onepop.club.mixin.interfaces.IEntityPlayerSP; 10 | import rina.onepop.club.mixin.mixins.player.MixinEntityPlayer; 11 | 12 | /** 13 | * @author SrRina 14 | * @since 23/02/2021 at 23:06 15 | **/ 16 | @Mixin(EntityPlayerSP.class) 17 | public abstract class MixinEntityPlayerSP extends MixinEntityPlayer implements IEntityPlayerSP { 18 | @Override 19 | public void jump() { 20 | PlayerJumpEvent event = new PlayerJumpEvent(); 21 | 22 | if (!event.isCanceled()) { 23 | super.jump(); 24 | } 25 | } 26 | 27 | // Event 28 | @Override 29 | public void move(MoverType type, double x, double y, double z) { 30 | PlayerMoveEvent event = new PlayerMoveEvent(type, x, y, z); 31 | 32 | Onepop.getPomeloEventManager().dispatchEvent(event); 33 | 34 | super.move(event.getType(), event.getX(), event.getY(), event.getZ()); 35 | } 36 | 37 | /* @Inject(method = "pushOutOfBlocks", at = @At("HEAD"), cancellable = true) 38 | public void onPushByBlocks(double x, double y, double z, CallbackInfoReturnable cir) { 39 | 40 | } don't need this...*/ 41 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/player/ModuleNoSlowDown.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.player; 2 | 3 | import net.minecraft.network.play.client.CPacketEntityAction; 4 | import net.minecraftforge.client.event.InputUpdateEvent; 5 | import rina.onepop.club.api.module.Module; 6 | import rina.onepop.club.api.module.impl.ModuleCategory; 7 | import rina.onepop.club.api.module.registry.Registry; 8 | import rina.onepop.club.api.setting.value.ValueBoolean; 9 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 24/02/2021 at 16:01 14 | **/ 15 | @Registry(name = "No Slow Down", tag = "NoSlowDown", description = "No slow down module.", category = ModuleCategory.PLAYER) 16 | public class ModuleNoSlowDown extends Module { 17 | public static ValueBoolean settingStrict = new ValueBoolean("Strict", "Strict", "Strict option.", false); 18 | 19 | @Listener 20 | public void onInputUpdateEvent(InputUpdateEvent event) { 21 | if (mc.player.isHandActive() && !mc.player.isRiding()) { 22 | if (settingStrict.getValue()) { 23 | mc.player.connection.sendPacket(new CPacketEntityAction(mc.player, CPacketEntityAction.Action.START_SNEAKING)); 24 | mc.player.connection.sendPacket(new CPacketEntityAction(mc.player, CPacketEntityAction.Action.STOP_SNEAKING)); 25 | } else { 26 | event.getMovementInput().moveStrafe *= 5; 27 | event.getMovementInput().moveForward *= 5; 28 | } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/preset/Preset.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.preset; 2 | 3 | import rina.onepop.club.api.preset.impl.PresetValidator; 4 | import rina.onepop.club.api.util.client.ByteManipulator; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 10/07/2021 at 13:51 9 | **/ 10 | public class Preset { 11 | private String name; 12 | private String data; 13 | 14 | private PresetValidator validator; 15 | 16 | public Preset(String name, String data) { 17 | this.name = name; 18 | this.data = data; 19 | 20 | this.validator = new PresetValidator(name + "-" + data, ByteManipulator.FALSE); 21 | } 22 | 23 | public void setTag(String name) { 24 | this.name = name; 25 | } 26 | 27 | public String getTag() { 28 | return name; 29 | } 30 | 31 | public void setData(String data) { 32 | this.data = data; 33 | } 34 | 35 | public String getData() { 36 | return data; 37 | } 38 | 39 | public void updateValidator() { 40 | this.validator.setMetaData(this.name + "-" + this.data); 41 | } 42 | 43 | public void setValidator() { 44 | this.validator.setCertifier(ByteManipulator.TRUE); 45 | } 46 | 47 | public void unsetValidator() { 48 | this.validator.setCertifier(ByteManipulator.FALSE); 49 | } 50 | 51 | public boolean isCurrent() { 52 | return ByteManipulator.intToBoolean(this.validator.getCertifier()); 53 | } 54 | 55 | public byte getCertification() { 56 | return this.validator.getCertifier(); 57 | } 58 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/tracker/impl/WindowClickTracker.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.tracker.impl; 2 | 3 | import net.minecraft.entity.player.EntityPlayer; 4 | import net.minecraft.inventory.ClickType; 5 | import net.minecraft.item.ItemStack; 6 | import net.minecraft.network.play.client.CPacketClickWindow; 7 | import rina.onepop.club.api.tracker.Tracker; 8 | 9 | import java.io.IOException; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 30/06/2021 at 04:23 14 | **/ 15 | public class WindowClickTracker extends Tracker { 16 | private int windowId; 17 | private int slotId; 18 | private int mouseButton; 19 | 20 | private ClickType type; 21 | private EntityPlayer player; 22 | 23 | public WindowClickTracker(int windowId, int slotId, int mouseButton, ClickType type, EntityPlayer player) { 24 | super("Window Click", null); 25 | 26 | this.windowId = windowId; 27 | this.slotId = slotId; 28 | this.mouseButton = mouseButton; 29 | this.type = type; 30 | this.player = player; 31 | } 32 | 33 | @Override 34 | public void onPre() { 35 | boolean flush = true; 36 | 37 | try { 38 | short short1 = player.openContainer.getNextTransactionID(player.inventory); 39 | ItemStack itemstack = player.openContainer.slotClick(slotId, mouseButton, type, player); 40 | 41 | this.setPacket(new CPacketClickWindow(windowId, slotId, mouseButton, type, itemstack, short1)); 42 | } catch (Exception exc) { 43 | flush = false; 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/component/ComponentRinaMessage.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.component; 2 | 3 | import rina.onepop.club.api.component.Component; 4 | import rina.onepop.club.api.component.StringType; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 06/04/2021 at 14:02 9 | **/ 10 | public class ComponentRinaMessage extends Component { 11 | final private String[] specialThanksAndMuchTexto = new String[] { 12 | "Hi, thank you for buy my client!", 13 | "Im very happy, because, all this GUI, HUD & Auto Crystal,", 14 | " are very well made to wrong places...", 15 | "Now its on right place! Enjoy the client!!", 16 | "Its helping me to go live for Canada!", 17 | "Special thanks to Jake, Hero and all users and members of 1POP!" 18 | }; 19 | 20 | public ComponentRinaMessage() { 21 | super("Rina Message", "RinaMessage", "Rina message!", StringType.USE); 22 | } 23 | 24 | @Override 25 | public void onRender(float partialTicks) { 26 | int stringWidth = 1; 27 | int stringHeight = 1; 28 | 29 | for (String lines : this.specialThanksAndMuchTexto) { 30 | this.render(lines, 0, stringHeight); 31 | 32 | if (this.getStringWidth(lines) > stringWidth) { 33 | stringWidth = this.getStringWidth(lines); 34 | } 35 | 36 | stringHeight += this.getStringHeight(lines) + 1; 37 | } 38 | 39 | this.rect.setWidth(stringWidth); 40 | this.rect.setHeight(stringHeight); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/render/MixinRenderEnderCrystal.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.render; 2 | 3 | import net.minecraft.client.model.ModelBase; 4 | import net.minecraft.client.renderer.entity.RenderEnderCrystal; 5 | import net.minecraft.entity.Entity; 6 | import net.minecraft.entity.EntityLivingBase; 7 | import org.spongepowered.asm.mixin.Mixin; 8 | import org.spongepowered.asm.mixin.injection.At; 9 | import org.spongepowered.asm.mixin.injection.Redirect; 10 | import rina.onepop.club.Onepop; 11 | import rina.onepop.club.client.event.render.RenderModelEvent; 12 | 13 | /** 14 | * @author SrRina 15 | * @since 06/07/2021 at 00:34 16 | **/ 17 | @Mixin(RenderEnderCrystal.class) 18 | public class MixinRenderEnderCrystal { 19 | @Redirect(method = "doRender", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/model/ModelBase;render(Lnet/minecraft/entity/Entity;FFFFFF)V")) 20 | public void doRender(ModelBase modelBase, Entity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale) { 21 | final RenderModelEvent event = new RenderModelEvent(entityIn, modelBase, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale); 22 | 23 | Onepop.getPomeloEventManager().dispatchEvent(event); 24 | 25 | if (event.isCanceled()) { 26 | return; 27 | } 28 | 29 | event.getModelBase().render(entityIn, event.getLimbSwing(), event.getLimbSwingAmount(), event.getAgeInTicks(), event.getNetHeadYaw(), event.getHeadPitch(), event.getScaleFactor()); 30 | } 31 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/client/KeyUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.client; 2 | 3 | import rina.onepop.club.Onepop; 4 | import net.minecraft.client.settings.KeyBinding; 5 | import net.minecraftforge.client.settings.KeyConflictContext; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 06/02/2021 at 12:50 10 | **/ 11 | public class KeyUtil { 12 | public static final KeyBinding[] ALL_MOVEMENT_KEY_BIND = { 13 | Onepop.MC.gameSettings.keyBindForward, Onepop.MC.gameSettings.keyBindBack, Onepop.MC.gameSettings.keyBindLeft, Onepop.MC.gameSettings.keyBindRight, Onepop.MC.gameSettings.keyBindJump 14 | }; 15 | 16 | public static void press(KeyBinding keyBinding, boolean pressed) { 17 | if (keyBinding.getKeyConflictContext() != KeyConflictContext.UNIVERSAL) { 18 | keyBinding.setKeyConflictContext(KeyConflictContext.UNIVERSAL); 19 | } 20 | 21 | KeyBinding.setKeyBindState(keyBinding.getKeyCode(), pressed); 22 | } 23 | 24 | public static boolean isMoving() { 25 | if (NullUtil.isPlayerWorld()) { 26 | return false; 27 | } 28 | 29 | return (Onepop.MC.gameSettings.keyBindForward.isKeyDown() || Onepop.MC.gameSettings.keyBindBack.isKeyDown() || Onepop.MC.gameSettings.keyBindLeft.isKeyDown() || Onepop.MC.gameSettings.keyBindRight.isKeyDown()); 30 | } 31 | 32 | public static boolean isJumping() { 33 | return Onepop.MC.gameSettings.keyBindJump.isKeyDown(); 34 | } 35 | 36 | public static boolean isPressed(KeyBinding keyBinding) { 37 | return keyBinding.isKeyDown(); 38 | } 39 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/entity/MixinAbstractHorse.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.entity; 2 | 3 | import rina.onepop.club.Onepop; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | import rina.onepop.club.client.event.entity.AbstractHorseEvent; 6 | import net.minecraft.entity.passive.AbstractHorse; 7 | import org.spongepowered.asm.mixin.Mixin; 8 | import org.spongepowered.asm.mixin.injection.At; 9 | import org.spongepowered.asm.mixin.injection.Inject; 10 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; 11 | 12 | /** 13 | * @author SrRina 14 | * @since 16/05/2021 at 19:50 15 | **/ 16 | @Mixin(AbstractHorse.class) 17 | public class MixinAbstractHorse { 18 | 19 | // Event 20 | @Inject(method = "canBeSteered", at = @At("HEAD"), cancellable = true) 21 | public void onAbstractHorseCanBeSteered(CallbackInfoReturnable cir) { 22 | final AbstractHorseEvent event = new AbstractHorseEvent(EventStage.PRE); 23 | 24 | Onepop.getPomeloEventManager().dispatchEvent(event); 25 | 26 | if (event.isCanceled()) { 27 | cir.setReturnValue(true); 28 | } 29 | } 30 | 31 | // Event 32 | @Inject(method = "isHorseSaddled", at = @At("HEAD"), cancellable = true) 33 | public void onSaddled(CallbackInfoReturnable cir) { 34 | final AbstractHorseEvent event = new AbstractHorseEvent(EventStage.POST); 35 | 36 | Onepop.getPomeloEventManager().dispatchEvent(event); 37 | 38 | if (event.isCanceled()) { 39 | cir.setReturnValue(true); 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/chat/ChatSuffixUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.chat; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 04/02/2021 at 00:26 6 | **/ 7 | public class ChatSuffixUtil { 8 | public static String hephaestus(String string) { 9 | String str = string; 10 | 11 | str = str.replace("a", "\u1d00"); 12 | str = str.replace("b", "\u0299"); 13 | str = str.replace("c", "\u1d04"); 14 | str = str.replace("d", "\u1d05"); 15 | str = str.replace("e", "\u1d07"); 16 | str = str.replace("f", "\u0493"); 17 | str = str.replace("g", "\u0262"); 18 | str = str.replace("h", "\u029c"); 19 | str = str.replace("i", "\u026a"); 20 | str = str.replace("j", "\u1d0a"); 21 | str = str.replace("k", "\u1d0b"); 22 | str = str.replace("l", "\u029f"); 23 | str = str.replace("m", "\u1d0d"); 24 | str = str.replace("n", "\u0274"); 25 | str = str.replace("o", "\u1d0f"); 26 | str = str.replace("p", "\u1d18"); 27 | str = str.replace("q", "\u01eb"); 28 | str = str.replace("r", "\u0280"); 29 | str = str.replace("s", "\u0455"); 30 | str = str.replace("t", "\u1d1b"); 31 | str = str.replace("u", "\u1d1c"); 32 | str = str.replace("v", "\u1d20"); 33 | str = str.replace("w", "\u1d21"); 34 | str = str.replace("x", "\u0445"); 35 | str = str.replace("y", "\u028f"); 36 | str = str.replace("z", "\u1d22"); 37 | 38 | // The |. 39 | str = str.replace("|", "\u23D0"); 40 | 41 | return str; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/team/stiff/pomelo/EventManager.java: -------------------------------------------------------------------------------- 1 | package team.stiff.pomelo; 2 | 3 | import team.stiff.pomelo.handler.EventHandler; 4 | 5 | /** 6 | * Pomelo is a simplistic event-bus that supports event filtering. 7 | *

8 | * todo; thread-safety 9 | * todo; junit testing 10 | * 11 | * @author Daniel 12 | * @since May 31, 2017 13 | */ 14 | public interface EventManager { 15 | 16 | /** 17 | * Notify all registered {@link EventHandler}s that are listening 18 | * for the passed event that the event has been dispatched. 19 | * 20 | * @param event event instance 21 | * @param event type 22 | * @return passed event instance 23 | */ 24 | E dispatchEvent(E event); 25 | 26 | /** 27 | * Checks if the given listener object is registered. 28 | * 29 | * @param listener listener instance 30 | * @return true if registered; false otherwise 31 | */ 32 | boolean isRegisteredListener(Object listener); 33 | 34 | /** 35 | * Register an object as an event listener that listens for the provided 36 | * eventClass type to be dispatched. 37 | * 38 | * @param listener event listener instance 39 | * @return true if successfully added; false otherwise 40 | */ 41 | boolean addEventListener(Object listener); 42 | 43 | /** 44 | * Remove an event listener from the bus so it does not listen 45 | * for event dispatches anymore. 46 | * 47 | * @param listener event listener instance 48 | * @return true if successfully removed; false otherwise 49 | */ 50 | boolean removeEventListener(Object listener); 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/exploit/ModuleNoServerRotate.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.exploit; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.setting.value.ValueBoolean; 7 | import rina.onepop.club.api.util.client.NullUtil; 8 | import rina.onepop.club.client.event.network.PacketEvent; 9 | import net.minecraft.network.play.server.SPacketPlayerPosLook; 10 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 11 | 12 | /** 13 | * @author SrRina 14 | * @since 15/05/2021 at 17:09 15 | **/ 16 | @Registry(name = "No Server Rotate", tag = "NoServerRotate", description = "No server rotate!", category = ModuleCategory.EXPLOIT) 17 | public class ModuleNoServerRotate extends Module { 18 | /* Misc. */ 19 | public static ValueBoolean settingCancel = new ValueBoolean("Cancel", "Cancel", "Just cancel rotate from server.", false); 20 | 21 | @Listener 22 | public void onPacketReceive(PacketEvent.Receive event) { 23 | if (NullUtil.isPlayerWorld()) { 24 | return; 25 | } 26 | 27 | if (event.getPacket() instanceof SPacketPlayerPosLook) { 28 | if (settingCancel.getValue()) { 29 | event.setCanceled(true); 30 | } else { 31 | final SPacketPlayerPosLook packet = (SPacketPlayerPosLook) event.getPacket(); 32 | 33 | packet.yaw = mc.player.rotationYaw; 34 | packet.pitch = mc.player.rotationPitch; 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/client/anticheat/ModuleAntiCheat.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.client.anticheat; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.setting.value.ValueBoolean; 7 | import rina.onepop.club.api.setting.value.ValueEnum; 8 | import rina.onepop.club.api.ISLClass; 9 | 10 | /** 11 | * @author smwwrina 12 | * @since 27/02/2021 at 16:19 13 | **/ 14 | @Registry(name = "Anti-Cheat", tag = "AntiCheat", description = "Enable if you know what anti-cheat is on.", category = ModuleCategory.CLIENT) 15 | public class ModuleAntiCheat extends Module { 16 | public static ModuleAntiCheat INSTANCE; 17 | 18 | public static ValueBoolean settingNewerVersionAC = new ValueBoolean("Newer 1.13+ Version", "Newer1.13+Version", "Make all client works with new version", false); 19 | public static ValueEnum settingType = new ValueEnum("Type", "Type", "Type of anti-cheat.", Type.NCP); 20 | 21 | public ModuleAntiCheat() { 22 | INSTANCE = this; 23 | } 24 | 25 | public static float getRange() { 26 | float range = 0f; 27 | 28 | if (!INSTANCE.isEnabled()) { 29 | range = ISLClass.mc.playerController.getBlockReachDistance(); 30 | } 31 | 32 | if (settingType.getValue() == Type.NCP) { 33 | range = 4.3f; 34 | } 35 | 36 | if (settingType.getValue() == Type.VANILLA) { 37 | range = ISLClass.mc.playerController.getBlockReachDistance(); 38 | } 39 | 40 | return range; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/render/image/management/TurokImageManager.java: -------------------------------------------------------------------------------- 1 | package me.rina.turok.render.image.management; 2 | 3 | import me.rina.turok.render.opengl.TurokRenderGL; 4 | import me.rina.turok.render.image.TurokImage; 5 | import me.rina.turok.render.opengl.TurokGL; 6 | import net.minecraft.client.Minecraft; 7 | import org.lwjgl.opengl.GL11; 8 | 9 | import java.awt.*; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 28/09/20 at 1:23pm 14 | */ 15 | public class TurokImageManager { 16 | public static void render(TurokImage image, int x, int y, float xx, float yy, int w, int h, float ww, float hh, Color color) { 17 | TurokGL.enable(GL11.GL_BLEND); 18 | 19 | TurokGL.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); 20 | 21 | TurokGL.enable(GL11.GL_TEXTURE_2D); 22 | TurokGL.enable(GL11.GL_CULL_FACE); 23 | TurokGL.disable(GL11.GL_DEPTH_TEST); 24 | 25 | GL11.glColor4f(color.getRed() / 255f, color.getGreen() / 255f, color.getBlue() / 255f, color.getAlpha() / 255f); 26 | 27 | Minecraft.getMinecraft().renderEngine.bindTexture(image.getResourceLocation()); 28 | 29 | GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL11.GL_REPEAT); 30 | GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL11.GL_REPEAT); 31 | 32 | TurokRenderGL.drawTextureInterpolated(x, y, xx, yy, w, h, ww, hh); 33 | 34 | TurokGL.disable(GL11.GL_BLEND); 35 | TurokGL.disable(GL11.GL_TEXTURE_2D); 36 | TurokGL.disable(GL11.GL_CULL_FACE); 37 | TurokGL.enable(GL11.GL_DEPTH_TEST); 38 | } 39 | 40 | public static void render(TurokImage image, int x, int y, int w, int h, Color color) { 41 | render(image, x, y, w, h, 0, 0, 1, 1, color); 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/chat/ChatUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.chat; 2 | 3 | import com.mojang.realmsclient.gui.ChatFormatting; 4 | import rina.onepop.club.Onepop; 5 | import net.minecraft.network.play.client.CPacketChatMessage; 6 | import net.minecraft.util.text.TextComponentString; 7 | 8 | /** 9 | * @author SrRina 10 | * @since 15/11/20 at 9:43pm 11 | */ 12 | public class ChatUtil { 13 | public static void print(String message) { 14 | if (Onepop.getMinecraft().ingameGUI == null) { 15 | return; 16 | } 17 | 18 | String formatedMessage = ChatFormatting.GRAY + message; 19 | 20 | Onepop.getMinecraft().ingameGUI.getChatGUI().printChatMessage(new TextComponentString(formatedMessage)); 21 | } 22 | 23 | public static void refreshPrint(String message) { 24 | if (Onepop.getMinecraft().ingameGUI == null) { 25 | return; 26 | } 27 | 28 | String formatedMessage = ChatFormatting.GRAY + message; 29 | 30 | Onepop.getMinecraft().ingameGUI.getChatGUI().printChatMessageWithOptionalDeletion(new TextComponentString(formatedMessage), 69); 31 | } 32 | 33 | public static void malloc(String message) { 34 | if (Onepop.getMinecraft().ingameGUI == null) { 35 | return; 36 | } 37 | 38 | Onepop.getMinecraft().ingameGUI.getChatGUI().addToSentMessages(message); 39 | } 40 | 41 | public static void message(String message) { 42 | if (Onepop.getMinecraft().player == null) { 43 | return; 44 | } 45 | 46 | Onepop.getMinecraft().player.connection.sendPacket(new CPacketChatMessage(message)); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/network/PacketUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.network; 2 | 3 | import rina.onepop.club.Onepop; 4 | import net.minecraft.network.Packet; 5 | 6 | /** 7 | * @author SrRina 8 | * @since 05/02/2021 at 12:53 9 | **/ 10 | public class PacketUtil { 11 | /** 12 | * Its packet tracker technology, for we control the packet! 13 | */ 14 | public static class PacketTracker { 15 | private String name; 16 | private Packet packet; 17 | 18 | private boolean isCanceled; 19 | 20 | public PacketTracker(String name, Packet packet) { 21 | this.name = name; 22 | this.packet = packet; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | public void setPacket(Packet packet) { 30 | this.packet = packet; 31 | } 32 | 33 | public String getName() { 34 | return name; 35 | } 36 | 37 | public Packet getPacket() { 38 | return packet; 39 | } 40 | 41 | public boolean isCanceled() { 42 | return isCanceled; 43 | } 44 | 45 | public void setCanceled(boolean canceled) { 46 | isCanceled = canceled; 47 | } 48 | 49 | /** 50 | * Pre event before send packet. 51 | */ 52 | public void onPre() {} 53 | 54 | /** 55 | * Post event after send packet. 56 | */ 57 | public void onPost() {} 58 | } 59 | 60 | public static void send(Packet packet) { 61 | Onepop.MC.player.connection.sendPacket(packet); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/entity/MixinEntityPig.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.entity; 2 | 3 | import rina.onepop.club.Onepop; 4 | import rina.onepop.club.api.event.impl.EventStage; 5 | import rina.onepop.club.client.event.entity.PigEvent; 6 | import net.minecraft.entity.passive.EntityPig; 7 | import org.spongepowered.asm.mixin.Mixin; 8 | import org.spongepowered.asm.mixin.injection.At; 9 | import org.spongepowered.asm.mixin.injection.Inject; 10 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 11 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; 12 | 13 | /** 14 | * @author SrRina 15 | * @since 16/05/2021 at 19:33 16 | * 17 | * PIGS <3 18 | **/ 19 | @Mixin(EntityPig.class) 20 | public class MixinEntityPig { 21 | 22 | // event 23 | @Inject(method = "canBeSteered", at = @At("HEAD"), cancellable = true) 24 | public void onPigSteered(CallbackInfoReturnable cir) { 25 | final PigEvent event = new PigEvent(EventStage.PRE); 26 | 27 | Onepop.getPomeloEventManager().dispatchEvent(event); 28 | 29 | if (event.isCanceled()) { 30 | cir.setReturnValue(true); 31 | } 32 | } 33 | 34 | // event 35 | @Inject(method = "travel", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/passive/EntityPig;setAIMoveSpeed(F)V"), cancellable = true) 36 | public void onPigTravel(float strafe, float vertical, float forward, CallbackInfo ci) { 37 | final PigEvent event = new PigEvent(EventStage.POST); 38 | 39 | Onepop.getPomeloEventManager().dispatchEvent(event); 40 | 41 | if (event.isCanceled()) { 42 | ci.cancel(); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/component/impl/ComponentSetting.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.component.impl; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 30/11/20 at 8:32pm 6 | * 7 | * @param The value. :o 8 | **/ 9 | public class ComponentSetting { 10 | private String name; 11 | private String tag; 12 | private String description; 13 | 14 | private T value; 15 | private T minimum; 16 | private T maximum; 17 | 18 | public ComponentSetting(String name, String tag, String description, T value) { 19 | this.name = name; 20 | this.tag = tag; 21 | this.description = description; 22 | 23 | this.value = value; 24 | } 25 | 26 | public ComponentSetting(String name, String tag, String description, T value, T minimum, T maximum) { 27 | this.name = name; 28 | this.tag = tag; 29 | this.description = description; 30 | 31 | this.value = value; 32 | 33 | this.minimum = minimum; 34 | this.maximum = maximum; 35 | } 36 | 37 | public void setName(String name) { 38 | this.name = name; 39 | } 40 | 41 | public String getName() { 42 | return name; 43 | } 44 | 45 | public void setTag(String tag) { 46 | this.tag = tag; 47 | } 48 | 49 | public String getTag() { 50 | return tag; 51 | } 52 | 53 | public void setDescription(String description) { 54 | this.description = description; 55 | } 56 | 57 | public String getDescription() { 58 | return description; 59 | } 60 | 61 | public void setValue(T value) { 62 | this.value = value; 63 | } 64 | 65 | public T getValue() { 66 | return value; 67 | } 68 | 69 | public T getMinimum() { 70 | return minimum; 71 | } 72 | 73 | public T getMaximum() { 74 | return maximum; 75 | } 76 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/setting/impl/SettingStructure.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.setting.impl; 2 | 3 | /** 4 | * @author SrRina 5 | * @since 20/01/2021 at 09:36 6 | **/ 7 | public interface SettingStructure { 8 | /** 9 | * Set the current name of setting. 10 | */ 11 | public void setName(String name); 12 | 13 | /** 14 | * Returns the current name of setting. 15 | * 16 | * @return String name of setting. 17 | */ 18 | public String getName(); 19 | 20 | /** 21 | * Set the current tag of setting. 22 | */ 23 | public void setTag(String tag); 24 | 25 | /** 26 | * Returns the current tag of setting. 27 | * 28 | * @return String tag of setting. 29 | */ 30 | public String getTag(); 31 | 32 | /** 33 | * Set the current description of setting. 34 | */ 35 | public void setDescription(String description); 36 | 37 | /** 38 | * Returns the current description of setting. 39 | * 40 | * @return String description of setting. 41 | */ 42 | public String getDescription(); 43 | 44 | /** 45 | * Set operable setting value. 46 | */ 47 | public void setEnabled(boolean enabled); 48 | 49 | /** 50 | * Returns if is a operable setting. 51 | * 52 | * @return boolean value of setting operable. 53 | */ 54 | public boolean isEnabled(); 55 | 56 | /** 57 | * Set old state enabled. 58 | * 59 | * @param enabled boolean state of old setting operable value. 60 | */ 61 | public void setOld(boolean enabled); 62 | 63 | /** 64 | * Returns the old state enabled. 65 | * 66 | * @return the old state enabled. 67 | */ 68 | public boolean getOld(); 69 | } 70 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/setting/value/ValueEnum.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.setting.value; 2 | 3 | import rina.onepop.club.api.setting.Setting; 4 | 5 | import java.util.ArrayList; 6 | import java.util.Arrays; 7 | import java.util.List; 8 | 9 | /** 10 | * @author SrRina 11 | * @since 20/01/2021 at 09:55 12 | **/ 13 | public class ValueEnum extends Setting { 14 | private final List> valueList; 15 | private Enum value; 16 | 17 | private int index; 18 | 19 | public ValueEnum(String name, String tag, String description, Enum value) { 20 | super(name, tag, description); 21 | 22 | this.value = value; 23 | 24 | this.valueList = new ArrayList<>(); 25 | this.valueList.addAll(Arrays.asList(value.getDeclaringClass().getEnumConstants())); 26 | 27 | int id = this.valueList.indexOf(this.value); 28 | 29 | this.index = id != -1 ? id : 0; 30 | } 31 | 32 | public void setValue(Enum p_Enum) { 33 | int id = this.valueList.indexOf(p_Enum); 34 | 35 | this.index = id != -1 ? id : 0; 36 | this.value = this.valueList.get(this.index); 37 | } 38 | 39 | public Enum getValue() { 40 | return value; 41 | } 42 | 43 | public void setIndex(int index) { 44 | this.index = index; 45 | } 46 | 47 | public int getIndex() { 48 | return index; 49 | } 50 | 51 | public List> getValueList() { 52 | return valueList; 53 | } 54 | 55 | /** 56 | * Update the place index! 57 | */ 58 | public void updateIndex() { 59 | if (this.index >= this.valueList.size() - 1) { 60 | this.index = 0; 61 | } else { 62 | this.index++; 63 | } 64 | } 65 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/entity/MixinEntity.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.entity; 2 | 3 | import rina.onepop.club.Onepop; 4 | import rina.onepop.club.client.event.entity.PushPlayerEvent; 5 | import rina.onepop.club.client.module.player.ModuleSafeWalk; 6 | import net.minecraft.entity.Entity; 7 | import net.minecraft.entity.MoverType; 8 | import org.spongepowered.asm.mixin.Mixin; 9 | import org.spongepowered.asm.mixin.Shadow; 10 | import org.spongepowered.asm.mixin.injection.At; 11 | import org.spongepowered.asm.mixin.injection.Redirect; 12 | 13 | /** 14 | * @author SrRina 15 | * @since 23/02/2021 at 22:57 16 | **/ 17 | @Mixin(Entity.class) 18 | public abstract class MixinEntity { 19 | @Shadow 20 | public void move(MoverType type, double x, double y, double z) {} 21 | 22 | @Shadow public abstract boolean removeTag(String tag); 23 | 24 | @Shadow public int entityId; 25 | 26 | // Event 27 | @Redirect(method = "applyEntityCollision", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/Entity;addVelocity(DDD)V")) 28 | public void onPushPlayer(Entity entity, double x, double y, double z) { 29 | final PushPlayerEvent event = new PushPlayerEvent(); 30 | 31 | Onepop.getPomeloEventManager().dispatchEvent(event); 32 | 33 | if (!event.isCanceled()) { 34 | entity.motionX += x; 35 | entity.motionY += y; 36 | entity.motionZ += z; 37 | } 38 | } 39 | 40 | // redirect should work? 41 | @Redirect(method = "move", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/Entity;isSneaking()Z")) 42 | public boolean isSneaking(Entity entity) { 43 | return ModuleSafeWalk.INSTANCE.isEnabled() || entity.isSneaking(); 44 | } 45 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/tracker/management/TrackerManager.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.tracker.management; 2 | 3 | import me.rina.turok.util.TurokTick; 4 | import net.minecraft.client.Minecraft; 5 | import rina.onepop.club.api.tracker.Tracker; 6 | import rina.onepop.club.client.module.client.ModuleGeneral; 7 | 8 | import java.util.Queue; 9 | import java.util.concurrent.ConcurrentLinkedQueue; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 05/02/2021 at 13:02 14 | **/ 15 | public class TrackerManager { 16 | public static TrackerManager INSTANCE; 17 | public static float DELAY = 50f; 18 | 19 | private final Queue trackQueue; 20 | private final TurokTick delayMS = new TurokTick(); 21 | 22 | public TrackerManager() { 23 | INSTANCE = this; 24 | 25 | this.trackQueue = new ConcurrentLinkedQueue<>(); 26 | } 27 | 28 | public Queue getTrackQueue() { 29 | return trackQueue; 30 | } 31 | 32 | public void dispatch(Tracker track) { 33 | this.trackQueue.add(track); 34 | } 35 | 36 | public void onUpdateAll() { 37 | final Minecraft mc = Minecraft.getMinecraft(); 38 | 39 | if (mc.player == null) { 40 | return; 41 | } 42 | 43 | if (!this.trackQueue.isEmpty() && this.delayMS.isPassedMS(ModuleGeneral.settingDelay.getValue().floatValue() * 1000)) { 44 | final Tracker packetTracker = this.trackQueue.poll(); 45 | 46 | if (packetTracker != null) { 47 | packetTracker.onPre(); 48 | mc.player.connection.sendPacket(packetTracker.getPacket()); 49 | packetTracker.onPost(); 50 | 51 | this.delayMS.reset(); 52 | } 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/me/rina/turok/render/image/TurokImage.java: -------------------------------------------------------------------------------- 1 | package me.rina.turok.render.image; 2 | 3 | import net.minecraft.client.Minecraft; 4 | import net.minecraft.client.renderer.texture.DynamicTexture; 5 | import net.minecraft.util.ResourceLocation; 6 | 7 | import javax.imageio.ImageIO; 8 | import java.awt.image.BufferedImage; 9 | import java.io.IOException; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 27/09/20 at 12:49pm 14 | */ 15 | public class TurokImage { 16 | private String path; 17 | 18 | private BufferedImage bufferedImage; 19 | private ResourceLocation resourceLocation; 20 | 21 | private DynamicTexture dynamicTexture; 22 | 23 | public TurokImage(String path) { 24 | this.path = path; 25 | 26 | try { 27 | this.bufferedImage = ImageIO.read(TurokImage.class.getResourceAsStream(this.path)); 28 | } catch (IOException exc) { 29 | exc.printStackTrace(); 30 | } 31 | 32 | this.dynamicTexture = new DynamicTexture(this.bufferedImage); 33 | this.resourceLocation = Minecraft.getMinecraft().getTextureManager().getDynamicTextureLocation("turok/textures/", this.dynamicTexture); 34 | } 35 | 36 | public int getWidth() { 37 | return this.bufferedImage.getWidth(); 38 | } 39 | 40 | public int getHeight() { 41 | return this.bufferedImage.getHeight(); 42 | } 43 | 44 | public String getPath() { 45 | return path; 46 | } 47 | 48 | public BufferedImage getBufferedImage() { 49 | return bufferedImage; 50 | } 51 | 52 | public ResourceLocation getResourceLocation() { 53 | return resourceLocation; 54 | } 55 | 56 | public DynamicTexture getDynamicTexture() { 57 | return dynamicTexture; 58 | } 59 | } -------------------------------------------------------------------------------- /src/main/java/team/stiff/pomelo/impl/annotated/handler/scan/MethodHandlerScanner.java: -------------------------------------------------------------------------------- 1 | package team.stiff.pomelo.impl.annotated.handler.scan; 2 | 3 | import team.stiff.pomelo.filter.EventFilterScanner; 4 | import team.stiff.pomelo.handler.EventHandler; 5 | import team.stiff.pomelo.handler.scan.EventHandlerScanner; 6 | import team.stiff.pomelo.impl.annotated.filter.MethodFilterScanner; 7 | import team.stiff.pomelo.impl.annotated.handler.MethodEventHandler; 8 | 9 | import java.lang.reflect.Method; 10 | import java.util.HashMap; 11 | import java.util.Map; 12 | import java.util.Set; 13 | import java.util.TreeSet; 14 | import java.util.stream.Stream; 15 | 16 | /** 17 | * An implementation of {@link EventHandlerScanner} that locates 18 | * all methods of a class that are event listeners. 19 | * 20 | * @author Daniel 21 | * @since May 31, 2017 22 | */ 23 | public final class MethodHandlerScanner implements EventHandlerScanner { 24 | private final AnnotatedListenerPredicate annotatedListenerPredicate = 25 | new AnnotatedListenerPredicate(); 26 | private final EventFilterScanner filterScanner = new MethodFilterScanner(); 27 | 28 | @Override 29 | public Map, Set> locate(final Object listenerContainer) { 30 | final Map, Set> eventHandlers = new HashMap<>(); 31 | Stream.of(listenerContainer.getClass().getDeclaredMethods()) 32 | .filter(annotatedListenerPredicate).forEach(method -> eventHandlers 33 | .computeIfAbsent(method.getParameterTypes()[0], obj -> new TreeSet<>()) 34 | .add(new MethodEventHandler(listenerContainer, method, 35 | filterScanner.scan(method)))); 36 | return eventHandlers; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/render/fullbright/ModuleFullBright.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.render.fullbright; 2 | 3 | import rina.onepop.club.api.ISLClass; 4 | import rina.onepop.club.api.module.Module; 5 | import rina.onepop.club.api.module.impl.ModuleCategory; 6 | import rina.onepop.club.api.module.registry.Registry; 7 | import rina.onepop.club.api.setting.value.ValueEnum; 8 | import rina.onepop.club.api.util.client.NullUtil; 9 | import rina.onepop.club.client.event.client.RunTickEvent; 10 | import net.minecraft.init.MobEffects; 11 | import net.minecraft.potion.PotionEffect; 12 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 13 | 14 | /** 15 | * Jake! not make me insane! don't put 1k in gamma!!! it glitch all game light!!!! 16 | * lol 17 | * sorry rina -jake 18 | */ 19 | @Registry(name = "Full Bright", tag = "FullBright", description = "Changes brightness level of Minecraft.", category = ModuleCategory.RENDER) 20 | public class ModuleFullBright extends Module { 21 | /* Misc. */ 22 | public static ValueEnum settingMode = new ValueEnum("Mode", "Mode", "Modes for full bright!", Mode.POTION); 23 | 24 | @Listener 25 | public void onRunTick(RunTickEvent event) { 26 | if (NullUtil.isPlayerWorld()) { 27 | return; 28 | } 29 | 30 | mc.gameSettings.gammaSetting = 100f; 31 | 32 | if (settingMode.getValue() == Mode.POTION) { 33 | mc.player.addPotionEffect(new PotionEffect(MobEffects.NIGHT_VISION, 5210)); 34 | } 35 | } 36 | 37 | @Override 38 | public void onEnable() { 39 | ISLClass.mc.gameSettings.gammaSetting = 100f; 40 | } 41 | 42 | @Override 43 | public void onDisable() { 44 | mc.gameSettings.gammaSetting = 1.0f; 45 | } 46 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/Wrapper.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client; 2 | 3 | import rina.onepop.club.client.module.client.ModuleClickGUI; 4 | import me.rina.turok.render.font.TurokFont; 5 | 6 | import java.awt.*; 7 | 8 | /** 9 | * @author SrRina 10 | * @since 07/12/20 at 02:58pm 11 | */ 12 | public class Wrapper { 13 | public static final int FLAG_COMPONENT_CLOSED = -200; 14 | public static int FLAG_COMPONENT_OPENED = 2; 15 | 16 | public int[] background = {0, 0, 0, 0}; 17 | public int[] base = {0, 0, 0, 0}; 18 | public int[] highlight = {0, 0, 0, 0}; 19 | 20 | public int clampScrollHeight = 200; 21 | 22 | public TurokFont fontBigWidget = new TurokFont(new Font("Whitney", 0, 24), true, true); 23 | public TurokFont fontNormalWidget = new TurokFont(new Font("Whitney", 0, 19), true, true); 24 | public TurokFont fontSmallWidget = new TurokFont(new Font("Whitney", 0, 16), true, true); 25 | public TurokFont fontNameTags = new TurokFont(new Font("Whitney", 0, 19), true, true); 26 | 27 | public void onUpdateColor() { 28 | final Color baseColor = ModuleClickGUI.settingBase.getColor(); 29 | final Color backgroundColor = ModuleClickGUI.settingBackground.getColor(); 30 | 31 | this.clampScrollHeight = ModuleClickGUI.settingScrollHeight.getValue().intValue(); 32 | 33 | this.background = new int[] { 34 | backgroundColor.getRed(), backgroundColor.getGreen(), backgroundColor.getBlue(), 100 35 | }; 36 | 37 | this.base = new int[] { 38 | baseColor.getRed(), baseColor.getGreen(), baseColor.getBlue(), 150 39 | }; 40 | 41 | this.highlight = new int[] { 42 | baseColor.getRed(), baseColor.getGreen(), baseColor.getBlue(), 50 43 | }; 44 | } 45 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/util/entity/PlayerPositionUtil.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.util.entity; 2 | 3 | import rina.onepop.club.api.util.network.PacketUtil; 4 | import rina.onepop.club.Onepop; 5 | import rina.onepop.club.api.util.math.PositionUtil; 6 | import me.rina.turok.util.TurokMath; 7 | import net.minecraft.network.play.client.CPacketPlayer; 8 | import net.minecraft.util.math.BlockPos; 9 | import net.minecraft.util.math.Vec3d; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 16/02/2021 at 09:13 14 | **/ 15 | public class PlayerPositionUtil { 16 | public static void teleportation(BlockPos pos) { 17 | Vec3d vec = PositionUtil.toVec(pos); 18 | 19 | teleportation(vec); 20 | } 21 | 22 | public static void teleportation(Vec3d vec) { 23 | boolean flag = Onepop.MC.player.onGround; 24 | 25 | teleportation(vec, flag); 26 | } 27 | 28 | public static void teleportation(Vec3d vec, boolean onGround) { 29 | double x = vec.x; 30 | double y = vec.y; 31 | double z = vec.z; 32 | 33 | PacketUtil.send(new CPacketPlayer.Position(x, y, z, onGround)); 34 | PlayerUtil.setPosition(x, y, z); 35 | } 36 | 37 | public static void smooth(Vec3d vec, float partialTicks) { 38 | boolean flag = Onepop.MC.player.onGround; 39 | 40 | smooth(vec, flag, partialTicks); 41 | } 42 | 43 | public static void smooth(Vec3d vec, boolean onGround, float partialTicks) { 44 | Vec3d last = PlayerUtil.getVec(); 45 | Vec3d interpolation = TurokMath.lerp(last, vec, partialTicks); 46 | 47 | PlayerUtil.setPosition(interpolation.x, interpolation.y, interpolation.z); 48 | PacketUtil.send(new CPacketPlayer.Position(interpolation.x, interpolation.y, interpolation.z, onGround)); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/combat/ModuleFastBow.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.combat; 2 | 3 | import net.minecraft.item.ItemBow; 4 | import net.minecraft.network.play.client.CPacketPlayerDigging; 5 | import net.minecraft.network.play.client.CPacketPlayerTryUseItem; 6 | import net.minecraft.util.math.BlockPos; 7 | import rina.onepop.club.api.module.Module; 8 | import rina.onepop.club.api.module.impl.ModuleCategory; 9 | import rina.onepop.club.api.module.registry.Registry; 10 | import rina.onepop.club.api.setting.value.ValueNumber; 11 | import rina.onepop.club.api.util.client.NullUtil; 12 | import rina.onepop.club.client.event.client.ClientTickEvent; 13 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 14 | 15 | /** 16 | * @author SrRina 17 | * @since 04/10/2021 at 22:19 18 | **/ 19 | @Registry(name = "Fast Bow", tag = "FastBow", description = "Fast bow.", category = ModuleCategory.COMBAT) 20 | public class ModuleFastBow extends Module { 21 | public static ValueNumber settingStage = new ValueNumber("Stage", "Stage", "Stage for release arrow.", 3, 1, 6); 22 | 23 | @Listener 24 | public void onClientTickEvent(ClientTickEvent event) { 25 | if (NullUtil.isPlayerWorld()) { 26 | return; 27 | } 28 | 29 | if ((mc.player.inventory.getCurrentItem().getItem() instanceof ItemBow && mc.player.isHandActive() && mc.player.getItemInUseMaxCount() >= settingStage.getValue().intValue())) { 30 | mc.player.connection.sendPacket(new CPacketPlayerDigging(CPacketPlayerDigging.Action.RELEASE_USE_ITEM, BlockPos.ORIGIN, mc.player.getHorizontalFacing())); 31 | mc.player.connection.sendPacket(new CPacketPlayerTryUseItem(mc.player.getActiveHand())); 32 | mc.player.stopActiveHand(); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/gui/MixinGuiInGame.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.gui; 2 | 3 | import rina.onepop.club.client.module.render.ModuleNoRender; 4 | import net.minecraft.client.gui.GuiIngame; 5 | import net.minecraft.client.gui.ScaledResolution; 6 | import org.spongepowered.asm.mixin.Mixin; 7 | import org.spongepowered.asm.mixin.injection.At; 8 | import org.spongepowered.asm.mixin.injection.Inject; 9 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 10 | 11 | /** 12 | * @author SrRina 13 | * @since 25/02/2021 at 22:26 14 | **/ 15 | @Mixin(GuiIngame.class) 16 | public class MixinGuiInGame { 17 | 18 | // event 19 | @Inject(method = "renderPotionEffects", at = @At("HEAD"), cancellable = true) 20 | public void onRenderPotionEffects(ScaledResolution resolution, CallbackInfo ci) { 21 | boolean flag = ModuleNoRender.INSTANCE.isEnabled() && ModuleNoRender.settingPotionIcons.getValue(); 22 | 23 | if (flag) { 24 | ci.cancel(); 25 | } 26 | } 27 | // event 28 | 29 | @Inject(method = "renderPumpkinOverlay", at = @At("HEAD"), cancellable = true) 30 | public void onRenderPumpkin(ScaledResolution scaledRes, CallbackInfo ci) { 31 | boolean flag = ModuleNoRender.INSTANCE.isEnabled() && ModuleNoRender.settingPumpkin.getValue(); 32 | 33 | if (flag) { 34 | ci.cancel(); 35 | } 36 | } 37 | // event 38 | 39 | @Inject(method = "renderPortal", at = @At("HEAD"), cancellable = true) 40 | public void onRenderPortal(float timeInPortal, ScaledResolution scaledRes, CallbackInfo ci) { 41 | boolean flag = ModuleNoRender.INSTANCE.isEnabled() && ModuleNoRender.settingPortal.getValue(); 42 | 43 | if (flag) { 44 | ci.cancel(); 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/api/command/Command.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.api.command; 2 | 3 | import com.mojang.realmsclient.gui.ChatFormatting; 4 | import rina.onepop.club.Onepop; 5 | import rina.onepop.club.api.util.chat.ChatUtil; 6 | 7 | /** 8 | * @author SrRina 9 | * @since 16/11/20 at 12:05pm 10 | */ 11 | public class Command { 12 | private String[] alias; 13 | private String description; 14 | 15 | public Command(String[] alias, String description) { 16 | this.alias = alias; 17 | this.description = description; 18 | } 19 | 20 | public void setAlias(String[] alias) { 21 | this.alias = alias; 22 | } 23 | 24 | public String[] getAlias() { 25 | return alias; 26 | } 27 | 28 | public void setDescription(String description) { 29 | this.description = description; 30 | } 31 | 32 | public String getDescription() { 33 | return description; 34 | } 35 | 36 | /* 37 | * Tools. 38 | */ 39 | public void splash() { 40 | this.print(ChatFormatting.RED + setSyntax()); 41 | } 42 | 43 | public void splash(String splash) { 44 | this.print(splash); 45 | } 46 | 47 | public void print(String message) { 48 | ChatUtil.print(Onepop.CHAT + message); 49 | } 50 | 51 | public boolean verify(String argument, String... possibles) { 52 | boolean isVerified = false; 53 | 54 | for (String strings : possibles) { 55 | if (argument.equalsIgnoreCase(strings)) { 56 | isVerified = true; 57 | 58 | break; 59 | } 60 | } 61 | 62 | return isVerified; 63 | } 64 | 65 | /* 66 | * Overrides. 67 | */ 68 | public String setSyntax() { 69 | return null; 70 | } 71 | 72 | public void onCommand(String[] args) {} 73 | } -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/mixin/mixins/network/MixinNetHandlerPlayServer.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.mixin.mixins.network; 2 | 3 | import net.minecraft.entity.Entity; 4 | import net.minecraft.entity.player.EntityPlayerMP; 5 | import net.minecraft.network.NetHandlerPlayServer; 6 | import net.minecraft.network.NetworkManager; 7 | import net.minecraft.network.play.client.CPacketUseEntity; 8 | import net.minecraft.network.play.client.CPacketVehicleMove; 9 | import net.minecraft.util.text.ITextComponent; 10 | import net.minecraft.world.World; 11 | import org.spongepowered.asm.mixin.Mixin; 12 | import org.spongepowered.asm.mixin.Shadow; 13 | import org.spongepowered.asm.mixin.injection.At; 14 | import org.spongepowered.asm.mixin.injection.Inject; 15 | import org.spongepowered.asm.mixin.injection.Redirect; 16 | import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 17 | import rina.onepop.club.Onepop; 18 | import rina.onepop.club.api.event.impl.EventStage; 19 | import rina.onepop.club.client.event.entity.UseEntityWorldProcessEvent; 20 | import rina.onepop.club.client.event.network.TextComponentEvent; 21 | 22 | /** 23 | * @author SrRina 24 | * @since 30/06/2021 at 15:39 25 | **/ 26 | @Mixin(NetHandlerPlayServer.class) 27 | public abstract class MixinNetHandlerPlayServer { 28 | @Redirect(method = "processUseEntity", at = @At(value = "INVOKE", target = "Lnet/minecraft/network/play/client/CPacketUseEntity;getEntityFromWorld(Lnet/minecraft/world/World;)Lnet/minecraft/entity/Entity;")) 29 | public Entity onProcessUseEntity(CPacketUseEntity cPacketUseEntity, World worldIn) { 30 | final UseEntityWorldProcessEvent event = new UseEntityWorldProcessEvent(worldIn, cPacketUseEntity); 31 | 32 | Onepop.getPomeloEventManager().dispatchEvent(event); 33 | 34 | return event.isCanceled() ? null : worldIn.getEntityByID(event.getPacket().entityId); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/manager/network/HotBarManager.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.manager.network; 2 | 3 | import rina.onepop.club.api.manager.Manager; 4 | import rina.onepop.club.api.util.client.NullUtil; 5 | import net.minecraft.network.play.client.CPacketHeldItemChange; 6 | import rina.onepop.club.client.event.network.PacketEvent; 7 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 8 | 9 | /** 10 | * @author SrRina 11 | * @since 14/05/2021 at 16:11 12 | **/ 13 | public class HotBarManager extends Manager { 14 | public static final int CLIENT = 0; 15 | public static final int SERVER = 1; 16 | 17 | public static HotBarManager INSTANCE; 18 | 19 | private int currentItemFromClient; 20 | private int currentItemFromServer; 21 | 22 | public HotBarManager() { 23 | super("Hot Bar Manager", "Manage hot bar!!"); 24 | 25 | INSTANCE = this; 26 | } 27 | 28 | public int getCurrentItemFromClient() { 29 | return currentItemFromClient; 30 | } 31 | 32 | public int getCurrentItemFromServer() { 33 | return currentItemFromServer; 34 | } 35 | 36 | public static int currentItem(int protocol) { 37 | return protocol == CLIENT ? INSTANCE.getCurrentItemFromClient() : INSTANCE.getCurrentItemFromServer(); 38 | } 39 | 40 | @Listener 41 | public void onPacketSend(PacketEvent.Send event) { 42 | if (event.getPacket() instanceof CPacketHeldItemChange) { 43 | final CPacketHeldItemChange packet = (CPacketHeldItemChange) event.getPacket(); 44 | 45 | this.currentItemFromServer = packet.getSlotId(); 46 | } 47 | } 48 | 49 | @Override 50 | public void onUpdateAll() { 51 | if (NullUtil.isPlayerWorld()) { 52 | return; 53 | } 54 | 55 | this.currentItemFromClient = mc.player.inventory.currentItem; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/rina/onepop/club/client/module/misc/ModuleTimer.java: -------------------------------------------------------------------------------- 1 | package rina.onepop.club.client.module.misc; 2 | 3 | import rina.onepop.club.api.module.Module; 4 | import rina.onepop.club.api.module.impl.ModuleCategory; 5 | import rina.onepop.club.api.module.registry.Registry; 6 | import rina.onepop.club.api.setting.value.ValueBoolean; 7 | import rina.onepop.club.api.setting.value.ValueNumber; 8 | import rina.onepop.club.api.util.client.NullUtil; 9 | import rina.onepop.club.client.event.client.RunTickEvent; 10 | import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; 11 | 12 | /** 13 | * @author SrRina 14 | * @since 19/04/2021 at 18:42 15 | **/ 16 | @Registry(name = "Timer", tag = "Timer", description = "Change all ticks in your Minecraft!", category = ModuleCategory.MISC) 17 | public class ModuleTimer extends Module { 18 | /* Misc. */ 19 | public static ValueNumber settingValue = new ValueNumber("Value", "Value", "Sets custom timer value.", 2f, 0.1f, 30f); 20 | public static ValueBoolean settingDisableGUI = new ValueBoolean("Disable in GUI", "DisableInGUI", "Disable timer when any GUIs is open!",true); 21 | 22 | @Override 23 | public void onShutdown() { 24 | this.setDisabled(); 25 | } 26 | 27 | @Override 28 | public void onDisable() { 29 | this.disableTimer(); 30 | } 31 | 32 | @Listener 33 | public void onTick(RunTickEvent tick) { 34 | if (NullUtil.isPlayerWorld()) { 35 | return; 36 | } 37 | 38 | this.updateTimer(); 39 | } 40 | 41 | protected void updateTimer() { 42 | if (settingDisableGUI.getValue() && mc.currentScreen != null) { 43 | this.disableTimer(); 44 | } else { 45 | mc.timer.tickLength = (50f / settingValue.getValue().floatValue()); 46 | } 47 | } 48 | 49 | public void disableTimer() { 50 | mc.timer.tickLength = 50f; 51 | } 52 | } --------------------------------------------------------------------------------