cadixdev / at Goto Github PK
View Code? Open in Web Editor NEWA representation of access modifier transformers for Java.
License: MIT License
A representation of access modifier transformers for Java.
License: MIT License
When you have AccessTransform.of(ModifierChange.REMOVE)
in an access transform set and write that set using FmlWriter, the resulting AT file contains a broken line starting with -f
.
This is not supported by the AT parser and lexer used by FML, which always expects an explicit access modifier as well.
I'm not sure if there's any good way to fix this, though, since it should probably be using the existing visibility of code in question, but that info isn't available here. In Architectury Loom, we just made it default to public-f
, but that might also be unwanted.
Or more generally, when there is no explicit MethodMapping for a method, any AT for that method will not have its descriptor remapped, even though the descriptor may contain types which do have mappings.
E.g. remapping from srg to official names:
# Input
public net.minecraft.client.resources.ResourcePackRepository$Entry <init>(Lnet/minecraft/client/resources/ResourcePackRepository;Ljava/io/File;)V # constructor
# Expected
public bnm$a <init>(Lbnm;Ljava/io/File;)V
# Actual
public bnm$a <init>(Lnet/minecraft/client/resources/ResourcePackRepository;Ljava/io/File;)V
The BufferedWriter created at
writer
usually only ever gets incomplete data (unless it is already a BufferedWriter
itself).AccessTransformSet
See https://www.fabricmc.net/wiki/tutorial:accesswideners
The only blocker I can see with doing this is Methods are made public and final if private
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.