-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removed: Always enabled debug messages
- Added: Config option for enabling debug messages. - Added: Mod now able to tell when on server, will automatically enable alwaysOn mode for the duration. A bunch of misc improvements to the core code.
- Loading branch information
1 parent
ab6fd66
commit 76da8c4
Showing
8 changed files
with
177 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
/build/ | ||
/.gradle/ | ||
/eclipse/ | ||
/testClient/ | ||
|
||
*.iws | ||
*.iml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.forecaster.runup; | ||
|
||
import cpw.mods.fml.common.eventhandler.SubscribeEvent; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraftforge.event.entity.EntityJoinWorldEvent; | ||
|
||
/** | ||
* Created by Forecaster on 2014-10-05 for runUp. | ||
*/ | ||
public class ConnectionHandler | ||
{ | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/forecaster/runup/ConstructingHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.forecaster.runup; | ||
|
||
import cpw.mods.fml.common.eventhandler.SubscribeEvent; | ||
import cpw.mods.fml.relauncher.Side; | ||
import cpw.mods.fml.relauncher.SideOnly; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraftforge.event.entity.EntityEvent; | ||
|
||
@SideOnly(Side.CLIENT) | ||
public class ConstructingHandler | ||
{ | ||
@SubscribeEvent | ||
public void onEntityConstructing(EntityEvent.EntityConstructing event) | ||
{ | ||
if (event.entity instanceof EntityPlayer) | ||
{ | ||
TickHandler.worldIsRemoteTicks = 0; | ||
ConfigHandler.tempAlwaysOn = false; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.forecaster.runup; | ||
|
||
import cpw.mods.fml.common.FMLLog; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.util.ChatComponentText; | ||
import org.apache.logging.log4j.Level; | ||
|
||
public class Util | ||
{ | ||
public static void modLogOut(Level level, String message) | ||
{ | ||
FMLLog.log(level, "[" + References.MODNAME + "] " + message); | ||
} | ||
|
||
public static void sendChatMessage(EntityPlayer player, String message) | ||
{ | ||
player.addChatComponentMessage(new ChatComponentText("[" + References.MODNAME + "]: " + message)); | ||
} | ||
} |