#great-lounge Monday 13 December 2021
31 messages6 people
- S
- J
- K00:06And there is no reason for it to not be real
Azzyypaaras pinned a message.
- SAnyone know if there's a nicer way to handle private internal classes?
(edited)@Mixin(GameOptions.class) public abstract class GameOptionsMixin { @SuppressWarnings({"InvalidInjectorMethodSignature", "ReferenceToMixin"}) @Inject(method = "accept", at = @At("TAIL")) private void accept(@Coerce Object visitor, CallbackInfo ci) { GameOptions_VisitorAccessor vis = ((GameOptions_VisitorAccessor) visitor); TestModClient.spamConsole = vis.callVisitBoolean("spamConsole", TestModClient.spamConsole); } @Mixin(targets = "net.minecraft.client.option.GameOptions$Visitor") private interface GameOptions_VisitorAccessor { @Invoker boolean callVisitBoolean(String key, boolean current); } }00:53@Azzyypaaras?00:54All this just to put an entry into the vanilla options.txt - J
- S
- J00:56I missed the word "private". Thought you were just talking about organizing things
- SA bit nicer
@Mixin(GameOptions.class) public abstract class GameOptionsMixin { @SuppressWarnings({"InvalidInjectorMethodSignature", "ReferenceToMixin"}) @Inject(method = "accept", at = @At("TAIL")) private void accept(@Coerce GameOptions_VisitorAccessor visitor, CallbackInfo ci) { TestModClient.spamConsole = visitor.callVisitBoolean("spamConsole", TestModClient.spamConsole); } @Mixin(targets = "net.minecraft.client.option.GameOptions$Visitor") private interface GameOptions_VisitorAccessor { @Invoker boolean callVisitBoolean(String key, boolean current); } } - L
- A
- L
- A03:38emotes can't be over 256kb
- L
- A
- L
- A
- L
- A
- L
- V17:22hello
- J
- V
- J
- A

