Java

From Nguhcraft Wiki
Jump to navigation Jump to search

Java is the official language of McFurry's.

Example Text

An example of text in Java would be:

import alt.java.util.*;

public class McFurry's_Response extends alt.java.util.lang.response {

protected McFurry's_Response(alt.java.util.State McFurry's, alt.java.util.State messenger) {
super();
addInformation(new alt.java.util.lang.value(McFurry's.motto(new alt.java.util.lang.Motto(alt.java.util.lang.Motto
.join(McFurry's.live(), messenger.live())).addContext(new alt.java.util.lang.Context(alt.java.util.lang.static.FRIENDLY))));
addInformation(new alt.java.util.lang.Context(alt.java.util.lang.static.THANKFUL));
addInformation(new alt.java.util.lang.Information(McFurry's.getHistory().getInformation(age == 1, wars == 0)));
addInformation(new alt.java.util.lang.Information(McFurry's.getPolitics().getInformation(alt.java.util.State.Connection == true)));
addInformation(new alt.java.util.lang.Proposal(_ -> {
if (messenger.getInterestOf(new alt.java.util.State.Alliance(alt.java.util.State.Alliance.valueOf(messenger.getPolitics()), alt.java.util.State.Alliance.valueOf(McFurry's.getPolitics()))).value()
> messenger.getInterestOf(new alt.java.util.State.War(new alt.java.util.State.War.Attack(messenger).addOpponent(McFurry's)))) {
alt.java.util.State.Alliance.valueOf(McFurry's.getPolitics()).add(new alt.java.util.State.Alliance(alt.java.util.State.Alliance.create(messenger.getPolitics())));
}
});
}


@Override
public void onMessage(alt.java.util.lang.MessageEvent e) {
super.onMessage(e);
e.respond(this);
}

}