Java: Difference between revisions

From Nguhcraft Wiki
Jump to navigation Jump to search
Xhesas (talk | contribs)
Created page with "'''Java''' is the official language of McFurry's. == Example Text == An example of text in Java would be: <blockquote> import alt.java.util.*;<br> <br> public class McFurry's_Response extends alt.java.util.lang.response {<br> <br> :protected McFurry's_Response(alt.java.util.State McFurry's, alt.java.util.State messenger) {<br> ::super(); ::addInformation(new alt.java.util.lang.value(McFurry's.motto(new alt.java.util.lang.Motto(alt.java.util.lang.Motto<br> ::::.join..."
 
Astaryuu (talk | contribs)
No edit summary
Tag: 2017 source edit
 
Line 1: Line 1:
'''Java''' is the official language of [[McFurry's]].
'''Java''' is the official language of [[McFurry's]]. It is one of three known [[Programming languages]] in Nguhcraft.


== Example Text ==
== Example Text ==

Latest revision as of 00:53, 9 October 2025

Java is the official language of McFurry's. It is one of three known Programming languages in Nguhcraft.

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);
}

}