-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathstonecutter.gradle.kts
More file actions
66 lines (63 loc) · 2.35 KB
/
stonecutter.gradle.kts
File metadata and controls
66 lines (63 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import org.gradle.kotlin.dsl.replace
plugins {
id("dev.kikugie.stonecutter")
id("me.modmuss50.mod-publish-plugin") version "0.8.4" apply false
}
stonecutter active "26.1-fabric" /* [SC] DO NOT EDIT */
// See https://stonecutter.kikugie.dev/wiki/config/params
stonecutter parameters {
swaps["mod_version"] = "\"" + property("mod.version") + "\";"
swaps["minecraft"] = "\"" + node.metadata.version + "\";"
constants["release"] = property("mod.id") != "template"
dependencies["fapi"] = node.project.property("deps.fabric_version") as String
replacements {
string {
direction = eval(current.version, ">=1.21.8")
replace("context.renderComponentTooltip(", "context.setComponentTooltipForNextFrame(")
}
string {
direction = eval(current.version, ">=1.21.4")
replace("getTextureImage", "loadContents")
}
string {
direction = eval(current.version, ">=1.21.4")
replace("TextureImage", "TextureContents")
}
string {
direction = eval(current.version, ">=1.21.4")
replace("SimpleTexture", "ReloadableTexture")
}
string {
direction = eval(current.version, ">=1.21.11")
replace("ResourceLocation", "Identifier")
}
string {
direction = eval(current.version, ">=1.21")
replace("new ResourceLocation", "ResourceLocation.fromNamespaceAndPath")
}
string {
direction = eval(current.version, ">=1.21.11")
replace("net.minecraft.Util", "net.minecraft.util.Util")
}
string {
direction = eval(current.version, ">=26.1-pre.1")
replace("render(", "extractRenderState(")
}
string {
direction = eval(current.version, ">=26.1-pre.1")
replace("GuiGraphics", "GuiGraphicsExtractor")
}
string {
direction = eval(current.version, ">=26.1-pre.1")
replace("renderListSeparators", "extractListSeparators")
}
string {
direction = eval(current.version, ">=26.1-pre.1")
replace("renderContent", "extractContent")
}
string {
direction = eval(current.version, ">=26.1-pre.1")
replace("drawProgressBar", "extractProgressBar")
}
}
}