mirror of
https://github.com/architectury/architectury-api.git
synced 2026-03-28 03:56:59 -05:00
Bump to 16.1, add more transitive access wideners
This commit is contained in:
@@ -56,6 +56,10 @@ task generateAccessWidener {
|
||||
lines.add("")
|
||||
generateRenderTypeRelated(lines, fs)
|
||||
lines.add("")
|
||||
generateCompositeStateBuilder(lines, fs)
|
||||
lines.add("")
|
||||
generateRenderPipelines(lines, fs)
|
||||
lines.add("")
|
||||
generateCreativeTabs(lines, fs)
|
||||
}
|
||||
|
||||
@@ -132,6 +136,26 @@ static def generateRenderTypeRelated(List<String> lines, FileSystem fs) {
|
||||
}
|
||||
}
|
||||
|
||||
static def generateCompositeStateBuilder(List<String> lines, FileSystem fs) {
|
||||
lines.add("# CompositeStateBuilder methods")
|
||||
def node = loadClass(fs.getPath("net/minecraft/client/renderer/RenderType\$CompositeState\$CompositeStateBuilder.class"))
|
||||
for (def method : node.methods) {
|
||||
if ((method.access & Opcodes.ACC_PUBLIC) == 0) {
|
||||
lines.add("transitive-accessible method $node.name $method.name $method.desc")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static def generateRenderPipelines(List<String> lines, FileSystem fs) {
|
||||
lines.add("# RenderPipelines fields")
|
||||
def node = loadClass(fs.getPath("net/minecraft/client/renderer/RenderPipelines.class"))
|
||||
for (def field : node.fields) {
|
||||
if ((field.access & Opcodes.ACC_PUBLIC) == 0) {
|
||||
lines.add("transitive-accessible field $node.name $field.name $field.desc")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static def generateCreativeTabs(List<String> lines, FileSystem fs) {
|
||||
lines.add("# CreativeModeTabs fields")
|
||||
def node = loadClass(fs.getPath("net/minecraft/world/item/CreativeModeTabs.class"))
|
||||
|
||||
@@ -10,7 +10,7 @@ artifact_type=release
|
||||
|
||||
archives_base_name=architectury
|
||||
archives_base_name_snapshot=architectury-snapshot
|
||||
base_version=16.0
|
||||
base_version=16.1
|
||||
maven_group=dev.architectury
|
||||
version_suffix=
|
||||
|
||||
|
||||
Reference in New Issue
Block a user