mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-17 03:05:10 +00:00
Repackage to team.chisel (excepting API)
This commit is contained in:
1 parent
7555e21144
commit
9574e05c29
132 files changed
+526
-596
No files matched your search
@@ -0,0 +1,134 @@
|
||||
package team.chisel.init;
|
||||
|
||||
import team.chisel.Chisel;
|
||||
import team.chisel.block.*;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.common.registry.GameRegistry.ObjectHolder;
|
||||
|
||||
@ObjectHolder(Chisel.MOD_ID)
|
||||
public final class ChiselBlocks {
|
||||
|
||||
public static final Block autoChisel = null;
|
||||
public static final BlockCarvable antiBlock = null;
|
||||
public static final BlockCarvableBeacon beacon = null;
|
||||
public static final BlockCarvable marble = null;
|
||||
public static final BlockCarvable marble_pillar = null;
|
||||
public static final BlockCarvable limestone = null;
|
||||
public static final BlockCarvableSlab marble_slab = null;
|
||||
public static final BlockCarvableSlab limestone_slab = null;
|
||||
public static final BlockCarvableSlab marble_pillar_slab = null;
|
||||
public static final BlockCarvable cobblestone = null;
|
||||
public static final BlockCarvableWall cobblestoneWall = null;
|
||||
public static final BlockCarvableGlass glass = null;
|
||||
public static final BlockCarvableGlass glass2 = null;
|
||||
public static final BlockCarvablePane glass_pane = null;
|
||||
public static final BlockCarvable sandstone = null;
|
||||
public static final BlockCarvable sandstone_scribbles = null;
|
||||
public static final BlockConcrete concrete = null;
|
||||
public static final BlockRoadLine road_line = null;
|
||||
public static final BlockCarvable iron_block = null;
|
||||
public static final BlockCarvable gold_block = null;
|
||||
public static final BlockCarvable diamond_block = null;
|
||||
public static final BlockCarvableGlowstone glowstone = null;
|
||||
public static final BlockCarvable lapis_block = null;
|
||||
public static final BlockCarvable emerald_block = null;
|
||||
public static final BlockCarvable rebel = null;
|
||||
public static final BlockCarvable nether_brick = null;
|
||||
public static final BlockCarvable netherrack = null;
|
||||
public static final BlockCarvable mossy_cobblestone = null;
|
||||
public static final BlockCarvable stonebricksmooth = null;
|
||||
public static final BlockCarvablePane iron_bars = null;
|
||||
public static final BlockCarvableIce ice = null;
|
||||
public static final BlockCarvableIce ice_pillar = null;
|
||||
public static final BlockCarvablePackedIce packedice = null;
|
||||
public static final BlockCarvablePackedIce packedice_pillar = null;
|
||||
public static final BlockCarvable obsidian = null;
|
||||
public static final BlockCarvable obsidian2 = null;
|
||||
public static final BlockCarvablePowered redstone_block = null;
|
||||
public static final BlockHolystone holystone = null;
|
||||
public static final BlockGrimstone grimstone = null;
|
||||
public static final BlockLavastone lavastone = null;
|
||||
public static final BlockWaterstone waterstone = null;
|
||||
public static final BlockCarvable leaves = null;
|
||||
public static final BlockCarvable fantasyblock = null;
|
||||
public static final BlockCarvable fantasyblock2 = null;
|
||||
public static final BlockCarvable carpet_block = null;
|
||||
public static final BlockCarvableCarpet carpet = null;
|
||||
public static final BlockCarvable bookshelf = null;
|
||||
public static final BlockCarvable tyrian = null;
|
||||
public static final BlockCarvable dirt = null;
|
||||
public static final BlockCloud cloud = null;
|
||||
public static final BlockCarvable templeblock = null;
|
||||
public static final BlockCarvable mossy_templeblock = null;
|
||||
public static final BlockCarvable factoryblock = null;
|
||||
public static final BlockCarvable factoryblock2 = null;
|
||||
public static final BlockCarvablePane paperwall = null;
|
||||
public static final BlockCarvable paperwall_block = null;
|
||||
public static final BlockCarvable woolen_clay = null;
|
||||
public static final BlockCarvable laboratoryblock = null;
|
||||
|
||||
public static final BlockCarvable voidstone = null;
|
||||
public static final BlockCarvable voidstone2 = null;
|
||||
public static final BlockCarvable voidstonerunic = null;
|
||||
public static final BlockCarvable voidstonePillar = null;
|
||||
public static final BlockCarvable voidstonePillar2 = null;
|
||||
public static final BlockSnakestone stone_snakestone = null;
|
||||
public static final BlockSnakestone sand_snakestone = null;
|
||||
public static final BlockSnakestoneObsidian obsidian_snakestone = null;
|
||||
public static final BlockCarvable hexPlating = null;
|
||||
public static final BlockCarvable hexLargePlating = null;
|
||||
public static final BlockCarvable technical = null;
|
||||
public static final BlockCarvableGlass technical2 = null;
|
||||
public static final BlockCarvable futura = null;
|
||||
public static final BlockCarvable circuits = null;
|
||||
public static final BlockCarvable brickCustom = null;
|
||||
public static final BlockCarvableLayered warningSign = null;
|
||||
public static final BlockCarvable arcane = null;
|
||||
public static final BlockCarvable thaumium = null;
|
||||
public static final BlockCarvable tallow = null;
|
||||
|
||||
public static final BlockCarvable copperblock = null;
|
||||
public static final BlockCarvable bronzeblock = null;
|
||||
public static final BlockCarvable aluminumblock = null;
|
||||
public static BlockCarvableStairs[] aluminumStairs = new BlockCarvableStairs[8];
|
||||
public static final BlockCarvable leadblock = null;
|
||||
public static final BlockCarvable silverblock = null;
|
||||
public static final BlockCarvable steelblock = null;
|
||||
public static final BlockCarvable tinblock = null;
|
||||
public static final BlockCarvable uraniumblock = null;
|
||||
|
||||
public static final BlockCarvable bloodRune = null;
|
||||
public static final BlockCarvable bloodBrick = null;
|
||||
|
||||
// Holidays
|
||||
public static final BlockCarvable valentines = null;
|
||||
public static final BlockPresent present = null;
|
||||
|
||||
// Arrays can't be final because of how @ObjectHolder works
|
||||
public static BlockCarvableStairs[] marbleStairs = new BlockCarvableStairs[8];
|
||||
public static BlockCarvableStairs[] limestoneStairs = new BlockCarvableStairs[8];
|
||||
public static BlockCarvableIceStairs[] iceStairs = new BlockCarvableIceStairs[8];
|
||||
public static BlockCarvablePackedIceStairs[] packediceStairs = new BlockCarvablePackedIceStairs[8];
|
||||
|
||||
public static Block[] torches = new BlockCarvableTorch[16];
|
||||
|
||||
public static BlockCarvable[] planks = new BlockCarvable[6];
|
||||
|
||||
public static BlockCarvablePumpkin[] pumpkin = new BlockCarvablePumpkin[16];
|
||||
public static BlockCarvablePumpkin[] jackolantern = new BlockCarvablePumpkin[16];
|
||||
|
||||
// 1.7
|
||||
public static BlockCarvableGlass[] stainedGlass = new BlockCarvableGlass[4];
|
||||
public static BlockCarvablePane[] stainedGlassPane = new BlockCarvablePane[8];
|
||||
|
||||
// 1.8 or at least so you think :P
|
||||
public static final BlockCarvable granite = null;
|
||||
public static final BlockCarvable diorite = null;
|
||||
public static final BlockCarvable andesite = null;
|
||||
|
||||
// 1.9... drull pls
|
||||
public static final BlockCarvable purpur = null;
|
||||
|
||||
private ChiselBlocks() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package team.chisel.init;
|
||||
|
||||
import team.chisel.Chisel;
|
||||
import team.chisel.item.ItemBallOMoss;
|
||||
import team.chisel.item.ItemCloudInABottle;
|
||||
import team.chisel.item.ItemSmashingRock;
|
||||
import team.chisel.item.ItemUpgrade;
|
||||
import team.chisel.item.chisel.ItemChisel;
|
||||
import cpw.mods.fml.common.registry.GameRegistry.ObjectHolder;
|
||||
|
||||
@ObjectHolder(Chisel.MOD_ID)
|
||||
public final class ChiselItems {
|
||||
|
||||
public static final ItemChisel chisel = null;
|
||||
public static final ItemChisel diamondChisel = null;
|
||||
public static final ItemChisel obsidianChisel = null;
|
||||
public static final ItemCloudInABottle cloudinabottle = null;
|
||||
public static final ItemBallOMoss ballomoss = null;
|
||||
public static final ItemSmashingRock smashingrock = null;
|
||||
public static final ItemUpgrade upgrade = null;
|
||||
|
||||
private ChiselItems() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package team.chisel.init;
|
||||
|
||||
import team.chisel.Features;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class ChiselTabs {
|
||||
|
||||
private static class CustomCreativeTab extends CreativeTabs {
|
||||
|
||||
private boolean search;
|
||||
|
||||
private ItemStack stack;
|
||||
|
||||
public CustomCreativeTab(String label, boolean searchbar) {
|
||||
super(label);
|
||||
this.search = searchbar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item getTabIconItem() {
|
||||
return stack.getItem();
|
||||
}
|
||||
|
||||
public void setTabIconItemStack(ItemStack stack) {
|
||||
this.stack = stack;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getIconItemStack() {
|
||||
return stack;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public String getBackgroundImageName() {
|
||||
|
||||
return search ? "item_search.png" : super.getBackgroundImageName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSearchbarWidth() {
|
||||
|
||||
return 89;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasSearchBar() {
|
||||
|
||||
return search;
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean atLeastOneModIsLoaded = false;
|
||||
|
||||
public static final CustomCreativeTab tabChisel = new CustomCreativeTab("tabChisel", false);
|
||||
public static final CustomCreativeTab tabStoneChiselBlocks = new CustomCreativeTab("tabStoneChiselBlocks", true);
|
||||
public static final CustomCreativeTab tabWoodChiselBlocks = new CustomCreativeTab("tabWoodChiselBlocks", true);
|
||||
public static final CustomCreativeTab tabMetalChiselBlocks = new CustomCreativeTab("tabMetalChiselBlocks", true);
|
||||
public static final CustomCreativeTab tabOtherChiselBlocks = new CustomCreativeTab("tabOtherChiselBlocks", true);
|
||||
public static final CustomCreativeTab tabModdedChiselBlocks = new CustomCreativeTab("tabModdedChiselBlocks", true);
|
||||
public static final CustomCreativeTab tabStairChiselBlocks = new CustomCreativeTab("tabStairChiselBlocks", true);
|
||||
|
||||
// this serves mostly just to load the static initializers
|
||||
public static void preInit() {
|
||||
atLeastOneModIsLoaded = Features.oneModdedFeatureLoaded();
|
||||
}
|
||||
|
||||
public static void postInit() {
|
||||
|
||||
if (Features.CHISEL.enabled())
|
||||
tabChisel.setTabIconItemStack(new ItemStack(ChiselItems.chisel));
|
||||
else
|
||||
tabChisel.setTabIconItemStack(new ItemStack(Items.stick));
|
||||
if (Features.HOLYSTONE.enabled())
|
||||
tabStoneChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.holystone));
|
||||
else
|
||||
tabStoneChiselBlocks.setTabIconItemStack(new ItemStack(Blocks.stonebrick));
|
||||
if (Features.WOOD.enabled())
|
||||
tabWoodChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.planks[0], 1, 1));
|
||||
else
|
||||
tabWoodChiselBlocks.setTabIconItemStack(new ItemStack(Blocks.planks));
|
||||
if (Features.TECHNICAL.enabled())
|
||||
tabMetalChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.technical));
|
||||
else
|
||||
tabMetalChiselBlocks.setTabIconItemStack(new ItemStack(Blocks.iron_block));
|
||||
if (Features.JACKOLANTERN.enabled())
|
||||
tabOtherChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.jackolantern[0]));
|
||||
else
|
||||
tabOtherChiselBlocks.setTabIconItemStack(new ItemStack(Blocks.lit_pumpkin));
|
||||
if (Features.ICE_STAIRS.enabled())
|
||||
tabStairChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.iceStairs[0]));
|
||||
else
|
||||
tabStairChiselBlocks.setTabIconItemStack(new ItemStack(Blocks.nether_brick_stairs));
|
||||
|
||||
if (atLeastOneModIsLoaded) {
|
||||
if (Features.ARCANE.enabled()) {
|
||||
tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.arcane));
|
||||
} else if (Features.BLOOD_RUNE.enabled()) {
|
||||
tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.bloodRune));
|
||||
} else {
|
||||
if (ChiselBlocks.voidstone != null)
|
||||
tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.voidstone));
|
||||
else
|
||||
tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(Blocks.obsidian));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user