This repository has been archived by the owner on Jun 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- refactored config system so it doesn't break when i add new feature…
…s now - fixed issue #6 by making a new option (calculate_last, on by default) that puts calculations after tabbing in entries like commands and usernames (well I haven't tested usernames but it shouldn't go first) - because of the fix, ive removed the euler config option, existing always since the issue beforehand is that you can commonly type in 'e' and it gives you a number instead of what you want - the only things i see left are to add new features, so if you have anything, feel free to ask
- Loading branch information
Showing
8 changed files
with
95 additions
and
43 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
9 changes: 9 additions & 0 deletions
9
src/main/java/ca/rttv/chatcalc/duck/ChatInputSuggesterDuck.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,9 @@ | ||
package ca.rttv.chatcalc.duck; | ||
|
||
import com.mojang.brigadier.suggestion.Suggestions; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public interface ChatInputSuggesterDuck { | ||
CompletableFuture<Suggestions> chatcalc$pendingSuggestions(); | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/ca/rttv/chatcalc/mixin/ChatInputSuggesterMixin.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,20 @@ | ||
package ca.rttv.chatcalc.mixin; | ||
|
||
import ca.rttv.chatcalc.duck.ChatInputSuggesterDuck; | ||
import com.mojang.brigadier.suggestion.Suggestions; | ||
import net.minecraft.client.gui.screen.ChatInputSuggestor; | ||
import org.jetbrains.annotations.Nullable; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
@Mixin(ChatInputSuggestor.class) | ||
abstract class ChatInputSuggesterMixin implements ChatInputSuggesterDuck { | ||
@Shadow @Nullable private CompletableFuture<Suggestions> pendingSuggestions; | ||
|
||
@Override | ||
public CompletableFuture<Suggestions> chatcalc$pendingSuggestions() { | ||
return this.pendingSuggestions; | ||
} | ||
} |
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