-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
358 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/io/github/racoondog/tokyo/mixin/meteor/ConfigMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/io/github/racoondog/tokyo/mixininterface/IConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 0 additions & 53 deletions
53
src/main/java/io/github/racoondog/tokyo/systems/commands/Cummand.java
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
src/main/java/io/github/racoondog/tokyo/systems/commands/LookAtCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package io.github.racoondog.tokyo.systems.commands; | ||
|
||
import com.mojang.brigadier.builder.LiteralArgumentBuilder; | ||
import io.github.racoondog.tokyo.utils.commands.Vec3ArgumentType; | ||
import meteordevelopment.meteorclient.commands.Command; | ||
import net.fabricmc.api.EnvType; | ||
import net.fabricmc.api.Environment; | ||
import net.minecraft.command.CommandSource; | ||
import net.minecraft.command.argument.EntityAnchorArgumentType; | ||
import net.minecraft.util.math.Vec3d; | ||
|
||
import static com.mojang.brigadier.Command.SINGLE_SUCCESS; | ||
import static meteordevelopment.meteorclient.MeteorClient.mc; | ||
|
||
@Environment(EnvType.CLIENT) | ||
public class LookAtCommand extends Command { | ||
public static final LookAtCommand INSTANCE = new LookAtCommand(); | ||
|
||
private LookAtCommand() { | ||
super("lookAt", "Looks at the specified location"); | ||
} | ||
|
||
@Override | ||
public void build(LiteralArgumentBuilder<CommandSource> literalArgumentBuilder) { | ||
literalArgumentBuilder.then(argument("target", Vec3ArgumentType.vec3(true)).executes(ctx -> lookAt(Vec3ArgumentType.getVec3(ctx, "target")))); | ||
} | ||
|
||
private int lookAt(Vec3d target) { | ||
mc.player.lookAt(EntityAnchorArgumentType.EntityAnchor.EYES, target); | ||
|
||
return SINGLE_SUCCESS; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 0 additions & 79 deletions
79
src/main/java/io/github/racoondog/tokyo/systems/commands/ViewCommand.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
src/main/java/io/github/racoondog/tokyo/systems/modules/Ambience.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.