-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved files around to match the rest of my mods (this is the only mod…
… that doesn't follow my general file structure). Added EventCalendar.class to check for events on init. To be used for easter eggs.
- Loading branch information
Showing
21 changed files
with
103 additions
and
45 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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
package ichun.client.core; | ||
|
||
import ichun.core.CommonProxy; | ||
import ichun.core.util.ResourceHelper; | ||
import ichun.common.core.CommonProxy; | ||
import ichun.common.core.util.ResourceHelper; | ||
|
||
public class ClientProxy extends CommonProxy | ||
{ | ||
|
||
@Override | ||
public void init() | ||
{ | ||
super.init(); | ||
ResourceHelper.init(); | ||
} | ||
} |
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
4 changes: 2 additions & 2 deletions
4
src/main/java/ichun/client/gui/config/GuiConfigBaseScroll.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
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
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,9 @@ | ||
package ichun.common.core; | ||
|
||
public class CommonProxy | ||
{ | ||
public void init() | ||
{ | ||
EventCalendar.checkDate(); | ||
} | ||
} |
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,62 @@ | ||
package ichun.common.core; | ||
|
||
import java.util.Calendar; | ||
|
||
public class EventCalendar | ||
{ | ||
public static boolean isNewYear; //1/1 | ||
public static boolean isPgBirthday; //9/3 | ||
public static boolean isAFDay; //1/4 | ||
public static boolean isHalloween; //31/10 | ||
public static boolean isChristmas; //25/12 | ||
|
||
public static void checkDate() | ||
{ | ||
Calendar calendar = Calendar.getInstance(); | ||
calendar.setTimeInMillis(System.currentTimeMillis()); | ||
|
||
switch(calendar.get(2)) //month | ||
{ | ||
case 1: | ||
{ | ||
if(calendar.get(5) == 1) | ||
{ | ||
isNewYear = true; | ||
} | ||
break; | ||
} | ||
case 3: | ||
{ | ||
if(calendar.get(5) == 9) //day | ||
{ | ||
isPgBirthday = true; | ||
} | ||
break; | ||
} | ||
case 4: | ||
{ | ||
if(calendar.get(5) == 1) | ||
{ | ||
isAFDay = true; | ||
} | ||
break; | ||
} | ||
case 10: | ||
{ | ||
if(calendar.get(5) == 31) | ||
{ | ||
isHalloween = true; | ||
} | ||
break; | ||
} | ||
case 12: | ||
{ | ||
if(calendar.get(5) == 25) | ||
{ | ||
isChristmas = true; | ||
} | ||
break; | ||
} | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/java/ichun/core/config/Config.java → ...java/ichun/common/core/config/Config.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
2 changes: 1 addition & 1 deletion
2
...java/ichun/core/config/ConfigHandler.java → ...hun/common/core/config/ConfigHandler.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
2 changes: 1 addition & 1 deletion
2
...n/java/ichun/core/config/IConfigUser.java → ...ichun/common/core/config/IConfigUser.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ichun.core.config; | ||
package ichun.common.core.config; | ||
|
||
import net.minecraftforge.common.config.Property; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...va/ichun/core/network/AbstractPacket.java → ...n/common/core/network/AbstractPacket.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
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
2 changes: 1 addition & 1 deletion
2
...ava/ichun/core/network/PacketHandler.java → ...un/common/core/network/PacketHandler.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
4 changes: 2 additions & 2 deletions
4
...ain/java/ichun/core/util/MD5Checksum.java → ...a/ichun/common/core/util/MD5Checksum.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
4 changes: 2 additions & 2 deletions
4
src/main/java/ichun/core/util/ObfHelper.java → ...ava/ichun/common/core/util/ObfHelper.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
2 changes: 1 addition & 1 deletion
2
.../java/ichun/core/util/ResourceHelper.java → ...chun/common/core/util/ResourceHelper.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ichun.core.util; | ||
package ichun.common.core.util; | ||
|
||
import java.io.File; | ||
|
||
|
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 was deleted.
Oops, something went wrong.