org.spongepowered.asm.mixin.Mutable Java Examples

The following examples show how to use org.spongepowered.asm.mixin.Mutable. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClassInfo.java    From Mixin with MIT License 5 votes vote down vote up
@SuppressWarnings("unchecked")
public Method(MethodNode method, boolean injected) {
    super(Type.METHOD, method.name, method.desc, method.access, injected);
    this.frames = this.gatherFrames(method);
    this.setUnique(Annotations.getVisible(method, Unique.class) != null);
    this.isAccessor = Annotations.getSingleVisible(method, Accessor.class, Invoker.class) != null;
    boolean decoratedFinal = Annotations.getVisible(method, Final.class) != null;
    boolean decoratedMutable = Annotations.getVisible(method, Mutable.class) != null;
    this.setDecoratedFinal(decoratedFinal, decoratedMutable);
}
 
Example #2
Source File: ClassInfo.java    From Mixin with MIT License 5 votes vote down vote up
public Field(FieldNode field, boolean injected) {
    super(Type.FIELD, field.name, field.desc, field.access, injected);
    
    this.setUnique(Annotations.getVisible(field, Unique.class) != null);
    
    if (Annotations.getVisible(field, Shadow.class) != null) {
        boolean decoratedFinal = Annotations.getVisible(field, Final.class) != null;
        boolean decoratedMutable = Annotations.getVisible(field, Mutable.class) != null;
        this.setDecoratedFinal(decoratedFinal, decoratedMutable);
    }
}
 
Example #3
Source File: EntityAccessor.java    From multiconnect with MIT License 4 votes vote down vote up
@Mutable
@Accessor
void setDataTracker(DataTracker dataTracker);
 
Example #4
Source File: TrackedDataAccessor.java    From multiconnect with MIT License 4 votes vote down vote up
@Accessor
@Mutable
void setId(int id);