I'm just experiment with my first mod here, and ran into something that is confusing me.
I made a mode with the following code, installed both client and server side.
@ForgeSubscribe
public void OnEntityJoinWorld(EntityJoinWorldEvent event) {
if (!(event.entity instanceof EntityPlayer)) {
return;
}
EntityPlayer player = (EntityPlayer) event.entity;
System.out.println(String.format("%s joined dimension %d, isRemote:%b", player.getEntityName(), player.dimension, event.world.isRemote));
}
In single player, or in the client side when on a server, the following is printed out in the log.
2013-04-05 18:10:56 [iNFO] [sTDOUT] IndigoStarfish joined dimension 8, isRemote: true
However there is no corresponding message on the server side.
Am I missing something here?