Skip to content

Commit

Permalink
[ci skip] spotlessApply with the new settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchej123 committed Jan 29, 2023
1 parent b9990bb commit 6cf99b8
Show file tree
Hide file tree
Showing 68 changed files with 9,001 additions and 9,527 deletions.
165 changes: 80 additions & 85 deletions src/main/java/com/creativemd/littletiles/LittleTiles.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
package com.creativemd.littletiles;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.ForgeModContainer;
import net.minecraftforge.common.MinecraftForge;

import com.creativemd.creativecore.common.packet.CreativeCorePacket;
import com.creativemd.littletiles.common.blocks.BlockLTColored;
import com.creativemd.littletiles.common.blocks.BlockTile;
Expand All @@ -18,6 +27,7 @@
import com.creativemd.littletiles.common.utils.LittleTileBlockColored;
import com.creativemd.littletiles.common.utils.LittleTileTileEntity;
import com.creativemd.littletiles.server.LittleTilesServer;

import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
Expand All @@ -26,117 +36,102 @@
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLLoadCompleteEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.ForgeModContainer;
import net.minecraftforge.common.MinecraftForge;

@Mod(modid = LittleTiles.modid, version = LittleTiles.version, name = "LittleTiles")
public class LittleTiles {

@Instance(LittleTiles.modid)
public static LittleTiles instance = new LittleTiles();

@SidedProxy(clientSide = "com.creativemd.littletiles.client.LittleTilesClient", serverSide = "com.creativemd.littletiles.server.LittleTilesServer")
public static LittleTilesServer proxy;
@Instance(LittleTiles.modid)
public static LittleTiles instance = new LittleTiles();

public static final String modid = "littletiles";
public static final String version = "GRADLETOKEN_VERSION";
@SidedProxy(
clientSide = "com.creativemd.littletiles.client.LittleTilesClient",
serverSide = "com.creativemd.littletiles.server.LittleTilesServer")
public static LittleTilesServer proxy;

public static int maxNewTiles = 512;
public static final String modid = "littletiles";
public static final String version = "GRADLETOKEN_VERSION";

public static BlockTile blockTile = new BlockTile(Material.rock);
public static Block coloredBlock = new BlockLTColored().setBlockName("LTBlocks");
public static int maxNewTiles = 512;

public static Item hammer = new ItemHammer().setUnlocalizedName("LTHammer");
public static Item recipe = new ItemRecipe().setUnlocalizedName("LTRecipe");
public static Item multiTiles = new ItemMultiTiles().setUnlocalizedName("LTMultiTiles");
public static Item saw = new ItemLittleSaw().setUnlocalizedName("LTSaw");
public static Item container = new ItemTileContainer().setUnlocalizedName("LTContainer");
public static Item wrench = new ItemLittleWrench().setUnlocalizedName("LTWrench");
public static Item chisel = new ItemLittleChisel().setUnlocalizedName("LTChisel");
public static Item colorTube = new ItemColorTube().setUnlocalizedName("LTColorTube");
public static Item rubberMallet = new ItemRubberMallet().setUnlocalizedName("LTRubberMallet");
public static BlockTile blockTile = new BlockTile(Material.rock);
public static Block coloredBlock = new BlockLTColored().setBlockName("LTBlocks");

public static Item hammer = new ItemHammer().setUnlocalizedName("LTHammer");
public static Item recipe = new ItemRecipe().setUnlocalizedName("LTRecipe");
public static Item multiTiles = new ItemMultiTiles().setUnlocalizedName("LTMultiTiles");
public static Item saw = new ItemLittleSaw().setUnlocalizedName("LTSaw");
public static Item container = new ItemTileContainer().setUnlocalizedName("LTContainer");
public static Item wrench = new ItemLittleWrench().setUnlocalizedName("LTWrench");
public static Item chisel = new ItemLittleChisel().setUnlocalizedName("LTChisel");
public static Item colorTube = new ItemColorTube().setUnlocalizedName("LTColorTube");
public static Item rubberMallet = new ItemRubberMallet().setUnlocalizedName("LTRubberMallet");

@EventHandler
public void Init(FMLInitializationEvent event)
{
ForgeModContainer.fullBoundingBoxLadders = true;
@EventHandler
public void Init(FMLInitializationEvent event) {
ForgeModContainer.fullBoundingBoxLadders = true;

GameRegistry.registerItem(hammer, "hammer");
GameRegistry.registerItem(recipe, "recipe");
GameRegistry.registerItem(saw, "saw");
GameRegistry.registerItem(container, "container");
GameRegistry.registerItem(wrench, "wrench");
GameRegistry.registerItem(chisel, "chisel");
GameRegistry.registerItem(colorTube, "colorTube");
GameRegistry.registerItem(rubberMallet, "rubberMallet");
GameRegistry.registerItem(hammer, "hammer");
GameRegistry.registerItem(recipe, "recipe");
GameRegistry.registerItem(saw, "saw");
GameRegistry.registerItem(container, "container");
GameRegistry.registerItem(wrench, "wrench");
GameRegistry.registerItem(chisel, "chisel");
GameRegistry.registerItem(colorTube, "colorTube");
GameRegistry.registerItem(rubberMallet, "rubberMallet");

//GameRegistry.registerBlock(coloredBlock, "LTColoredBlock");
GameRegistry.registerBlock(coloredBlock, ItemBlockColored.class, "LTColoredBlock");
GameRegistry.registerBlock(blockTile, ItemBlockTiles.class, "BlockLittleTiles");
// GameRegistry.registerBlock(coloredBlock, "LTColoredBlock");
GameRegistry.registerBlock(coloredBlock, ItemBlockColored.class, "LTColoredBlock");
GameRegistry.registerBlock(blockTile, ItemBlockTiles.class, "BlockLittleTiles");

GameRegistry.registerItem(multiTiles, "multiTiles");
GameRegistry.registerItem(multiTiles, "multiTiles");

GameRegistry.registerTileEntity(TileEntityLittleTiles.class, "LittleTilesTileEntity");
GameRegistry.registerTileEntity(TileEntityLittleTiles.class, "LittleTilesTileEntity");

proxy.loadSide();
proxy.loadSide();

LittleTile.registerLittleTile(LittleTileBlock.class, "BlockTileBlock");
//LittleTile.registerLittleTile(LittleTileStructureBlock.class, "BlockTileStructure");
LittleTile.registerLittleTile(LittleTileTileEntity.class, "BlockTileEntity");
LittleTile.registerLittleTile(LittleTileBlockColored.class, "BlockTileColored");
LittleTile.registerLittleTile(LittleTileBlock.class, "BlockTileBlock");
// LittleTile.registerLittleTile(LittleTileStructureBlock.class, "BlockTileStructure");
LittleTile.registerLittleTile(LittleTileTileEntity.class, "BlockTileEntity");
LittleTile.registerLittleTile(LittleTileBlockColored.class, "BlockTileColored");

CreativeCorePacket.registerPacket(LittlePlacePacket.class, "LittlePlace");
CreativeCorePacket.registerPacket(LittleBlockPacket.class, "LittleBlock");
CreativeCorePacket.registerPacket(LittleRotatePacket.class, "LittleRotate");
CreativeCorePacket.registerPacket(LittleFlipPacket.class, "LittleFlip");
FMLCommonHandler.instance().bus().register(new LittleEvent());
MinecraftForge.EVENT_BUS.register(new LittleEvent());
CreativeCorePacket.registerPacket(LittlePlacePacket.class, "LittlePlace");
CreativeCorePacket.registerPacket(LittleBlockPacket.class, "LittleBlock");
CreativeCorePacket.registerPacket(LittleRotatePacket.class, "LittleRotate");
CreativeCorePacket.registerPacket(LittleFlipPacket.class, "LittleFlip");
FMLCommonHandler.instance().bus().register(new LittleEvent());
MinecraftForge.EVENT_BUS.register(new LittleEvent());

LittleStructure.initStructures();
LittleStructure.initStructures();

//Recipes
GameRegistry.addRecipe(new ItemStack(hammer), new Object[]
{
"XXX", "ALA", "ALA", 'X', Items.iron_ingot, 'L', new ItemStack(Items.dye, 1, 4)
});
// Recipes
GameRegistry.addRecipe(
new ItemStack(hammer),
new Object[] { "XXX", "ALA", "ALA", 'X', Items.iron_ingot, 'L', new ItemStack(Items.dye, 1, 4) });

GameRegistry.addRecipe(new ItemStack(container), new Object[]
{
"XXX", "XHX", "XXX", 'X', Items.iron_ingot, 'H', hammer
});
GameRegistry.addRecipe(
new ItemStack(container),
new Object[] { "XXX", "XHX", "XXX", 'X', Items.iron_ingot, 'H', hammer });

GameRegistry.addRecipe(new ItemStack(saw), new Object[]
{
"AXA", "AXA", "ALA", 'X', Items.iron_ingot, 'L', new ItemStack(Items.dye, 1, 4)
});
GameRegistry.addRecipe(
new ItemStack(saw),
new Object[] { "AXA", "AXA", "ALA", 'X', Items.iron_ingot, 'L', new ItemStack(Items.dye, 1, 4) });

GameRegistry.addRecipe(new ItemStack(wrench), new Object[]
{
"AXA", "ALA", "ALA", 'X', Items.iron_ingot, 'L', new ItemStack(Items.dye, 1, 4)
});
GameRegistry.addRecipe(
new ItemStack(wrench),
new Object[] { "AXA", "ALA", "ALA", 'X', Items.iron_ingot, 'L', new ItemStack(Items.dye, 1, 4) });

GameRegistry.addRecipe(new ItemStack(rubberMallet), new Object[]
{
"XXX", "XLX", "ALA", 'X', Blocks.wool, 'L', new ItemStack(Items.dye, 1, 4)
});
GameRegistry.addRecipe(
new ItemStack(rubberMallet),
new Object[] { "XXX", "XLX", "ALA", 'X', Blocks.wool, 'L', new ItemStack(Items.dye, 1, 4) });

GameRegistry.addRecipe(new ItemStack(colorTube), new Object[]
{
"XXX", "XLX", "XXX", 'X', Items.dye, 'L', Items.iron_ingot
});
GameRegistry.addRecipe(
new ItemStack(colorTube),
new Object[] { "XXX", "XLX", "XXX", 'X', Items.dye, 'L', Items.iron_ingot });

}

@EventHandler
public void LoadComplete(FMLLoadCompleteEvent event)
{
LittleTileSortingList.initVanillaBlocks();
@EventHandler
public void LoadComplete(FMLLoadCompleteEvent event) {
LittleTileSortingList.initVanillaBlocks();
}
}
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
package com.creativemd.littletiles;

import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;

import java.io.File;
import java.util.Map;

import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;

@MCVersion(value = "1.7.10")
public class LittleTilesPatchingLoader implements IFMLLoadingPlugin {

public static File location;
public static File location;

@Override
public String[] getASMTransformerClass() {
return new String[]{LittleTilesTransformer.class.getName()};
}
@Override
public String[] getASMTransformerClass() {
return new String[] { LittleTilesTransformer.class.getName() };
}

@Override
public String getModContainerClass() {
return LittleTiles.class.getName();
}
@Override
public String getModContainerClass() {
return LittleTiles.class.getName();
}

@Override
public String getSetupClass() {
return null;
}
@Override
public String getSetupClass() {
return null;
}

@Override
public void injectData(Map<String, Object> data) {
location = (File) data.get("coremodLocation");
}
@Override
public void injectData(Map<String, Object> data) {
location = (File) data.get("coremodLocation");
}

@Override
public String getAccessTransformerClass() {
return null;
}
@Override
public String getAccessTransformerClass() {
return null;
}

}
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
package com.creativemd.littletiles.client;

import net.minecraft.client.Minecraft;
import net.minecraft.client.settings.KeyBinding;
import net.minecraft.item.Item;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.common.MinecraftForge;

import com.creativemd.littletiles.LittleTiles;
import com.creativemd.littletiles.client.render.PreviewRenderer;
import com.creativemd.littletiles.client.render.SpecialBlockTilesRenderer;
import com.creativemd.littletiles.common.blocks.BlockTile;
import com.creativemd.littletiles.common.tileentity.TileEntityLittleTiles;
import com.creativemd.littletiles.server.LittleTilesServer;

import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.Minecraft;
import net.minecraft.client.settings.KeyBinding;
import net.minecraft.item.Item;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.common.MinecraftForge;

@SideOnly(Side.CLIENT)
public class LittleTilesClient extends LittleTilesServer {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package com.creativemd.littletiles.client.render;

import com.creativemd.creativecore.common.utils.CubeObject;
import java.util.ArrayList;

import net.minecraft.item.ItemStack;

import java.util.ArrayList;
import com.creativemd.creativecore.common.utils.CubeObject;

public interface ITilesRenderer { //is client-side effective only!
public interface ITilesRenderer { // is client-side effective only!

ArrayList<CubeObject> getRenderingCubes(ItemStack stack);
ArrayList<CubeObject> getRenderingCubes(ItemStack stack);

boolean hasBackground(ItemStack stack);
boolean hasBackground(ItemStack stack);

}
Loading

0 comments on commit 6cf99b8

Please sign in to comment.