This file contains hidden or 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
package matyk.aqarium2.randomores; | |
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.util.Random; | |
import org.json.simple.JSONObject; | |
import org.lwjgl.util.Color; |
This file contains hidden or 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
public class AqaColors implements IBlockColor { | |
@Override | |
public int colorMultiplier(IBlockState state, IBlockAccess worldIn, BlockPos pos, int tintIndex) { | |
if(state.getBlock() instanceof RandomOreBlock) { | |
RandomOreBlock block = (RandomOreBlock) state.getBlock(); | |
//worldIn.getTileEntity(pos); | |
if(worldIn.getTileEntity(pos) != null) { | |
TileRandomOre tile = (TileRandomOre) worldIn.getTileEntity(pos); | |
int rgb = tile.red; |
This file contains hidden or 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
public static RandomOreBlock testBlock; | |
@SubscribeEvent | |
public void registerBlocks(RegistryEvent.Register<Block> event) { | |
testBlock = new RandomOreBlock(Material.ROCK, 0, 0, CreativeTabs.MATERIALS); | |
event.getRegistry().registerAll(testBlock); | |
} |
This file contains hidden or 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
package matyk.aqarium2.eventHandler; | |
import matyk.aqarium2.main.Main; | |
import net.minecraft.client.renderer.block.model.ModelResourceLocation; | |
import net.minecraft.item.Item; | |
import net.minecraftforge.client.event.ModelRegistryEvent; | |
import net.minecraftforge.client.model.ModelLoader; | |
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; | |
public class ClientEventHandler { |
This file contains hidden or 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
package matyk.aqarium2.recipes; | |
import matyk.aqarium2.eventHandler.EventHandler; | |
import net.minecraft.inventory.InventoryCrafting; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.item.crafting.IRecipe; | |
import net.minecraft.nbt.NBTTagCompound; | |
import net.minecraft.util.ResourceLocation; | |
import net.minecraft.world.World; | |
import net.minecraftforge.registries.IForgeRegistryEntry; |
This file contains hidden or 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
@SubscribeEvent | |
static void onWorldLoad(WorldEvent.Load e) { | |
Random rand = new Random(); | |
WorldDataTable table = WorldDataTable.get(e.getWorld(), true); | |
if(!table.didgen) { | |
table.list.add( | |
new OreData( | |
rand.nextInt(256), | |
rand.nextInt(256), | |
rand.nextInt(256), |
This file contains hidden or 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
package matyk.aqarium2.armor; | |
import java.util.Collection; | |
import java.util.Optional; | |
import java.util.UUID; | |
import com.google.common.collect.Multimap; | |
import matyk.aqarium2.eventHandler.EventHandler; | |
import matyk.aqarium2.main.Main; |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
[17:01:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker | |
[17:01:54] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker | |
[17:01:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker | |
[17:01:54] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2847 for Minecraft 1.12.2 loading | |
[17:01:54] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_221, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_221 | |
[17:01:55] [main/WARN] [FML]: The coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin) is not signed! | |
[17:01:55] [main/WARN] [FML]: The coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin) is not signed! | |
[17:01:55] [main/INFO] [FML]: Searching C:\Users\MatyK\Documents\mmc-develop-win32\MultiMC\instances\Modpack3(REAL)\.minecraft\mods for mods | |
[17:01:55] [main/INFO] [ |
This file contains hidden or 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
buildscript { | |
repositories { | |
jcenter() | |
maven { url = 'https://files.minecraftforge.net/maven' } | |
maven { url = 'https://repo.spongepowered.org/maven' } | |
maven { url = 'https://plugins.gradle.org/m2' } | |
} | |
dependencies { | |
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' | |
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT' |
This file contains hidden or 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
buildscript { | |
repositories { | |
jcenter() | |
maven { url = 'https://files.minecraftforge.net/maven' } | |
maven { url = 'https://repo.spongepowered.org/maven' } | |
maven { url = 'https://plugins.gradle.org/m2' } | |
} | |
dependencies { | |
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' | |
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT' |
OlderNewer