Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public DynamicTextureImage(NativeImage image, Identifier location, boolean textu
RenderSystem.assertOnRenderThread();

this.image = image;
this.texture = new DynamicTexture(/*? if >=1.21.11 >>*/ /*location::toString,*/ image);
this.texture = new DynamicTexture(/*? if >=1.21.11 >>*/location::toString, image);
// TODO 1.21.11
//? if <1.21.11
//this.texture.setFilter(textureFiltering, false);
Expand Down
8 changes: 7 additions & 1 deletion src/testmod/java/dev/isxander/yacl3/test/GuiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ private static Screen getFullTestSuite(Screen parent) {
.append(Component.literal("b").withStyle(style -> style.withHoverEvent(createTextHoverEvent(Component.literal("b")))))
.append(Component.literal("c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c").withStyle(style -> style.withHoverEvent(createTextHoverEvent(Component.literal("c")))))
.append(Component.literal("e").withStyle(style -> style.withHoverEvent(createTextHoverEvent(Component.literal("e")))))
.append(Component.literal("click me").withStyle(style -> style.withClickEvent(new ClickEvent.OpenUrl(URI.create("https://isxander.dev")))))
.append(Component.literal("click me").withStyle(style -> style.withClickEvent(
//? if >=1.21.5 {
new ClickEvent.OpenUrl(URI.create("https://isxander.dev"))
//?} else {
/*new ClickEvent(ClickEvent.Action.OPEN_URL, "https://isxander.dev")
*///?}
)))
)
.webpImage(imageSample("sample1.webp"))
.build())
Expand Down