-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
1 parent
3cc646e
commit 1f91242
Showing
89 changed files
with
441 additions
and
407 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
common/src/main/java/xyz/wagyourtail/jsmacros/client/access/IClientPlayerEntity.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,5 @@ | ||
package xyz.wagyourtail.jsmacros.client.access; | ||
|
||
public interface IClientPlayerEntity { | ||
void jsmacros_sendChatMessageBypass(String message); | ||
} |
38 changes: 38 additions & 0 deletions
38
...n/src/main/java/xyz/wagyourtail/jsmacros/client/access/backports/ButtonWidgetBuilder.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,38 @@ | ||
package xyz.wagyourtail.jsmacros.client.access.backports; | ||
|
||
import net.minecraft.client.gui.widget.ButtonWidget; | ||
import net.minecraft.text.Text; | ||
|
||
public class ButtonWidgetBuilder { | ||
public static ButtonWidgetBuilder builder(Text text, ButtonWidget.PressAction pressAction) { | ||
return new ButtonWidgetBuilder(text, pressAction); | ||
} | ||
|
||
private final ButtonWidget.PressAction pressAction; | ||
private final Text text; | ||
private int x; | ||
private int y; | ||
private int width; | ||
private int height; | ||
|
||
private ButtonWidgetBuilder(Text text, ButtonWidget.PressAction pressAction) { | ||
this.text = text; | ||
this.pressAction = pressAction; | ||
} | ||
|
||
public ButtonWidgetBuilder position(int x, int y) { | ||
this.x = x; | ||
this.y = y; | ||
return this; | ||
} | ||
|
||
public ButtonWidgetBuilder size(int width, int height) { | ||
this.width = width; | ||
this.height = height; | ||
return this; | ||
} | ||
|
||
public ButtonWidget build() { | ||
return new ButtonWidget(x, y, width, height, text, pressAction); | ||
} | ||
} |
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
Oops, something went wrong.