#why cant I use setSprinting on a ClientPlayerEntity type?

4 messages · Page 1 of 1 (latest)

boreal stump
#

i currently have this:

@Mixin(ClientPlayerEntity.class)
public abstract class ExampleClientMixin {
    @Shadow private boolean lastSprinting;
    @Shadow @Final protected MinecraftClient client;
    @Inject(at = @At("TAIL"), method = "tick")
    private void init(CallbackInfo info) {
        GameOptions options = this.client.options;
        if (!this.lastSprinting && options.forwardKey.isPressed() && options.attackKey.isPressed()) {
            this.setSprinting(true);
        }
    }
}

i was looking at an autosprint mod and in that mod they used setSprinting, but that doesnt exist for me for some reason, i dont know why

#

the mod i looked at was using mojang instead of yarn mappings, i dont know if that does anything though

ripe meteor
#

!!cheats

ashen needleBOT
#

We do not support hacked clients, cheats, or modifications that are intended to give you the upper hand in a server, competitive or otherwise.
See rule 1 in #welcome and the Discord TOS: https://discordapp.com/terms