Remove object wrappers and use mixins to inject functionality
This causes hierarchy to be runelite-client -> runelite-api and injected-client -> runescape-api -> runelite-api. The mixin injector fufills the runelite-api interface with access to the runescape-api interfaces. The mixins live in runelite-mixins and are not loaded within the client. Note the obfuscated client classes do not pass JVM verification on 7+, so the mixins are currently set to target Java 6.
This commit is contained in:
@@ -24,32 +24,13 @@
|
||||
*/
|
||||
package net.runelite.api;
|
||||
|
||||
public class MessageNode
|
||||
public interface MessageNode
|
||||
{
|
||||
private final net.runelite.rs.api.MessageNode messageNode;
|
||||
ChatMessageType getType();
|
||||
|
||||
public MessageNode(net.runelite.rs.api.MessageNode messageNode)
|
||||
{
|
||||
this.messageNode = messageNode;
|
||||
}
|
||||
String getSender();
|
||||
|
||||
public ChatMessageType getType()
|
||||
{
|
||||
return ChatMessageType.of(messageNode.getType());
|
||||
}
|
||||
String getValue();
|
||||
|
||||
public String getSender()
|
||||
{
|
||||
return messageNode.getSender();
|
||||
}
|
||||
|
||||
public String getValue()
|
||||
{
|
||||
return messageNode.getValue();
|
||||
}
|
||||
|
||||
public void setValue(String value)
|
||||
{
|
||||
messageNode.setValue(value);
|
||||
}
|
||||
void setValue(String value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user