├── .DS_Store ├── .gradle ├── 4.10.3 │ ├── fileChanges │ │ └── last-build.bin │ ├── fileContent │ │ ├── annotation-processors.bin │ │ └── fileContent.lock │ ├── fileHashes │ │ ├── fileHashes.bin │ │ ├── fileHashes.lock │ │ └── resourceHashesCache.bin │ ├── gc.properties │ ├── javaCompile │ │ ├── classAnalysis.bin │ │ ├── jarAnalysis.bin │ │ ├── javaCompile.lock │ │ └── taskHistory.bin │ └── taskHistory │ │ ├── taskHistory.bin │ │ └── taskHistory.lock ├── buildOutputCleanup │ ├── buildOutputCleanup.lock │ ├── cache.properties │ └── outputFiles.bin ├── gradle.log └── vcs-1 │ └── gc.properties ├── .idea ├── .gitignore ├── compiler.xml ├── gradle.xml ├── jarRepositories.xml ├── misc.xml ├── modules │ ├── Revamped-TimeChanger.api.iml │ ├── Revamped-TimeChanger.main.iml │ └── Revamped-TimeChanger.test.iml └── vcs.xml ├── CREDITS-fml.txt ├── LICENSE-fml.txt ├── MinecraftForge-Credits.txt ├── MinecraftForge-License.txt ├── Paulscode IBXM Library License.txt ├── Paulscode SoundSystem CodecIBXM License.txt ├── README.md ├── README.txt ├── build.gradle ├── build ├── .DS_Store ├── classes │ └── java │ │ └── main │ │ └── net │ │ └── shatterpoint │ │ └── timechanger │ │ ├── TimeChanger.class │ │ ├── commands │ │ ├── CommandDay.class │ │ ├── CommandFastTime.class │ │ ├── CommandNight.class │ │ ├── CommandResetTime.class │ │ ├── CommandSunset.class │ │ └── CommandTimeChange.class │ │ ├── core │ │ └── CoreMod.class │ │ ├── gui │ │ ├── GuiSlider.class │ │ ├── GuiSlider_ISlider.class │ │ └── GuiTimeChanger.class │ │ └── mixin │ │ └── MixinWorldInfo.class ├── libs │ ├── .DS_Store │ ├── TimeChanger-2.2.1-sources.jar │ └── TimeChanger-2.2.1.jar ├── resources │ └── main │ │ ├── mcmod.info │ │ └── mixins.timechanger.json ├── retromapping │ ├── replacedMain.rangemap │ └── retromappedReplacedMain.jar ├── sources │ └── main │ │ └── java │ │ └── net │ │ └── shatterpoint │ │ └── timechanger │ │ ├── TimeChanger.java │ │ ├── commands │ │ ├── CommandDay.java │ │ ├── CommandFastTime.java │ │ ├── CommandNight.java │ │ ├── CommandResetTime.java │ │ ├── CommandSunset.java │ │ └── CommandTimeChange.java │ │ ├── core │ │ └── CoreMod.java │ │ ├── gui │ │ ├── GuiSlider.java │ │ ├── GuiSlider_ISlider.java │ │ └── GuiTimeChanger.java │ │ └── mixin │ │ └── MixinWorldInfo.java ├── taskLogs │ ├── extractRangemapReplacedMain.log │ └── retromapReplacedMain.log └── tmp │ ├── compileJava │ ├── compileJava-refmap.json │ ├── mcp-notch.srg │ ├── mcp-srg.srg │ └── mixin.refmap.json │ ├── jar │ └── MANIFEST.MF │ ├── reobfJar │ ├── input10190704477750100517.jar │ ├── input15713330161089297316.jar │ ├── input17684607983189533353.jar │ ├── input3161299195100164977.jar │ ├── obfuscated10054715557921018983.jar │ ├── obfuscated13557479892616353960.jar │ ├── obfuscated5103991883078180151.jar │ ├── obfuscated8272637797853862525.jar │ ├── preTransformed16932103805900026900.jar │ ├── preTransformed2725089061084288741.jar │ ├── preTransformed5297464454783540899.jar │ ├── preTransformed6132742490437879976.jar │ ├── reobf-default11087799349087284588.srg │ ├── reobf-default1216270612102021661.srg │ ├── reobf-default16313257488202771601.srg │ ├── reobf-default4976984327025431793.srg │ ├── reobf-extraLines10537166661976614671.srg │ ├── reobf-extraLines6253963676271599923.srg │ ├── reobf-extraLines9129254846690460083.srg │ └── reobf-extraLines9975763345367893798.srg │ ├── retromapReplacedMain │ ├── rangelog16800593538062386830.txt │ ├── rangelog3446286753569974838.txt │ └── rangelog4628758131934648718.txt │ └── sourceJar │ └── MANIFEST.MF ├── eclipse └── .metadata │ └── .plugins │ ├── org.eclipse.core.resources │ ├── .projects │ │ └── MDKExample │ │ │ └── .location │ └── .root │ │ └── 0.tree │ ├── org.eclipse.core.runtime │ └── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.debug.ui.prefs │ │ ├── org.eclipse.epp.usagedata.gathering.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.ui.editors.prefs │ │ ├── org.eclipse.ui.ide.prefs │ │ └── org.eclipse.ui.prefs │ ├── org.eclipse.debug.core │ └── .launches │ │ ├── Client.launch │ │ └── Server.launch │ └── org.eclipse.debug.ui │ └── launchConfigurationHistory.xml ├── forge-1.8.9-11.15.1.2318-1.8.9-changelog.txt ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── run ├── .mixin.out │ └── audit │ │ ├── mixin_implementation_report.csv │ │ └── mixin_implementation_report.txt ├── config │ ├── forge.cfg │ ├── forgeChunkLoading.cfg │ ├── shatterpoint_timechanger.cfg │ └── splash.properties ├── crash-reports │ ├── crash-2020-12-26_10.11.19-server.txt │ ├── crash-2020-12-26_10.14.07-server.txt │ ├── crash-2020-12-26_10.16.26-server.txt │ ├── crash-2020-12-26_10.22.33-server.txt │ ├── crash-2020-12-26_10.25.12-server.txt │ ├── crash-2020-12-26_10.30.25-server.txt │ ├── crash-2020-12-26_13.50.57-server.txt │ └── crash-2020-12-26_14.21.45-client.txt ├── hs_err_pid43975.log ├── hs_err_pid44008.log ├── logs │ ├── 2020-12-26-1.log.gz │ ├── 2020-12-26-2.log.gz │ ├── 2020-12-26-3.log.gz │ ├── 2020-12-26-4.log.gz │ ├── 2020-12-26-5.log.gz │ ├── 2020-12-26-6.log.gz │ ├── 2020-12-26-7.log.gz │ ├── fml-client-1.log │ ├── fml-client-2.log │ ├── fml-client-3.log │ ├── fml-client-latest.log │ ├── fml-junk-earlystartup.log │ ├── fml-server-latest.log │ └── latest.log ├── options.txt ├── saves │ └── New World │ │ ├── DIM-1 │ │ ├── data │ │ │ └── villages_nether.dat │ │ └── forcedchunks.dat │ │ ├── DIM1 │ │ ├── data │ │ │ └── villages_end.dat │ │ └── forcedchunks.dat │ │ ├── data │ │ ├── Mineshaft.dat │ │ └── villages.dat │ │ ├── forcedchunks.dat │ │ ├── level.dat │ │ ├── level.dat_mcr │ │ ├── level.dat_old │ │ ├── playerdata │ │ ├── 1b411c64-a8c2-3ec5-98f5-0b867e192819.dat │ │ ├── 2b98548a-5e09-3029-b082-b4c99d31d926.dat │ │ ├── 3155dd2a-f684-3928-a1f6-f0dff831507f.dat │ │ ├── 3e59bd01-5286-3f1f-b563-8ee24767718b.dat │ │ ├── 57d398cf-761b-3b7e-a466-e4fc0f425972.dat │ │ ├── 6db1171d-4fa6-31cb-b425-1896281a26e2.dat │ │ ├── 75e52373-1963-3666-bda9-8904d639e38b.dat │ │ ├── 7666ee64-0e62-3b6a-bb71-85f97c5e0623.dat │ │ ├── 8cfc5391-e37d-328f-a689-9b5f6c4663f5.dat │ │ ├── 9c49d304-e7f3-37a6-ba4d-0cbd9c71cab6.dat │ │ ├── 9da9c19c-8c76-3722-b34c-263305f5c6ba.dat │ │ ├── c7d67933-d428-31bd-9c63-95c492679fdc.dat │ │ ├── cb3fd6c5-1d0c-334b-a8d4-85d2c85eb576.dat │ │ ├── d1b650bf-5f9c-37d3-a469-4d66d1968f90.dat │ │ ├── d30b1ac0-9841-3b27-8824-151859abeeec.dat │ │ ├── d31b2f98-898c-3f1b-b785-db56ff276dc2.dat │ │ ├── d5c2adf2-8956-39ce-835b-416668af8f9e.dat │ │ ├── efc72414-2867-3716-86bc-fef5a53d913b.dat │ │ ├── f32cf69c-7cce-3f6d-81d4-191672800bce.dat │ │ ├── fdd35a29-06a9-343e-abe1-1b90a6820307.dat │ │ └── fe412f9e-f508-30d0-b407-ff978cf8fc5c.dat │ │ ├── region │ │ ├── r.-1.-1.mca │ │ ├── r.-1.0.mca │ │ ├── r.0.-1.mca │ │ └── r.0.0.mca │ │ ├── session.lock │ │ └── stats │ │ ├── 1b411c64-a8c2-3ec5-98f5-0b867e192819.json │ │ ├── 2b98548a-5e09-3029-b082-b4c99d31d926.json │ │ ├── 3155dd2a-f684-3928-a1f6-f0dff831507f.json │ │ ├── 3e59bd01-5286-3f1f-b563-8ee24767718b.json │ │ ├── 57d398cf-761b-3b7e-a466-e4fc0f425972.json │ │ ├── 6db1171d-4fa6-31cb-b425-1896281a26e2.json │ │ ├── 75e52373-1963-3666-bda9-8904d639e38b.json │ │ ├── 7666ee64-0e62-3b6a-bb71-85f97c5e0623.json │ │ ├── 8cfc5391-e37d-328f-a689-9b5f6c4663f5.json │ │ ├── 9c49d304-e7f3-37a6-ba4d-0cbd9c71cab6.json │ │ ├── 9da9c19c-8c76-3722-b34c-263305f5c6ba.json │ │ ├── c7d67933-d428-31bd-9c63-95c492679fdc.json │ │ ├── cb3fd6c5-1d0c-334b-a8d4-85d2c85eb576.json │ │ ├── d1b650bf-5f9c-37d3-a469-4d66d1968f90.json │ │ ├── d30b1ac0-9841-3b27-8824-151859abeeec.json │ │ ├── d31b2f98-898c-3f1b-b785-db56ff276dc2.json │ │ ├── d5c2adf2-8956-39ce-835b-416668af8f9e.json │ │ ├── efc72414-2867-3716-86bc-fef5a53d913b.json │ │ ├── f32cf69c-7cce-3f6d-81d4-191672800bce.json │ │ ├── fdd35a29-06a9-343e-abe1-1b90a6820307.json │ │ └── fe412f9e-f508-30d0-b407-ff978cf8fc5c.json ├── usercache.json └── usernamecache.json └── src ├── .DS_Store └── main ├── .DS_Store ├── java ├── .DS_Store └── net │ ├── .DS_Store │ └── shatterpoint │ ├── .DS_Store │ └── timechanger │ ├── .DS_Store │ ├── TimeChanger.java │ ├── commands │ ├── CommandDay.java │ ├── CommandFastTime.java │ ├── CommandNight.java │ ├── CommandResetTime.java │ ├── CommandSunset.java │ └── CommandTimeChange.java │ ├── core │ └── CoreMod.java │ ├── gui │ ├── GuiSlider.java │ ├── GuiSlider_ISlider.java │ └── GuiTimeChanger.java │ └── mixin │ └── MixinWorldInfo.java └── resources ├── mcmod.info └── mixins.timechanger.json /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.DS_Store -------------------------------------------------------------------------------- /.gradle/4.10.3/fileChanges/last-build.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gradle/4.10.3/fileContent/annotation-processors.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/4.10.3/fileContent/annotation-processors.bin -------------------------------------------------------------------------------- /.gradle/4.10.3/fileContent/fileContent.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/4.10.3/fileContent/fileContent.lock -------------------------------------------------------------------------------- /.gradle/4.10.3/fileHashes/fileHashes.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/4.10.3/fileHashes/fileHashes.bin -------------------------------------------------------------------------------- /.gradle/4.10.3/fileHashes/fileHashes.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/4.10.3/fileHashes/fileHashes.lock -------------------------------------------------------------------------------- /.gradle/4.10.3/fileHashes/resourceHashesCache.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/4.10.3/fileHashes/resourceHashesCache.bin -------------------------------------------------------------------------------- /.gradle/4.10.3/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/4.10.3/gc.properties -------------------------------------------------------------------------------- /.gradle/4.10.3/javaCompile/classAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/4.10.3/javaCompile/classAnalysis.bin -------------------------------------------------------------------------------- /.gradle/4.10.3/javaCompile/jarAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/4.10.3/javaCompile/jarAnalysis.bin -------------------------------------------------------------------------------- /.gradle/4.10.3/javaCompile/javaCompile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/4.10.3/javaCompile/javaCompile.lock -------------------------------------------------------------------------------- /.gradle/4.10.3/javaCompile/taskHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/4.10.3/javaCompile/taskHistory.bin -------------------------------------------------------------------------------- /.gradle/4.10.3/taskHistory/taskHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/4.10.3/taskHistory/taskHistory.bin -------------------------------------------------------------------------------- /.gradle/4.10.3/taskHistory/taskHistory.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/4.10.3/taskHistory/taskHistory.lock -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/buildOutputCleanup.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/buildOutputCleanup/buildOutputCleanup.lock -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/cache.properties: -------------------------------------------------------------------------------- 1 | #Sat Dec 26 15:36:36 PST 2020 2 | gradle.version=4.10.3 3 | -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/outputFiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/buildOutputCleanup/outputFiles.bin -------------------------------------------------------------------------------- /.gradle/gradle.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/gradle.log -------------------------------------------------------------------------------- /.gradle/vcs-1/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/.gradle/vcs-1/gc.properties -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 16 | 17 | -------------------------------------------------------------------------------- /.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | 24 | 25 | 29 | 30 | 34 | 35 | 39 | 40 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/modules/Revamped-TimeChanger.api.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | FORGE 8 | MIXIN 9 | MCP 10 | 11 | 12 | 13 | 14 | 15 | 17 | -------------------------------------------------------------------------------- /.idea/modules/Revamped-TimeChanger.main.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | FORGE 8 | MIXIN 9 | MCP 10 | 11 | 12 | 13 | 14 | 15 | 17 | -------------------------------------------------------------------------------- /.idea/modules/Revamped-TimeChanger.test.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | FORGE 8 | MIXIN 9 | MCP 10 | 11 | 12 | 13 | 14 | 15 | 17 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /CREDITS-fml.txt: -------------------------------------------------------------------------------- 1 | This is Forge Mod Loader. 2 | 3 | You can find the source code at all times at https://github.com/MinecraftForge/FML 4 | 5 | This minecraft mod is a clean open source implementation of a mod loader for minecraft servers 6 | and minecraft clients. 7 | 8 | The code is authored by cpw. 9 | 10 | It began by partially implementing an API defined by the client side ModLoader, authored by Risugami. 11 | http://www.minecraftforum.net/topic/75440- 12 | This support has been dropped as of Minecraft release 1.7, as Risugami no longer maintains ModLoader. 13 | 14 | It also contains suggestions and hints and generous helpings of code from LexManos, author of MinecraftForge. 15 | http://www.minecraftforge.net/ 16 | 17 | Additionally, it contains an implementation of topological sort based on that 18 | published at http://keithschwarz.com/interesting/code/?dir=topological-sort 19 | 20 | It also contains code from the Maven project for performing versioned dependency 21 | resolution. http://maven.apache.org/ 22 | 23 | It also contains a partial repackaging of the javaxdelta library from http://sourceforge.net/projects/javaxdelta/ 24 | with credit to it's authors. 25 | 26 | Forge Mod Loader downloads components from the Minecraft Coder Pack 27 | (http://mcp.ocean-labs.de/index.php/Main_Page) with kind permission from the MCP team. 28 | 29 | -------------------------------------------------------------------------------- /LICENSE-fml.txt: -------------------------------------------------------------------------------- 1 | This minecraft mod, Forge Mod Loader, including all parts herein except as noted below, 2 | is licensed under the GNU LGPL v2.1 or later. 3 | 4 | Homepage: https://github.com/MinecraftForge/FML 5 | 6 | This software includes portions from the Apache Maven project at 7 | http://maven.apache.org/ specifically the ComparableVersion.java code. It is 8 | included based on guidelines at 9 | http://www.softwarefreedom.org/resources/2007/gpl-non-gpl-collaboration.html 10 | with notices intact. The only change is a non-functional change of package name. 11 | 12 | This software contains a partial repackaging of javaxdelta, a BSD licensed program for generating 13 | binary differences and applying them, sourced from the subversion at http://sourceforge.net/projects/javaxdelta/ 14 | authored by genman, heikok, pivot. 15 | The only changes are to replace some Trove collection types with standard Java collections, and repackaged. 16 | 17 | 18 | === MCP Data === 19 | This software includes data from the Minecraft Coder Pack (MCP), with kind permission 20 | from them. The license to MCP data is not transitive - distribution of this data by 21 | third parties requires independent licensing from the MCP team. This data is not 22 | redistributable without permission from the MCP team. 23 | 24 | === Sharing === 25 | I grant permission for some parts of FML to be redistributed outside the terms of the LGPL, for the benefit of 26 | the minecraft modding community. All contributions to these parts should be licensed under the same additional grant. 27 | 28 | -- Runtime patcher -- 29 | License is granted to redistribute the runtime patcher code (common/cpw/mods/fml/patcher and subdirectories) under 30 | any alternative open source license as classified by the OSI (http://opensource.org/licenses) 31 | 32 | -- ASM transformers -- 33 | License is granted to redistribute the ASM transformer code (common/cpw/mods/fml/common/asm/ and subdirectories) 34 | under any alternative open source license as classified by the OSI (http://opensource.org/licenses) 35 | 36 | ======== 37 | 38 | GNU LESSER GENERAL PUBLIC LICENSE 39 | Version 2.1, February 1999 40 | 41 | Copyright (C) 1991, 1999 Free Software Foundation, Inc. 42 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 43 | Everyone is permitted to copy and distribute verbatim copies 44 | of this license document, but changing it is not allowed. 45 | 46 | Preamble 47 | 48 | The licenses for most software are designed to take away your 49 | freedom to share and change it. By contrast, the GNU General Public 50 | Licenses are intended to guarantee your freedom to share and change 51 | free software--to make sure the software is free for all its users. 52 | 53 | This license, the Lesser General Public License, applies to some 54 | specially designated software packages--typically libraries--of the 55 | Free Software Foundation and other authors who decide to use it. You 56 | can use it too, but we suggest you first think carefully about whether 57 | this license or the ordinary General Public License is the better 58 | strategy to use in any particular case, based on the explanations below. 59 | 60 | When we speak of free software, we are referring to freedom of use, 61 | not price. Our General Public Licenses are designed to make sure that 62 | you have the freedom to distribute copies of free software (and charge 63 | for this service if you wish); that you receive source code or can get 64 | it if you want it; that you can change the software and use pieces of 65 | it in new free programs; and that you are informed that you can do 66 | these things. 67 | 68 | To protect your rights, we need to make restrictions that forbid 69 | distributors to deny you these rights or to ask you to surrender these 70 | rights. These restrictions translate to certain responsibilities for 71 | you if you distribute copies of the library or if you modify it. 72 | 73 | For example, if you distribute copies of the library, whether gratis 74 | or for a fee, you must give the recipients all the rights that we gave 75 | you. You must make sure that they, too, receive or can get the source 76 | code. If you link other code with the library, you must provide 77 | complete object files to the recipients, so that they can relink them 78 | with the library after making changes to the library and recompiling 79 | it. And you must show them these terms so they know their rights. 80 | 81 | We protect your rights with a two-step method: (1) we copyright the 82 | library, and (2) we offer you this license, which gives you legal 83 | permission to copy, distribute and/or modify the library. 84 | 85 | To protect each distributor, we want to make it very clear that 86 | there is no warranty for the free library. Also, if the library is 87 | modified by someone else and passed on, the recipients should know 88 | that what they have is not the original version, so that the original 89 | author's reputation will not be affected by problems that might be 90 | introduced by others. 91 | 92 | Finally, software patents pose a constant threat to the existence of 93 | any free program. We wish to make sure that a company cannot 94 | effectively restrict the users of a free program by obtaining a 95 | restrictive license from a patent holder. Therefore, we insist that 96 | any patent license obtained for a version of the library must be 97 | consistent with the full freedom of use specified in this license. 98 | 99 | Most GNU software, including some libraries, is covered by the 100 | ordinary GNU General Public License. This license, the GNU Lesser 101 | General Public License, applies to certain designated libraries, and 102 | is quite different from the ordinary General Public License. We use 103 | this license for certain libraries in order to permit linking those 104 | libraries into non-free programs. 105 | 106 | When a program is linked with a library, whether statically or using 107 | a shared library, the combination of the two is legally speaking a 108 | combined work, a derivative of the original library. The ordinary 109 | General Public License therefore permits such linking only if the 110 | entire combination fits its criteria of freedom. The Lesser General 111 | Public License permits more lax criteria for linking other code with 112 | the library. 113 | 114 | We call this license the "Lesser" General Public License because it 115 | does Less to protect the user's freedom than the ordinary General 116 | Public License. It also provides other free software developers Less 117 | of an advantage over competing non-free programs. These disadvantages 118 | are the reason we use the ordinary General Public License for many 119 | libraries. However, the Lesser license provides advantages in certain 120 | special circumstances. 121 | 122 | For example, on rare occasions, there may be a special need to 123 | encourage the widest possible use of a certain library, so that it becomes 124 | a de-facto standard. To achieve this, non-free programs must be 125 | allowed to use the library. A more frequent case is that a free 126 | library does the same job as widely used non-free libraries. In this 127 | case, there is little to gain by limiting the free library to free 128 | software only, so we use the Lesser General Public License. 129 | 130 | In other cases, permission to use a particular library in non-free 131 | programs enables a greater number of people to use a large body of 132 | free software. For example, permission to use the GNU C Library in 133 | non-free programs enables many more people to use the whole GNU 134 | operating system, as well as its variant, the GNU/Linux operating 135 | system. 136 | 137 | Although the Lesser General Public License is Less protective of the 138 | users' freedom, it does ensure that the user of a program that is 139 | linked with the Library has the freedom and the wherewithal to run 140 | that program using a modified version of the Library. 141 | 142 | The precise terms and conditions for copying, distribution and 143 | modification follow. Pay close attention to the difference between a 144 | "work based on the library" and a "work that uses the library". The 145 | former contains code derived from the library, whereas the latter must 146 | be combined with the library in order to run. 147 | 148 | GNU LESSER GENERAL PUBLIC LICENSE 149 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 150 | 151 | 0. This License Agreement applies to any software library or other 152 | program which contains a notice placed by the copyright holder or 153 | other authorized party saying it may be distributed under the terms of 154 | this Lesser General Public License (also called "this License"). 155 | Each licensee is addressed as "you". 156 | 157 | A "library" means a collection of software functions and/or data 158 | prepared so as to be conveniently linked with application programs 159 | (which use some of those functions and data) to form executables. 160 | 161 | The "Library", below, refers to any such software library or work 162 | which has been distributed under these terms. A "work based on the 163 | Library" means either the Library or any derivative work under 164 | copyright law: that is to say, a work containing the Library or a 165 | portion of it, either verbatim or with modifications and/or translated 166 | straightforwardly into another language. (Hereinafter, translation is 167 | included without limitation in the term "modification".) 168 | 169 | "Source code" for a work means the preferred form of the work for 170 | making modifications to it. For a library, complete source code means 171 | all the source code for all modules it contains, plus any associated 172 | interface definition files, plus the scripts used to control compilation 173 | and installation of the library. 174 | 175 | Activities other than copying, distribution and modification are not 176 | covered by this License; they are outside its scope. The act of 177 | running a program using the Library is not restricted, and output from 178 | such a program is covered only if its contents constitute a work based 179 | on the Library (independent of the use of the Library in a tool for 180 | writing it). Whether that is true depends on what the Library does 181 | and what the program that uses the Library does. 182 | 183 | 1. You may copy and distribute verbatim copies of the Library's 184 | complete source code as you receive it, in any medium, provided that 185 | you conspicuously and appropriately publish on each copy an 186 | appropriate copyright notice and disclaimer of warranty; keep intact 187 | all the notices that refer to this License and to the absence of any 188 | warranty; and distribute a copy of this License along with the 189 | Library. 190 | 191 | You may charge a fee for the physical act of transferring a copy, 192 | and you may at your option offer warranty protection in exchange for a 193 | fee. 194 | 195 | 2. You may modify your copy or copies of the Library or any portion 196 | of it, thus forming a work based on the Library, and copy and 197 | distribute such modifications or work under the terms of Section 1 198 | above, provided that you also meet all of these conditions: 199 | 200 | a) The modified work must itself be a software library. 201 | 202 | b) You must cause the files modified to carry prominent notices 203 | stating that you changed the files and the date of any change. 204 | 205 | c) You must cause the whole of the work to be licensed at no 206 | charge to all third parties under the terms of this License. 207 | 208 | d) If a facility in the modified Library refers to a function or a 209 | table of data to be supplied by an application program that uses 210 | the facility, other than as an argument passed when the facility 211 | is invoked, then you must make a good faith effort to ensure that, 212 | in the event an application does not supply such function or 213 | table, the facility still operates, and performs whatever part of 214 | its purpose remains meaningful. 215 | 216 | (For example, a function in a library to compute square roots has 217 | a purpose that is entirely well-defined independent of the 218 | application. Therefore, Subsection 2d requires that any 219 | application-supplied function or table used by this function must 220 | be optional: if the application does not supply it, the square 221 | root function must still compute square roots.) 222 | 223 | These requirements apply to the modified work as a whole. If 224 | identifiable sections of that work are not derived from the Library, 225 | and can be reasonably considered independent and separate works in 226 | themselves, then this License, and its terms, do not apply to those 227 | sections when you distribute them as separate works. But when you 228 | distribute the same sections as part of a whole which is a work based 229 | on the Library, the distribution of the whole must be on the terms of 230 | this License, whose permissions for other licensees extend to the 231 | entire whole, and thus to each and every part regardless of who wrote 232 | it. 233 | 234 | Thus, it is not the intent of this section to claim rights or contest 235 | your rights to work written entirely by you; rather, the intent is to 236 | exercise the right to control the distribution of derivative or 237 | collective works based on the Library. 238 | 239 | In addition, mere aggregation of another work not based on the Library 240 | with the Library (or with a work based on the Library) on a volume of 241 | a storage or distribution medium does not bring the other work under 242 | the scope of this License. 243 | 244 | 3. You may opt to apply the terms of the ordinary GNU General Public 245 | License instead of this License to a given copy of the Library. To do 246 | this, you must alter all the notices that refer to this License, so 247 | that they refer to the ordinary GNU General Public License, version 2, 248 | instead of to this License. (If a newer version than version 2 of the 249 | ordinary GNU General Public License has appeared, then you can specify 250 | that version instead if you wish.) Do not make any other change in 251 | these notices. 252 | 253 | Once this change is made in a given copy, it is irreversible for 254 | that copy, so the ordinary GNU General Public License applies to all 255 | subsequent copies and derivative works made from that copy. 256 | 257 | This option is useful when you wish to copy part of the code of 258 | the Library into a program that is not a library. 259 | 260 | 4. You may copy and distribute the Library (or a portion or 261 | derivative of it, under Section 2) in object code or executable form 262 | under the terms of Sections 1 and 2 above provided that you accompany 263 | it with the complete corresponding machine-readable source code, which 264 | must be distributed under the terms of Sections 1 and 2 above on a 265 | medium customarily used for software interchange. 266 | 267 | If distribution of object code is made by offering access to copy 268 | from a designated place, then offering equivalent access to copy the 269 | source code from the same place satisfies the requirement to 270 | distribute the source code, even though third parties are not 271 | compelled to copy the source along with the object code. 272 | 273 | 5. A program that contains no derivative of any portion of the 274 | Library, but is designed to work with the Library by being compiled or 275 | linked with it, is called a "work that uses the Library". Such a 276 | work, in isolation, is not a derivative work of the Library, and 277 | therefore falls outside the scope of this License. 278 | 279 | However, linking a "work that uses the Library" with the Library 280 | creates an executable that is a derivative of the Library (because it 281 | contains portions of the Library), rather than a "work that uses the 282 | library". The executable is therefore covered by this License. 283 | Section 6 states terms for distribution of such executables. 284 | 285 | When a "work that uses the Library" uses material from a header file 286 | that is part of the Library, the object code for the work may be a 287 | derivative work of the Library even though the source code is not. 288 | Whether this is true is especially significant if the work can be 289 | linked without the Library, or if the work is itself a library. The 290 | threshold for this to be true is not precisely defined by law. 291 | 292 | If such an object file uses only numerical parameters, data 293 | structure layouts and accessors, and small macros and small inline 294 | functions (ten lines or less in length), then the use of the object 295 | file is unrestricted, regardless of whether it is legally a derivative 296 | work. (Executables containing this object code plus portions of the 297 | Library will still fall under Section 6.) 298 | 299 | Otherwise, if the work is a derivative of the Library, you may 300 | distribute the object code for the work under the terms of Section 6. 301 | Any executables containing that work also fall under Section 6, 302 | whether or not they are linked directly with the Library itself. 303 | 304 | 6. As an exception to the Sections above, you may also combine or 305 | link a "work that uses the Library" with the Library to produce a 306 | work containing portions of the Library, and distribute that work 307 | under terms of your choice, provided that the terms permit 308 | modification of the work for the customer's own use and reverse 309 | engineering for debugging such modifications. 310 | 311 | You must give prominent notice with each copy of the work that the 312 | Library is used in it and that the Library and its use are covered by 313 | this License. You must supply a copy of this License. If the work 314 | during execution displays copyright notices, you must include the 315 | copyright notice for the Library among them, as well as a reference 316 | directing the user to the copy of this License. Also, you must do one 317 | of these things: 318 | 319 | a) Accompany the work with the complete corresponding 320 | machine-readable source code for the Library including whatever 321 | changes were used in the work (which must be distributed under 322 | Sections 1 and 2 above); and, if the work is an executable linked 323 | with the Library, with the complete machine-readable "work that 324 | uses the Library", as object code and/or source code, so that the 325 | user can modify the Library and then relink to produce a modified 326 | executable containing the modified Library. (It is understood 327 | that the user who changes the contents of definitions files in the 328 | Library will not necessarily be able to recompile the application 329 | to use the modified definitions.) 330 | 331 | b) Use a suitable shared library mechanism for linking with the 332 | Library. A suitable mechanism is one that (1) uses at run time a 333 | copy of the library already present on the user's computer system, 334 | rather than copying library functions into the executable, and (2) 335 | will operate properly with a modified version of the library, if 336 | the user installs one, as long as the modified version is 337 | interface-compatible with the version that the work was made with. 338 | 339 | c) Accompany the work with a written offer, valid for at 340 | least three years, to give the same user the materials 341 | specified in Subsection 6a, above, for a charge no more 342 | than the cost of performing this distribution. 343 | 344 | d) If distribution of the work is made by offering access to copy 345 | from a designated place, offer equivalent access to copy the above 346 | specified materials from the same place. 347 | 348 | e) Verify that the user has already received a copy of these 349 | materials or that you have already sent this user a copy. 350 | 351 | For an executable, the required form of the "work that uses the 352 | Library" must include any data and utility programs needed for 353 | reproducing the executable from it. However, as a special exception, 354 | the materials to be distributed need not include anything that is 355 | normally distributed (in either source or binary form) with the major 356 | components (compiler, kernel, and so on) of the operating system on 357 | which the executable runs, unless that component itself accompanies 358 | the executable. 359 | 360 | It may happen that this requirement contradicts the license 361 | restrictions of other proprietary libraries that do not normally 362 | accompany the operating system. Such a contradiction means you cannot 363 | use both them and the Library together in an executable that you 364 | distribute. 365 | 366 | 7. You may place library facilities that are a work based on the 367 | Library side-by-side in a single library together with other library 368 | facilities not covered by this License, and distribute such a combined 369 | library, provided that the separate distribution of the work based on 370 | the Library and of the other library facilities is otherwise 371 | permitted, and provided that you do these two things: 372 | 373 | a) Accompany the combined library with a copy of the same work 374 | based on the Library, uncombined with any other library 375 | facilities. This must be distributed under the terms of the 376 | Sections above. 377 | 378 | b) Give prominent notice with the combined library of the fact 379 | that part of it is a work based on the Library, and explaining 380 | where to find the accompanying uncombined form of the same work. 381 | 382 | 8. You may not copy, modify, sublicense, link with, or distribute 383 | the Library except as expressly provided under this License. Any 384 | attempt otherwise to copy, modify, sublicense, link with, or 385 | distribute the Library is void, and will automatically terminate your 386 | rights under this License. However, parties who have received copies, 387 | or rights, from you under this License will not have their licenses 388 | terminated so long as such parties remain in full compliance. 389 | 390 | 9. You are not required to accept this License, since you have not 391 | signed it. However, nothing else grants you permission to modify or 392 | distribute the Library or its derivative works. These actions are 393 | prohibited by law if you do not accept this License. Therefore, by 394 | modifying or distributing the Library (or any work based on the 395 | Library), you indicate your acceptance of this License to do so, and 396 | all its terms and conditions for copying, distributing or modifying 397 | the Library or works based on it. 398 | 399 | 10. Each time you redistribute the Library (or any work based on the 400 | Library), the recipient automatically receives a license from the 401 | original licensor to copy, distribute, link with or modify the Library 402 | subject to these terms and conditions. You may not impose any further 403 | restrictions on the recipients' exercise of the rights granted herein. 404 | You are not responsible for enforcing compliance by third parties with 405 | this License. 406 | 407 | 11. If, as a consequence of a court judgment or allegation of patent 408 | infringement or for any other reason (not limited to patent issues), 409 | conditions are imposed on you (whether by court order, agreement or 410 | otherwise) that contradict the conditions of this License, they do not 411 | excuse you from the conditions of this License. If you cannot 412 | distribute so as to satisfy simultaneously your obligations under this 413 | License and any other pertinent obligations, then as a consequence you 414 | may not distribute the Library at all. For example, if a patent 415 | license would not permit royalty-free redistribution of the Library by 416 | all those who receive copies directly or indirectly through you, then 417 | the only way you could satisfy both it and this License would be to 418 | refrain entirely from distribution of the Library. 419 | 420 | If any portion of this section is held invalid or unenforceable under any 421 | particular circumstance, the balance of the section is intended to apply, 422 | and the section as a whole is intended to apply in other circumstances. 423 | 424 | It is not the purpose of this section to induce you to infringe any 425 | patents or other property right claims or to contest validity of any 426 | such claims; this section has the sole purpose of protecting the 427 | integrity of the free software distribution system which is 428 | implemented by public license practices. Many people have made 429 | generous contributions to the wide range of software distributed 430 | through that system in reliance on consistent application of that 431 | system; it is up to the author/donor to decide if he or she is willing 432 | to distribute software through any other system and a licensee cannot 433 | impose that choice. 434 | 435 | This section is intended to make thoroughly clear what is believed to 436 | be a consequence of the rest of this License. 437 | 438 | 12. If the distribution and/or use of the Library is restricted in 439 | certain countries either by patents or by copyrighted interfaces, the 440 | original copyright holder who places the Library under this License may add 441 | an explicit geographical distribution limitation excluding those countries, 442 | so that distribution is permitted only in or among countries not thus 443 | excluded. In such case, this License incorporates the limitation as if 444 | written in the body of this License. 445 | 446 | 13. The Free Software Foundation may publish revised and/or new 447 | versions of the Lesser General Public License from time to time. 448 | Such new versions will be similar in spirit to the present version, 449 | but may differ in detail to address new problems or concerns. 450 | 451 | Each version is given a distinguishing version number. If the Library 452 | specifies a version number of this License which applies to it and 453 | "any later version", you have the option of following the terms and 454 | conditions either of that version or of any later version published by 455 | the Free Software Foundation. If the Library does not specify a 456 | license version number, you may choose any version ever published by 457 | the Free Software Foundation. 458 | 459 | 14. If you wish to incorporate parts of the Library into other free 460 | programs whose distribution conditions are incompatible with these, 461 | write to the author to ask for permission. For software which is 462 | copyrighted by the Free Software Foundation, write to the Free 463 | Software Foundation; we sometimes make exceptions for this. Our 464 | decision will be guided by the two goals of preserving the free status 465 | of all derivatives of our free software and of promoting the sharing 466 | and reuse of software generally. 467 | 468 | NO WARRANTY 469 | 470 | 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 471 | WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 472 | EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 473 | OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 474 | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 475 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 476 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 477 | LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 478 | THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 479 | 480 | 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 481 | WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 482 | AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 483 | FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 484 | CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 485 | LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 486 | RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 487 | FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 488 | SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 489 | DAMAGES. 490 | 491 | END OF TERMS AND CONDITIONS 492 | -------------------------------------------------------------------------------- /MinecraftForge-Credits.txt: -------------------------------------------------------------------------------- 1 | * Eloraam * 2 | 3 | * FlowerChild * 4 | 5 | * Hawkye * 6 | 7 | * MALfunction84 * 8 | 9 | Submitted the sleep handler code for his mod (Somnia) and others to use. 10 | 11 | * Scokeev9 * 12 | 13 | Gave permission for ScotTools API to be integrated into MCF, and also supported the Forge by converting his mods to use it. 14 | 15 | ScotTools Background: ScotTools was an API that enabled modders to add blocks to harvesting levels (and many other ease-of-use features to create new tools), and the first tool API that used block material for block breaking efficiency which allowed blocks from mods that didn't use ScotTools API to break with the correct speed. 16 | 17 | * SpaceToad * 18 | 19 | * LexManos * 20 | 21 | * cpw * 22 | 23 | * Minecraft Coder Pack (MCP) * 24 | Forge Mod Loader and Minecraft Forge have permission to distribute and automatically download components of MCP and distribute MCP data files. 25 | This permission is not transitive and others wishing to redistribute the Minecraft Forge source independently should seek permission of MCP or 26 | remove the MCP data files and request their users to download MCP separately. 27 | -------------------------------------------------------------------------------- /MinecraftForge-License.txt: -------------------------------------------------------------------------------- 1 | Minecraft Forge Public Licence 2 | ============================== 3 | 4 | Version 1.0 5 | 6 | 0. Definitions 7 | -------------- 8 | 9 | Minecraft: Denotes a copy of the Minecraft game licensed by Mojang AB 10 | 11 | User: Anybody that interract with the software in one of the following ways: 12 | - play 13 | - decompile 14 | - recompile or compile 15 | - modify 16 | 17 | Minecraft Forge: The Minecraft Forge code, in source form, class file form, as 18 | obtained in a standalone fashion or as part of a wider distribution. 19 | 20 | Dependency: Code required to have Minecraft Forge working properly. That can 21 | include dependencies required to compile the code as well as modifications in 22 | the Minecraft sources that are required to have Minecraft Forge working. 23 | 24 | 1. Scope 25 | -------- 26 | 27 | The present license is granted to any user of Minecraft Forge, for all files included 28 | unless stated otherwise in the file itself. As a prerequisite, a user of Minecraft 29 | Forge must own a legally aquired copy of Minecraft. 30 | 31 | 2. Play rights 32 | -------------- 33 | 34 | The user of Minecraft Forge is allowed to install the software on a client or 35 | a server and to play it without restriction. 36 | 37 | 3. Modification rights 38 | ---------------------- 39 | 40 | The user has the right to decompile the source code, look at either the 41 | decompiled version or the original source code, and to modify it. 42 | 43 | 4. Derivation rights 44 | -------------------- 45 | 46 | The user has the rights to derive code from Minecraft Forge, that is to say to 47 | write code that either extends Minecraft Forge class and interfaces, 48 | instantiate the objects declared or calls the functions. This code is known as 49 | "derived" code, and can be licensed with conditions different from Minecraft 50 | Forge. 51 | 52 | 53 | 5. Distribution rights 54 | ---------------------- 55 | 56 | The user of Minecraft Forge is allowed to redistribute Minecraft Forge in 57 | partially, in totallity, or included in a distribution. When distributing 58 | binaries or class files, the user must provide means to obtain the sources of 59 | the distributed version of Minecraft Forge at no costs. This includes the 60 | files as well as any dependency that the code may rely on, including patches to 61 | minecraft original sources. 62 | 63 | Modification of Minecraft Forge as well as dependencies, including patches to 64 | minecraft original sources, has to remain under the terms of the present 65 | license. 66 | 67 | The right to distribute Minecraft Forge does not extend to the right to distribute 68 | MCP data files included within Minecraft Forge. These are the property of the MCP 69 | project and should be removed from any customized distribution of Minecraft Forge 70 | or permission sought separately from the MCP team. 71 | -------------------------------------------------------------------------------- /Paulscode IBXM Library License.txt: -------------------------------------------------------------------------------- 1 | IBXM is copyright (c) 2007, Martin Cameron, and is licensed under the BSD License. 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 5 | 6 | Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 7 | Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 8 | Neither the name of mumart nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 9 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 10 | 11 | -------------------------------------------------------------------------------- /Paulscode SoundSystem CodecIBXM License.txt: -------------------------------------------------------------------------------- 1 | SoundSystem CodecIBXM Class License: 2 | 3 | You are free to use this class for any purpose, commercial or otherwise. 4 | You may modify this class or source code, and distribute it any way you 5 | like, provided the following conditions are met: 6 | 7 | 1) You may not falsely claim to be the author of this class or any 8 | unmodified portion of it. 9 | 2) You may not copyright this class or a modified version of it and then 10 | sue me for copyright infringement. 11 | 3) If you modify the source code, you must clearly document the changes 12 | made before redistributing the modified source code, so other users know 13 | it is not the original code. 14 | 4) You are not required to give me credit for this class in any derived 15 | work, but if you do, you must also mention my website: 16 | http://www.paulscode.com 17 | 5) I the author will not be responsible for any damages (physical, 18 | financial, or otherwise) caused by the use if this class or any 19 | portion of it. 20 | 6) I the author do not guarantee, warrant, or make any representations, 21 | either expressed or implied, regarding the use of this class or any 22 | portion of it. 23 | 24 | Author: Paul Lamb 25 | http://www.paulscode.com 26 | 27 | 28 | This software is based on or using the IBXM library available from 29 | http://www.geocities.com/sunet2000/ 30 | 31 | 32 | IBXM is copyright (c) 2007, Martin Cameron, and is licensed under the BSD License. 33 | All rights reserved. 34 | 35 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 36 | 37 | Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 38 | Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 39 | Neither the name of mumart nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 40 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 41 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Author: devshatter (formerly shatterpointy) 2 | 3 | # Maintained Features 4 | Old features from original mod: 5 | 6 | # Commands: 7 | "/day" sets the time to 6000 8 | 9 | "/night" sets the time to 18000 10 | 11 | "/sunset" sets the time to 13000 12 | 13 | "/fasttime [multiplier]" time passes quickly based on the multiplier. 14 | 15 | "/resettime" resets the time to vanilla 16 | 17 | # New Features: 18 | 19 | # Command: 20 | "/timechange [args]" ("/tc" as alias) 21 | - possible args: day, night, sunset, [integer between 0-24000] 22 | - sets the time to the provided value 23 | 24 | - no args: opens GUI 25 | 26 | # GUI 27 | Opened with previously mentioned command or custom hotkey (also closes GUI) (set to "p" by default") 28 | 29 | GUI contains slider 30 | - sets time based on slider value 31 | -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | ------------------------------------------- 2 | Source installation information for modders 3 | ------------------------------------------- 4 | This code follows the Minecraft Forge installation methodology. It will apply 5 | some small patches to the vanilla MCP source code, giving you and it access 6 | to some of the data and functions you need to build a successful mod. 7 | 8 | Note also that the patches are built against "unrenamed" MCP source code (aka 9 | srgnames) - this means that you will not be able to read them directly against 10 | normal code. 11 | 12 | Source pack installation information: 13 | 14 | Standalone source installation 15 | ============================== 16 | 17 | Step 1: Open your command-line and browse to the folder where you extracted the zip file. 18 | 19 | Step 2: Once you have a command window up in the folder that the downloaded material was placed, type: 20 | 21 | Windows: "gradlew setupDecompWorkspace" 22 | Linux/Mac OS: "./gradlew setupDecompWorkspace" 23 | 24 | Step 3: After all that finished, you're left with a choice. 25 | For eclipse, run "gradlew eclipse" (./gradlew eclipse if you are on Mac/Linux) 26 | 27 | If you preffer to use IntelliJ, steps are a little different. 28 | 1. Open IDEA, and import project. 29 | 2. Select your build.gradle file and have it import. 30 | 3. Once it's finished you must close IntelliJ and run the following command: 31 | 32 | "gradlew genIntellijRuns" (./gradlew genIntellijRuns if you are on Mac/Linux) 33 | 34 | Step 4: The final step is to open Eclipse and switch your workspace to /eclipse/ (if you use IDEA, it should automatically start on your project) 35 | 36 | If at any point you are missing libraries in your IDE, or you've run into problems you can run "gradlew --refresh-dependencies" to refresh the local cache. "gradlew clean" to reset everything {this does not effect your code} and then start the processs again. 37 | 38 | Should it still not work, 39 | Refer to #ForgeGradle on EsperNet for more information about the gradle environment. 40 | 41 | Tip: 42 | If you do not care about seeing Minecraft's source code you can replace "setupDecompWorkspace" with one of the following: 43 | "setupDevWorkspace": Will patch, deobfusicated, and gather required assets to run minecraft, but will not generated human readable source code. 44 | "setupCIWorkspace": Same as Dev but will not download any assets. This is useful in build servers as it is the fastest because it does the least work. 45 | 46 | Tip: 47 | When using Decomp workspace, the Minecraft source code is NOT added to your workspace in a editable way. Minecraft is treated like a normal Library. Sources are there for documentation and research purposes and usually can be accessed under the 'referenced libraries' section of your IDE. 48 | 49 | Forge source installation 50 | ========================= 51 | MinecraftForge ships with this code and installs it as part of the forge 52 | installation process, no further action is required on your part. 53 | 54 | LexManos' Install Video 55 | ======================= 56 | https://www.youtube.com/watch?v=8VEdtQLuLO0&feature=youtu.be 57 | 58 | For more details update more often refer to the Forge Forums: 59 | http://www.minecraftforge.net/forum/index.php/topic,14048.0.html 60 | -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | jcenter() 4 | maven { url = "http://files.minecraftforge.net/maven" } 5 | maven { url = "https://repo.spongepowered.org/maven" } 6 | } 7 | dependencies { 8 | classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT' 9 | classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT' 10 | } 11 | } 12 | apply plugin: 'net.minecraftforge.gradle.forge' 13 | apply plugin: 'org.spongepowered.mixin' 14 | 15 | version = mod_version 16 | group = mod_group 17 | archivesBaseName = mod_name 18 | 19 | sourceCompatibility = targetCompatibility = '1.8' 20 | compileJava { 21 | sourceCompatibility = targetCompatibility = '1.8' 22 | } 23 | 24 | minecraft { 25 | version = "1.8.9-11.15.1.2318-1.8.9" 26 | runDir = "run" 27 | mappings = "stable_22" 28 | String resolved_core_plugin = mod_core_plugin.replace('${mod_group}', mod_group).replace('${mod_id}', mod_id); 29 | clientJvmArgs += "-Dfml.coreMods.load=${resolved_core_plugin}" 30 | serverJvmArgs += "-Dfml.coreMods.load=${resolved_core_plugin}" 31 | String resolved_core_config = mod_mixin_configs.replace('${mod_id}', mod_id); 32 | clientRunArgs += "--mixin ${resolved_core_config}" 33 | serverRunArgs += "--mixin ${resolved_core_config}" 34 | } 35 | 36 | repositories { 37 | maven { url = "https://repo.spongepowered.org/maven" } 38 | } 39 | 40 | dependencies { 41 | provided('org.spongepowered:mixin:0.7.11-SNAPSHOT') { 42 | exclude module: 'guava' 43 | exclude module: 'commons-io' 44 | exclude module: 'gson' 45 | } 46 | } 47 | 48 | processResources { 49 | inputs.property "version", project.version 50 | inputs.property "mcversion", project.minecraft.version 51 | 52 | from(sourceSets.main.resources.srcDirs) { 53 | include 'mcmod.info' 54 | 55 | expand 'mod_id': mod_id, 'mod_name': mod_name, 'version': project.version, 56 | 'mcversion': project.minecraft.version, 'mod_description': mod_description, 57 | 'mod_author': mod_author 58 | } 59 | 60 | from(sourceSets.main.resources.srcDirs) { 61 | exclude 'mcmod.info' 62 | } 63 | } 64 | 65 | jar { 66 | from(configurations.provided.collect { 67 | it.isDirectory() ? it : zipTree(it) 68 | }) { 69 | exclude "META-INF/MANIFSET.MF", "META-INF/maven/**", "META-INF/*.RSA", "META-INF/*.SF" 70 | } 71 | 72 | manifest { 73 | attributes "FMLCorePlugin": mod_core_plugin 74 | attributes "FMLCorePluginContainsFMLMod": "true" 75 | attributes "ForceLoadAsMod": "true" 76 | attributes "TweakClass": "org.spongepowered.asm.launch.MixinTweaker" 77 | attributes "TweakOrder": "0" 78 | attributes "MixinConfigs": mod_mixin_configs.replace('${mod_id}', mod_id) 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /build/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/.DS_Store -------------------------------------------------------------------------------- /build/classes/java/main/net/shatterpoint/timechanger/TimeChanger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/classes/java/main/net/shatterpoint/timechanger/TimeChanger.class -------------------------------------------------------------------------------- /build/classes/java/main/net/shatterpoint/timechanger/commands/CommandDay.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/classes/java/main/net/shatterpoint/timechanger/commands/CommandDay.class -------------------------------------------------------------------------------- /build/classes/java/main/net/shatterpoint/timechanger/commands/CommandFastTime.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/classes/java/main/net/shatterpoint/timechanger/commands/CommandFastTime.class -------------------------------------------------------------------------------- /build/classes/java/main/net/shatterpoint/timechanger/commands/CommandNight.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/classes/java/main/net/shatterpoint/timechanger/commands/CommandNight.class -------------------------------------------------------------------------------- /build/classes/java/main/net/shatterpoint/timechanger/commands/CommandResetTime.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/classes/java/main/net/shatterpoint/timechanger/commands/CommandResetTime.class -------------------------------------------------------------------------------- /build/classes/java/main/net/shatterpoint/timechanger/commands/CommandSunset.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/classes/java/main/net/shatterpoint/timechanger/commands/CommandSunset.class -------------------------------------------------------------------------------- /build/classes/java/main/net/shatterpoint/timechanger/commands/CommandTimeChange.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/classes/java/main/net/shatterpoint/timechanger/commands/CommandTimeChange.class -------------------------------------------------------------------------------- /build/classes/java/main/net/shatterpoint/timechanger/core/CoreMod.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/classes/java/main/net/shatterpoint/timechanger/core/CoreMod.class -------------------------------------------------------------------------------- /build/classes/java/main/net/shatterpoint/timechanger/gui/GuiSlider.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/classes/java/main/net/shatterpoint/timechanger/gui/GuiSlider.class -------------------------------------------------------------------------------- /build/classes/java/main/net/shatterpoint/timechanger/gui/GuiSlider_ISlider.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/classes/java/main/net/shatterpoint/timechanger/gui/GuiSlider_ISlider.class -------------------------------------------------------------------------------- /build/classes/java/main/net/shatterpoint/timechanger/gui/GuiTimeChanger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/classes/java/main/net/shatterpoint/timechanger/gui/GuiTimeChanger.class -------------------------------------------------------------------------------- /build/classes/java/main/net/shatterpoint/timechanger/mixin/MixinWorldInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/classes/java/main/net/shatterpoint/timechanger/mixin/MixinWorldInfo.class -------------------------------------------------------------------------------- /build/libs/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/libs/.DS_Store -------------------------------------------------------------------------------- /build/libs/TimeChanger-2.2.1-sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/libs/TimeChanger-2.2.1-sources.jar -------------------------------------------------------------------------------- /build/libs/TimeChanger-2.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/libs/TimeChanger-2.2.1.jar -------------------------------------------------------------------------------- /build/resources/main/mcmod.info: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "modid": "timechanger", 4 | "name": "TimeChanger", 5 | "description": "A revamped version of 2PI's TimeChanger mod.", 6 | "version": "2.2.1", 7 | "mcversion": "1.8.9", 8 | "url": "", 9 | "updateUrl": "", 10 | "authorList": ["Shatterpoint"], 11 | "credits": "Original mod by 2PI ", 12 | "logoFile": "", 13 | "screenshots": [], 14 | "dependencies": [] 15 | } 16 | ] 17 | -------------------------------------------------------------------------------- /build/resources/main/mixins.timechanger.json: -------------------------------------------------------------------------------- 1 | { 2 | "compatibilityLevel": "JAVA_8", 3 | "package": "net.shatterpoint.timechanger.mixin", 4 | "mixins": [ 5 | "MixinWorldInfo" 6 | ], 7 | "client": [], 8 | "server": [] 9 | } -------------------------------------------------------------------------------- /build/retromapping/retromappedReplacedMain.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidwcode/Revamped-TimeChanger/cf7f77de1514425adc528f4edb96bf31af65cc23/build/retromapping/retromappedReplacedMain.jar -------------------------------------------------------------------------------- /build/sources/main/java/net/shatterpoint/timechanger/TimeChanger.java: -------------------------------------------------------------------------------- 1 | package net.shatterpoint.timechanger; 2 | 3 | import net.minecraft.client.Minecraft; 4 | import net.minecraft.client.settings.KeyBinding; 5 | import net.minecraftforge.client.ClientCommandHandler; 6 | import net.minecraftforge.common.MinecraftForge; 7 | import net.minecraftforge.common.config.Configuration; 8 | import net.minecraftforge.common.config.Property; 9 | import net.minecraftforge.fml.client.registry.ClientRegistry; 10 | import net.minecraftforge.fml.common.Mod; 11 | import net.minecraftforge.fml.common.Mod.EventHandler; 12 | import net.minecraftforge.fml.common.event.FMLInitializationEvent; 13 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; 14 | import net.minecraftforge.fml.common.gameevent.InputEvent.KeyInputEvent; 15 | import net.minecraftforge.fml.common.gameevent.InputEvent.MouseInputEvent; 16 | import net.minecraftforge.fml.common.gameevent.TickEvent.ClientTickEvent; 17 | import net.shatterpoint.timechanger.commands.*; 18 | import net.shatterpoint.timechanger.gui.GuiTimeChanger; 19 | import org.lwjgl.input.Keyboard; 20 | import org.lwjgl.input.Mouse; 21 | 22 | import java.io.File; 23 | 24 | @Mod( 25 | name = "TimeChanger", 26 | modid = "timechanger", 27 | version = "2.1", 28 | acceptedMinecraftVersions = "1.8.9" 29 | ) 30 | public class TimeChanger { 31 | public static boolean fastTime = false; 32 | public static double fastTimeMultiplier = 1.0D; 33 | private static int time = 0; 34 | public static boolean isVanilla = true; 35 | private File saveFile; 36 | private Minecraft mc = Minecraft.getMinecraft(); 37 | public KeyBinding keyTimeChange = new KeyBinding("Open TC GUI", 25, "Time Changer"); 38 | 39 | @EventHandler 40 | public void init(FMLInitializationEvent event) { 41 | this.saveFile = new File(this.mc.mcDataDir + "/config", "shatterpoint_timechanger.cfg"); 42 | ClientRegistry.registerKeyBinding(this.keyTimeChange); 43 | this.loadSettings(); 44 | ClientCommandHandler.instance.registerCommand(new CommandDay(this)); 45 | ClientCommandHandler.instance.registerCommand(new CommandNight(this)); 46 | ClientCommandHandler.instance.registerCommand(new CommandSunset(this)); 47 | ClientCommandHandler.instance.registerCommand(new CommandResetTime(this)); 48 | ClientCommandHandler.instance.registerCommand(new CommandFastTime(this)); 49 | ClientCommandHandler.instance.registerCommand(new CommandTimeChange(this)); 50 | MinecraftForge.EVENT_BUS.register(this); 51 | } 52 | 53 | @SubscribeEvent 54 | public void onClientTick(ClientTickEvent event) { 55 | if (this.mc.theWorld != null) { 56 | if (fastTime) { 57 | this.setTime((int)((double)System.currentTimeMillis() * fastTimeMultiplier % 24000.0D)); 58 | } 59 | } 60 | 61 | } 62 | 63 | @SubscribeEvent 64 | public void onKeyInput(KeyInputEvent event) { 65 | int code = this.keyTimeChange.getKeyCode(); 66 | if (Keyboard.getEventKeyState() && Keyboard.getEventKey() == code) { 67 | fastTime = false; 68 | mc.displayGuiScreen(new GuiTimeChanger(this)); 69 | } 70 | } 71 | 72 | @SubscribeEvent 73 | public void onMouseInput(MouseInputEvent event) { 74 | int code = this.keyTimeChange.getKeyCode(); 75 | if (Mouse.getEventButtonState() && Mouse.getEventButton() == code + 100) { 76 | fastTime = false; 77 | mc.displayGuiScreen(new GuiTimeChanger(this)); 78 | } 79 | } 80 | 81 | 82 | public int getGuiTime() { 83 | if (this.isVanilla) { 84 | this.time = (int)(mc.theWorld.getWorldTime() % 24000); 85 | isVanilla = false; 86 | 87 | } 88 | if (this.time < 18000) { 89 | this.time += 24000; 90 | } 91 | return this.time; 92 | } 93 | 94 | public static int getTime() { 95 | return time; 96 | } 97 | 98 | public void setTime(int time) { 99 | this.time = time % 24000; 100 | } 101 | 102 | public void saveSettings() { 103 | Configuration config = new Configuration(this.saveFile); 104 | this.updateSettings(config, true); 105 | config.save(); 106 | } 107 | 108 | public void loadSettings() { 109 | Configuration config = new Configuration(this.saveFile); 110 | config.load(); 111 | this.updateSettings(config, false); 112 | } 113 | 114 | private void updateSettings(Configuration config, boolean save) { 115 | Property prop = config.get("TimeChanger", "time", 0); 116 | if (save) { 117 | prop.set(this.time); 118 | } else { 119 | this.time = prop.getInt(); 120 | } 121 | 122 | prop = config.get("TimeChanger", "isVanilla", true); 123 | if (save) { 124 | prop.set(this.isVanilla); 125 | } else { 126 | this.isVanilla = prop.getBoolean(); 127 | } 128 | 129 | prop = config.get("TimeChanger", "fastTime", false); 130 | if (save) { 131 | prop.set(this.fastTime); 132 | } else { 133 | this.fastTime = prop.getBoolean(); 134 | } 135 | 136 | prop = config.get("TimeChanger", "fastTimeMultiplier", 1.0D); 137 | if (save) { 138 | prop.set(this.fastTimeMultiplier); 139 | } else { 140 | this.fastTimeMultiplier = prop.getDouble(); 141 | } 142 | 143 | 144 | } 145 | 146 | } -------------------------------------------------------------------------------- /build/sources/main/java/net/shatterpoint/timechanger/commands/CommandDay.java: -------------------------------------------------------------------------------- 1 | package net.shatterpoint.timechanger.commands; 2 | 3 | import net.minecraft.client.Minecraft; 4 | import net.minecraft.command.CommandBase; 5 | import net.minecraft.command.ICommandSender; 6 | import net.minecraft.util.ChatComponentText; 7 | import net.minecraft.util.ChatStyle; 8 | import net.minecraft.util.EnumChatFormatting; 9 | import net.shatterpoint.timechanger.TimeChanger; 10 | 11 | public class CommandDay extends CommandBase { 12 | private TimeChanger mod; 13 | private Minecraft mc = Minecraft.getMinecraft(); 14 | public CommandDay(TimeChanger mod) { 15 | this.mod = mod; 16 | } 17 | 18 | 19 | public String getCommandName() { 20 | return "day"; 21 | } 22 | 23 | public String getCommandUsage(ICommandSender sender) { 24 | return "/day"; 25 | } 26 | 27 | public void processCommand(ICommandSender sender, String[] args) { 28 | TimeChanger.fastTime = false; 29 | this.mod.setTime(6000); 30 | TimeChanger.isVanilla = false; 31 | sender.addChatMessage((new ChatComponentText("Time set to day.")).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.GREEN))); 32 | this.mod.saveSettings(); 33 | } 34 | 35 | public int getRequiredPermissionLevel() { 36 | return 0; 37 | } 38 | 39 | public boolean canCommandSenderUseCommand(ICommandSender sender) { 40 | return true; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /build/sources/main/java/net/shatterpoint/timechanger/commands/CommandFastTime.java: -------------------------------------------------------------------------------- 1 | package net.shatterpoint.timechanger.commands; 2 | 3 | import net.minecraft.client.Minecraft; 4 | import net.minecraft.command.CommandBase; 5 | import net.minecraft.command.ICommandSender; 6 | import net.minecraft.util.ChatComponentText; 7 | import net.minecraft.util.ChatStyle; 8 | import net.minecraft.util.EnumChatFormatting; 9 | import org.apache.commons.lang3.math.NumberUtils; 10 | import net.shatterpoint.timechanger.TimeChanger; 11 | 12 | public class CommandFastTime extends CommandBase { 13 | private Minecraft mc = Minecraft.getMinecraft(); 14 | TimeChanger mod; 15 | 16 | public CommandFastTime(TimeChanger mod) { 17 | this.mod = mod; 18 | } 19 | 20 | public String getCommandName() { 21 | return "fasttime"; 22 | } 23 | 24 | public String getCommandUsage(ICommandSender sender) { 25 | return "/fasttime "; 26 | } 27 | 28 | public void processCommand(ICommandSender sender, String[] args) { 29 | if (args.length == 0) { 30 | sender.addChatMessage((new ChatComponentText("Please use /fasttime !")).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.RED))); 31 | } else { 32 | double multiplier = NumberUtils.toDouble(args[0], -1.0D); 33 | if (multiplier < 0.0D) { 34 | sender.addChatMessage((new ChatComponentText("Invalid multiplier!")).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.RED))); 35 | } else { 36 | TimeChanger.fastTime = true; 37 | TimeChanger.isVanilla = false; 38 | TimeChanger.fastTimeMultiplier = multiplier; 39 | sender.addChatMessage((new ChatComponentText("Time set to fast (" + multiplier + ").")).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.GREEN))); 40 | this.mod.saveSettings(); 41 | } 42 | } 43 | } 44 | 45 | public int getRequiredPermissionLevel() { 46 | return 0; 47 | } 48 | 49 | public boolean canCommandSenderUseCommand(ICommandSender sender) { 50 | return true; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /build/sources/main/java/net/shatterpoint/timechanger/commands/CommandNight.java: -------------------------------------------------------------------------------- 1 | package net.shatterpoint.timechanger.commands; 2 | 3 | import net.minecraft.client.Minecraft; 4 | import net.minecraft.command.CommandBase; 5 | import net.minecraft.command.ICommandSender; 6 | import net.minecraft.util.ChatComponentText; 7 | import net.minecraft.util.ChatStyle; 8 | import net.minecraft.util.EnumChatFormatting; 9 | import net.shatterpoint.timechanger.TimeChanger; 10 | 11 | public class CommandNight extends CommandBase { 12 | private Minecraft mc = Minecraft.getMinecraft(); 13 | private TimeChanger mod; 14 | public CommandNight(TimeChanger mod) { 15 | this.mod = mod; 16 | } 17 | 18 | public String getCommandName() { 19 | return "night"; 20 | } 21 | 22 | public String getCommandUsage(ICommandSender sender) { 23 | return "/night"; 24 | } 25 | 26 | public void processCommand(ICommandSender sender, String[] args) { 27 | TimeChanger.fastTime = false; 28 | this.mod.setTime(18000); 29 | TimeChanger.isVanilla = false; 30 | sender.addChatMessage((new ChatComponentText("Time set to night.")).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.GREEN))); 31 | this.mod.saveSettings(); 32 | } 33 | 34 | public int getRequiredPermissionLevel() { 35 | return 0; 36 | } 37 | 38 | public boolean canCommandSenderUseCommand(ICommandSender sender) { 39 | return true; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /build/sources/main/java/net/shatterpoint/timechanger/commands/CommandResetTime.java: -------------------------------------------------------------------------------- 1 | package net.shatterpoint.timechanger.commands; 2 | 3 | import net.minecraft.client.Minecraft; 4 | import net.minecraft.command.CommandBase; 5 | import net.minecraft.command.ICommandSender; 6 | import net.minecraft.util.ChatComponentText; 7 | import net.minecraft.util.ChatStyle; 8 | import net.minecraft.util.EnumChatFormatting; 9 | import net.shatterpoint.timechanger.TimeChanger; 10 | 11 | public class CommandResetTime extends CommandBase { 12 | private Minecraft mc = Minecraft.getMinecraft(); 13 | private TimeChanger mod; 14 | 15 | public CommandResetTime(TimeChanger mod) { 16 | this.mod = mod; 17 | } 18 | 19 | public String getCommandName() { 20 | return "resettime"; 21 | } 22 | 23 | public String getCommandUsage(ICommandSender sender) { 24 | return "/resettime"; 25 | } 26 | 27 | public void processCommand(ICommandSender sender, String[] args) { 28 | TimeChanger.fastTime = false; 29 | this.mod.setTime(-1);; 30 | TimeChanger.isVanilla = true; 31 | sender.addChatMessage((new ChatComponentText("Now using vanilla time.")).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.GREEN))); 32 | this.mod.saveSettings(); 33 | } 34 | 35 | public int getRequiredPermissionLevel() { 36 | return 0; 37 | } 38 | 39 | public boolean canCommandSenderUseCommand(ICommandSender sender) { 40 | return true; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /build/sources/main/java/net/shatterpoint/timechanger/commands/CommandSunset.java: -------------------------------------------------------------------------------- 1 | package net.shatterpoint.timechanger.commands; 2 | 3 | import net.minecraft.client.Minecraft; 4 | import net.minecraft.command.CommandBase; 5 | import net.minecraft.command.ICommandSender; 6 | import net.minecraft.util.ChatComponentText; 7 | import net.minecraft.util.ChatStyle; 8 | import net.minecraft.util.EnumChatFormatting; 9 | import net.shatterpoint.timechanger.TimeChanger; 10 | 11 | public class CommandSunset extends CommandBase { 12 | private Minecraft mc = Minecraft.getMinecraft(); 13 | private TimeChanger mod; 14 | 15 | public CommandSunset(TimeChanger mod) { 16 | this.mod = mod; 17 | } 18 | 19 | public String getCommandName() { 20 | return "sunset"; 21 | } 22 | 23 | public String getCommandUsage(ICommandSender sender) { 24 | return "/sunset"; 25 | } 26 | 27 | public void processCommand(ICommandSender sender, String[] args) { 28 | TimeChanger.fastTime = false; 29 | this.mod.setTime(13000); 30 | TimeChanger.isVanilla = false; 31 | sender.addChatMessage((new ChatComponentText("Time set to sunset.")).setChatStyle((new ChatStyle()).setColor(EnumChatFormatting.GREEN))); 32 | this.mod.saveSettings(); 33 | } 34 | 35 | public int getRequiredPermissionLevel() { 36 | return 0; 37 | } 38 | 39 | public boolean canCommandSenderUseCommand(ICommandSender sender) { 40 | return true; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /build/sources/main/java/net/shatterpoint/timechanger/commands/CommandTimeChange.java: -------------------------------------------------------------------------------- 1 | package net.shatterpoint.timechanger.commands; 2 | 3 | import net.minecraft.client.Minecraft; 4 | import net.minecraft.command.CommandBase; 5 | import net.minecraft.command.ICommandSender; 6 | import net.minecraft.util.ChatComponentText; 7 | import net.minecraft.util.ChatStyle; 8 | import net.minecraft.util.EnumChatFormatting; 9 | import net.minecraftforge.common.MinecraftForge; 10 | import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; 11 | import net.minecraftforge.fml.common.gameevent.TickEvent; 12 | import net.shatterpoint.timechanger.TimeChanger; 13 | import net.shatterpoint.timechanger.gui.GuiTimeChanger; 14 | 15 | import java.util.ArrayList; 16 | import java.util.List; 17 | 18 | public class CommandTimeChange extends CommandBase { 19 | private Minecraft mc = Minecraft.getMinecraft(); 20 | private TimeChanger mod; 21 | public CommandTimeChange(TimeChanger mod) { 22 | this.mod = mod; 23 | } 24 | 25 | public String getCommandName() { 26 | return "timechange"; 27 | } 28 | 29 | public List getCommandAliases() { 30 | List aliases = new ArrayList(); 31 | aliases.add("tc"); 32 | return aliases; 33 | } 34 | 35 | public String getCommandUsage(ICommandSender sender) { 36 | return "/timechange