mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Fudge my life, 1.9
This commit is contained in:
parent
d25ca685cd
commit
08ea43e70d
171 changed files with 819 additions and 867 deletions
|
@ -17,10 +17,10 @@ group = "de.ellpeck.actuallyadditions"
|
||||||
archivesBaseName = "ActuallyAdditions"
|
archivesBaseName = "ActuallyAdditions"
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "1.9-12.16.0.1767-1.9"
|
version = "1.9-12.16.0.1865-1.9"
|
||||||
runDir = "idea"
|
runDir = "idea"
|
||||||
|
|
||||||
mappings = "snapshot_20160312"
|
mappings = "snapshot_20160420"
|
||||||
makeObfSourceJar = false
|
makeObfSourceJar = false
|
||||||
//useDepAts = true
|
//useDepAts = true
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,8 @@ import java.util.List;
|
||||||
|
|
||||||
public class ActuallyAdditionsAPI{
|
public class ActuallyAdditionsAPI{
|
||||||
|
|
||||||
public static final String MOD_ID = "ActuallyAdditions";
|
public static final String MOD_ID = "actuallyadditions";
|
||||||
public static final String API_ID = MOD_ID+"API";
|
public static final String API_ID = MOD_ID+"api";
|
||||||
public static final String API_VERSION = "8";
|
public static final String API_VERSION = "8";
|
||||||
|
|
||||||
public static List<CrusherRecipe> crusherRecipes = new ArrayList<CrusherRecipe>();
|
public static List<CrusherRecipe> crusherRecipes = new ArrayList<CrusherRecipe>();
|
||||||
|
|
|
@ -119,7 +119,7 @@ public class ActuallyAdditions{
|
||||||
public void serverStarting(FMLServerStartingEvent event){
|
public void serverStarting(FMLServerStartingEvent event){
|
||||||
Util.registerDispenserHandler(InitItems.itemBucketOil, new DispenserHandlerEmptyBucket());
|
Util.registerDispenserHandler(InitItems.itemBucketOil, new DispenserHandlerEmptyBucket());
|
||||||
Util.registerDispenserHandler(InitItems.itemBucketCanolaOil, new DispenserHandlerEmptyBucket());
|
Util.registerDispenserHandler(InitItems.itemBucketCanolaOil, new DispenserHandlerEmptyBucket());
|
||||||
Util.registerDispenserHandler(Items.bucket, new DispenserHandlerFillBucket());
|
Util.registerDispenserHandler(Items.BUCKET, new DispenserHandlerFillBucket());
|
||||||
Util.registerDispenserHandler(InitItems.itemFertilizer, new DispenserHandlerFertilize());
|
Util.registerDispenserHandler(InitItems.itemFertilizer, new DispenserHandlerFertilize());
|
||||||
|
|
||||||
WorldData.init(event.getServer());
|
WorldData.init(event.getServer());
|
||||||
|
@ -129,7 +129,7 @@ public class ActuallyAdditions{
|
||||||
public void missingMapping(FMLMissingMappingsEvent event){
|
public void missingMapping(FMLMissingMappingsEvent event){
|
||||||
for(FMLMissingMappingsEvent.MissingMapping mapping : event.getAll()){
|
for(FMLMissingMappingsEvent.MissingMapping mapping : event.getAll()){
|
||||||
//Ignore removal of foreign paxels
|
//Ignore removal of foreign paxels
|
||||||
if(mapping.name != null && mapping.name.toLowerCase(Locale.ROOT).startsWith(ModUtil.MOD_ID_LOWER+":")){
|
if(mapping.name != null && mapping.name.toLowerCase(Locale.ROOT).startsWith(ModUtil.MOD_ID+":")){
|
||||||
if(mapping.name.contains("paxel") || mapping.name.contains("itemSpecial") || mapping.name.contains("blockBookStand")){
|
if(mapping.name.contains("paxel") || mapping.name.contains("itemSpecial") || mapping.name.contains("blockBookStand")){
|
||||||
mapping.ignore();
|
mapping.ignore();
|
||||||
ModUtil.LOGGER.info("Missing Mapping "+mapping.name+" is getting ignored. This is intentional.");
|
ModUtil.LOGGER.info("Missing Mapping "+mapping.name+" is getting ignored. This is intentional.");
|
||||||
|
|
|
@ -30,7 +30,7 @@ public class InitAchievements{
|
||||||
achievementList.add(TheAchievements.values()[i].ach);
|
achievementList.add(TheAchievements.values()[i].ach);
|
||||||
}
|
}
|
||||||
|
|
||||||
theAchievementPage = new AchievementPage(StringUtil.localize("achievement.page."+ModUtil.MOD_ID_LOWER), achievementList.toArray(new Achievement[achievementList.size()]));
|
theAchievementPage = new AchievementPage(StringUtil.localize("achievement.page."+ModUtil.MOD_ID), achievementList.toArray(new Achievement[achievementList.size()]));
|
||||||
pageNumber = AchievementPage.getAchievementPages().size();
|
pageNumber = AchievementPage.getAchievementPages().size();
|
||||||
AchievementPage.registerAchievementPage(theAchievementPage);
|
AchievementPage.registerAchievementPage(theAchievementPage);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ public enum TheAchievements{
|
||||||
}
|
}
|
||||||
|
|
||||||
TheAchievements(String name, int x, int y, ItemStack displayStack, TheAchievements hasToHaveBefore, InitAchievements.Type type, boolean special){
|
TheAchievements(String name, int x, int y, ItemStack displayStack, TheAchievements hasToHaveBefore, InitAchievements.Type type, boolean special){
|
||||||
this.ach = new Achievement("achievement."+ModUtil.MOD_ID_LOWER+"."+name, ModUtil.MOD_ID_LOWER+"."+name, x, y, displayStack, hasToHaveBefore == null ? null : hasToHaveBefore.ach);
|
this.ach = new Achievement("achievement."+ModUtil.MOD_ID+"."+name, ModUtil.MOD_ID+"."+name, x, y, displayStack, hasToHaveBefore == null ? null : hasToHaveBefore.ach);
|
||||||
if(hasToHaveBefore == null){
|
if(hasToHaveBefore == null){
|
||||||
this.ach.initIndependentStat();
|
this.ach.initIndependentStat();
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,11 +47,11 @@ public class BlockAtomicReconstructor extends BlockContainerBase implements IHud
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 5);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 5);
|
||||||
|
|
||||||
public BlockAtomicReconstructor(String name){
|
public BlockAtomicReconstructor(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(10F);
|
this.setHardness(10F);
|
||||||
this.setResistance(80F);
|
this.setResistance(80F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -105,7 +105,7 @@ public class BlockAtomicReconstructor extends BlockContainerBase implements IHud
|
||||||
ItemStack slot = ((TileEntityAtomicReconstructor)tile).getStackInSlot(0);
|
ItemStack slot = ((TileEntityAtomicReconstructor)tile).getStackInSlot(0);
|
||||||
String strg;
|
String strg;
|
||||||
if(slot == null){
|
if(slot == null){
|
||||||
strg = StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".noLens");
|
strg = StringUtil.localize("info."+ModUtil.MOD_ID+".noLens");
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
strg = slot.getItem().getItemStackDisplayName(slot);
|
strg = slot.getItem().getItemStackDisplayName(slot);
|
||||||
|
@ -117,8 +117,8 @@ public class BlockAtomicReconstructor extends BlockContainerBase implements IHud
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Class<? extends ItemBlockBase> getItemBlock(){
|
protected ItemBlockBase getItemBlock(){
|
||||||
return TheItemBlock.class;
|
return new TheItemBlock(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -171,7 +171,7 @@ public class BlockAtomicReconstructor extends BlockContainerBase implements IHud
|
||||||
this.toPick2 = Util.RANDOM.nextInt(NAME_FLAVOR_AMOUNTS_2)+1;
|
this.toPick2 = Util.RANDOM.nextInt(NAME_FLAVOR_AMOUNTS_2)+1;
|
||||||
}
|
}
|
||||||
|
|
||||||
String base = "tile."+ModUtil.MOD_ID_LOWER+"."+((BlockAtomicReconstructor)this.block).getBaseName()+".info.";
|
String base = "tile."+ModUtil.MOD_ID+"."+((BlockAtomicReconstructor)this.block).getBaseName()+".info.";
|
||||||
list.add(StringUtil.localize(base+"1."+this.toPick1)+" "+StringUtil.localize(base+"2."+this.toPick2));
|
list.add(StringUtil.localize(base+"1."+this.toPick1)+" "+StringUtil.localize(base+"2."+this.toPick2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,12 +37,12 @@ public class BlockBreaker extends BlockContainerBase{
|
||||||
private boolean isPlacer;
|
private boolean isPlacer;
|
||||||
|
|
||||||
public BlockBreaker(boolean isPlacer, String name){
|
public BlockBreaker(boolean isPlacer, String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.isPlacer = isPlacer;
|
this.isPlacer = isPlacer;
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -29,11 +29,11 @@ import net.minecraft.world.World;
|
||||||
public class BlockCanolaPress extends BlockContainerBase{
|
public class BlockCanolaPress extends BlockContainerBase{
|
||||||
|
|
||||||
public BlockCanolaPress(String name){
|
public BlockCanolaPress(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -40,11 +40,11 @@ public class BlockCoalGenerator extends BlockContainerBase{
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 1);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 1);
|
||||||
|
|
||||||
public BlockCoalGenerator(String name){
|
public BlockCoalGenerator(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
this.setTickRandomly(true);
|
this.setTickRandomly(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,11 +36,11 @@ public class BlockCoffeeMachine extends BlockContainerBase{
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 3);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 3);
|
||||||
|
|
||||||
public BlockCoffeeMachine(String name){
|
public BlockCoffeeMachine(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class BlockColoredLamp extends BlockBase{
|
||||||
public boolean isOn;
|
public boolean isOn;
|
||||||
|
|
||||||
public BlockColoredLamp(boolean isOn, String name){
|
public BlockColoredLamp(boolean isOn, String name){
|
||||||
super(Material.redstoneLight, name);
|
super(Material.REDSTONE_LIGHT, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(0.5F);
|
this.setHardness(0.5F);
|
||||||
this.setResistance(3.0F);
|
this.setResistance(3.0F);
|
||||||
|
@ -118,8 +118,8 @@ public class BlockColoredLamp extends BlockBase{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends ItemBlockBase> getItemBlock(){
|
protected ItemBlockBase getItemBlock(){
|
||||||
return TheItemBlock.class;
|
return new TheItemBlock(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -127,8 +127,8 @@ public class BlockColoredLamp extends BlockBase{
|
||||||
ResourceLocation[] resLocs = new ResourceLocation[allLampTypes.length];
|
ResourceLocation[] resLocs = new ResourceLocation[allLampTypes.length];
|
||||||
for(int i = 0; i < allLampTypes.length; i++){
|
for(int i = 0; i < allLampTypes.length; i++){
|
||||||
String name = this.getBaseName()+allLampTypes[i].name;
|
String name = this.getBaseName()+allLampTypes[i].name;
|
||||||
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID_LOWER, name);
|
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID, name);
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID_LOWER, name));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID, name));
|
||||||
}
|
}
|
||||||
ActuallyAdditions.proxy.addRenderVariant(Item.getItemFromBlock(this), resLocs);
|
ActuallyAdditions.proxy.addRenderVariant(Item.getItemFromBlock(this), resLocs);
|
||||||
}
|
}
|
||||||
|
@ -156,7 +156,7 @@ public class BlockColoredLamp extends BlockBase{
|
||||||
if(stack.getItemDamage() >= allLampTypes.length){
|
if(stack.getItemDamage() >= allLampTypes.length){
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return StringUtil.localize(this.getUnlocalizedName(stack)+".name")+(((BlockColoredLamp)this.block).isOn ? " ("+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".onSuffix.desc")+")" : "");
|
return StringUtil.localize(this.getUnlocalizedName(stack)+".name")+(((BlockColoredLamp)this.block).isOn ? " ("+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".onSuffix.desc")+")" : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -39,11 +39,11 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
public class BlockCompost extends BlockContainerBase implements IHudDisplay{
|
public class BlockCompost extends BlockContainerBase implements IHudDisplay{
|
||||||
|
|
||||||
public BlockCompost(String name){
|
public BlockCompost(String name){
|
||||||
super(Material.wood, name);
|
super(Material.WOOD, name);
|
||||||
this.setHarvestLevel("axe", 0);
|
this.setHarvestLevel("axe", 0);
|
||||||
this.setHardness(0.5F);
|
this.setHardness(0.5F);
|
||||||
this.setResistance(5.0F);
|
this.setResistance(5.0F);
|
||||||
this.setStepSound(SoundType.WOOD);
|
this.setSoundType(SoundType.WOOD);
|
||||||
|
|
||||||
//this.setBlockBoundsForItemRender();
|
//this.setBlockBoundsForItemRender();
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class BlockCrystal extends BlockBase{
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, allCrystals.length-1);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, allCrystals.length-1);
|
||||||
|
|
||||||
public BlockCrystal(String name){
|
public BlockCrystal(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setHarvestLevel("pickaxe", 1);
|
this.setHarvestLevel("pickaxe", 1);
|
||||||
|
@ -56,8 +56,8 @@ public class BlockCrystal extends BlockBase{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends ItemBlockBase> getItemBlock(){
|
protected ItemBlockBase getItemBlock(){
|
||||||
return TheItemBlock.class;
|
return new TheItemBlock(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -65,8 +65,8 @@ public class BlockCrystal extends BlockBase{
|
||||||
ResourceLocation[] resLocs = new ResourceLocation[allCrystals.length];
|
ResourceLocation[] resLocs = new ResourceLocation[allCrystals.length];
|
||||||
for(int i = 0; i < allCrystals.length; i++){
|
for(int i = 0; i < allCrystals.length; i++){
|
||||||
String name = this.getBaseName()+allCrystals[i].name;
|
String name = this.getBaseName()+allCrystals[i].name;
|
||||||
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID_LOWER, name);
|
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID, name);
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID_LOWER, name));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID, name));
|
||||||
}
|
}
|
||||||
ActuallyAdditions.proxy.addRenderVariant(Item.getItemFromBlock(this), resLocs);
|
ActuallyAdditions.proxy.addRenderVariant(Item.getItemFromBlock(this), resLocs);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,11 +36,11 @@ public class BlockDirectionalBreaker extends BlockContainerBase{
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 5);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 5);
|
||||||
|
|
||||||
public BlockDirectionalBreaker(String name){
|
public BlockDirectionalBreaker(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -35,11 +35,11 @@ public class BlockDropper extends BlockContainerBase{
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 5);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 5);
|
||||||
|
|
||||||
public BlockDropper(String name){
|
public BlockDropper(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -32,12 +32,12 @@ public class BlockEnergizer extends BlockContainerBase{
|
||||||
private boolean isEnergizer;
|
private boolean isEnergizer;
|
||||||
|
|
||||||
public BlockEnergizer(boolean isEnergizer, String name){
|
public BlockEnergizer(boolean isEnergizer, String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.isEnergizer = isEnergizer;
|
this.isEnergizer = isEnergizer;
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(2.0F);
|
this.setHardness(2.0F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -29,11 +29,11 @@ import net.minecraft.world.World;
|
||||||
public class BlockFeeder extends BlockContainerBase{
|
public class BlockFeeder extends BlockContainerBase{
|
||||||
|
|
||||||
public BlockFeeder(String name){
|
public BlockFeeder(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(0.5F);
|
this.setHardness(0.5F);
|
||||||
this.setResistance(6.0F);
|
this.setResistance(6.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -29,11 +29,11 @@ import net.minecraft.world.World;
|
||||||
public class BlockFermentingBarrel extends BlockContainerBase{
|
public class BlockFermentingBarrel extends BlockContainerBase{
|
||||||
|
|
||||||
public BlockFermentingBarrel(String name){
|
public BlockFermentingBarrel(String name){
|
||||||
super(Material.wood, name);
|
super(Material.WOOD, name);
|
||||||
this.setHarvestLevel("axe", 0);
|
this.setHarvestLevel("axe", 0);
|
||||||
this.setHardness(0.5F);
|
this.setHardness(0.5F);
|
||||||
this.setResistance(5.0F);
|
this.setResistance(5.0F);
|
||||||
this.setStepSound(SoundType.WOOD);
|
this.setSoundType(SoundType.WOOD);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -28,11 +28,11 @@ import net.minecraft.world.World;
|
||||||
public class BlockFireworkBox extends BlockContainerBase{
|
public class BlockFireworkBox extends BlockContainerBase{
|
||||||
|
|
||||||
public BlockFireworkBox(String name){
|
public BlockFireworkBox(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -23,11 +23,11 @@ import net.minecraft.world.World;
|
||||||
public class BlockFishingNet extends BlockContainerBase{
|
public class BlockFishingNet extends BlockContainerBase{
|
||||||
|
|
||||||
public BlockFishingNet(String name){
|
public BlockFishingNet(String name){
|
||||||
super(Material.wood, name);
|
super(Material.WOOD, name);
|
||||||
this.setHarvestLevel("axe", 0);
|
this.setHarvestLevel("axe", 0);
|
||||||
this.setHardness(0.5F);
|
this.setHardness(0.5F);
|
||||||
this.setResistance(3.0F);
|
this.setResistance(3.0F);
|
||||||
this.setStepSound(SoundType.WOOD);
|
this.setSoundType(SoundType.WOOD);
|
||||||
//TODO Fix block bounds
|
//TODO Fix block bounds
|
||||||
//this.setBlockBounds(0F, 0F, 0F, 1F, 1F/16F, 1F);
|
//this.setBlockBounds(0F, 0F, 0F, 1F, 1F/16F, 1F);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,12 +38,12 @@ public class BlockFluidCollector extends BlockContainerBase{
|
||||||
private boolean isPlacer;
|
private boolean isPlacer;
|
||||||
|
|
||||||
public BlockFluidCollector(boolean isPlacer, String name){
|
public BlockFluidCollector(boolean isPlacer, String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.isPlacer = isPlacer;
|
this.isPlacer = isPlacer;
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -42,11 +42,11 @@ public class BlockFurnaceDouble extends BlockContainerBase{
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 7);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 7);
|
||||||
|
|
||||||
public BlockFurnaceDouble(String name){
|
public BlockFurnaceDouble(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
this.setTickRandomly(true);
|
this.setTickRandomly(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,11 +23,11 @@ import net.minecraft.world.World;
|
||||||
public class BlockFurnaceSolar extends BlockContainerBase{
|
public class BlockFurnaceSolar extends BlockContainerBase{
|
||||||
|
|
||||||
public BlockFurnaceSolar(String name){
|
public BlockFurnaceSolar(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
|
|
||||||
//TODO Block bounds
|
//TODO Block bounds
|
||||||
//this.setBlockBounds(0F, 0F, 0F, 1F, 6F/16F, 1F);
|
//this.setBlockBounds(0F, 0F, 0F, 1F, 6F/16F, 1F);
|
||||||
|
|
|
@ -19,11 +19,11 @@ import net.minecraft.item.ItemStack;
|
||||||
public class BlockGeneric extends BlockBase{
|
public class BlockGeneric extends BlockBase{
|
||||||
|
|
||||||
public BlockGeneric(String name){
|
public BlockGeneric(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -37,11 +37,11 @@ import java.util.ArrayList;
|
||||||
public class BlockGiantChest extends BlockContainerBase{
|
public class BlockGiantChest extends BlockContainerBase{
|
||||||
|
|
||||||
public BlockGiantChest(String name){
|
public BlockGiantChest(String name){
|
||||||
super(Material.wood, name);
|
super(Material.WOOD, name);
|
||||||
this.setHarvestLevel("axe", 0);
|
this.setHarvestLevel("axe", 0);
|
||||||
this.setHardness(0.5F);
|
this.setHardness(0.5F);
|
||||||
this.setResistance(15.0F);
|
this.setResistance(15.0F);
|
||||||
this.setStepSound(SoundType.WOOD);
|
this.setSoundType(SoundType.WOOD);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -30,11 +30,11 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
public class BlockGreenhouseGlass extends BlockContainerBase{
|
public class BlockGreenhouseGlass extends BlockContainerBase{
|
||||||
|
|
||||||
public BlockGreenhouseGlass(String name){
|
public BlockGreenhouseGlass(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(0.5F);
|
this.setHardness(0.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -41,12 +41,12 @@ public class BlockGrinder extends BlockContainerBase{
|
||||||
private final boolean isDouble;
|
private final boolean isDouble;
|
||||||
|
|
||||||
public BlockGrinder(boolean isDouble, String name){
|
public BlockGrinder(boolean isDouble, String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.isDouble = isDouble;
|
this.isDouble = isDouble;
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
this.setTickRandomly(true);
|
this.setTickRandomly(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,11 @@ import net.minecraft.world.World;
|
||||||
public class BlockHeatCollector extends BlockContainerBase{
|
public class BlockHeatCollector extends BlockContainerBase{
|
||||||
|
|
||||||
public BlockHeatCollector(String name){
|
public BlockHeatCollector(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(2.5F);
|
this.setHardness(2.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -40,11 +40,11 @@ public class BlockInputter extends BlockContainerBase{
|
||||||
public boolean isAdvanced;
|
public boolean isAdvanced;
|
||||||
|
|
||||||
public BlockInputter(boolean isAdvanced, String name){
|
public BlockInputter(boolean isAdvanced, String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
this.setTickRandomly(true);
|
this.setTickRandomly(true);
|
||||||
this.isAdvanced = isAdvanced;
|
this.isAdvanced = isAdvanced;
|
||||||
}
|
}
|
||||||
|
@ -79,8 +79,8 @@ public class BlockInputter extends BlockContainerBase{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends ItemBlockBase> getItemBlock(){
|
protected ItemBlockBase getItemBlock(){
|
||||||
return TheItemBlock.class;
|
return new TheItemBlock(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -118,7 +118,7 @@ public class BlockInputter extends BlockContainerBase{
|
||||||
this.toPick = Util.RANDOM.nextInt(NAME_FLAVOR_AMOUNTS)+1;
|
this.toPick = Util.RANDOM.nextInt(NAME_FLAVOR_AMOUNTS)+1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return StringUtil.localize(this.getUnlocalizedName()+".name")+" ("+StringUtil.localize("tile."+ModUtil.MOD_ID_LOWER+".blockInputter.add."+this.toPick+".name")+")";
|
return StringUtil.localize(this.getUnlocalizedName()+".name")+" ("+StringUtil.localize("tile."+ModUtil.MOD_ID+".blockInputter.add."+this.toPick+".name")+")";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,11 +32,11 @@ import net.minecraft.world.World;
|
||||||
public class BlockItemRepairer extends BlockContainerBase{
|
public class BlockItemRepairer extends BlockContainerBase{
|
||||||
|
|
||||||
public BlockItemRepairer(String name){
|
public BlockItemRepairer(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(20.0F);
|
this.setHardness(20.0F);
|
||||||
this.setResistance(15.0F);
|
this.setResistance(15.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
this.setTickRandomly(true);
|
this.setTickRandomly(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,11 +31,11 @@ public class BlockLampPowerer extends BlockBase{
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 5);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 5);
|
||||||
|
|
||||||
public BlockLampPowerer(String name){
|
public BlockLampPowerer(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -31,11 +31,11 @@ public class BlockLaserRelay extends BlockContainerBase{
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 5);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 5);
|
||||||
|
|
||||||
public BlockLaserRelay(String name){
|
public BlockLaserRelay(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -31,11 +31,11 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
public class BlockLavaFactoryController extends BlockContainerBase implements IHudDisplay{
|
public class BlockLavaFactoryController extends BlockContainerBase implements IHudDisplay{
|
||||||
|
|
||||||
public BlockLavaFactoryController(String name){
|
public BlockLavaFactoryController(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(4.5F);
|
this.setHardness(4.5F);
|
||||||
this.setResistance(20.0F);
|
this.setResistance(20.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -55,10 +55,10 @@ public class BlockLavaFactoryController extends BlockContainerBase implements IH
|
||||||
if(factory != null){
|
if(factory != null){
|
||||||
int state = factory.isMultiblock();
|
int state = factory.isMultiblock();
|
||||||
if(state == TileEntityLavaFactoryController.NOT_MULTI){
|
if(state == TileEntityLavaFactoryController.NOT_MULTI){
|
||||||
StringUtil.drawSplitString(minecraft.fontRendererObj, StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".factory.notPart.desc"), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2+5, 200, StringUtil.DECIMAL_COLOR_WHITE, true);
|
StringUtil.drawSplitString(minecraft.fontRendererObj, StringUtil.localize("tooltip."+ModUtil.MOD_ID+".factory.notPart.desc"), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2+5, 200, StringUtil.DECIMAL_COLOR_WHITE, true);
|
||||||
}
|
}
|
||||||
else if(state == TileEntityLavaFactoryController.HAS_AIR || state == TileEntityLavaFactoryController.HAS_LAVA){
|
else if(state == TileEntityLavaFactoryController.HAS_AIR || state == TileEntityLavaFactoryController.HAS_LAVA){
|
||||||
StringUtil.drawSplitString(minecraft.fontRendererObj, StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".factory.works.desc"), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2+5, 200, StringUtil.DECIMAL_COLOR_WHITE, true);
|
StringUtil.drawSplitString(minecraft.fontRendererObj, StringUtil.localize("tooltip."+ModUtil.MOD_ID+".factory.works.desc"), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2+5, 200, StringUtil.DECIMAL_COLOR_WHITE, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,11 +24,11 @@ import net.minecraft.world.World;
|
||||||
public class BlockLeafGenerator extends BlockContainerBase{
|
public class BlockLeafGenerator extends BlockContainerBase{
|
||||||
|
|
||||||
public BlockLeafGenerator(String name){
|
public BlockLeafGenerator(String name){
|
||||||
super(Material.iron, name);
|
super(Material.IRON, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(5.0F);
|
this.setHardness(5.0F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.METAL);
|
this.setSoundType(SoundType.METAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -37,11 +37,11 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
public class BlockMiner extends BlockContainerBase implements IHudDisplay{
|
public class BlockMiner extends BlockContainerBase implements IHudDisplay{
|
||||||
|
|
||||||
public BlockMiner(String name){
|
public BlockMiner(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(8F);
|
this.setHardness(8F);
|
||||||
this.setResistance(30F);
|
this.setResistance(30F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class BlockMisc extends BlockBase{
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, allMiscBlocks.length-1);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, allMiscBlocks.length-1);
|
||||||
|
|
||||||
public BlockMisc(String name){
|
public BlockMisc(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setHarvestLevel("pickaxe", 1);
|
this.setHarvestLevel("pickaxe", 1);
|
||||||
|
@ -56,8 +56,8 @@ public class BlockMisc extends BlockBase{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends ItemBlockBase> getItemBlock(){
|
protected ItemBlockBase getItemBlock(){
|
||||||
return TheItemBlock.class;
|
return new TheItemBlock(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -65,8 +65,8 @@ public class BlockMisc extends BlockBase{
|
||||||
ResourceLocation[] resLocs = new ResourceLocation[allMiscBlocks.length];
|
ResourceLocation[] resLocs = new ResourceLocation[allMiscBlocks.length];
|
||||||
for(int i = 0; i < allMiscBlocks.length; i++){
|
for(int i = 0; i < allMiscBlocks.length; i++){
|
||||||
String name = this.getBaseName()+allMiscBlocks[i].name;
|
String name = this.getBaseName()+allMiscBlocks[i].name;
|
||||||
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID_LOWER, name);
|
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID, name);
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID_LOWER, name));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID, name));
|
||||||
}
|
}
|
||||||
ActuallyAdditions.proxy.addRenderVariant(Item.getItemFromBlock(this), resLocs);
|
ActuallyAdditions.proxy.addRenderVariant(Item.getItemFromBlock(this), resLocs);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,11 +40,11 @@ public class BlockOilGenerator extends BlockContainerBase{
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 1);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 1);
|
||||||
|
|
||||||
public BlockOilGenerator(String name){
|
public BlockOilGenerator(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
this.setTickRandomly(true);
|
this.setTickRandomly(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,12 +43,12 @@ public class BlockPhantom extends BlockContainerBase implements IHudDisplay{
|
||||||
public int range;
|
public int range;
|
||||||
|
|
||||||
public BlockPhantom(Type type, String name){
|
public BlockPhantom(Type type, String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(4.5F);
|
this.setHardness(4.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
|
|
||||||
if(type == Type.FACE || type == Type.LIQUIFACE || type == Type.ENERGYFACE){
|
if(type == Type.FACE || type == Type.LIQUIFACE || type == Type.ENERGYFACE){
|
||||||
this.range = TileEntityPhantomface.RANGE;
|
this.range = TileEntityPhantomface.RANGE;
|
||||||
|
@ -108,22 +108,22 @@ public class BlockPhantom extends BlockContainerBase implements IHudDisplay{
|
||||||
if(tile != null){
|
if(tile != null){
|
||||||
if(tile instanceof IPhantomTile){
|
if(tile instanceof IPhantomTile){
|
||||||
IPhantomTile phantom = (IPhantomTile)tile;
|
IPhantomTile phantom = (IPhantomTile)tile;
|
||||||
minecraft.fontRendererObj.drawStringWithShadow(TextFormatting.GOLD+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".blockPhantomRange.desc")+": "+phantom.getRange(), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2-40, StringUtil.DECIMAL_COLOR_WHITE);
|
minecraft.fontRendererObj.drawStringWithShadow(TextFormatting.GOLD+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".blockPhantomRange.desc")+": "+phantom.getRange(), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2-40, StringUtil.DECIMAL_COLOR_WHITE);
|
||||||
if(phantom.hasBoundPosition()){
|
if(phantom.hasBoundPosition()){
|
||||||
int distance = (int)new Vec3d(posHit.getBlockPos()).distanceTo(new Vec3d(phantom.getBoundPosition()));
|
int distance = (int)new Vec3d(posHit.getBlockPos()).distanceTo(new Vec3d(phantom.getBoundPosition()));
|
||||||
Item item = PosUtil.getItemBlock(phantom.getBoundPosition(), minecraft.theWorld);
|
Item item = PosUtil.getItemBlock(phantom.getBoundPosition(), minecraft.theWorld);
|
||||||
String name = item == null ? "Absolutely Nothing" : item.getItemStackDisplayName(new ItemStack(PosUtil.getBlock(phantom.getBoundPosition(), minecraft.theWorld), 1, PosUtil.getMetadata(phantom.getBoundPosition(), minecraft.theWorld)));
|
String name = item == null ? "Absolutely Nothing" : item.getItemStackDisplayName(new ItemStack(PosUtil.getBlock(phantom.getBoundPosition(), minecraft.theWorld), 1, PosUtil.getMetadata(phantom.getBoundPosition(), minecraft.theWorld)));
|
||||||
StringUtil.drawSplitString(minecraft.fontRendererObj, StringUtil.localizeFormatted("tooltip."+ModUtil.MOD_ID_LOWER+".phantom.blockInfo.desc", name, phantom.getBoundPosition().getX(), phantom.getBoundPosition().getY(), phantom.getBoundPosition().getZ(), distance), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2-30, 200, StringUtil.DECIMAL_COLOR_WHITE, true);
|
StringUtil.drawSplitString(minecraft.fontRendererObj, StringUtil.localizeFormatted("tooltip."+ModUtil.MOD_ID+".phantom.blockInfo.desc", name, phantom.getBoundPosition().getX(), phantom.getBoundPosition().getY(), phantom.getBoundPosition().getZ(), distance), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2-30, 200, StringUtil.DECIMAL_COLOR_WHITE, true);
|
||||||
|
|
||||||
if(phantom.isBoundThingInRange()){
|
if(phantom.isBoundThingInRange()){
|
||||||
StringUtil.drawSplitString(minecraft.fontRendererObj, TextFormatting.DARK_GREEN+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".phantom.connectedRange.desc"), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2+25, 200, StringUtil.DECIMAL_COLOR_WHITE, true);
|
StringUtil.drawSplitString(minecraft.fontRendererObj, TextFormatting.DARK_GREEN+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".phantom.connectedRange.desc"), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2+25, 200, StringUtil.DECIMAL_COLOR_WHITE, true);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
StringUtil.drawSplitString(minecraft.fontRendererObj, TextFormatting.DARK_RED+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".phantom.connectedNoRange.desc"), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2+25, 200, StringUtil.DECIMAL_COLOR_WHITE, true);
|
StringUtil.drawSplitString(minecraft.fontRendererObj, TextFormatting.DARK_RED+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".phantom.connectedNoRange.desc"), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2+25, 200, StringUtil.DECIMAL_COLOR_WHITE, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
minecraft.fontRendererObj.drawStringWithShadow(TextFormatting.RED+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".phantom.notConnected.desc"), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2+25, StringUtil.DECIMAL_COLOR_WHITE);
|
minecraft.fontRendererObj.drawStringWithShadow(TextFormatting.RED+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".phantom.notConnected.desc"), resolution.getScaledWidth()/2+5, resolution.getScaledHeight()/2+25, StringUtil.DECIMAL_COLOR_WHITE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,11 +23,11 @@ import net.minecraft.world.World;
|
||||||
public class BlockPhantomBooster extends BlockContainerBase{
|
public class BlockPhantomBooster extends BlockContainerBase{
|
||||||
|
|
||||||
public BlockPhantomBooster(String name){
|
public BlockPhantomBooster(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
|
|
||||||
//TODO Fix block bounds
|
//TODO Fix block bounds
|
||||||
//float f = 1F/16F;
|
//float f = 1F/16F;
|
||||||
|
|
|
@ -29,11 +29,11 @@ import net.minecraft.world.World;
|
||||||
public class BlockRangedCollector extends BlockContainerBase{
|
public class BlockRangedCollector extends BlockContainerBase{
|
||||||
|
|
||||||
public BlockRangedCollector(String name){
|
public BlockRangedCollector(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -85,8 +85,8 @@ public class BlockSlabs extends BlockBase{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends ItemBlockBase> getItemBlock(){
|
protected ItemBlockBase getItemBlock(){
|
||||||
return TheItemBlock.class;
|
return new TheItemBlock(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -45,10 +45,10 @@ public class BlockSmileyCloud extends BlockContainerBase{
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 7);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 7);
|
||||||
|
|
||||||
public BlockSmileyCloud(String name){
|
public BlockSmileyCloud(String name){
|
||||||
super(Material.cloth, name);
|
super(Material.CLOTH, name);
|
||||||
this.setHardness(0.5F);
|
this.setHardness(0.5F);
|
||||||
this.setResistance(5.0F);
|
this.setResistance(5.0F);
|
||||||
this.setStepSound(SoundType.CLOTH);
|
this.setSoundType(SoundType.CLOTH);
|
||||||
this.setTickRandomly(true);
|
this.setTickRandomly(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,11 +41,11 @@ public class BlockTreasureChest extends BlockBase{
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 3);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 3);
|
||||||
|
|
||||||
public BlockTreasureChest(String name){
|
public BlockTreasureChest(String name){
|
||||||
super(Material.wood, name);
|
super(Material.WOOD, name);
|
||||||
this.setHarvestLevel("axe", 0);
|
this.setHarvestLevel("axe", 0);
|
||||||
this.setHardness(300.0F);
|
this.setHardness(300.0F);
|
||||||
this.setResistance(50.0F);
|
this.setResistance(50.0F);
|
||||||
this.setStepSound(SoundType.WOOD);
|
this.setSoundType(SoundType.WOOD);
|
||||||
this.setTickRandomly(true);
|
this.setTickRandomly(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class BlockWallAA extends BlockBase{
|
||||||
|
|
||||||
this.setHardness(1.5F);
|
this.setHardness(1.5F);
|
||||||
this.setResistance(10F);
|
this.setResistance(10F);
|
||||||
this.setStepSound(base.getStepSound());
|
this.setSoundType(base.getSoundType());
|
||||||
|
|
||||||
this.setDefaultState(this.blockState.getBaseState().withProperty(BlockWall.UP, false).withProperty(BlockWall.NORTH, false).withProperty(BlockWall.EAST, false).withProperty(BlockWall.SOUTH, false).withProperty(BlockWall.WEST, false));
|
this.setDefaultState(this.blockState.getBaseState().withProperty(BlockWall.UP, false).withProperty(BlockWall.NORTH, false).withProperty(BlockWall.EAST, false).withProperty(BlockWall.SOUTH, false).withProperty(BlockWall.WEST, false));
|
||||||
}
|
}
|
||||||
|
@ -129,7 +129,7 @@ public class BlockWallAA extends BlockBase{
|
||||||
public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos){
|
public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos){
|
||||||
Block block = PosUtil.getBlock(pos, worldIn);
|
Block block = PosUtil.getBlock(pos, worldIn);
|
||||||
IBlockState state = worldIn.getBlockState(pos);
|
IBlockState state = worldIn.getBlockState(pos);
|
||||||
return block != Blocks.barrier && (!(block != this && !(block instanceof BlockFenceGate)) || ((block.getMaterial(state).isOpaque() && block.isFullCube(state)) && block.getMaterial(state) != Material.gourd));
|
return block != Blocks.BARRIER && (!(block != this && !(block instanceof BlockFenceGate)) || ((block.getMaterial(state).isOpaque() && block.isFullCube(state)) && block.getMaterial(state) != Material.GOURD));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -47,13 +47,13 @@ public class BlockWildPlant extends BlockBushBase{
|
||||||
|
|
||||||
public BlockWildPlant(String name){
|
public BlockWildPlant(String name){
|
||||||
super(name);
|
super(name);
|
||||||
this.setStepSound(SoundType.PLANT);
|
this.setSoundType(SoundType.PLANT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canBlockStay(World world, BlockPos pos, IBlockState state){
|
public boolean canBlockStay(World world, BlockPos pos, IBlockState state){
|
||||||
BlockPos offset = PosUtil.offset(pos, 0, -1, 0);
|
BlockPos offset = PosUtil.offset(pos, 0, -1, 0);
|
||||||
return PosUtil.getMetadata(state) == TheWildPlants.RICE.ordinal() ? PosUtil.getMaterial(offset, world) == Material.water : PosUtil.getBlock(offset, world).canSustainPlant(world.getBlockState(offset), world, offset, EnumFacing.UP, this);
|
return PosUtil.getMetadata(state) == TheWildPlants.RICE.ordinal() ? PosUtil.getMaterial(offset, world) == Material.WATER : PosUtil.getBlock(offset, world).canSustainPlant(world.getBlockState(offset), world, offset, EnumFacing.UP, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -83,8 +83,8 @@ public class BlockWildPlant extends BlockBushBase{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends ItemBlockBase> getItemBlock(){
|
protected ItemBlockBase getItemBlock(){
|
||||||
return TheItemBlock.class;
|
return new TheItemBlock(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -97,8 +97,8 @@ public class BlockWildPlant extends BlockBushBase{
|
||||||
ResourceLocation[] resLocs = new ResourceLocation[allWildPlants.length];
|
ResourceLocation[] resLocs = new ResourceLocation[allWildPlants.length];
|
||||||
for(int i = 0; i < allWildPlants.length; i++){
|
for(int i = 0; i < allWildPlants.length; i++){
|
||||||
String name = this.getBaseName()+allWildPlants[i].name;
|
String name = this.getBaseName()+allWildPlants[i].name;
|
||||||
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID_LOWER, name);
|
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID, name);
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID_LOWER, name));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID, name));
|
||||||
}
|
}
|
||||||
ActuallyAdditions.proxy.addRenderVariant(Item.getItemFromBlock(this), resLocs);
|
ActuallyAdditions.proxy.addRenderVariant(Item.getItemFromBlock(this), resLocs);
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,11 +39,11 @@ public class BlockXPSolidifier extends BlockContainerBase{
|
||||||
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 3);
|
private static final PropertyInteger META = PropertyInteger.create("meta", 0, 3);
|
||||||
|
|
||||||
public BlockXPSolidifier(String name){
|
public BlockXPSolidifier(String name){
|
||||||
super(Material.rock, name);
|
super(Material.ROCK, name);
|
||||||
this.setHarvestLevel("pickaxe", 0);
|
this.setHarvestLevel("pickaxe", 0);
|
||||||
this.setHardness(2.5F);
|
this.setHardness(2.5F);
|
||||||
this.setResistance(10.0F);
|
this.setResistance(10.0F);
|
||||||
this.setStepSound(SoundType.STONE);
|
this.setSoundType(SoundType.STONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -43,8 +43,8 @@ public class BlockBase extends Block{
|
||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Class<? extends ItemBlockBase> getItemBlock(){
|
protected ItemBlockBase getItemBlock(){
|
||||||
return ItemBlockBase.class;
|
return new ItemBlockBase(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean shouldAddCreative(){
|
public boolean shouldAddCreative(){
|
||||||
|
@ -52,7 +52,7 @@ public class BlockBase extends Block{
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void registerRendering(){
|
protected void registerRendering(){
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ResourceLocation(ModUtil.MOD_ID_LOWER, this.getBaseName()));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ResourceLocation(ModUtil.MOD_ID, this.getBaseName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EnumRarity getRarity(ItemStack stack){
|
public EnumRarity getRarity(ItemStack stack){
|
||||||
|
|
|
@ -28,7 +28,7 @@ public class BlockBushBase extends BlockBush{
|
||||||
|
|
||||||
public BlockBushBase(String name){
|
public BlockBushBase(String name){
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.setStepSound(SoundType.PLANT);
|
this.setSoundType(SoundType.PLANT);
|
||||||
|
|
||||||
this.register();
|
this.register();
|
||||||
}
|
}
|
||||||
|
@ -43,8 +43,8 @@ public class BlockBushBase extends BlockBush{
|
||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Class<? extends ItemBlockBase> getItemBlock(){
|
protected ItemBlockBase getItemBlock(){
|
||||||
return ItemBlockBase.class;
|
return new ItemBlockBase(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean shouldAddCreative(){
|
public boolean shouldAddCreative(){
|
||||||
|
@ -52,7 +52,7 @@ public class BlockBushBase extends BlockBush{
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void registerRendering(){
|
protected void registerRendering(){
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ResourceLocation(ModUtil.MOD_ID_LOWER, this.getBaseName()));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ResourceLocation(ModUtil.MOD_ID, this.getBaseName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EnumRarity getRarity(ItemStack stack){
|
public EnumRarity getRarity(ItemStack stack){
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
package de.ellpeck.actuallyadditions.mod.blocks.base;
|
package de.ellpeck.actuallyadditions.mod.blocks.base;
|
||||||
|
|
||||||
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
||||||
import de.ellpeck.actuallyadditions.mod.creative.CreativeTab;
|
|
||||||
import de.ellpeck.actuallyadditions.mod.tile.*;
|
import de.ellpeck.actuallyadditions.mod.tile.*;
|
||||||
|
import de.ellpeck.actuallyadditions.mod.util.ItemUtil;
|
||||||
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
||||||
import de.ellpeck.actuallyadditions.mod.util.Util;
|
import de.ellpeck.actuallyadditions.mod.util.Util;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
@ -20,7 +20,6 @@ import net.minecraft.block.BlockContainer;
|
||||||
import net.minecraft.block.BlockRedstoneTorch;
|
import net.minecraft.block.BlockRedstoneTorch;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.properties.PropertyInteger;
|
import net.minecraft.block.properties.PropertyInteger;
|
||||||
import net.minecraft.block.state.BlockStateBase;
|
|
||||||
import net.minecraft.block.state.BlockStateContainer;
|
import net.minecraft.block.state.BlockStateContainer;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
|
@ -38,7 +37,6 @@ import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.fluids.FluidStack;
|
import net.minecraftforge.fluids.FluidStack;
|
||||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
@ -55,14 +53,7 @@ public abstract class BlockContainerBase extends BlockContainer{
|
||||||
}
|
}
|
||||||
|
|
||||||
private void register(){
|
private void register(){
|
||||||
this.setUnlocalizedName(ModUtil.MOD_ID_LOWER+"."+this.getBaseName());
|
ItemUtil.registerBlock(this, this.getItemBlock(), this.getBaseName(), this.shouldAddCreative());
|
||||||
GameRegistry.registerBlock(this, this.getItemBlock(), this.getBaseName());
|
|
||||||
if(this.shouldAddCreative()){
|
|
||||||
this.setCreativeTab(CreativeTab.instance);
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
this.setCreativeTab(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.registerRendering();
|
this.registerRendering();
|
||||||
}
|
}
|
||||||
|
@ -71,8 +62,8 @@ public abstract class BlockContainerBase extends BlockContainer{
|
||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Class<? extends ItemBlockBase> getItemBlock(){
|
protected ItemBlockBase getItemBlock(){
|
||||||
return ItemBlockBase.class;
|
return new ItemBlockBase(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean shouldAddCreative(){
|
public boolean shouldAddCreative(){
|
||||||
|
@ -80,7 +71,7 @@ public abstract class BlockContainerBase extends BlockContainer{
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void registerRendering(){
|
protected void registerRendering(){
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ResourceLocation(ModUtil.MOD_ID_LOWER, this.getBaseName()));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ResourceLocation(ModUtil.MOD_ID, this.getBaseName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EnumRarity getRarity(ItemStack stack){
|
public EnumRarity getRarity(ItemStack stack){
|
||||||
|
|
|
@ -42,8 +42,8 @@ public class BlockFluidFlowing extends BlockFluidClassic{
|
||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Class<? extends ItemBlockBase> getItemBlock(){
|
protected ItemBlockBase getItemBlock(){
|
||||||
return ItemBlockBase.class;
|
return new ItemBlockBase(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean shouldAddCreative(){
|
public boolean shouldAddCreative(){
|
||||||
|
|
|
@ -57,8 +57,8 @@ public class BlockPlant extends BlockCrops{
|
||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Class<? extends ItemBlockBase> getItemBlock(){
|
protected ItemBlockBase getItemBlock(){
|
||||||
return ItemBlockBase.class;
|
return new ItemBlockBase(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean shouldAddCreative(){
|
public boolean shouldAddCreative(){
|
||||||
|
@ -66,7 +66,7 @@ public class BlockPlant extends BlockCrops{
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void registerRendering(){
|
protected void registerRendering(){
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ResourceLocation(ModUtil.MOD_ID_LOWER, this.getBaseName()));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ResourceLocation(ModUtil.MOD_ID, this.getBaseName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EnumRarity getRarity(ItemStack stack){
|
public EnumRarity getRarity(ItemStack stack){
|
||||||
|
|
|
@ -46,8 +46,8 @@ public class BlockStair extends BlockStairs{
|
||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Class<? extends ItemBlockBase> getItemBlock(){
|
protected ItemBlockBase getItemBlock(){
|
||||||
return ItemBlockBase.class;
|
return new ItemBlockBase(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean shouldAddCreative(){
|
public boolean shouldAddCreative(){
|
||||||
|
@ -55,7 +55,7 @@ public class BlockStair extends BlockStairs{
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void registerRendering(){
|
protected void registerRendering(){
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ResourceLocation(ModUtil.MOD_ID_LOWER, this.getBaseName()));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ResourceLocation(ModUtil.MOD_ID, this.getBaseName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public EnumRarity getRarity(ItemStack stack){
|
public EnumRarity getRarity(ItemStack stack){
|
||||||
|
|
|
@ -34,7 +34,7 @@ public class RenderCompost extends TileEntitySpecialRenderer{
|
||||||
GlStateManager.translate(0F, 1F, 0F);
|
GlStateManager.translate(0F, 1F, 0F);
|
||||||
}
|
}
|
||||||
GlStateManager.scale(1.5F, i, 1.5F);
|
GlStateManager.scale(1.5F, i, 1.5F);
|
||||||
AssetUtil.renderBlockInWorld(Blocks.dirt, compost.getStackInSlot(0).getItem() == InitItems.itemFertilizer ? 1 : 0);
|
AssetUtil.renderBlockInWorld(Blocks.DIRT, compost.getStackInSlot(0).getItem() == InitItems.itemFertilizer ? 1 : 0);
|
||||||
GlStateManager.popMatrix();
|
GlStateManager.popMatrix();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,9 +80,9 @@ public class BookletUtils{
|
||||||
|
|
||||||
//Draw No Entry title
|
//Draw No Entry title
|
||||||
if(booklet.currentEntrySet.entry == null){
|
if(booklet.currentEntrySet.entry == null){
|
||||||
String strg = TextFormatting.DARK_GREEN+StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".booklet.manualName.1");
|
String strg = TextFormatting.DARK_GREEN+StringUtil.localize("info."+ModUtil.MOD_ID+".booklet.manualName.1");
|
||||||
booklet.getFontRenderer().drawString(strg, booklet.guiLeft+booklet.xSize/2-booklet.getFontRenderer().getStringWidth(strg)/2-3, booklet.guiTop+12, 0);
|
booklet.getFontRenderer().drawString(strg, booklet.guiLeft+booklet.xSize/2-booklet.getFontRenderer().getStringWidth(strg)/2-3, booklet.guiTop+12, 0);
|
||||||
strg = TextFormatting.DARK_GREEN+StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".booklet.manualName.2");
|
strg = TextFormatting.DARK_GREEN+StringUtil.localize("info."+ModUtil.MOD_ID+".booklet.manualName.2");
|
||||||
booklet.getFontRenderer().drawString(strg, booklet.guiLeft+booklet.xSize/2-booklet.getFontRenderer().getStringWidth(strg)/2-3, booklet.guiTop+12+booklet.getFontRenderer().FONT_HEIGHT, 0);
|
booklet.getFontRenderer().drawString(strg, booklet.guiLeft+booklet.xSize/2-booklet.getFontRenderer().getStringWidth(strg)/2-3, booklet.guiTop+12+booklet.getFontRenderer().FONT_HEIGHT, 0);
|
||||||
|
|
||||||
String version;
|
String version;
|
||||||
|
@ -103,13 +103,13 @@ public class BookletUtils{
|
||||||
version = "Dev's Edition";
|
version = "Dev's Edition";
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
version = StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".booklet.edition")+" "+ModUtil.VERSION.substring(ModUtil.VERSION.indexOf("r")+1);
|
version = StringUtil.localize("info."+ModUtil.MOD_ID+".booklet.edition")+" "+ModUtil.VERSION.substring(ModUtil.VERSION.indexOf("r")+1);
|
||||||
}
|
}
|
||||||
strg = TextFormatting.GOLD+TextFormatting.ITALIC.toString()+"-"+version+"-";
|
strg = TextFormatting.GOLD+TextFormatting.ITALIC.toString()+"-"+version+"-";
|
||||||
booklet.getFontRenderer().drawString(strg, booklet.guiLeft+booklet.xSize/2-booklet.getFontRenderer().getStringWidth(strg)/2-3, booklet.guiTop+33, 0);
|
booklet.getFontRenderer().drawString(strg, booklet.guiLeft+booklet.xSize/2-booklet.getFontRenderer().getStringWidth(strg)/2-3, booklet.guiTop+33, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
String strg = booklet.currentEntrySet.chapter == null ? (booklet.currentEntrySet.entry == null ? StringUtil.localize("itemGroup."+ModUtil.MOD_ID_LOWER) : booklet.currentEntrySet.entry.getLocalizedName()) : booklet.currentEntrySet.chapter.getLocalizedName();
|
String strg = booklet.currentEntrySet.chapter == null ? (booklet.currentEntrySet.entry == null ? StringUtil.localize("itemGroup."+ModUtil.MOD_ID) : booklet.currentEntrySet.entry.getLocalizedName()) : booklet.currentEntrySet.chapter.getLocalizedName();
|
||||||
booklet.drawCenteredString(booklet.getFontRenderer(), strg, booklet.guiLeft+booklet.xSize/2, booklet.guiTop-9, StringUtil.DECIMAL_COLOR_WHITE);
|
booklet.drawCenteredString(booklet.getFontRenderer(), strg, booklet.guiLeft+booklet.xSize/2, booklet.guiTop-9, StringUtil.DECIMAL_COLOR_WHITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -177,10 +177,10 @@ public class BookletUtils{
|
||||||
}
|
}
|
||||||
//Renders the amount of words and chars the book has
|
//Renders the amount of words and chars the book has
|
||||||
else{
|
else{
|
||||||
String wordCountString = StringUtil.localizeFormatted("booklet."+ModUtil.MOD_ID_LOWER+".amountOfWords", ClientProxy.bookletWordCount);
|
String wordCountString = StringUtil.localizeFormatted("booklet."+ModUtil.MOD_ID+".amountOfWords", ClientProxy.bookletWordCount);
|
||||||
booklet.getFontRenderer().drawString(TextFormatting.ITALIC+wordCountString, booklet.guiLeft+booklet.xSize-booklet.getFontRenderer().getStringWidth(wordCountString)-15, booklet.guiTop+booklet.ySize-18-booklet.getFontRenderer().FONT_HEIGHT, 0);
|
booklet.getFontRenderer().drawString(TextFormatting.ITALIC+wordCountString, booklet.guiLeft+booklet.xSize-booklet.getFontRenderer().getStringWidth(wordCountString)-15, booklet.guiTop+booklet.ySize-18-booklet.getFontRenderer().FONT_HEIGHT, 0);
|
||||||
|
|
||||||
String charCountString = StringUtil.localizeFormatted("booklet."+ModUtil.MOD_ID_LOWER+".amountOfChars", ClientProxy.bookletCharCount);
|
String charCountString = StringUtil.localizeFormatted("booklet."+ModUtil.MOD_ID+".amountOfChars", ClientProxy.bookletCharCount);
|
||||||
booklet.getFontRenderer().drawString(TextFormatting.ITALIC+charCountString, booklet.guiLeft+booklet.xSize-booklet.getFontRenderer().getStringWidth(charCountString)-15, booklet.guiTop+booklet.ySize-18, 0);
|
booklet.getFontRenderer().drawString(TextFormatting.ITALIC+charCountString, booklet.guiLeft+booklet.xSize-booklet.getFontRenderer().getStringWidth(charCountString)-15, booklet.guiTop+booklet.ySize-18, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,8 +26,6 @@ import de.ellpeck.actuallyadditions.mod.util.AssetUtil;
|
||||||
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
||||||
import de.ellpeck.actuallyadditions.mod.util.StringUtil;
|
import de.ellpeck.actuallyadditions.mod.util.StringUtil;
|
||||||
import de.ellpeck.actuallyadditions.mod.util.playerdata.PersistentClientData;
|
import de.ellpeck.actuallyadditions.mod.util.playerdata.PersistentClientData;
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraft.client.audio.PositionedSoundRecord;
|
|
||||||
import net.minecraft.client.gui.FontRenderer;
|
import net.minecraft.client.gui.FontRenderer;
|
||||||
import net.minecraft.client.gui.GuiButton;
|
import net.minecraft.client.gui.GuiButton;
|
||||||
import net.minecraft.client.gui.GuiScreen;
|
import net.minecraft.client.gui.GuiScreen;
|
||||||
|
@ -165,7 +163,7 @@ public class GuiBooklet extends GuiScreen implements IBookletGui{
|
||||||
if(AND_HIS_NAME_IS.length > this.hisNameIsAt && AND_HIS_NAME_IS[this.hisNameIsAt] == key){
|
if(AND_HIS_NAME_IS.length > this.hisNameIsAt && AND_HIS_NAME_IS[this.hisNameIsAt] == key){
|
||||||
if(this.hisNameIsAt+1 >= AND_HIS_NAME_IS.length){
|
if(this.hisNameIsAt+1 >= AND_HIS_NAME_IS.length){
|
||||||
//TODO Fix sound
|
//TODO Fix sound
|
||||||
//Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation(ModUtil.MOD_ID_LOWER, "duhDuhDuhDuuuh")));
|
//Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation(ModUtil.MOD_ID, "duhDuhDuhDuuuh")));
|
||||||
ModUtil.LOGGER.info("AND HIS NAME IS JOHN CENA DUH DUH DUH DUUUH");
|
ModUtil.LOGGER.info("AND HIS NAME IS JOHN CENA DUH DUH DUH DUUUH");
|
||||||
this.hisNameIsAt = 0;
|
this.hisNameIsAt = 0;
|
||||||
}
|
}
|
||||||
|
@ -286,12 +284,12 @@ public class GuiBooklet extends GuiScreen implements IBookletGui{
|
||||||
|
|
||||||
ArrayList updateHover = new ArrayList();
|
ArrayList updateHover = new ArrayList();
|
||||||
if(UpdateChecker.checkFailed){
|
if(UpdateChecker.checkFailed){
|
||||||
updateHover.add(ITextComponent.Serializer.jsonToComponent(StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".update.failed")).getFormattedText());
|
updateHover.add(ITextComponent.Serializer.jsonToComponent(StringUtil.localize("info."+ModUtil.MOD_ID+".update.failed")).getFormattedText());
|
||||||
}
|
}
|
||||||
else if(UpdateChecker.needsUpdateNotify){
|
else if(UpdateChecker.needsUpdateNotify){
|
||||||
updateHover.add(ITextComponent.Serializer.jsonToComponent(StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".update.generic")).getFormattedText());
|
updateHover.add(ITextComponent.Serializer.jsonToComponent(StringUtil.localize("info."+ModUtil.MOD_ID+".update.generic")).getFormattedText());
|
||||||
updateHover.add(ITextComponent.Serializer.jsonToComponent(StringUtil.localizeFormatted("info."+ModUtil.MOD_ID_LOWER+".update.versionCompare", ModUtil.VERSION, UpdateChecker.updateVersionString)).getFormattedText());
|
updateHover.add(ITextComponent.Serializer.jsonToComponent(StringUtil.localizeFormatted("info."+ModUtil.MOD_ID+".update.versionCompare", ModUtil.VERSION, UpdateChecker.updateVersionString)).getFormattedText());
|
||||||
updateHover.add(StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".update.buttonOptions"));
|
updateHover.add(StringUtil.localize("info."+ModUtil.MOD_ID+".update.buttonOptions"));
|
||||||
}
|
}
|
||||||
this.buttonUpdate = new TexturedButton(4, this.guiLeft-11, this.guiTop-11, 245, 0, 11, 11, updateHover);
|
this.buttonUpdate = new TexturedButton(4, this.guiLeft-11, this.guiTop-11, 245, 0, 11, 11, updateHover);
|
||||||
this.buttonUpdate.visible = UpdateChecker.needsUpdateNotify;
|
this.buttonUpdate.visible = UpdateChecker.needsUpdateNotify;
|
||||||
|
|
|
@ -62,7 +62,7 @@ public class InitBooklet{
|
||||||
new BookletChapter("crystals", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(InitBlocks.blockAtomicReconstructor), new PageTextOnly(1).addTextReplacement("<rf>", TileEntityAtomicReconstructor.ENERGY_USE), new PageTextOnly(2), new PageTextOnly(3), new PagePicture(4, "pageAtomicReconstructor", 0).setNoText(), new PageTextOnly(5), new PageCrafting(6, BlockCrafting.recipeAtomicReconstructor).setPageStacksWildcard(), new PageCrafting(7, MiscCrafting.recipesCrystals).setNoText(), new PageCrafting(8, MiscCrafting.recipesCrystalBlocks).setNoText(), new PageReconstructor(9, LensNoneRecipeHandler.mainPageRecipes).setNoText()).setSpecial();
|
new BookletChapter("crystals", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(InitBlocks.blockAtomicReconstructor), new PageTextOnly(1).addTextReplacement("<rf>", TileEntityAtomicReconstructor.ENERGY_USE), new PageTextOnly(2), new PageTextOnly(3), new PagePicture(4, "pageAtomicReconstructor", 0).setNoText(), new PageTextOnly(5), new PageCrafting(6, BlockCrafting.recipeAtomicReconstructor).setPageStacksWildcard(), new PageCrafting(7, MiscCrafting.recipesCrystals).setNoText(), new PageCrafting(8, MiscCrafting.recipesCrystalBlocks).setNoText(), new PageReconstructor(9, LensNoneRecipeHandler.mainPageRecipes).setNoText()).setSpecial();
|
||||||
new BookletChapter("coalGen", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(InitBlocks.blockCoalGenerator), new PageCrafting(1, BlockCrafting.recipeCoalGen).addTextReplacement("<rf>", TileEntityCoalGenerator.PRODUCE).setPageStacksWildcard());
|
new BookletChapter("coalGen", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(InitBlocks.blockCoalGenerator), new PageCrafting(1, BlockCrafting.recipeCoalGen).addTextReplacement("<rf>", TileEntityCoalGenerator.PRODUCE).setPageStacksWildcard());
|
||||||
new BookletChapter("craftingIngs", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeCoil).setNoText(), new PageCrafting(3, ItemCrafting.recipeCoilAdvanced).setNoText(), new PageCrafting(4, BlockCrafting.recipeCase).setNoText(), new PageCrafting(5, BlockCrafting.recipeEnderPearlBlock).setNoText(), new PageCrafting(6, BlockCrafting.recipeEnderCase).setNoText(), new PageCrafting(7, ItemCrafting.recipeRing).setNoText(), new PageCrafting(8, ItemCrafting.recipeKnifeHandle).setNoText(), new PageCrafting(9, ItemCrafting.recipeKnifeBlade).setNoText(), new PageCrafting(10, ItemCrafting.recipeKnife).setNoText(), new PageCrafting(11, ItemCrafting.recipeDough).setNoText(), new PageCrafting(12, ItemCrafting.recipeRiceDough).setNoText(), new PageCrafting(13, BlockCrafting.recipeIronCase).setNoText()).setImportant();
|
new BookletChapter("craftingIngs", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeCoil).setNoText(), new PageCrafting(3, ItemCrafting.recipeCoilAdvanced).setNoText(), new PageCrafting(4, BlockCrafting.recipeCase).setNoText(), new PageCrafting(5, BlockCrafting.recipeEnderPearlBlock).setNoText(), new PageCrafting(6, BlockCrafting.recipeEnderCase).setNoText(), new PageCrafting(7, ItemCrafting.recipeRing).setNoText(), new PageCrafting(8, ItemCrafting.recipeKnifeHandle).setNoText(), new PageCrafting(9, ItemCrafting.recipeKnifeBlade).setNoText(), new PageCrafting(10, ItemCrafting.recipeKnife).setNoText(), new PageCrafting(11, ItemCrafting.recipeDough).setNoText(), new PageCrafting(12, ItemCrafting.recipeRiceDough).setNoText(), new PageCrafting(13, BlockCrafting.recipeIronCase).setNoText()).setImportant();
|
||||||
new BookletChapter("rf", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(Items.redstone), new PageTextOnly(1));
|
new BookletChapter("rf", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(Items.REDSTONE), new PageTextOnly(1));
|
||||||
|
|
||||||
//Miscellaneous
|
//Miscellaneous
|
||||||
new BookletChapter("reconstructorLenses", ActuallyAdditionsAPI.entryMisc, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.LENS.ordinal()), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeLens).setNoText(), new PageReconstructor(3, LensNoneRecipeHandler.recipeColorLens), new PageReconstructor(4, LensNoneRecipeHandler.recipeExplosionLens), new PageReconstructor(5, LensNoneRecipeHandler.recipeDamageLens), new PageReconstructor(6, LensNoneRecipeHandler.recipeSoulSand).setNoText(), new PageReconstructor(7, LensNoneRecipeHandler.recipeLeather).setNoText(), new PageReconstructor(8, LensNoneRecipeHandler.recipeNetherWart).setNoText()).setImportant();
|
new BookletChapter("reconstructorLenses", ActuallyAdditionsAPI.entryMisc, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.LENS.ordinal()), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeLens).setNoText(), new PageReconstructor(3, LensNoneRecipeHandler.recipeColorLens), new PageReconstructor(4, LensNoneRecipeHandler.recipeExplosionLens), new PageReconstructor(5, LensNoneRecipeHandler.recipeDamageLens), new PageReconstructor(6, LensNoneRecipeHandler.recipeSoulSand).setNoText(), new PageReconstructor(7, LensNoneRecipeHandler.recipeLeather).setNoText(), new PageReconstructor(8, LensNoneRecipeHandler.recipeNetherWart).setNoText()).setImportant();
|
||||||
|
|
|
@ -63,7 +63,7 @@ public class IndexButton extends GuiButton{
|
||||||
|
|
||||||
public void drawHover(int mouseX, int mouseY){
|
public void drawHover(int mouseX, int mouseY){
|
||||||
if(this.chap instanceof BookletChapter && ((BookletChapter)this.chap).isIncomplete){
|
if(this.chap instanceof BookletChapter && ((BookletChapter)this.chap).isIncomplete){
|
||||||
this.gui.drawHoveringText(this.gui.getFontRenderer().listFormattedStringToWidth(TextFormatting.RED+StringUtil.localize("booklet."+ModUtil.MOD_ID_LOWER+".unavailable"), 250), mouseX, mouseY);
|
this.gui.drawHoveringText(this.gui.getFontRenderer().listFormattedStringToWidth(TextFormatting.RED+StringUtil.localize("booklet."+ModUtil.MOD_ID+".unavailable"), 250), mouseX, mouseY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ public class BookletChapter implements IBookletChapter{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getLocalizedName(){
|
public String getLocalizedName(){
|
||||||
return StringUtil.localize("booklet."+ModUtil.MOD_ID_LOWER+".chapter."+this.unlocalizedName+".name");
|
return StringUtil.localize("booklet."+ModUtil.MOD_ID+".chapter."+this.unlocalizedName+".name");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -50,7 +50,7 @@ public class BookletEntry implements IBookletEntry{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getLocalizedName(){
|
public String getLocalizedName(){
|
||||||
return StringUtil.localize("booklet."+ModUtil.MOD_ID_LOWER+".indexEntry."+this.unlocalizedName+".name");
|
return StringUtil.localize("booklet."+ModUtil.MOD_ID+".indexEntry."+this.unlocalizedName+".name");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class BookletPageAA extends BookletPage{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
String base = StringUtil.localize("booklet."+ModUtil.MOD_ID_LOWER+".chapter."+this.chapter.getUnlocalizedName()+".text."+this.localizationKey);
|
String base = StringUtil.localize("booklet."+ModUtil.MOD_ID+".chapter."+this.chapter.getUnlocalizedName()+".text."+this.localizationKey);
|
||||||
base = base.replaceAll("<imp>", TextFormatting.DARK_GREEN+"");
|
base = base.replaceAll("<imp>", TextFormatting.DARK_GREEN+"");
|
||||||
base = base.replaceAll("<item>", TextFormatting.BLUE+"");
|
base = base.replaceAll("<item>", TextFormatting.BLUE+"");
|
||||||
base = base.replaceAll("<r>", TextFormatting.BLACK+"");
|
base = base.replaceAll("<r>", TextFormatting.BLACK+"");
|
||||||
|
@ -80,7 +80,7 @@ public class BookletPageAA extends BookletPage{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getClickToSeeRecipeString(){
|
public String getClickToSeeRecipeString(){
|
||||||
return TextFormatting.GOLD+StringUtil.localize("booklet."+ModUtil.MOD_ID_LOWER+".clickToSeeRecipe");
|
return TextFormatting.GOLD+StringUtil.localize("booklet."+ModUtil.MOD_ID+".clickToSeeRecipe");
|
||||||
}
|
}
|
||||||
|
|
||||||
public BookletPage setNoText(){
|
public BookletPage setNoText(){
|
||||||
|
|
|
@ -64,10 +64,10 @@ public class PageCrafting extends BookletPageAA{
|
||||||
IRecipe recipe = this.recipes[this.recipePos];
|
IRecipe recipe = this.recipes[this.recipePos];
|
||||||
|
|
||||||
if(recipe == null){
|
if(recipe == null){
|
||||||
StringUtil.drawSplitString(Minecraft.getMinecraft().fontRendererObj, TextFormatting.DARK_RED+StringUtil.localize("booklet."+ModUtil.MOD_ID_LOWER+".recipeDisabled"), gui.getGuiLeft()+14, gui.getGuiTop()+15, 115, 0, false);
|
StringUtil.drawSplitString(Minecraft.getMinecraft().fontRendererObj, TextFormatting.DARK_RED+StringUtil.localize("booklet."+ModUtil.MOD_ID+".recipeDisabled"), gui.getGuiLeft()+14, gui.getGuiTop()+15, 115, 0, false);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
String strg = StringUtil.localize("booklet."+ModUtil.MOD_ID_LOWER+"."+(recipe instanceof ShapedRecipes ? "shapedRecipe" : (recipe instanceof ShapelessRecipes ? "shapelessRecipe" : (recipe instanceof ShapelessOreRecipe ? "shapelessOreRecipe" : "shapedOreRecipe"))));
|
String strg = StringUtil.localize("booklet."+ModUtil.MOD_ID+"."+(recipe instanceof ShapedRecipes ? "shapedRecipe" : (recipe instanceof ShapelessRecipes ? "shapelessRecipe" : (recipe instanceof ShapelessOreRecipe ? "shapelessOreRecipe" : "shapedOreRecipe"))));
|
||||||
Minecraft.getMinecraft().fontRendererObj.drawString(strg, gui.getGuiLeft()+gui.getXSize()/2-Minecraft.getMinecraft().fontRendererObj.getStringWidth(strg)/2, gui.getGuiTop()+10, 0);
|
Minecraft.getMinecraft().fontRendererObj.drawString(strg, gui.getGuiLeft()+gui.getXSize()/2-Minecraft.getMinecraft().fontRendererObj.getStringWidth(strg)/2, gui.getGuiTop()+10, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class PageCrusherRecipe extends BookletPageAA{
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void render(IBookletGui gui, int mouseX, int mouseY, int ticksElapsed, boolean mousePressed){
|
public void render(IBookletGui gui, int mouseX, int mouseY, int ticksElapsed, boolean mousePressed){
|
||||||
if(recipe == null){
|
if(recipe == null){
|
||||||
StringUtil.drawSplitString(Minecraft.getMinecraft().fontRendererObj, TextFormatting.DARK_RED+StringUtil.localize("booklet."+ModUtil.MOD_ID_LOWER+".recipeDisabled"), gui.getGuiLeft()+14, gui.getGuiTop()+15, 115, 0, false);
|
StringUtil.drawSplitString(Minecraft.getMinecraft().fontRendererObj, TextFormatting.DARK_RED+StringUtil.localize("booklet."+ModUtil.MOD_ID+".recipeDisabled"), gui.getGuiLeft()+14, gui.getGuiTop()+15, 115, 0, false);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
String strg = "Crusher Recipe";
|
String strg = "Crusher Recipe";
|
||||||
|
|
|
@ -57,7 +57,7 @@ public class PageFurnace extends BookletPageAA{
|
||||||
public void render(IBookletGui gui, int mouseX, int mouseY, int ticksElapsed, boolean mousePressed){
|
public void render(IBookletGui gui, int mouseX, int mouseY, int ticksElapsed, boolean mousePressed){
|
||||||
ItemStack input = this.input != null ? this.input : this.getInputForOutput(this.result);
|
ItemStack input = this.input != null ? this.input : this.getInputForOutput(this.result);
|
||||||
if(input == null){
|
if(input == null){
|
||||||
StringUtil.drawSplitString(Minecraft.getMinecraft().fontRendererObj, TextFormatting.DARK_RED+StringUtil.localize("booklet."+ModUtil.MOD_ID_LOWER+".recipeDisabled"), gui.getGuiLeft()+14, gui.getGuiTop()+15, 115, 0, false);
|
StringUtil.drawSplitString(Minecraft.getMinecraft().fontRendererObj, TextFormatting.DARK_RED+StringUtil.localize("booklet."+ModUtil.MOD_ID+".recipeDisabled"), gui.getGuiLeft()+14, gui.getGuiTop()+15, 115, 0, false);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
String strg = "Furnace Recipe";
|
String strg = "Furnace Recipe";
|
||||||
|
|
|
@ -58,7 +58,7 @@ public class PageReconstructor extends BookletPageAA{
|
||||||
public void render(IBookletGui gui, int mouseX, int mouseY, int ticksElapsed, boolean mousePressed){
|
public void render(IBookletGui gui, int mouseX, int mouseY, int ticksElapsed, boolean mousePressed){
|
||||||
LensNoneRecipe recipe = this.recipes[this.recipePos];
|
LensNoneRecipe recipe = this.recipes[this.recipePos];
|
||||||
if(recipe == null){
|
if(recipe == null){
|
||||||
StringUtil.drawSplitString(Minecraft.getMinecraft().fontRendererObj, TextFormatting.DARK_RED+StringUtil.localize("booklet."+ModUtil.MOD_ID_LOWER+".recipeDisabled"), gui.getGuiLeft()+14, gui.getGuiTop()+15, 115, 0, false);
|
StringUtil.drawSplitString(Minecraft.getMinecraft().fontRendererObj, TextFormatting.DARK_RED+StringUtil.localize("booklet."+ModUtil.MOD_ID+".recipeDisabled"), gui.getGuiLeft()+14, gui.getGuiTop()+15, 115, 0, false);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
String strg = "Atomic Reconstructor";
|
String strg = "Atomic Reconstructor";
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class ConfigurationHandler{
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event){
|
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event){
|
||||||
if(event.modID.equalsIgnoreCase(ModUtil.MOD_ID)){
|
if(event.getModID().equalsIgnoreCase(ModUtil.MOD_ID)){
|
||||||
loadConfig();
|
loadConfig();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,8 +88,8 @@ public class BlockCrafting{
|
||||||
if(ConfigCrafting.FIREWORK_BOX.isEnabled()){
|
if(ConfigCrafting.FIREWORK_BOX.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFireworkBox),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFireworkBox),
|
||||||
"GGG", "SSS", "CCC",
|
"GGG", "SSS", "CCC",
|
||||||
'G', new ItemStack(Items.gunpowder),
|
'G', new ItemStack(Items.GUNPOWDER),
|
||||||
'S', new ItemStack(Items.stick),
|
'S', new ItemStack(Items.STICK),
|
||||||
'C', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal())));
|
'C', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal())));
|
||||||
recipeFireworkBox = RecipeUtil.lastIRecipe();
|
recipeFireworkBox = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
@ -174,8 +174,8 @@ public class BlockCrafting{
|
||||||
if(ConfigCrafting.LASER_RELAY.isEnabled()){
|
if(ConfigCrafting.LASER_RELAY.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockLaserRelay, 2),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockLaserRelay, 2),
|
||||||
"OBO", "RCR", "OBO",
|
"OBO", "RCR", "OBO",
|
||||||
'B', new ItemStack(Blocks.redstone_block),
|
'B', new ItemStack(Blocks.REDSTONE_BLOCK),
|
||||||
'O', new ItemStack(Blocks.obsidian),
|
'O', new ItemStack(Blocks.OBSIDIAN),
|
||||||
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal()),
|
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal()),
|
||||||
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
||||||
recipeLaserRelay = RecipeUtil.lastIRecipe();
|
recipeLaserRelay = RecipeUtil.lastIRecipe();
|
||||||
|
@ -185,8 +185,8 @@ public class BlockCrafting{
|
||||||
if(ConfigCrafting.RANGED_COLLECTOR.isEnabled()){
|
if(ConfigCrafting.RANGED_COLLECTOR.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockRangedCollector),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockRangedCollector),
|
||||||
" A ", "EHE", " C ",
|
" A ", "EHE", " C ",
|
||||||
'E', new ItemStack(Items.ender_pearl),
|
'E', new ItemStack(Items.ENDER_PEARL),
|
||||||
'H', new ItemStack(Blocks.hopper),
|
'H', new ItemStack(Blocks.HOPPER),
|
||||||
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
||||||
'A', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.COAL.ordinal())));
|
'A', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.COAL.ordinal())));
|
||||||
recipeRangedCollector = RecipeUtil.lastIRecipe();
|
recipeRangedCollector = RecipeUtil.lastIRecipe();
|
||||||
|
@ -205,7 +205,7 @@ public class BlockCrafting{
|
||||||
if(ConfigCrafting.CLOUD.isEnabled()){
|
if(ConfigCrafting.CLOUD.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockSmileyCloud),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockSmileyCloud),
|
||||||
" W ", "WXW", " W ",
|
" W ", "WXW", " W ",
|
||||||
'W', new ItemStack(Blocks.wool, 1, Util.WILDCARD),
|
'W', new ItemStack(Blocks.WOOL, 1, Util.WILDCARD),
|
||||||
'X', new ItemStack(InitItems.itemSolidifiedExperience)));
|
'X', new ItemStack(InitItems.itemSolidifiedExperience)));
|
||||||
recipeSmileyCloud = RecipeUtil.lastIRecipe();
|
recipeSmileyCloud = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
@ -232,9 +232,9 @@ public class BlockCrafting{
|
||||||
//Charcoal Block
|
//Charcoal Block
|
||||||
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.CHARCOAL_BLOCK.ordinal()),
|
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.CHARCOAL_BLOCK.ordinal()),
|
||||||
"CCC", "CCC", "CCC",
|
"CCC", "CCC", "CCC",
|
||||||
'C', new ItemStack(Items.coal, 1, 1));
|
'C', new ItemStack(Items.COAL, 1, 1));
|
||||||
recipeBlockChar = RecipeUtil.lastIRecipe();
|
recipeBlockChar = RecipeUtil.lastIRecipe();
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(Items.coal, 9, 1),
|
GameRegistry.addShapelessRecipe(new ItemStack(Items.COAL, 9, 1),
|
||||||
new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.CHARCOAL_BLOCK.ordinal()));
|
new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.CHARCOAL_BLOCK.ordinal()));
|
||||||
|
|
||||||
//Wood Casing
|
//Wood Casing
|
||||||
|
@ -261,7 +261,7 @@ public class BlockCrafting{
|
||||||
if(ConfigCrafting.ENDER_CASING.isEnabled()){
|
if(ConfigCrafting.ENDER_CASING.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDER_CASING.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDER_CASING.ordinal()),
|
||||||
"WSW", "SRS", "WSW",
|
"WSW", "SRS", "WSW",
|
||||||
'W', new ItemStack(Items.ender_pearl),
|
'W', new ItemStack(Items.ENDER_PEARL),
|
||||||
'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.QUARTZ.ordinal()),
|
'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.QUARTZ.ordinal()),
|
||||||
'S', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal())));
|
'S', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal())));
|
||||||
recipeEnderCase = RecipeUtil.lastIRecipe();
|
recipeEnderCase = RecipeUtil.lastIRecipe();
|
||||||
|
@ -315,7 +315,7 @@ public class BlockCrafting{
|
||||||
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
||||||
'S', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
'S', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
||||||
'I', new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.IRON.ordinal()),
|
'I', new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.IRON.ordinal()),
|
||||||
'L', Items.lava_bucket));
|
'L', Items.LAVA_BUCKET));
|
||||||
recipeLavaFactory = RecipeUtil.lastIRecipe();
|
recipeLavaFactory = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -355,7 +355,7 @@ public class BlockCrafting{
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPhantomface),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPhantomface),
|
||||||
" C ", "EBE", " S ",
|
" C ", "EBE", " S ",
|
||||||
'E', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
'E', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
||||||
'C', Blocks.chest,
|
'C', Blocks.CHEST,
|
||||||
'S', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
'S', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
||||||
'B', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal())));
|
'B', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal())));
|
||||||
recipePhantomface = RecipeUtil.lastIRecipe();
|
recipePhantomface = RecipeUtil.lastIRecipe();
|
||||||
|
@ -390,7 +390,7 @@ public class BlockCrafting{
|
||||||
if(ConfigCrafting.PHANTOM_LIQUIFACE.isEnabled()){
|
if(ConfigCrafting.PHANTOM_LIQUIFACE.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPhantomLiquiface),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPhantomLiquiface),
|
||||||
"RFR",
|
"RFR",
|
||||||
'R', Items.bucket,
|
'R', Items.BUCKET,
|
||||||
'F', InitBlocks.blockPhantomface));
|
'F', InitBlocks.blockPhantomface));
|
||||||
recipeLiquiface = RecipeUtil.lastIRecipe();
|
recipeLiquiface = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
@ -399,7 +399,7 @@ public class BlockCrafting{
|
||||||
if(ConfigCrafting.LIQUID_PLACER.isEnabled()){
|
if(ConfigCrafting.LIQUID_PLACER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFluidPlacer),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFluidPlacer),
|
||||||
"RFR",
|
"RFR",
|
||||||
'R', Items.bucket,
|
'R', Items.BUCKET,
|
||||||
'F', InitBlocks.blockPlacer));
|
'F', InitBlocks.blockPlacer));
|
||||||
recipeLiquidPlacer = RecipeUtil.lastIRecipe();
|
recipeLiquidPlacer = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
@ -408,7 +408,7 @@ public class BlockCrafting{
|
||||||
if(ConfigCrafting.LIQUID_BREAKER.isEnabled()){
|
if(ConfigCrafting.LIQUID_BREAKER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFluidCollector),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFluidCollector),
|
||||||
"RFR",
|
"RFR",
|
||||||
'R', Items.bucket,
|
'R', Items.BUCKET,
|
||||||
'F', InitBlocks.blockBreaker));
|
'F', InitBlocks.blockBreaker));
|
||||||
recipeLiquidCollector = RecipeUtil.lastIRecipe();
|
recipeLiquidCollector = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
@ -429,7 +429,7 @@ public class BlockCrafting{
|
||||||
"CRC", "CBC", "CRC",
|
"CRC", "CBC", "CRC",
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
'B', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
'B', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
||||||
'R', new ItemStack(Items.coal, 1, Util.WILDCARD)));
|
'R', new ItemStack(Items.COAL, 1, Util.WILDCARD)));
|
||||||
recipeCoalGen = RecipeUtil.lastIRecipe();
|
recipeCoalGen = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -448,9 +448,9 @@ public class BlockCrafting{
|
||||||
//Enderpearl Block
|
//Enderpearl Block
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal()),
|
||||||
"EE", "EE",
|
"EE", "EE",
|
||||||
'E', Items.ender_pearl));
|
'E', Items.ENDER_PEARL));
|
||||||
recipeEnderPearlBlock = RecipeUtil.lastIRecipe();
|
recipeEnderPearlBlock = RecipeUtil.lastIRecipe();
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.ender_pearl, 4),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.ENDER_PEARL, 4),
|
||||||
new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal())));
|
new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal())));
|
||||||
|
|
||||||
//Quartz Block
|
//Quartz Block
|
||||||
|
@ -464,7 +464,7 @@ public class BlockCrafting{
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFishingNet),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFishingNet),
|
||||||
"SSS", "SDS", "SSS",
|
"SSS", "SDS", "SSS",
|
||||||
'D', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
'D', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
||||||
'S', Items.string));
|
'S', Items.STRING));
|
||||||
recipeFisher = RecipeUtil.lastIRecipe();
|
recipeFisher = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -487,7 +487,7 @@ public class BlockCrafting{
|
||||||
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
||||||
'Q', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
'Q', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
||||||
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
||||||
'B', new ItemStack(Blocks.iron_bars)));
|
'B', new ItemStack(Blocks.IRON_BARS)));
|
||||||
recipeSolar = RecipeUtil.lastIRecipe();
|
recipeSolar = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -496,11 +496,11 @@ public class BlockCrafting{
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockHeatCollector),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockHeatCollector),
|
||||||
"BRB", "CDC", "BQB",
|
"BRB", "CDC", "BQB",
|
||||||
'D', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
'D', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
||||||
'R', new ItemStack(Items.repeater),
|
'R', new ItemStack(Items.REPEATER),
|
||||||
'Q', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
'Q', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
||||||
'L', new ItemStack(Items.lava_bucket),
|
'L', new ItemStack(Items.LAVA_BUCKET),
|
||||||
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
||||||
'B', new ItemStack(Blocks.iron_bars)));
|
'B', new ItemStack(Blocks.IRON_BARS)));
|
||||||
recipeHeatCollector = RecipeUtil.lastIRecipe();
|
recipeHeatCollector = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -541,8 +541,8 @@ public class BlockCrafting{
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
||||||
'Q', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
'Q', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
||||||
'P', new ItemStack(Blocks.piston),
|
'P', new ItemStack(Blocks.PISTON),
|
||||||
'F', new ItemStack(Items.flint)));
|
'F', new ItemStack(Items.FLINT)));
|
||||||
recipeCrusher = RecipeUtil.lastIRecipe();
|
recipeCrusher = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -554,7 +554,7 @@ public class BlockCrafting{
|
||||||
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
||||||
'R', InitBlocks.blockGrinder,
|
'R', InitBlocks.blockGrinder,
|
||||||
'F', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
'F', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
||||||
'P', new ItemStack(Blocks.piston)));
|
'P', new ItemStack(Blocks.PISTON)));
|
||||||
recipeDoubleCrusher = RecipeUtil.lastIRecipe();
|
recipeDoubleCrusher = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -564,7 +564,7 @@ public class BlockCrafting{
|
||||||
"PDC", "RFR", "CDP",
|
"PDC", "RFR", "CDP",
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
||||||
'R', new ItemStack(Blocks.furnace),
|
'R', new ItemStack(Blocks.FURNACE),
|
||||||
'F', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
'F', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.IRON_CASING.ordinal()),
|
||||||
'P', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal())));
|
'P', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal())));
|
||||||
recipeFurnace = RecipeUtil.lastIRecipe();
|
recipeFurnace = RecipeUtil.lastIRecipe();
|
||||||
|
@ -576,7 +576,7 @@ public class BlockCrafting{
|
||||||
"WCW", "DHD", "WCW",
|
"WCW", "DHD", "WCW",
|
||||||
'W', "plankWood",
|
'W', "plankWood",
|
||||||
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
||||||
'C', new ItemStack(Items.golden_carrot),
|
'C', new ItemStack(Items.GOLDEN_CARROT),
|
||||||
'H', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal())));
|
'H', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal())));
|
||||||
recipeFeeder = RecipeUtil.lastIRecipe();
|
recipeFeeder = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
@ -585,7 +585,7 @@ public class BlockCrafting{
|
||||||
if(ConfigCrafting.GIANT_CHEST.isEnabled()){
|
if(ConfigCrafting.GIANT_CHEST.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockGiantChest),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockGiantChest),
|
||||||
"CWC", "WDW", "CWC",
|
"CWC", "WDW", "CWC",
|
||||||
'C', new ItemStack(Blocks.chest),
|
'C', new ItemStack(Blocks.CHEST),
|
||||||
'D', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal()),
|
'D', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal()),
|
||||||
'W', "plankWood"));
|
'W', "plankWood"));
|
||||||
recipeCrate = RecipeUtil.lastIRecipe();
|
recipeCrate = RecipeUtil.lastIRecipe();
|
||||||
|
@ -627,7 +627,7 @@ public class BlockCrafting{
|
||||||
"CBC", "CDR", "CBC",
|
"CBC", "CDR", "CBC",
|
||||||
'B', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.LAPIS.ordinal()),
|
'B', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.LAPIS.ordinal()),
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
'D', Blocks.dropper,
|
'D', Blocks.DROPPER,
|
||||||
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
||||||
recipeDropper = RecipeUtil.lastIRecipe();
|
recipeDropper = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,38 +34,38 @@ public class CrusherCrafting{
|
||||||
public static void init(){
|
public static void init(){
|
||||||
ModUtil.LOGGER.info("Initializing Crusher Recipes...");
|
ModUtil.LOGGER.info("Initializing Crusher Recipes...");
|
||||||
|
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Items.bone), new ItemStack(Items.dye, 6, 15));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Items.BONE), new ItemStack(Items.DYE, 6, 15));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Items.reeds), new ItemStack(Items.sugar, 3));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Items.REEDS), new ItemStack(Items.SUGAR, 3));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
|
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.yellow_flower), new ItemStack(Items.dye, 3, 11));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.YELLOW_FLOWER), new ItemStack(Items.DYE, 3, 11));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.red_flower, 1, 0), new ItemStack(Items.dye, 3, 1));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.RED_FLOWER, 1, 0), new ItemStack(Items.DYE, 3, 1));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.red_flower, 1, 1), new ItemStack(Items.dye, 3, 12));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.RED_FLOWER, 1, 1), new ItemStack(Items.DYE, 3, 12));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.red_flower, 1, 2), new ItemStack(Items.dye, 3, 13));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.RED_FLOWER, 1, 2), new ItemStack(Items.DYE, 3, 13));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.red_flower, 1, 3), new ItemStack(Items.dye, 3, 7));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.RED_FLOWER, 1, 3), new ItemStack(Items.DYE, 3, 7));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.red_flower, 1, 4), new ItemStack(Items.dye, 3, 1));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.RED_FLOWER, 1, 4), new ItemStack(Items.DYE, 3, 1));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.red_flower, 1, 5), new ItemStack(Items.dye, 3, 14));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.RED_FLOWER, 1, 5), new ItemStack(Items.DYE, 3, 14));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.red_flower, 1, 6), new ItemStack(Items.dye, 3, 7));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.RED_FLOWER, 1, 6), new ItemStack(Items.DYE, 3, 7));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.red_flower, 1, 7), new ItemStack(Items.dye, 3, 9));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.RED_FLOWER, 1, 7), new ItemStack(Items.DYE, 3, 9));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.red_flower, 1, 8), new ItemStack(Items.dye, 3, 7));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.RED_FLOWER, 1, 8), new ItemStack(Items.DYE, 3, 7));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.double_plant, 1, 0), new ItemStack(Items.dye, 4, 11));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.DOUBLE_PLANT, 1, 0), new ItemStack(Items.DYE, 4, 11));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.double_plant, 1, 1), new ItemStack(Items.dye, 4, 13));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.DOUBLE_PLANT, 1, 1), new ItemStack(Items.DYE, 4, 13));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.double_plant, 1, 4), new ItemStack(Items.dye, 4, 1));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.DOUBLE_PLANT, 1, 4), new ItemStack(Items.DYE, 4, 1));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.double_plant, 1, 5), new ItemStack(Items.dye, 4, 9));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.DOUBLE_PLANT, 1, 5), new ItemStack(Items.DYE, 4, 9));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
|
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe("oreRedstone", "dustRedstone", 10);
|
ActuallyAdditionsAPI.addCrusherRecipe("oreRedstone", "dustRedstone", 10);
|
||||||
|
@ -75,26 +75,26 @@ public class CrusherCrafting{
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe("blockCoal", "coal", 9);
|
ActuallyAdditionsAPI.addCrusherRecipe("blockCoal", "coal", 9);
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe("oreQuartz", "gemQuartz", 3);
|
ActuallyAdditionsAPI.addCrusherRecipe("oreQuartz", "gemQuartz", 3);
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe("cobblestone", "sand", 1);
|
ActuallyAdditionsAPI.addCrusherRecipe("cobblestone", "sand", 1);
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.gravel), new ItemStack(Items.flint), new ItemStack(Items.flint), 50);
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.GRAVEL), new ItemStack(Items.FLINT), new ItemStack(Items.FLINT), 50);
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe("stone", "cobblestone", 1);
|
ActuallyAdditionsAPI.addCrusherRecipe("stone", "cobblestone", 1);
|
||||||
|
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()), new ItemStack(Items.sugar, 2));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()), new ItemStack(Items.SUGAR, 2));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
|
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.glowstone), new ItemStack(Items.glowstone_dust, 4));
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Blocks.GLOWSTONE), new ItemStack(Items.GLOWSTONE_DUST, 4));
|
||||||
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
miscRecipes.add(RecipeUtil.lastCrusherRecipe());
|
||||||
|
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe("oreNickel", "dustNickel", 2, "dustPlatinum", 1, 15);
|
ActuallyAdditionsAPI.addCrusherRecipe("oreNickel", "dustNickel", 2, "dustPlatinum", 1, 15);
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe("oreIron", "dustIron", 2, "dustGold", 1, 20);
|
ActuallyAdditionsAPI.addCrusherRecipe("oreIron", "dustIron", 2, "dustGold", 1, 20);
|
||||||
|
|
||||||
if(ConfigCrafting.HORSE_ARMORS.isEnabled()){
|
if(ConfigCrafting.HORSE_ARMORS.isEnabled()){
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Items.iron_horse_armor), "dustIron", 8);
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Items.IRON_HORSE_ARMOR), "dustIron", 8);
|
||||||
recipeIronHorseArmor = RecipeUtil.lastCrusherRecipe();
|
recipeIronHorseArmor = RecipeUtil.lastCrusherRecipe();
|
||||||
|
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Items.golden_horse_armor), "dustGold", 8);
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Items.GOLDEN_HORSE_ARMOR), "dustGold", 8);
|
||||||
recipeGoldHorseArmor = RecipeUtil.lastCrusherRecipe();
|
recipeGoldHorseArmor = RecipeUtil.lastCrusherRecipe();
|
||||||
|
|
||||||
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Items.diamond_horse_armor), "dustDiamond", 8);
|
ActuallyAdditionsAPI.addCrusherRecipe(new ItemStack(Items.DIAMOND_HORSE_ARMOR), "dustDiamond", 8);
|
||||||
recipeDiamondHorseArmor = RecipeUtil.lastCrusherRecipe();
|
recipeDiamondHorseArmor = RecipeUtil.lastCrusherRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ public class FoodCrafting{
|
||||||
//Bacon
|
//Bacon
|
||||||
if(ConfigCrafting.BACON.isEnabled()){
|
if(ConfigCrafting.BACON.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemFoods, 3, TheFoods.BACON.ordinal()),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemFoods, 3, TheFoods.BACON.ordinal()),
|
||||||
knifeStack.copy(), new ItemStack(Items.cooked_porkchop)));
|
knifeStack.copy(), new ItemStack(Items.COOKED_PORKCHOP)));
|
||||||
recipeBacon = RecipeUtil.lastIRecipe();
|
recipeBacon = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,9 +72,9 @@ public class FoodCrafting{
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.PIZZA.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.PIZZA.ordinal()),
|
||||||
"HKH", "MCF", " D ",
|
"HKH", "MCF", " D ",
|
||||||
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.DOUGH.ordinal()),
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.DOUGH.ordinal()),
|
||||||
'M', new ItemStack(Blocks.brown_mushroom),
|
'M', new ItemStack(Blocks.BROWN_MUSHROOM),
|
||||||
'C', "cropCarrot",
|
'C', "cropCarrot",
|
||||||
'F', new ItemStack(Items.cooked_fish, 1, Util.WILDCARD),
|
'F', new ItemStack(Items.COOKED_FISH, 1, Util.WILDCARD),
|
||||||
'K', knifeStack.copy(),
|
'K', knifeStack.copy(),
|
||||||
'H', new ItemStack(InitItems.itemFoods, 1, TheFoods.CHEESE.ordinal())));
|
'H', new ItemStack(InitItems.itemFoods, 1, TheFoods.CHEESE.ordinal())));
|
||||||
recipePizza = RecipeUtil.lastIRecipe();
|
recipePizza = RecipeUtil.lastIRecipe();
|
||||||
|
@ -87,7 +87,7 @@ public class FoodCrafting{
|
||||||
'T', new ItemStack(InitItems.itemFoods, 1, TheFoods.TOAST.ordinal()),
|
'T', new ItemStack(InitItems.itemFoods, 1, TheFoods.TOAST.ordinal()),
|
||||||
'C', new ItemStack(InitItems.itemFoods, 1, TheFoods.CHEESE.ordinal()),
|
'C', new ItemStack(InitItems.itemFoods, 1, TheFoods.CHEESE.ordinal()),
|
||||||
'K', knifeStack.copy(),
|
'K', knifeStack.copy(),
|
||||||
'B', new ItemStack(Items.cooked_beef)));
|
'B', new ItemStack(Items.COOKED_BEEF)));
|
||||||
recipeHamburger = RecipeUtil.lastIRecipe();
|
recipeHamburger = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ public class FoodCrafting{
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.BIG_COOKIE.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.BIG_COOKIE.ordinal()),
|
||||||
"DCD", "CDC", "DCD",
|
"DCD", "CDC", "DCD",
|
||||||
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.DOUGH.ordinal()),
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.DOUGH.ordinal()),
|
||||||
'C', new ItemStack(Items.dye, 1, 3)));
|
'C', new ItemStack(Items.DYE, 1, 3)));
|
||||||
recipeBigCookie = RecipeUtil.lastIRecipe();
|
recipeBigCookie = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,9 +104,9 @@ public class FoodCrafting{
|
||||||
if(ConfigCrafting.SUB.isEnabled()){
|
if(ConfigCrafting.SUB.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.SUBMARINE_SANDWICH.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.SUBMARINE_SANDWICH.ordinal()),
|
||||||
"KCP", "FB ", "PCP",
|
"KCP", "FB ", "PCP",
|
||||||
'P', new ItemStack(Items.paper),
|
'P', new ItemStack(Items.PAPER),
|
||||||
'C', new ItemStack(InitItems.itemFoods, 1, TheFoods.CHEESE.ordinal()),
|
'C', new ItemStack(InitItems.itemFoods, 1, TheFoods.CHEESE.ordinal()),
|
||||||
'F', new ItemStack(Items.cooked_fish, 1, Util.WILDCARD),
|
'F', new ItemStack(Items.COOKED_BEEF, 1, Util.WILDCARD),
|
||||||
'B', new ItemStack(InitItems.itemFoods, 1, TheFoods.BAGUETTE.ordinal()),
|
'B', new ItemStack(InitItems.itemFoods, 1, TheFoods.BAGUETTE.ordinal()),
|
||||||
'K', knifeStack.copy()));
|
'K', knifeStack.copy()));
|
||||||
recipeSubSandwich = RecipeUtil.lastIRecipe();
|
recipeSubSandwich = RecipeUtil.lastIRecipe();
|
||||||
|
@ -115,7 +115,7 @@ public class FoodCrafting{
|
||||||
//French Fry
|
//French Fry
|
||||||
if(ConfigCrafting.FRENCH_FRY.isEnabled()){
|
if(ConfigCrafting.FRENCH_FRY.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemFoods, 2, TheFoods.FRENCH_FRY.ordinal()),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemFoods, 2, TheFoods.FRENCH_FRY.ordinal()),
|
||||||
new ItemStack(Items.baked_potato),
|
new ItemStack(Items.BAKED_POTATO),
|
||||||
knifeStack.copy()));
|
knifeStack.copy()));
|
||||||
recipeFrenchFry = RecipeUtil.lastIRecipe();
|
recipeFrenchFry = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
@ -133,7 +133,7 @@ public class FoodCrafting{
|
||||||
if(ConfigCrafting.FISH_N_CHIPS.isEnabled()){
|
if(ConfigCrafting.FISH_N_CHIPS.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.FISH_N_CHIPS.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.FISH_N_CHIPS.ordinal()),
|
||||||
"FIF", " P ",
|
"FIF", " P ",
|
||||||
'I', new ItemStack(Items.cooked_fish, 1, Util.WILDCARD),
|
'I', new ItemStack(Items.COOKED_FISH, 1, Util.WILDCARD),
|
||||||
'P', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.PAPER_CONE.ordinal()),
|
'P', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.PAPER_CONE.ordinal()),
|
||||||
'F', new ItemStack(InitItems.itemFoods, 1, TheFoods.FRENCH_FRY.ordinal())));
|
'F', new ItemStack(InitItems.itemFoods, 1, TheFoods.FRENCH_FRY.ordinal())));
|
||||||
recipeFishNChips = RecipeUtil.lastIRecipe();
|
recipeFishNChips = RecipeUtil.lastIRecipe();
|
||||||
|
@ -142,7 +142,7 @@ public class FoodCrafting{
|
||||||
//Cheese
|
//Cheese
|
||||||
if(ConfigCrafting.CHEESE.isEnabled()){
|
if(ConfigCrafting.CHEESE.isEnabled()){
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.CHEESE.ordinal()),
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.CHEESE.ordinal()),
|
||||||
new ItemStack(Items.milk_bucket));
|
new ItemStack(Items.MILK_BUCKET));
|
||||||
recipeCheese = RecipeUtil.lastIRecipe();
|
recipeCheese = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,15 +150,15 @@ public class FoodCrafting{
|
||||||
if(ConfigCrafting.PUMPKIN_STEW.isEnabled()){
|
if(ConfigCrafting.PUMPKIN_STEW.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.PUMPKIN_STEW.ordinal()),
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.PUMPKIN_STEW.ordinal()),
|
||||||
"P", "B",
|
"P", "B",
|
||||||
'P', new ItemStack(Blocks.pumpkin),
|
'P', new ItemStack(Blocks.PUMPKIN),
|
||||||
'B', new ItemStack(Items.bowl));
|
'B', new ItemStack(Items.BOWL));
|
||||||
recipePumpkinStew = RecipeUtil.lastIRecipe();
|
recipePumpkinStew = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Carrot Juice
|
//Carrot Juice
|
||||||
if(ConfigCrafting.CARROT_JUICE.isEnabled()){
|
if(ConfigCrafting.CARROT_JUICE.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.CARROT_JUICE.ordinal()),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.CARROT_JUICE.ordinal()),
|
||||||
new ItemStack(Items.glass_bottle), "cropCarrot", knifeStack.copy()));
|
new ItemStack(Items.GLASS_BOTTLE), "cropCarrot", knifeStack.copy()));
|
||||||
recipeCarrotJuice = RecipeUtil.lastIRecipe();
|
recipeCarrotJuice = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -167,7 +167,7 @@ public class FoodCrafting{
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.SPAGHETTI.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.SPAGHETTI.ordinal()),
|
||||||
"NNN", " B ",
|
"NNN", " B ",
|
||||||
'N', new ItemStack(InitItems.itemFoods, 1, TheFoods.NOODLE.ordinal()),
|
'N', new ItemStack(InitItems.itemFoods, 1, TheFoods.NOODLE.ordinal()),
|
||||||
'B', new ItemStack(Items.bowl)));
|
'B', new ItemStack(Items.BOWL)));
|
||||||
recipeSpaghetti = RecipeUtil.lastIRecipe();
|
recipeSpaghetti = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,8 +182,8 @@ public class FoodCrafting{
|
||||||
if(ConfigCrafting.CHOCOLATE.isEnabled()){
|
if(ConfigCrafting.CHOCOLATE.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ItemStack(InitItems.itemFoods, 3, TheFoods.CHOCOLATE.ordinal()),
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemFoods, 3, TheFoods.CHOCOLATE.ordinal()),
|
||||||
"C C", "CMC", "C C",
|
"C C", "CMC", "C C",
|
||||||
'C', new ItemStack(Items.dye, 1, 3),
|
'C', new ItemStack(Items.DYE, 1, 3),
|
||||||
'M', new ItemStack(Items.milk_bucket));
|
'M', new ItemStack(Items.MILK_BUCKET));
|
||||||
recipeChocolate = RecipeUtil.lastIRecipe();
|
recipeChocolate = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,18 +191,18 @@ public class FoodCrafting{
|
||||||
if(ConfigCrafting.CHOCOLATE_CAKE.isEnabled()){
|
if(ConfigCrafting.CHOCOLATE_CAKE.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.CHOCOLATE_CAKE.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.CHOCOLATE_CAKE.ordinal()),
|
||||||
"MMM", "CCC", "EDS",
|
"MMM", "CCC", "EDS",
|
||||||
'M', new ItemStack(Items.milk_bucket),
|
'M', new ItemStack(Items.MILK_BUCKET),
|
||||||
'E', new ItemStack(Items.egg),
|
'E', new ItemStack(Items.EGG),
|
||||||
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.DOUGH.ordinal()),
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.DOUGH.ordinal()),
|
||||||
'S', new ItemStack(Items.sugar),
|
'S', new ItemStack(Items.SUGAR),
|
||||||
'C', new ItemStack(Items.dye, 1, 3)));
|
'C', new ItemStack(Items.DYE, 1, 3)));
|
||||||
recipeChocolateCake = RecipeUtil.lastIRecipe();
|
recipeChocolateCake = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Toast
|
//Toast
|
||||||
if(ConfigCrafting.TOAST.isEnabled()){
|
if(ConfigCrafting.TOAST.isEnabled()){
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemFoods, 2, TheFoods.TOAST.ordinal()),
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemFoods, 2, TheFoods.TOAST.ordinal()),
|
||||||
new ItemStack(Items.bread));
|
new ItemStack(Items.BREAD));
|
||||||
recipeToast = RecipeUtil.lastIRecipe();
|
recipeToast = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ public class ItemCrafting{
|
||||||
recipeBlackDye = RecipeUtil.lastIRecipe();
|
recipeBlackDye = RecipeUtil.lastIRecipe();
|
||||||
|
|
||||||
//Booklet
|
//Booklet
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemBooklet), new ItemStack(InitItems.itemCanolaSeed), new ItemStack(Items.paper)));
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemBooklet), new ItemStack(InitItems.itemCanolaSeed), new ItemStack(Items.PAPER)));
|
||||||
recipeBook = RecipeUtil.lastIRecipe();
|
recipeBook = RecipeUtil.lastIRecipe();
|
||||||
|
|
||||||
//Clearing NBT Storage
|
//Clearing NBT Storage
|
||||||
|
@ -106,7 +106,7 @@ public class ItemCrafting{
|
||||||
if(ConfigCrafting.CHEST_TO_CRATE_UPGRADE.isEnabled()){
|
if(ConfigCrafting.CHEST_TO_CRATE_UPGRADE.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemChestToCrateUpgrade),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemChestToCrateUpgrade),
|
||||||
"CWC", "WWW", "CWC",
|
"CWC", "WWW", "CWC",
|
||||||
'C', new ItemStack(Blocks.chest),
|
'C', new ItemStack(Blocks.CHEST),
|
||||||
'W', "plankWood"));
|
'W', "plankWood"));
|
||||||
recipeChestToCrateUpgrade = RecipeUtil.lastIRecipe();
|
recipeChestToCrateUpgrade = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
@ -132,26 +132,26 @@ public class ItemCrafting{
|
||||||
|
|
||||||
//Rice Stuff
|
//Rice Stuff
|
||||||
if(ConfigCrafting.RICE_GADGETS.isEnabled()){
|
if(ConfigCrafting.RICE_GADGETS.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.paper, 3),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.PAPER, 3),
|
||||||
"R ", " R ", " R",
|
"R ", " R ", " R",
|
||||||
'R', new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal())));
|
'R', new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal())));
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 4, TheMiscItems.RICE_SLIME.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 4, TheMiscItems.RICE_SLIME.ordinal()),
|
||||||
" R ", "RBR", " R ",
|
" R ", "RBR", " R ",
|
||||||
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RICE_DOUGH.ordinal()),
|
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RICE_DOUGH.ordinal()),
|
||||||
'B', Items.water_bucket));
|
'B', Items.WATER_BUCKET));
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 4, TheMiscItems.RICE_SLIME.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 4, TheMiscItems.RICE_SLIME.ordinal()),
|
||||||
" R ", "RBR", " R ",
|
" R ", "RBR", " R ",
|
||||||
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RICE_DOUGH.ordinal()),
|
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RICE_DOUGH.ordinal()),
|
||||||
'B', new ItemStack(Items.potionitem)));
|
'B', new ItemStack(Items.POTIONITEM)));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Leaf Blower
|
//Leaf Blower
|
||||||
if(ConfigCrafting.LEAF_BLOWER.isEnabled()){
|
if(ConfigCrafting.LEAF_BLOWER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemLeafBlower),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemLeafBlower),
|
||||||
" F", "IP", "IC",
|
" F", "IP", "IC",
|
||||||
'F', new ItemStack(Items.flint),
|
'F', new ItemStack(Items.FLINT),
|
||||||
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
||||||
'P', new ItemStack(Blocks.piston),
|
'P', new ItemStack(Blocks.PISTON),
|
||||||
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
||||||
recipeLeafBlower = RecipeUtil.lastIRecipe();
|
recipeLeafBlower = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
@ -201,21 +201,21 @@ public class ItemCrafting{
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeSpeed),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeSpeed),
|
||||||
"ISI", "SRS", "ISI",
|
"ISI", "SRS", "ISI",
|
||||||
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
||||||
'S', Items.sugar,
|
'S', Items.SUGAR,
|
||||||
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal())));
|
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal())));
|
||||||
recipeDrillSpeedI = RecipeUtil.lastIRecipe();
|
recipeDrillSpeedI = RecipeUtil.lastIRecipe();
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeSpeedII),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeSpeedII),
|
||||||
"ISI", "SCS", "ISI",
|
"ISI", "SCS", "ISI",
|
||||||
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
||||||
'S', Items.sugar,
|
'S', Items.SUGAR,
|
||||||
'C', Items.cake));
|
'C', Items.CAKE));
|
||||||
recipeDrillSpeedII = RecipeUtil.lastIRecipe();
|
recipeDrillSpeedII = RecipeUtil.lastIRecipe();
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeSpeedIII),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeSpeedIII),
|
||||||
"ISI", "SFS", "ISI",
|
"ISI", "SFS", "ISI",
|
||||||
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
||||||
'S', Items.sugar,
|
'S', Items.SUGAR,
|
||||||
'F', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal())));
|
'F', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal())));
|
||||||
recipeDrillSpeedIII = RecipeUtil.lastIRecipe();
|
recipeDrillSpeedIII = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
@ -224,14 +224,14 @@ public class ItemCrafting{
|
||||||
if(ConfigCrafting.DRILL_FORTUNE.isEnabled()){
|
if(ConfigCrafting.DRILL_FORTUNE.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeFortune),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeFortune),
|
||||||
"ISI", "SRS", "ISI",
|
"ISI", "SRS", "ISI",
|
||||||
'I', Blocks.glowstone,
|
'I', Blocks.GLOWSTONE,
|
||||||
'S', Items.redstone,
|
'S', Items.REDSTONE,
|
||||||
'R', new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.DIAMOND.ordinal())));
|
'R', new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.DIAMOND.ordinal())));
|
||||||
recipeDrillFortuneI = RecipeUtil.lastIRecipe();
|
recipeDrillFortuneI = RecipeUtil.lastIRecipe();
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeFortuneII),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeFortuneII),
|
||||||
"ISI", "SRS", "ISI",
|
"ISI", "SRS", "ISI",
|
||||||
'I', Blocks.glowstone,
|
'I', Blocks.GLOWSTONE,
|
||||||
'S', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal()),
|
'S', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal()),
|
||||||
'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDER_CASING.ordinal())));
|
'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDER_CASING.ordinal())));
|
||||||
recipeDrillFortuneII = RecipeUtil.lastIRecipe();
|
recipeDrillFortuneII = RecipeUtil.lastIRecipe();
|
||||||
|
@ -269,7 +269,7 @@ public class ItemCrafting{
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeBlockPlacing),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeBlockPlacing),
|
||||||
"CEC", "RAR", "CEC",
|
"CEC", "RAR", "CEC",
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
'E', Items.paper,
|
'E', Items.PAPER,
|
||||||
'A', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
'A', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
||||||
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal())));
|
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal())));
|
||||||
recipeDrillPlacing = RecipeUtil.lastIRecipe();
|
recipeDrillPlacing = RecipeUtil.lastIRecipe();
|
||||||
|
@ -301,7 +301,7 @@ public class ItemCrafting{
|
||||||
"RIB", "IOI", "BIR",
|
"RIB", "IOI", "BIR",
|
||||||
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal()),
|
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal()),
|
||||||
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
||||||
'B', new ItemStack(Items.dye, 1, 4),
|
'B', new ItemStack(Items.DYE, 1, 4),
|
||||||
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RING.ordinal())));
|
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RING.ordinal())));
|
||||||
recipeMagnetRing = RecipeUtil.lastIRecipe();
|
recipeMagnetRing = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
@ -310,7 +310,7 @@ public class ItemCrafting{
|
||||||
if(ConfigCrafting.GROWTH_RING.isEnabled()){
|
if(ConfigCrafting.GROWTH_RING.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemGrowthRing),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemGrowthRing),
|
||||||
"SIS", "IOI", "SIS",
|
"SIS", "IOI", "SIS",
|
||||||
'S', new ItemStack(Items.wheat_seeds),
|
'S', new ItemStack(Items.WHEAT_SEEDS),
|
||||||
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
||||||
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RING.ordinal())));
|
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RING.ordinal())));
|
||||||
recipeGrowthRing = RecipeUtil.lastIRecipe();
|
recipeGrowthRing = RecipeUtil.lastIRecipe();
|
||||||
|
@ -320,7 +320,7 @@ public class ItemCrafting{
|
||||||
if(ConfigCrafting.WATER_RING.isEnabled()){
|
if(ConfigCrafting.WATER_RING.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemWaterRemovalRing),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemWaterRemovalRing),
|
||||||
"BIB", "IOI", "BIB",
|
"BIB", "IOI", "BIB",
|
||||||
'B', new ItemStack(Items.water_bucket),
|
'B', new ItemStack(Items.WATER_BUCKET),
|
||||||
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
||||||
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RING.ordinal())));
|
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RING.ordinal())));
|
||||||
recipeWaterRing = RecipeUtil.lastIRecipe();
|
recipeWaterRing = RecipeUtil.lastIRecipe();
|
||||||
|
@ -362,15 +362,15 @@ public class ItemCrafting{
|
||||||
"WNW", "WDW", "WNW",
|
"WNW", "WDW", "WNW",
|
||||||
'W', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.BAT_WING.ordinal()),
|
'W', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.BAT_WING.ordinal()),
|
||||||
'N', new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
'N', new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
||||||
'D', new ItemStack(Items.nether_star)));
|
'D', new ItemStack(Items.NETHER_STAR)));
|
||||||
recipeWings = RecipeUtil.lastIRecipe();
|
recipeWings = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Quartz
|
//Quartz
|
||||||
if(ConfigCrafting.QUARTZ.isEnabled()){
|
if(ConfigCrafting.QUARTZ.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()),
|
||||||
new ItemStack(Items.coal),
|
new ItemStack(Items.COAL),
|
||||||
new ItemStack(Items.quartz)));
|
new ItemStack(Items.QUARTZ)));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Coil
|
//Coil
|
||||||
|
@ -394,7 +394,7 @@ public class ItemCrafting{
|
||||||
//Resonant Rice
|
//Resonant Rice
|
||||||
if(ConfigCrafting.RESONANT_RICE.isEnabled() && !OreDictionary.getOres("nuggetEnderium").isEmpty()){
|
if(ConfigCrafting.RESONANT_RICE.isEnabled() && !OreDictionary.getOres("nuggetEnderium").isEmpty()){
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemResonantRice),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemResonantRice),
|
||||||
new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()), "nuggetEnderium", Items.gunpowder));
|
new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()), "nuggetEnderium", Items.GUNPOWDER));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Advanced Coil
|
//Advanced Coil
|
||||||
|
@ -410,9 +410,9 @@ public class ItemCrafting{
|
||||||
if(ConfigCrafting.LEAF_BLOWER_ADVANCED.isEnabled()){
|
if(ConfigCrafting.LEAF_BLOWER_ADVANCED.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemLeafBlowerAdvanced),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemLeafBlowerAdvanced),
|
||||||
" F", "DP", "DC",
|
" F", "DP", "DC",
|
||||||
'F', new ItemStack(Items.flint),
|
'F', new ItemStack(Items.FLINT),
|
||||||
'D', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
'D', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
||||||
'P', new ItemStack(Blocks.piston),
|
'P', new ItemStack(Blocks.PISTON),
|
||||||
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
||||||
recipeLeafBlowerAdvanced = RecipeUtil.lastIRecipe();
|
recipeLeafBlowerAdvanced = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
@ -421,8 +421,8 @@ public class ItemCrafting{
|
||||||
if(ConfigCrafting.PHANTOM_CONNECTOR.isEnabled()){
|
if(ConfigCrafting.PHANTOM_CONNECTOR.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemPhantomConnector),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemPhantomConnector),
|
||||||
"YE", "EY", "S ",
|
"YE", "EY", "S ",
|
||||||
'Y', Items.ender_eye,
|
'Y', Items.ENDER_EYE,
|
||||||
'E', Items.ender_pearl,
|
'E', Items.ENDER_PEARL,
|
||||||
'S', "stickWood"));
|
'S', "stickWood"));
|
||||||
recipePhantomConnector = RecipeUtil.lastIRecipe();
|
recipePhantomConnector = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
@ -442,16 +442,16 @@ public class ItemCrafting{
|
||||||
//Crafter on a Stick
|
//Crafter on a Stick
|
||||||
if(ConfigCrafting.STICK_CRAFTER.isEnabled()){
|
if(ConfigCrafting.STICK_CRAFTER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemCrafterOnAStick),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemCrafterOnAStick),
|
||||||
new ItemStack(Blocks.crafting_table),
|
new ItemStack(Blocks.CRAFTING_TABLE),
|
||||||
new ItemStack(Items.sign)));
|
new ItemStack(Items.SIGN)));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Tiny Coal
|
//Tiny Coal
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemMisc, 8, TheMiscItems.TINY_COAL.ordinal()),
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemMisc, 8, TheMiscItems.TINY_COAL.ordinal()),
|
||||||
new ItemStack(Items.coal));
|
new ItemStack(Items.COAL));
|
||||||
recipeTinyCoal = RecipeUtil.lastIRecipe();
|
recipeTinyCoal = RecipeUtil.lastIRecipe();
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemMisc, 8, TheMiscItems.TINY_CHAR.ordinal()),
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemMisc, 8, TheMiscItems.TINY_CHAR.ordinal()),
|
||||||
new ItemStack(Items.coal, 1, 1));
|
new ItemStack(Items.COAL, 1, 1));
|
||||||
recipeTinyChar = RecipeUtil.lastIRecipe();
|
recipeTinyChar = RecipeUtil.lastIRecipe();
|
||||||
|
|
||||||
//Rice Seeds
|
//Rice Seeds
|
||||||
|
@ -467,21 +467,21 @@ public class ItemCrafting{
|
||||||
|
|
||||||
//Ingots from Dusts
|
//Ingots from Dusts
|
||||||
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.IRON.ordinal()),
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.IRON.ordinal()),
|
||||||
new ItemStack(Items.iron_ingot), 1F);
|
new ItemStack(Items.IRON_INGOT), 1F);
|
||||||
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.GOLD.ordinal()),
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.GOLD.ordinal()),
|
||||||
new ItemStack(Items.gold_ingot), 1F);
|
new ItemStack(Items.GOLD_INGOT), 1F);
|
||||||
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.DIAMOND.ordinal()),
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.DIAMOND.ordinal()),
|
||||||
new ItemStack(Items.diamond), 1F);
|
new ItemStack(Items.DIAMOND), 1F);
|
||||||
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.EMERALD.ordinal()),
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.EMERALD.ordinal()),
|
||||||
new ItemStack(Items.emerald), 1F);
|
new ItemStack(Items.EMERALD), 1F);
|
||||||
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.LAPIS.ordinal()),
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.LAPIS.ordinal()),
|
||||||
new ItemStack(Items.dye, 1, 4), 1F);
|
new ItemStack(Items.DYE, 1, 4), 1F);
|
||||||
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.QUARTZ_BLACK.ordinal()),
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.QUARTZ_BLACK.ordinal()),
|
||||||
new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), 1F);
|
new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), 1F);
|
||||||
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.QUARTZ.ordinal()),
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.QUARTZ.ordinal()),
|
||||||
new ItemStack(Items.quartz), 1F);
|
new ItemStack(Items.QUARTZ), 1F);
|
||||||
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.COAL.ordinal()),
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.COAL.ordinal()),
|
||||||
new ItemStack(Items.coal), 1F);
|
new ItemStack(Items.COAL), 1F);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -526,15 +526,15 @@ public class ItemCrafting{
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void addRingRecipeWithStack(ItemStack mainStack, int meta){
|
public static void addRingRecipeWithStack(ItemStack mainStack, int meta){
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemPotionRing, 1, meta), mainStack, mainStack, mainStack, mainStack, new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.DIAMOND.ordinal()), new ItemStack(Items.nether_wart), new ItemStack(Items.potionitem), new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RING.ordinal()));
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemPotionRing, 1, meta), mainStack, mainStack, mainStack, mainStack, new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.DIAMOND.ordinal()), new ItemStack(Items.NETHER_WART), new ItemStack(Items.POTIONITEM), new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RING.ordinal()));
|
||||||
recipesPotionRings.add(RecipeUtil.lastIRecipe());
|
recipesPotionRings.add(RecipeUtil.lastIRecipe());
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemPotionRingAdvanced, 1, meta), new ItemStack(InitItems.itemPotionRing, 1, meta), new ItemStack(Items.nether_star), new ItemStack(Items.nether_star));
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemPotionRingAdvanced, 1, meta), new ItemStack(InitItems.itemPotionRing, 1, meta), new ItemStack(Items.NETHER_STAR), new ItemStack(Items.NETHER_STAR));
|
||||||
recipesPotionRings.add(RecipeUtil.lastIRecipe());
|
recipesPotionRings.add(RecipeUtil.lastIRecipe());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void initMashedFoodRecipes(){
|
public static void initMashedFoodRecipes(){
|
||||||
if(ConfigCrafting.MASHED_FOOD.isEnabled()){
|
if(ConfigCrafting.MASHED_FOOD.isEnabled()){
|
||||||
for(Item item : Item.itemRegistry){
|
for(Item item : Item.REGISTRY){
|
||||||
if(item instanceof ItemFood || item instanceof IPlantable || item instanceof IGrowable){
|
if(item instanceof ItemFood || item instanceof IPlantable || item instanceof IGrowable){
|
||||||
if(!isBlacklisted(item)){
|
if(!isBlacklisted(item)){
|
||||||
ItemStack ingredient = new ItemStack(item, 1, Util.WILDCARD);
|
ItemStack ingredient = new ItemStack(item, 1, Util.WILDCARD);
|
||||||
|
@ -548,7 +548,7 @@ public class ItemCrafting{
|
||||||
|
|
||||||
private static boolean isBlacklisted(Item item){
|
private static boolean isBlacklisted(Item item){
|
||||||
for(String except : ConfigValues.mashedFoodCraftingExceptions){
|
for(String except : ConfigValues.mashedFoodCraftingExceptions){
|
||||||
if(item.getRegistryName().equals(except)){
|
if(item.getRegistryName().toString().equals(except)){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,14 +59,14 @@ public class MiscCrafting{
|
||||||
if(ConfigCrafting.PAPER_CONE.isEnabled()){
|
if(ConfigCrafting.PAPER_CONE.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.PAPER_CONE.ordinal()),
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.PAPER_CONE.ordinal()),
|
||||||
"P P", " P ",
|
"P P", " P ",
|
||||||
'P', new ItemStack(Items.paper));
|
'P', new ItemStack(Items.PAPER));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Knife Handle
|
//Knife Handle
|
||||||
if(ConfigCrafting.KNIFE_HANDLE.isEnabled()){
|
if(ConfigCrafting.KNIFE_HANDLE.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.KNIFE_HANDLE.ordinal()),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.KNIFE_HANDLE.ordinal()),
|
||||||
"stickWood",
|
"stickWood",
|
||||||
new ItemStack(Items.leather)));
|
new ItemStack(Items.LEATHER)));
|
||||||
ItemCrafting.recipeKnifeHandle = RecipeUtil.lastIRecipe();
|
ItemCrafting.recipeKnifeHandle = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ public class MiscCrafting{
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.KNIFE_BLADE.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.KNIFE_BLADE.ordinal()),
|
||||||
"K", "K", "F",
|
"K", "K", "F",
|
||||||
'K', "ingotIron",
|
'K', "ingotIron",
|
||||||
'F', new ItemStack(Items.flint)));
|
'F', new ItemStack(Items.FLINT)));
|
||||||
ItemCrafting.recipeKnifeBlade = RecipeUtil.lastIRecipe();
|
ItemCrafting.recipeKnifeBlade = RecipeUtil.lastIRecipe();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class ToolCrafting{
|
||||||
public static void init(){
|
public static void init(){
|
||||||
|
|
||||||
if(ConfigCrafting.TOOL_EMERALD.isEnabled()){
|
if(ConfigCrafting.TOOL_EMERALD.isEnabled()){
|
||||||
addToolAndArmorRecipes(new ItemStack(Items.emerald), InitItems.itemPickaxeEmerald, InitItems.itemSwordEmerald, InitItems.itemAxeEmerald, InitItems.itemShovelEmerald, InitItems.itemHoeEmerald, InitItems.itemHelmEmerald, InitItems.itemChestEmerald, InitItems.itemPantsEmerald, InitItems.itemBootsEmerald);
|
addToolAndArmorRecipes(new ItemStack(Items.EMERALD), InitItems.itemPickaxeEmerald, InitItems.itemSwordEmerald, InitItems.itemAxeEmerald, InitItems.itemShovelEmerald, InitItems.itemHoeEmerald, InitItems.itemHelmEmerald, InitItems.itemChestEmerald, InitItems.itemPantsEmerald, InitItems.itemBootsEmerald);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ConfigCrafting.TOOL_QUARTZ.isEnabled()){
|
if(ConfigCrafting.TOOL_QUARTZ.isEnabled()){
|
||||||
|
@ -41,7 +41,7 @@ public class ToolCrafting{
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ConfigCrafting.TOOL_OBSIDIAN.isEnabled()){
|
if(ConfigCrafting.TOOL_OBSIDIAN.isEnabled()){
|
||||||
addToolAndArmorRecipes(new ItemStack(Blocks.obsidian), InitItems.itemPickaxeObsidian, InitItems.itemSwordObsidian, InitItems.itemAxeObsidian, InitItems.itemShovelObsidian, InitItems.itemHoeObsidian, InitItems.itemHelmObsidian, InitItems.itemChestObsidian, InitItems.itemPantsObsidian, InitItems.itemBootsObsidian);
|
addToolAndArmorRecipes(new ItemStack(Blocks.OBSIDIAN), InitItems.itemPickaxeObsidian, InitItems.itemSwordObsidian, InitItems.itemAxeObsidian, InitItems.itemShovelObsidian, InitItems.itemHoeObsidian, InitItems.itemHelmObsidian, InitItems.itemChestObsidian, InitItems.itemPantsObsidian, InitItems.itemBootsObsidian);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ConfigCrafting.TOOL_CRYSTALS.isEnabled()){
|
if(ConfigCrafting.TOOL_CRYSTALS.isEnabled()){
|
||||||
|
@ -56,39 +56,39 @@ public class ToolCrafting{
|
||||||
//Paxels
|
//Paxels
|
||||||
if(ConfigCrafting.PAXELS.isEnabled()){
|
if(ConfigCrafting.PAXELS.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.woodenPaxel),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.woodenPaxel),
|
||||||
new ItemStack(Items.wooden_axe),
|
new ItemStack(Items.WOODEN_AXE),
|
||||||
new ItemStack(Items.wooden_pickaxe),
|
new ItemStack(Items.WOODEN_PICKAXE),
|
||||||
new ItemStack(Items.wooden_shovel),
|
new ItemStack(Items.WOODEN_SHOVEL),
|
||||||
new ItemStack(Items.wooden_sword),
|
new ItemStack(Items.WOODEN_SWORD),
|
||||||
new ItemStack(Items.wooden_hoe)));
|
new ItemStack(Items.WOODEN_HOE)));
|
||||||
recipesPaxels.add(RecipeUtil.lastIRecipe());
|
recipesPaxels.add(RecipeUtil.lastIRecipe());
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.stonePaxel),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.stonePaxel),
|
||||||
new ItemStack(Items.stone_axe),
|
new ItemStack(Items.STONE_AXE),
|
||||||
new ItemStack(Items.stone_pickaxe),
|
new ItemStack(Items.STONE_PICKAXE),
|
||||||
new ItemStack(Items.stone_shovel),
|
new ItemStack(Items.STONE_SHOVEL),
|
||||||
new ItemStack(Items.stone_sword),
|
new ItemStack(Items.STONE_SWORD),
|
||||||
new ItemStack(Items.stone_hoe)));
|
new ItemStack(Items.STONE_HOE)));
|
||||||
recipesPaxels.add(RecipeUtil.lastIRecipe());
|
recipesPaxels.add(RecipeUtil.lastIRecipe());
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.ironPaxel),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.ironPaxel),
|
||||||
new ItemStack(Items.iron_axe),
|
new ItemStack(Items.IRON_AXE),
|
||||||
new ItemStack(Items.iron_pickaxe),
|
new ItemStack(Items.IRON_PICKAXE),
|
||||||
new ItemStack(Items.iron_shovel),
|
new ItemStack(Items.IRON_SHOVEL),
|
||||||
new ItemStack(Items.iron_sword),
|
new ItemStack(Items.IRON_SWORD),
|
||||||
new ItemStack(Items.iron_hoe)));
|
new ItemStack(Items.IRON_HOE)));
|
||||||
recipesPaxels.add(RecipeUtil.lastIRecipe());
|
recipesPaxels.add(RecipeUtil.lastIRecipe());
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.goldPaxel),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.goldPaxel),
|
||||||
new ItemStack(Items.golden_axe),
|
new ItemStack(Items.GOLDEN_AXE),
|
||||||
new ItemStack(Items.golden_pickaxe),
|
new ItemStack(Items.GOLDEN_PICKAXE),
|
||||||
new ItemStack(Items.golden_shovel),
|
new ItemStack(Items.GOLDEN_SHOVEL),
|
||||||
new ItemStack(Items.golden_sword),
|
new ItemStack(Items.GOLDEN_SWORD),
|
||||||
new ItemStack(Items.golden_hoe)));
|
new ItemStack(Items.GOLDEN_HOE)));
|
||||||
recipesPaxels.add(RecipeUtil.lastIRecipe());
|
recipesPaxels.add(RecipeUtil.lastIRecipe());
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.diamondPaxel),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.diamondPaxel),
|
||||||
new ItemStack(Items.diamond_axe),
|
new ItemStack(Items.DIAMOND_AXE),
|
||||||
new ItemStack(Items.diamond_pickaxe),
|
new ItemStack(Items.DIAMOND_PICKAXE),
|
||||||
new ItemStack(Items.diamond_shovel),
|
new ItemStack(Items.DIAMOND_SHOVEL),
|
||||||
new ItemStack(Items.diamond_sword),
|
new ItemStack(Items.DIAMOND_SWORD),
|
||||||
new ItemStack(Items.diamond_hoe)));
|
new ItemStack(Items.DIAMOND_HOE)));
|
||||||
recipesPaxels.add(RecipeUtil.lastIRecipe());
|
recipesPaxels.add(RecipeUtil.lastIRecipe());
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.emeraldPaxel),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.emeraldPaxel),
|
||||||
new ItemStack(InitItems.itemAxeEmerald),
|
new ItemStack(InitItems.itemAxeEmerald),
|
||||||
|
@ -162,31 +162,31 @@ public class ToolCrafting{
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(pickaxe),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(pickaxe),
|
||||||
"EEE", " S ", " S ",
|
"EEE", " S ", " S ",
|
||||||
'E', base,
|
'E', base,
|
||||||
'S', new ItemStack(Items.stick)));
|
'S', new ItemStack(Items.STICK)));
|
||||||
|
|
||||||
//Sword
|
//Sword
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(sword),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(sword),
|
||||||
"E", "E", "S",
|
"E", "E", "S",
|
||||||
'E', base,
|
'E', base,
|
||||||
'S', new ItemStack(Items.stick)));
|
'S', new ItemStack(Items.STICK)));
|
||||||
|
|
||||||
//Axe
|
//Axe
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(axe),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(axe),
|
||||||
"EE", "ES", " S",
|
"EE", "ES", " S",
|
||||||
'E', base,
|
'E', base,
|
||||||
'S', new ItemStack(Items.stick)));
|
'S', new ItemStack(Items.STICK)));
|
||||||
|
|
||||||
//Shovel
|
//Shovel
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(shovel),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(shovel),
|
||||||
"E", "S", "S",
|
"E", "S", "S",
|
||||||
'E', base,
|
'E', base,
|
||||||
'S', new ItemStack(Items.stick)));
|
'S', new ItemStack(Items.STICK)));
|
||||||
|
|
||||||
//Hoe
|
//Hoe
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(hoe),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(hoe),
|
||||||
"EE", " S", " S",
|
"EE", " S", " S",
|
||||||
'E', base,
|
'E', base,
|
||||||
'S', new ItemStack(Items.stick)));
|
'S', new ItemStack(Items.STICK)));
|
||||||
|
|
||||||
//Helm
|
//Helm
|
||||||
GameRegistry.addRecipe(new ItemStack(helm),
|
GameRegistry.addRecipe(new ItemStack(helm),
|
||||||
|
|
|
@ -29,7 +29,7 @@ public class CreativeTab extends CreativeTabs{
|
||||||
private List list;
|
private List list;
|
||||||
|
|
||||||
public CreativeTab(){
|
public CreativeTab(){
|
||||||
super(ModUtil.MOD_ID_LOWER);
|
super(ModUtil.MOD_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -28,12 +28,12 @@ public class EntityLivingEvent{
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void livingUpdateEvent(LivingUpdateEvent event){
|
public void livingUpdateEvent(LivingUpdateEvent event){
|
||||||
//Ocelots dropping Hair Balls
|
//Ocelots dropping Hair Balls
|
||||||
if(event.entityLiving != null && event.entityLiving.worldObj != null && !event.entityLiving.worldObj.isRemote){
|
if(event.getEntityLiving() != null && event.getEntityLiving().worldObj != null && !event.getEntityLiving().worldObj.isRemote){
|
||||||
if((event.entityLiving instanceof EntityOcelot && ((EntityOcelot)event.entityLiving).isTamed()) || (event.entityLiving instanceof EntityPlayer && event.entityLiving.getUniqueID().equals(/*KittyVanCat*/ UUID.fromString("681d4e20-10ef-40c9-a0a5-ba2f1995ef44")))){
|
if((event.getEntityLiving() instanceof EntityOcelot && ((EntityOcelot)event.getEntityLiving()).isTamed()) || (event.getEntityLiving() instanceof EntityPlayer && event.getEntityLiving().getUniqueID().equals(/*KittyVanCat*/ UUID.fromString("681d4e20-10ef-40c9-a0a5-ba2f1995ef44")))){
|
||||||
if(ConfigBoolValues.DO_CAT_DROPS.isEnabled()){
|
if(ConfigBoolValues.DO_CAT_DROPS.isEnabled()){
|
||||||
if(Util.RANDOM.nextInt(5000)+1 == 1){
|
if(Util.RANDOM.nextInt(5000)+1 == 1){
|
||||||
EntityItem item = new EntityItem(event.entityLiving.worldObj, event.entityLiving.posX+0.5, event.entityLiving.posY+0.5, event.entityLiving.posZ+0.5, new ItemStack(InitItems.itemHairyBall));
|
EntityItem item = new EntityItem(event.getEntityLiving().worldObj, event.getEntityLiving().posX+0.5, event.getEntityLiving().posY+0.5, event.getEntityLiving().posZ+0.5, new ItemStack(InitItems.itemHairyBall));
|
||||||
event.entityLiving.worldObj.spawnEntityInWorld(item);
|
event.getEntityLiving().worldObj.spawnEntityInWorld(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,8 +48,8 @@ public class EntityLivingEvent{
|
||||||
* (Partially excerpted from Botania's Wing System by Vazkii (as I had fiddled around with the system and couldn't make it work) with permission, thanks!)
|
* (Partially excerpted from Botania's Wing System by Vazkii (as I had fiddled around with the system and couldn't make it work) with permission, thanks!)
|
||||||
*/
|
*/
|
||||||
private void doWingStuff(LivingUpdateEvent event){
|
private void doWingStuff(LivingUpdateEvent event){
|
||||||
if(event.entityLiving instanceof EntityPlayer){
|
if(event.getEntityLiving() instanceof EntityPlayer){
|
||||||
EntityPlayer player = (EntityPlayer)event.entityLiving;
|
EntityPlayer player = (EntityPlayer)event.getEntityLiving();
|
||||||
boolean wingsEquipped = ItemWingsOfTheBats.getWingItem(player) != null;
|
boolean wingsEquipped = ItemWingsOfTheBats.getWingItem(player) != null;
|
||||||
|
|
||||||
//If Player isn't (really) winged
|
//If Player isn't (really) winged
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class HudEvent{
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onGameOverlay(RenderGameOverlayEvent.Post event){
|
public void onGameOverlay(RenderGameOverlayEvent.Post event){
|
||||||
if(event.type == RenderGameOverlayEvent.ElementType.ALL && Minecraft.getMinecraft().currentScreen == null){
|
if(event.getType() == RenderGameOverlayEvent.ElementType.ALL && Minecraft.getMinecraft().currentScreen == null){
|
||||||
Minecraft minecraft = Minecraft.getMinecraft();
|
Minecraft minecraft = Minecraft.getMinecraft();
|
||||||
Profiler profiler = minecraft.mcProfiler;
|
Profiler profiler = minecraft.mcProfiler;
|
||||||
EntityPlayer player = minecraft.thePlayer;
|
EntityPlayer player = minecraft.thePlayer;
|
||||||
|
@ -46,7 +46,7 @@ public class HudEvent{
|
||||||
if(stack != null){
|
if(stack != null){
|
||||||
if(stack.getItem() instanceof IHudDisplay){
|
if(stack.getItem() instanceof IHudDisplay){
|
||||||
profiler.startSection("ItemHudDisplay");
|
profiler.startSection("ItemHudDisplay");
|
||||||
((IHudDisplay)stack.getItem()).displayHud(minecraft, player, stack, posHit, profiler, event.resolution);
|
((IHudDisplay)stack.getItem()).displayHud(minecraft, player, stack, posHit, profiler, event.getResolution());
|
||||||
profiler.endSection();
|
profiler.endSection();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ public class HudEvent{
|
||||||
|
|
||||||
if(blockHit instanceof IHudDisplay){
|
if(blockHit instanceof IHudDisplay){
|
||||||
profiler.startSection("BlockHudDisplay");
|
profiler.startSection("BlockHudDisplay");
|
||||||
((IHudDisplay)blockHit).displayHud(minecraft, player, stack, posHit, profiler, event.resolution);
|
((IHudDisplay)blockHit).displayHud(minecraft, player, stack, posHit, profiler, event.getResolution());
|
||||||
profiler.endSection();
|
profiler.endSection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,11 +65,11 @@ public class HudEvent{
|
||||||
profiler.startSection("RedstoneToggleHudDisplay");
|
profiler.startSection("RedstoneToggleHudDisplay");
|
||||||
|
|
||||||
String strg = "Redstone Mode: "+TextFormatting.DARK_RED+(((IRedstoneToggle)tileHit).isPulseMode() ? "Pulse" : "Deactivation")+TextFormatting.RESET;
|
String strg = "Redstone Mode: "+TextFormatting.DARK_RED+(((IRedstoneToggle)tileHit).isPulseMode() ? "Pulse" : "Deactivation")+TextFormatting.RESET;
|
||||||
font.drawStringWithShadow(strg, event.resolution.getScaledWidth()/2+5, event.resolution.getScaledHeight()/2+5, StringUtil.DECIMAL_COLOR_WHITE);
|
font.drawStringWithShadow(strg, event.getResolution().getScaledWidth()/2+5, event.getResolution().getScaledHeight()/2+5, StringUtil.DECIMAL_COLOR_WHITE);
|
||||||
|
|
||||||
if(stack != null && Block.getBlockFromItem(stack.getItem()) instanceof BlockRedstoneTorch){
|
if(stack != null && Block.getBlockFromItem(stack.getItem()) instanceof BlockRedstoneTorch){
|
||||||
String expl = TextFormatting.GREEN+"Right-Click to toggle!";
|
String expl = TextFormatting.GREEN+"Right-Click to toggle!";
|
||||||
font.drawStringWithShadow(expl, event.resolution.getScaledWidth()/2+5, event.resolution.getScaledHeight()/2+15, StringUtil.DECIMAL_COLOR_WHITE);
|
font.drawStringWithShadow(expl, event.getResolution().getScaledWidth()/2+5, event.getResolution().getScaledHeight()/2+15, StringUtil.DECIMAL_COLOR_WHITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
profiler.endSection();
|
profiler.endSection();
|
||||||
|
@ -78,7 +78,7 @@ public class HudEvent{
|
||||||
if(tileHit instanceof IEnergyDisplay){
|
if(tileHit instanceof IEnergyDisplay){
|
||||||
profiler.startSection("EnergyDisplay");
|
profiler.startSection("EnergyDisplay");
|
||||||
String strg = ((IEnergyDisplay)tileHit).getEnergy()+"/"+((IEnergyDisplay)tileHit).getMaxEnergy()+" RF";
|
String strg = ((IEnergyDisplay)tileHit).getEnergy()+"/"+((IEnergyDisplay)tileHit).getMaxEnergy()+" RF";
|
||||||
font.drawStringWithShadow(TextFormatting.GOLD+strg, event.resolution.getScaledWidth()/2+5, event.resolution.getScaledHeight()/2-10, StringUtil.DECIMAL_COLOR_WHITE);
|
font.drawStringWithShadow(TextFormatting.GOLD+strg, event.getResolution().getScaledWidth()/2+5, event.getResolution().getScaledHeight()/2-10, StringUtil.DECIMAL_COLOR_WHITE);
|
||||||
profiler.endSection();
|
profiler.endSection();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,25 +27,25 @@ public class LivingDropEvent{
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onEntityDropEvent(LivingDropsEvent event){
|
public void onEntityDropEvent(LivingDropsEvent event){
|
||||||
if(event.source.getEntity() instanceof EntityPlayer){
|
if(event.getSource().getEntity() instanceof EntityPlayer){
|
||||||
//Drop Solidified XP
|
//Drop Solidified XP
|
||||||
if(event.entityLiving instanceof EntityCreature){
|
if(event.getEntityLiving() instanceof EntityCreature){
|
||||||
if(Util.RANDOM.nextInt(15) <= 0){
|
if(Util.RANDOM.nextInt(15) <= 0){
|
||||||
event.entityLiving.entityDropItem(new ItemStack(InitItems.itemSolidifiedExperience, Util.RANDOM.nextInt(2)+1), 0);
|
event.getEntityLiving().entityDropItem(new ItemStack(InitItems.itemSolidifiedExperience, Util.RANDOM.nextInt(2)+1), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Drop Cobwebs from Spiders
|
//Drop Cobwebs from Spiders
|
||||||
if(ConfigBoolValues.DO_SPIDER_DROPS.isEnabled() && event.entityLiving instanceof EntitySpider){
|
if(ConfigBoolValues.DO_SPIDER_DROPS.isEnabled() && event.getEntityLiving() instanceof EntitySpider){
|
||||||
if(Util.RANDOM.nextInt(80) <= 0){
|
if(Util.RANDOM.nextInt(80) <= 0){
|
||||||
event.entityLiving.entityDropItem(new ItemStack(Blocks.web, Util.RANDOM.nextInt(2)+1), 0);
|
event.getEntityLiving().entityDropItem(new ItemStack(Blocks.WEB, Util.RANDOM.nextInt(2)+1), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Drop Wings from Bats
|
//Drop Wings from Bats
|
||||||
if(ConfigBoolValues.DO_BAT_DROPS.isEnabled() && event.entityLiving instanceof EntityBat){
|
if(ConfigBoolValues.DO_BAT_DROPS.isEnabled() && event.getEntityLiving() instanceof EntityBat){
|
||||||
if(Util.RANDOM.nextInt(30) <= 0){
|
if(Util.RANDOM.nextInt(30) <= 0){
|
||||||
event.entityLiving.entityDropItem(new ItemStack(InitItems.itemMisc, Util.RANDOM.nextInt(2)+1, TheMiscItems.BAT_WING.ordinal()), 0);
|
event.getEntityLiving().entityDropItem(new ItemStack(InitItems.itemMisc, Util.RANDOM.nextInt(2)+1, TheMiscItems.BAT_WING.ordinal()), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,8 +48,8 @@ public class PlayerObtainEvents{
|
||||||
if(ConfigBoolValues.GIVE_BOOKLET_ON_FIRST_CRAFT.isEnabled()){
|
if(ConfigBoolValues.GIVE_BOOKLET_ON_FIRST_CRAFT.isEnabled()){
|
||||||
if(!event.player.worldObj.isRemote && event.crafting != null && event.crafting.getItem() != null && event.crafting.getItem() != InitItems.itemBooklet){
|
if(!event.player.worldObj.isRemote && event.crafting != null && event.crafting.getItem() != null && event.crafting.getItem() != InitItems.itemBooklet){
|
||||||
|
|
||||||
String name = event.crafting.getItem().getRegistryName();
|
String name = event.crafting.getItem().getRegistryName().toString();
|
||||||
if(name != null && name.toLowerCase(Locale.ROOT).contains(ModUtil.MOD_ID_LOWER)){
|
if(name != null && name.toLowerCase(Locale.ROOT).contains(ModUtil.MOD_ID)){
|
||||||
NBTTagCompound compound = PersistentServerData.getDataFromPlayer(event.player);
|
NBTTagCompound compound = PersistentServerData.getDataFromPlayer(event.player);
|
||||||
if(compound != null && !compound.getBoolean("BookGottenAlready")){
|
if(compound != null && !compound.getBoolean("BookGottenAlready")){
|
||||||
compound.setBoolean("BookGottenAlready", true);
|
compound.setBoolean("BookGottenAlready", true);
|
||||||
|
|
|
@ -33,68 +33,68 @@ public class TooltipEvent{
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onTooltipEvent(ItemTooltipEvent event){
|
public void onTooltipEvent(ItemTooltipEvent event){
|
||||||
//Advanced Item Info
|
//Advanced Item Info
|
||||||
if(event.itemStack.getItem() != null){
|
if(event.getItemStack().getItem() != null){
|
||||||
if(ConfigBoolValues.CTRL_EXTRA_INFO.isEnabled()){
|
if(ConfigBoolValues.CTRL_EXTRA_INFO.isEnabled()){
|
||||||
if(GuiScreen.isCtrlKeyDown()){
|
if(GuiScreen.isCtrlKeyDown()){
|
||||||
event.toolTip.add(TextFormatting.DARK_GRAY+""+TextFormatting.ITALIC+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".extraInfo.desc")+":");
|
event.getToolTip().add(TextFormatting.DARK_GRAY+""+TextFormatting.ITALIC+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".extraInfo.desc")+":");
|
||||||
|
|
||||||
//OreDict Names
|
//OreDict Names
|
||||||
int[] oreIDs = OreDictionary.getOreIDs(event.itemStack);
|
int[] oreIDs = OreDictionary.getOreIDs(event.getItemStack());
|
||||||
event.toolTip.add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".oredictName.desc")+":");
|
event.getToolTip().add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".oredictName.desc")+":");
|
||||||
if(oreIDs.length > 0){
|
if(oreIDs.length > 0){
|
||||||
for(int oreID : oreIDs){
|
for(int oreID : oreIDs){
|
||||||
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+OreDictionary.getOreName(oreID));
|
event.getToolTip().add(ADVANCED_INFO_TEXT_PRE+OreDictionary.getOreName(oreID));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".noOredictNameAvail.desc"));
|
event.getToolTip().add(ADVANCED_INFO_TEXT_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".noOredictNameAvail.desc"));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Code Name
|
//Code Name
|
||||||
event.toolTip.add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".codeName.desc")+":");
|
event.getToolTip().add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".codeName.desc")+":");
|
||||||
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+Item.itemRegistry.getNameForObject(event.itemStack.getItem()));
|
event.getToolTip().add(ADVANCED_INFO_TEXT_PRE+Item.REGISTRY.getNameForObject(event.getItemStack().getItem()));
|
||||||
|
|
||||||
//Base Item's Unlocalized Name
|
//Base Item's Unlocalized Name
|
||||||
String baseName = event.itemStack.getItem().getUnlocalizedName();
|
String baseName = event.getItemStack().getItem().getUnlocalizedName();
|
||||||
if(baseName != null){
|
if(baseName != null){
|
||||||
event.toolTip.add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".baseUnlocName.desc")+":");
|
event.getToolTip().add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".baseUnlocName.desc")+":");
|
||||||
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+baseName);
|
event.getToolTip().add(ADVANCED_INFO_TEXT_PRE+baseName);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Metadata
|
//Metadata
|
||||||
int meta = event.itemStack.getItemDamage();
|
int meta = event.getItemStack().getItemDamage();
|
||||||
event.toolTip.add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".meta.desc")+":");
|
event.getToolTip().add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".meta.desc")+":");
|
||||||
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+meta);
|
event.getToolTip().add(ADVANCED_INFO_TEXT_PRE+meta);
|
||||||
|
|
||||||
//Unlocalized Name
|
//Unlocalized Name
|
||||||
String metaName = event.itemStack.getItem().getUnlocalizedName(event.itemStack);
|
String metaName = event.getItemStack().getItem().getUnlocalizedName(event.getItemStack());
|
||||||
if(metaName != null && baseName != null && !metaName.equals(baseName)){
|
if(metaName != null && baseName != null && !metaName.equals(baseName)){
|
||||||
event.toolTip.add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".unlocName.desc")+":");
|
event.getToolTip().add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".unlocName.desc")+":");
|
||||||
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+metaName);
|
event.getToolTip().add(ADVANCED_INFO_TEXT_PRE+metaName);
|
||||||
}
|
}
|
||||||
|
|
||||||
//NBT
|
//NBT
|
||||||
NBTTagCompound compound = event.itemStack.getTagCompound();
|
NBTTagCompound compound = event.getItemStack().getTagCompound();
|
||||||
if(compound != null && !compound.hasNoTags()){
|
if(compound != null && !compound.hasNoTags()){
|
||||||
event.toolTip.add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".nbt.desc")+":");
|
event.getToolTip().add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".nbt.desc")+":");
|
||||||
if(GuiScreen.isShiftKeyDown()){
|
if(GuiScreen.isShiftKeyDown()){
|
||||||
List<String> strgList = Minecraft.getMinecraft().fontRendererObj.listFormattedStringToWidth(compound.toString(), 200);
|
List<String> strgList = Minecraft.getMinecraft().fontRendererObj.listFormattedStringToWidth(compound.toString(), 200);
|
||||||
for(String strg : strgList){
|
for(String strg : strgList){
|
||||||
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+strg);
|
event.getToolTip().add(ADVANCED_INFO_TEXT_PRE+strg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
event.toolTip.add(ADVANCED_INFO_TEXT_PRE+TextFormatting.ITALIC+"["+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".pressShift.desc")+"]");
|
event.getToolTip().add(ADVANCED_INFO_TEXT_PRE+TextFormatting.ITALIC+"["+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".pressShift.desc")+"]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Disabling Info
|
//Disabling Info
|
||||||
event.toolTip.addAll(Minecraft.getMinecraft().fontRendererObj.listFormattedStringToWidth(TextFormatting.ITALIC+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".disablingInfo.desc"), 200));
|
event.getToolTip().addAll(Minecraft.getMinecraft().fontRendererObj.listFormattedStringToWidth(TextFormatting.ITALIC+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".disablingInfo.desc"), 200));
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(ConfigBoolValues.CTRL_INFO_FOR_EXTRA_INFO.isEnabled()){
|
if(ConfigBoolValues.CTRL_INFO_FOR_EXTRA_INFO.isEnabled()){
|
||||||
event.toolTip.add(TextFormatting.DARK_GRAY+""+TextFormatting .ITALIC+StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+".ctrlForMoreInfo.desc"));
|
event.getToolTip().add(TextFormatting.DARK_GRAY+""+TextFormatting .ITALIC+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".ctrlForMoreInfo.desc"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,25 +34,25 @@ public class WorldDecorationEvent{
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onWorldDecoration(DecorateBiomeEvent.Decorate event){
|
public void onWorldDecoration(DecorateBiomeEvent.Decorate event){
|
||||||
if((event.getResult() == Event.Result.ALLOW || event.getResult() == Event.Result.DEFAULT)){
|
if((event.getResult() == Event.Result.ALLOW || event.getResult() == Event.Result.DEFAULT)){
|
||||||
if(Util.arrayContains(ConfigValues.plantDimensionBlacklist, event.world.provider.getDimension()) < 0){
|
if(Util.arrayContains(ConfigValues.plantDimensionBlacklist, event.getWorld().provider.getDimension()) < 0){
|
||||||
this.generateRice(event);
|
this.generateRice(event);
|
||||||
this.genPlantNormally(InitBlocks.blockWildPlant, TheWildPlants.CANOLA.ordinal(), ConfigIntValues.CANOLA_AMOUNT.getValue(), ConfigBoolValues.DO_CANOLA_GEN.isEnabled(), Material.grass, event);
|
this.genPlantNormally(InitBlocks.blockWildPlant, TheWildPlants.CANOLA.ordinal(), ConfigIntValues.CANOLA_AMOUNT.getValue(), ConfigBoolValues.DO_CANOLA_GEN.isEnabled(), Material.GRASS, event);
|
||||||
this.genPlantNormally(InitBlocks.blockWildPlant, TheWildPlants.FLAX.ordinal(), ConfigIntValues.FLAX_AMOUNT.getValue(), ConfigBoolValues.DO_FLAX_GEN.isEnabled(), Material.grass, event);
|
this.genPlantNormally(InitBlocks.blockWildPlant, TheWildPlants.FLAX.ordinal(), ConfigIntValues.FLAX_AMOUNT.getValue(), ConfigBoolValues.DO_FLAX_GEN.isEnabled(), Material.GRASS, event);
|
||||||
this.genPlantNormally(InitBlocks.blockWildPlant, TheWildPlants.COFFEE.ordinal(), ConfigIntValues.COFFEE_AMOUNT.getValue(), ConfigBoolValues.DO_COFFEE_GEN.isEnabled(), Material.grass, event);
|
this.genPlantNormally(InitBlocks.blockWildPlant, TheWildPlants.COFFEE.ordinal(), ConfigIntValues.COFFEE_AMOUNT.getValue(), ConfigBoolValues.DO_COFFEE_GEN.isEnabled(), Material.GRASS, event);
|
||||||
this.genPlantNormally(InitBlocks.blockBlackLotus, 0, ConfigIntValues.BLACK_LOTUS_AMOUNT.getValue(), ConfigBoolValues.DO_LOTUS_GEN.isEnabled(), Material.grass, event);
|
this.genPlantNormally(InitBlocks.blockBlackLotus, 0, ConfigIntValues.BLACK_LOTUS_AMOUNT.getValue(), ConfigBoolValues.DO_LOTUS_GEN.isEnabled(), Material.GRASS, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Generate Treasure Chests
|
//Generate Treasure Chests
|
||||||
if(ConfigBoolValues.DO_TREASURE_CHEST_GEN.isEnabled()){
|
if(ConfigBoolValues.DO_TREASURE_CHEST_GEN.isEnabled()){
|
||||||
if(event.rand.nextInt(300) == 0){
|
if(event.getRand().nextInt(300) == 0){
|
||||||
BlockPos randomPos = new BlockPos(event.pos.getX()+event.rand.nextInt(16)+8, 0, event.pos.getZ()+event.rand.nextInt(16)+8);
|
BlockPos randomPos = new BlockPos(event.getPos().getX()+event.getRand().nextInt(16)+8, 0, event.getPos().getZ()+event.getRand().nextInt(16)+8);
|
||||||
randomPos = event.world.getTopSolidOrLiquidBlock(randomPos);
|
randomPos = event.getWorld().getTopSolidOrLiquidBlock(randomPos);
|
||||||
|
|
||||||
if(event.world.getBiomeGenForCoords(randomPos) instanceof BiomeGenOcean){
|
if(event.getWorld().getBiomeGenForCoords(randomPos) instanceof BiomeGenOcean){
|
||||||
if(randomPos.getY() >= 25 && randomPos.getY() <= 45){
|
if(randomPos.getY() >= 25 && randomPos.getY() <= 45){
|
||||||
if(PosUtil.getBlock(randomPos, event.world).getMaterial(event.world.getBlockState(randomPos)) == Material.water){
|
if(PosUtil.getBlock(randomPos, event.getWorld()).getMaterial(event.getWorld().getBlockState(randomPos)) == Material.WATER){
|
||||||
if(PosUtil.getMaterial(PosUtil.offset(randomPos, 0, -1, 0), event.world).isSolid()){
|
if(PosUtil.getMaterial(PosUtil.offset(randomPos, 0, -1, 0), event.getWorld()).isSolid()){
|
||||||
PosUtil.setBlock(randomPos, event.world, InitBlocks.blockTreasureChest, event.rand.nextInt(4), 2);
|
PosUtil.setBlock(randomPos, event.getWorld(), InitBlocks.blockTreasureChest, event.getRand().nextInt(4), 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,16 +65,16 @@ public class WorldDecorationEvent{
|
||||||
private void generateRice(DecorateBiomeEvent event){
|
private void generateRice(DecorateBiomeEvent event){
|
||||||
if(ConfigBoolValues.DO_RICE_GEN.isEnabled()){
|
if(ConfigBoolValues.DO_RICE_GEN.isEnabled()){
|
||||||
for(int i = 0; i < ConfigIntValues.RICE_AMOUNT.getValue(); i++){
|
for(int i = 0; i < ConfigIntValues.RICE_AMOUNT.getValue(); i++){
|
||||||
if(event.rand.nextInt(50) == 0){
|
if(event.getRand().nextInt(50) == 0){
|
||||||
BlockPos randomPos = new BlockPos(event.pos.getX()+event.rand.nextInt(16)+8, 0, event.pos.getZ()+event.rand.nextInt(16)+8);
|
BlockPos randomPos = new BlockPos(event.getPos().getX()+event.getRand().nextInt(16)+8, 0, event.getPos().getZ()+event.getRand().nextInt(16)+8);
|
||||||
randomPos = event.world.getTopSolidOrLiquidBlock(randomPos);
|
randomPos = event.getWorld().getTopSolidOrLiquidBlock(randomPos);
|
||||||
if(PosUtil.getMaterial(randomPos, event.world) == Material.water){
|
if(PosUtil.getMaterial(randomPos, event.getWorld()) == Material.WATER){
|
||||||
ArrayList<Material> blocksAroundBottom = WorldUtil.getMaterialsAround(event.world, randomPos);
|
ArrayList<Material> blocksAroundBottom = WorldUtil.getMaterialsAround(event.getWorld(), randomPos);
|
||||||
BlockPos posToGenAt = PosUtil.offset(randomPos, 0, 1, 0);
|
BlockPos posToGenAt = PosUtil.offset(randomPos, 0, 1, 0);
|
||||||
ArrayList<Material> blocksAroundTop = WorldUtil.getMaterialsAround(event.world, posToGenAt);
|
ArrayList<Material> blocksAroundTop = WorldUtil.getMaterialsAround(event.getWorld(), posToGenAt);
|
||||||
if(blocksAroundBottom.contains(Material.grass) || blocksAroundBottom.contains(Material.ground) || blocksAroundBottom.contains(Material.rock) || blocksAroundBottom.contains(Material.sand)){
|
if(blocksAroundBottom.contains(Material.GRASS) || blocksAroundBottom.contains(Material.GROUND) || blocksAroundBottom.contains(Material.ROCK) || blocksAroundBottom.contains(Material.SAND)){
|
||||||
if(!blocksAroundTop.contains(Material.water) && PosUtil.getMaterial(posToGenAt, event.world) == Material.air){
|
if(!blocksAroundTop.contains(Material.WATER) && PosUtil.getMaterial(posToGenAt, event.getWorld()) == Material.AIR){
|
||||||
PosUtil.setBlock(posToGenAt, event.world, InitBlocks.blockWildPlant, TheWildPlants.RICE.ordinal(), 2);
|
PosUtil.setBlock(posToGenAt, event.getWorld(), InitBlocks.blockWildPlant, TheWildPlants.RICE.ordinal(), 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -86,13 +86,13 @@ public class WorldDecorationEvent{
|
||||||
private void genPlantNormally(Block plant, int meta, int amount, boolean doIt, Material blockBelow, DecorateBiomeEvent event){
|
private void genPlantNormally(Block plant, int meta, int amount, boolean doIt, Material blockBelow, DecorateBiomeEvent event){
|
||||||
if(doIt){
|
if(doIt){
|
||||||
for(int i = 0; i < amount; i++){
|
for(int i = 0; i < amount; i++){
|
||||||
if(event.rand.nextInt(400) == 0){
|
if(event.getRand().nextInt(400) == 0){
|
||||||
BlockPos randomPos = new BlockPos(event.pos.getX()+event.rand.nextInt(16)+8, 0, event.pos.getZ()+event.rand.nextInt(16)+8);
|
BlockPos randomPos = new BlockPos(event.getPos().getX()+event.getRand().nextInt(16)+8, 0, event.getPos().getZ()+event.getRand().nextInt(16)+8);
|
||||||
randomPos = event.world.getTopSolidOrLiquidBlock(randomPos);
|
randomPos = event.getWorld().getTopSolidOrLiquidBlock(randomPos);
|
||||||
|
|
||||||
if(PosUtil.getMaterial(PosUtil.offset(randomPos, 0, -1, 0), event.world) == blockBelow){
|
if(PosUtil.getMaterial(PosUtil.offset(randomPos, 0, -1, 0), event.getWorld()) == blockBelow){
|
||||||
if(plant.canPlaceBlockAt(event.world, randomPos) && event.world.isAirBlock(randomPos)){
|
if(plant.canPlaceBlockAt(event.getWorld(), randomPos) && event.getWorld().isAirBlock(randomPos)){
|
||||||
PosUtil.setBlock(randomPos, event.world, plant, meta, 2);
|
PosUtil.setBlock(randomPos, event.getWorld(), plant, meta, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,11 +17,11 @@ import net.minecraftforge.fluids.Fluid;
|
||||||
public class FluidAA extends Fluid{
|
public class FluidAA extends Fluid{
|
||||||
|
|
||||||
public FluidAA(String fluidName, String textureName){
|
public FluidAA(String fluidName, String textureName){
|
||||||
super(fluidName, new ResourceLocation(ModUtil.MOD_ID_LOWER, "blocks/"+textureName+"Still"), new ResourceLocation(ModUtil.MOD_ID_LOWER, "blocks/"+textureName+"Flowing"));
|
super(fluidName, new ResourceLocation(ModUtil.MOD_ID, "blocks/"+textureName+"Still"), new ResourceLocation(ModUtil.MOD_ID, "blocks/"+textureName+"Flowing"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getUnlocalizedName(){
|
public String getUnlocalizedName(){
|
||||||
return "fluid."+ModUtil.MOD_ID_LOWER+"."+this.unlocalizedName;
|
return "fluid."+ModUtil.MOD_ID+"."+this.unlocalizedName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ public class InitFluids{
|
||||||
|
|
||||||
//Canola Block
|
//Canola Block
|
||||||
if(fluidCanolaOil.getBlock() == null || ConfigBoolValues.PREVENT_CANOLA_BLOCK_OVERRIDE.isEnabled()){
|
if(fluidCanolaOil.getBlock() == null || ConfigBoolValues.PREVENT_CANOLA_BLOCK_OVERRIDE.isEnabled()){
|
||||||
blockCanolaOil = new BlockFluidFlowing(fluidCanolaOil, Material.water, "blockCanolaOil");
|
blockCanolaOil = new BlockFluidFlowing(fluidCanolaOil, Material.WATER, "blockCanolaOil");
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
errorAlreadyRegistered("Canola Oil Block");
|
errorAlreadyRegistered("Canola Oil Block");
|
||||||
|
@ -61,7 +61,7 @@ public class InitFluids{
|
||||||
|
|
||||||
//Oil Block
|
//Oil Block
|
||||||
if(fluidOil.getBlock() == null || ConfigBoolValues.PREVENT_OIL_BLOCK_OVERRIDE.isEnabled()){
|
if(fluidOil.getBlock() == null || ConfigBoolValues.PREVENT_OIL_BLOCK_OVERRIDE.isEnabled()){
|
||||||
blockOil = new BlockFluidFlowing(fluidOil, Material.water, "blockOil");
|
blockOil = new BlockFluidFlowing(fluidOil, Material.WATER, "blockOil");
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
errorAlreadyRegistered("Oil Block");
|
errorAlreadyRegistered("Oil Block");
|
||||||
|
|
|
@ -16,7 +16,7 @@ import net.minecraft.world.gen.structure.MapGenStructureIO;
|
||||||
|
|
||||||
public class InitVillager{
|
public class InitVillager{
|
||||||
|
|
||||||
public static final String JAM_HOUSE_CHEST_NAME = ModUtil.MOD_ID_LOWER+".jamHouseChest";
|
public static final String JAM_HOUSE_CHEST_NAME = ModUtil.MOD_ID+".jamHouseChest";
|
||||||
|
|
||||||
public static void init(){
|
public static void init(){
|
||||||
ModUtil.LOGGER.info("Initializing Village Addons...");
|
ModUtil.LOGGER.info("Initializing Village Addons...");
|
||||||
|
@ -45,13 +45,13 @@ public class InitVillager{
|
||||||
ChestGenHooks.addItem(JAM_HOUSE_CHEST_NAME, new WeightedRandomChestContent(new ItemStack(Items.potionitem), 1, 1, 20));
|
ChestGenHooks.addItem(JAM_HOUSE_CHEST_NAME, new WeightedRandomChestContent(new ItemStack(Items.potionitem), 1, 1, 20));
|
||||||
|
|
||||||
VillagerRegistry.instance().registerVillageCreationHandler(new VillageJamHouseHandler());
|
VillagerRegistry.instance().registerVillageCreationHandler(new VillageJamHouseHandler());
|
||||||
MapGenStructureIO.func_143031_a(VillageComponentJamHouse.class, ModUtil.MOD_ID_LOWER+":jamHouseStructure");*/
|
MapGenStructureIO.func_143031_a(VillageComponentJamHouse.class, ModUtil.MOD_ID+":jamHouseStructure");*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void initCustomCropFieldPart(){
|
private static void initCustomCropFieldPart(){
|
||||||
//TODO Fix village
|
//TODO Fix village
|
||||||
//VillagerRegistry.instance().registerVillageCreationHandler(new VillageCustomCropFieldHandler());
|
//VillagerRegistry.instance().registerVillageCreationHandler(new VillageCustomCropFieldHandler());
|
||||||
MapGenStructureIO.registerStructureComponent(VillageComponentCustomCropField.class, ModUtil.MOD_ID_LOWER+":customCropFieldStructure");
|
MapGenStructureIO.registerStructureComponent(VillageComponentCustomCropField.class, ModUtil.MOD_ID+":customCropFieldStructure");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,9 +32,9 @@ public class JamVillagerTradeHandler{
|
||||||
this.addWants("ingotGold", 5, 7);
|
this.addWants("ingotGold", 5, 7);
|
||||||
this.addWants("cropWheat", 15, 25);
|
this.addWants("cropWheat", 15, 25);
|
||||||
this.addWants("dustRedstone", 25, 40);
|
this.addWants("dustRedstone", 25, 40);
|
||||||
this.addWants(new ItemStack(Items.bucket), 5, 9);
|
this.addWants(new ItemStack(Items.BUCKET), 5, 9);
|
||||||
this.addWants(new ItemStack(Items.glass_bottle), 12, 17);
|
this.addWants(new ItemStack(Items.GLASS_BOTTLE), 12, 17);
|
||||||
this.addWants(new ItemStack(Items.potionitem), 1, 1);
|
this.addWants(new ItemStack(Items.POTIONITEM), 1, 1);
|
||||||
this.addWants("ingotIron", 10, 15);
|
this.addWants("ingotIron", 10, 15);
|
||||||
this.addWants("gemDiamond", 1, 2);
|
this.addWants("gemDiamond", 1, 2);
|
||||||
this.addWants("dustGlowstone", 12, 22);
|
this.addWants("dustGlowstone", 12, 22);
|
||||||
|
|
|
@ -69,7 +69,7 @@ public class OreGen implements IWorldGenerator{
|
||||||
|
|
||||||
private void generateSurface(World world, Random random, int x, int z){
|
private void generateSurface(World world, Random random, int x, int z){
|
||||||
if(ConfigBoolValues.GENERATE_QUARTZ.isEnabled()){
|
if(ConfigBoolValues.GENERATE_QUARTZ.isEnabled()){
|
||||||
this.addOreSpawn(InitBlocks.blockMisc, TheMiscBlocks.ORE_QUARTZ.ordinal(), Blocks.stone, world, random, x, z, MathHelper.getRandomIntegerInRange(random, 5, 8), 10, QUARTZ_MIN, QUARTZ_MAX);
|
this.addOreSpawn(InitBlocks.blockMisc, TheMiscBlocks.ORE_QUARTZ.ordinal(), Blocks.STONE, world, random, x, z, MathHelper.getRandomIntegerInRange(random, 5, 8), 10, QUARTZ_MIN, QUARTZ_MAX);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ public class ContainerCrafter extends Container{
|
||||||
for(int i = 0; i < 9; ++i){
|
for(int i = 0; i < 9; ++i){
|
||||||
ItemStack stack = this.craftMatrix.removeStackFromSlot(i);
|
ItemStack stack = this.craftMatrix.removeStackFromSlot(i);
|
||||||
if(stack != null){
|
if(stack != null){
|
||||||
player.dropPlayerItemWithRandomChoice(stack, false);
|
player.dropItem(stack, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ public class GuiCoffeeMachine extends GuiContainer{
|
||||||
public void initGui(){
|
public void initGui(){
|
||||||
super.initGui();
|
super.initGui();
|
||||||
|
|
||||||
GuiButton buttonOkay = new GuiButton(0, guiLeft+60, guiTop+11, 58, 20, StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.ok"));
|
GuiButton buttonOkay = new GuiButton(0, guiLeft+60, guiTop+11, 58, 20, StringUtil.localize("info."+ModUtil.MOD_ID+".gui.ok"));
|
||||||
this.buttonList.add(buttonOkay);
|
this.buttonList.add(buttonOkay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ public class GuiCoffeeMachine extends GuiContainer{
|
||||||
this.drawHoveringText(Collections.singletonList(text3), x, y);
|
this.drawHoveringText(Collections.singletonList(text3), x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
String text2 = this.machine.coffeeCacheAmount+"/"+TileEntityCoffeeMachine.COFFEE_CACHE_MAX_AMOUNT+" "+StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.coffee");
|
String text2 = this.machine.coffeeCacheAmount+"/"+TileEntityCoffeeMachine.COFFEE_CACHE_MAX_AMOUNT+" "+StringUtil.localize("info."+ModUtil.MOD_ID+".gui.coffee");
|
||||||
if(x >= guiLeft+40 && y >= guiTop+25 && x <= guiLeft+49 && y <= guiTop+56){
|
if(x >= guiLeft+40 && y >= guiTop+25 && x <= guiLeft+49 && y <= guiTop+56){
|
||||||
this.drawHoveringText(Collections.singletonList(text2), x, y);
|
this.drawHoveringText(Collections.singletonList(text2), x, y);
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ public class GuiCrafter extends GuiContainer{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawGuiContainerForegroundLayer(int x, int y){
|
public void drawGuiContainerForegroundLayer(int x, int y){
|
||||||
AssetUtil.displayNameString(this.fontRendererObj, xSize, -10, "container."+ModUtil.MOD_ID_LOWER+".crafting");
|
AssetUtil.displayNameString(this.fontRendererObj, xSize, -10, "container."+ModUtil.MOD_ID+".crafting");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class GuiDrill extends GuiContainer{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawGuiContainerForegroundLayer(int x, int y){
|
public void drawGuiContainerForegroundLayer(int x, int y){
|
||||||
AssetUtil.displayNameString(this.fontRendererObj, xSize, -10, "container."+ModUtil.MOD_ID_LOWER+".drill");
|
AssetUtil.displayNameString(this.fontRendererObj, xSize, -10, "container."+ModUtil.MOD_ID+".drill");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -42,7 +42,7 @@ public class GuiFeeder extends GuiContainer{
|
||||||
public void drawScreen(int x, int y, float f){
|
public void drawScreen(int x, int y, float f){
|
||||||
super.drawScreen(x, y, f);
|
super.drawScreen(x, y, f);
|
||||||
if(x >= guiLeft+69 && y >= guiTop+30 && x <= guiLeft+69+10 && y <= guiTop+30+10){
|
if(x >= guiLeft+69 && y >= guiTop+30 && x <= guiLeft+69+10 && y <= guiTop+30+10){
|
||||||
String[] array = new String[]{(this.tileFeeder.currentAnimalAmount+" "+StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.animals")), ((this.tileFeeder.currentAnimalAmount >= 2 && this.tileFeeder.currentAnimalAmount < TileEntityFeeder.THRESHOLD) ? StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.enoughToBreed") : (this.tileFeeder.currentAnimalAmount >= TileEntityFeeder.THRESHOLD ? StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.tooMany") : StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.notEnough")))};
|
String[] array = new String[]{(this.tileFeeder.currentAnimalAmount+" "+StringUtil.localize("info."+ModUtil.MOD_ID+".gui.animals")), ((this.tileFeeder.currentAnimalAmount >= 2 && this.tileFeeder.currentAnimalAmount < TileEntityFeeder.THRESHOLD) ? StringUtil.localize("info."+ModUtil.MOD_ID+".gui.enoughToBreed") : (this.tileFeeder.currentAnimalAmount >= TileEntityFeeder.THRESHOLD ? StringUtil.localize("info."+ModUtil.MOD_ID+".gui.tooMany") : StringUtil.localize("info."+ModUtil.MOD_ID+".gui.notEnough")))};
|
||||||
this.drawHoveringText(Arrays.asList(array), x, y);
|
this.drawHoveringText(Arrays.asList(array), x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,13 +41,13 @@ public class GuiInputter extends GuiContainer{
|
||||||
|
|
||||||
public static final int OFFSET_ADVANCED = 12+36;
|
public static final int OFFSET_ADVANCED = 12+36;
|
||||||
public static final String[] sideString = new String[]{
|
public static final String[] sideString = new String[]{
|
||||||
StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.disabled"),
|
StringUtil.localize("info."+ModUtil.MOD_ID+".gui.disabled"),
|
||||||
StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.up"),
|
StringUtil.localize("info."+ModUtil.MOD_ID+".gui.up"),
|
||||||
StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.down"),
|
StringUtil.localize("info."+ModUtil.MOD_ID+".gui.down"),
|
||||||
StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.north"),
|
StringUtil.localize("info."+ModUtil.MOD_ID+".gui.north"),
|
||||||
StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.east"),
|
StringUtil.localize("info."+ModUtil.MOD_ID+".gui.east"),
|
||||||
StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.south"),
|
StringUtil.localize("info."+ModUtil.MOD_ID+".gui.south"),
|
||||||
StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.west")};
|
StringUtil.localize("info."+ModUtil.MOD_ID+".gui.west")};
|
||||||
private static final ResourceLocation resLoc = AssetUtil.getGuiLocation("guiInputter");
|
private static final ResourceLocation resLoc = AssetUtil.getGuiLocation("guiInputter");
|
||||||
private static final ResourceLocation resLocAdvanced = AssetUtil.getGuiLocation("guiInputterAdvanced");
|
private static final ResourceLocation resLocAdvanced = AssetUtil.getGuiLocation("guiInputterAdvanced");
|
||||||
public TileEntityInputter tileInputter;
|
public TileEntityInputter tileInputter;
|
||||||
|
@ -124,15 +124,15 @@ public class GuiInputter extends GuiContainer{
|
||||||
this.whitelistPut.displayString = this.tileInputter.isPutWhitelist ? "O" : "X";
|
this.whitelistPut.displayString = this.tileInputter.isPutWhitelist ? "O" : "X";
|
||||||
|
|
||||||
if(this.isAdvanced){
|
if(this.isAdvanced){
|
||||||
List infoList = this.fontRendererObj.listFormattedStringToWidth(StringUtil.localizeFormatted("info."+ModUtil.MOD_ID_LOWER+".inputter.whitelistInfo"), 200);
|
List infoList = this.fontRendererObj.listFormattedStringToWidth(StringUtil.localizeFormatted("info."+ModUtil.MOD_ID+".inputter.whitelistInfo"), 200);
|
||||||
String text1 = this.tileInputter.isPullWhitelist ? StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.whitelist") : StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.blacklist");
|
String text1 = this.tileInputter.isPullWhitelist ? StringUtil.localize("info."+ModUtil.MOD_ID+".gui.whitelist") : StringUtil.localize("info."+ModUtil.MOD_ID+".gui.blacklist");
|
||||||
if(x >= guiLeft+3 && y >= guiTop+16 && x <= guiLeft+18 && y <= guiTop+31){
|
if(x >= guiLeft+3 && y >= guiTop+16 && x <= guiLeft+18 && y <= guiTop+31){
|
||||||
ArrayList list = new ArrayList();
|
ArrayList list = new ArrayList();
|
||||||
list.add(TextFormatting.BOLD+text1);
|
list.add(TextFormatting.BOLD+text1);
|
||||||
list.addAll(infoList);
|
list.addAll(infoList);
|
||||||
this.drawHoveringText(list, x, y);
|
this.drawHoveringText(list, x, y);
|
||||||
}
|
}
|
||||||
String text2 = this.tileInputter.isPutWhitelist ? StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.whitelist") : StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.blacklist");
|
String text2 = this.tileInputter.isPutWhitelist ? StringUtil.localize("info."+ModUtil.MOD_ID+".gui.whitelist") : StringUtil.localize("info."+ModUtil.MOD_ID+".gui.blacklist");
|
||||||
if(x >= guiLeft+157 && y >= guiTop+16 && x <= guiLeft+172 && y <= guiTop+31){
|
if(x >= guiLeft+157 && y >= guiTop+16 && x <= guiLeft+172 && y <= guiTop+31){
|
||||||
ArrayList list = new ArrayList();
|
ArrayList list = new ArrayList();
|
||||||
list.add(TextFormatting.BOLD+text2);
|
list.add(TextFormatting.BOLD+text2);
|
||||||
|
@ -144,16 +144,16 @@ public class GuiInputter extends GuiContainer{
|
||||||
int newTopOffset = this.guiTop+(this.isAdvanced ? OFFSET_ADVANCED : 0);
|
int newTopOffset = this.guiTop+(this.isAdvanced ? OFFSET_ADVANCED : 0);
|
||||||
//Info Mode on!
|
//Info Mode on!
|
||||||
if(x >= guiLeft+11 && y >= newTopOffset+65 && x <= guiLeft+11+31 && y <= newTopOffset+65+12){
|
if(x >= guiLeft+11 && y >= newTopOffset+65 && x <= guiLeft+11+31 && y <= newTopOffset+65+12){
|
||||||
this.drawHoveringText(this.fontRendererObj.listFormattedStringToWidth(StringUtil.localizeFormatted("info."+ModUtil.MOD_ID_LOWER+".inputter.info.1").replace("<p>", StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.pull")), 200), x, y);
|
this.drawHoveringText(this.fontRendererObj.listFormattedStringToWidth(StringUtil.localizeFormatted("info."+ModUtil.MOD_ID+".inputter.info.1").replace("<p>", StringUtil.localize("info."+ModUtil.MOD_ID+".gui.pull")), 200), x, y);
|
||||||
}
|
}
|
||||||
if(x >= guiLeft+96 && y >= newTopOffset+65 && x <= guiLeft+96+31 && y <= newTopOffset+65+12){
|
if(x >= guiLeft+96 && y >= newTopOffset+65 && x <= guiLeft+96+31 && y <= newTopOffset+65+12){
|
||||||
this.drawHoveringText(this.fontRendererObj.listFormattedStringToWidth(StringUtil.localizeFormatted("info."+ModUtil.MOD_ID_LOWER+".inputter.info.1").replace("<p>", StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.put")), 200), x, y);
|
this.drawHoveringText(this.fontRendererObj.listFormattedStringToWidth(StringUtil.localizeFormatted("info."+ModUtil.MOD_ID+".inputter.info.1").replace("<p>", StringUtil.localize("info."+ModUtil.MOD_ID+".gui.put")), 200), x, y);
|
||||||
}
|
}
|
||||||
if(x >= guiLeft+48 && y >= newTopOffset+65 && x <= guiLeft+48+31 && y <= newTopOffset+65+12){
|
if(x >= guiLeft+48 && y >= newTopOffset+65 && x <= guiLeft+48+31 && y <= newTopOffset+65+12){
|
||||||
this.drawHoveringText(this.fontRendererObj.listFormattedStringToWidth(StringUtil.localizeFormatted("info."+ModUtil.MOD_ID_LOWER+".inputter.info.2").replace("<p>", StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.pull")), 200), x, y);
|
this.drawHoveringText(this.fontRendererObj.listFormattedStringToWidth(StringUtil.localizeFormatted("info."+ModUtil.MOD_ID+".inputter.info.2").replace("<p>", StringUtil.localize("info."+ModUtil.MOD_ID+".gui.pull")), 200), x, y);
|
||||||
}
|
}
|
||||||
if(x >= guiLeft+133 && y >= newTopOffset+65 && x <= guiLeft+133+31 && y <= newTopOffset+65+12){
|
if(x >= guiLeft+133 && y >= newTopOffset+65 && x <= guiLeft+133+31 && y <= newTopOffset+65+12){
|
||||||
this.drawHoveringText(this.fontRendererObj.listFormattedStringToWidth(StringUtil.localizeFormatted("info."+ModUtil.MOD_ID_LOWER+".inputter.info.2").replace("<p>", StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.put")), 200), x, y);
|
this.drawHoveringText(this.fontRendererObj.listFormattedStringToWidth(StringUtil.localizeFormatted("info."+ModUtil.MOD_ID+".inputter.info.2").replace("<p>", StringUtil.localize("info."+ModUtil.MOD_ID+".gui.put")), 200), x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -172,8 +172,8 @@ public class GuiInputter extends GuiContainer{
|
||||||
this.mc.getTextureManager().bindTexture(this.isAdvanced ? resLocAdvanced : resLoc);
|
this.mc.getTextureManager().bindTexture(this.isAdvanced ? resLocAdvanced : resLoc);
|
||||||
this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, 176, 93+(isAdvanced ? OFFSET_ADVANCED : 0));
|
this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, 176, 93+(isAdvanced ? OFFSET_ADVANCED : 0));
|
||||||
|
|
||||||
this.fontRendererObj.drawString(StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.pull"), guiLeft+22+3, guiTop+32+(isAdvanced ? OFFSET_ADVANCED : 0), StringUtil.DECIMAL_COLOR_GRAY_TEXT);
|
this.fontRendererObj.drawString(StringUtil.localize("info."+ModUtil.MOD_ID+".gui.pull"), guiLeft+22+3, guiTop+32+(isAdvanced ? OFFSET_ADVANCED : 0), StringUtil.DECIMAL_COLOR_GRAY_TEXT);
|
||||||
this.fontRendererObj.drawString(StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.put"), guiLeft+107+3, guiTop+32+(isAdvanced ? OFFSET_ADVANCED : 0), StringUtil.DECIMAL_COLOR_GRAY_TEXT);
|
this.fontRendererObj.drawString(StringUtil.localize("info."+ModUtil.MOD_ID+".gui.put"), guiLeft+107+3, guiTop+32+(isAdvanced ? OFFSET_ADVANCED : 0), StringUtil.DECIMAL_COLOR_GRAY_TEXT);
|
||||||
|
|
||||||
this.fontRendererObj.drawString(sideString[tileInputter.sideToPull+1], guiLeft+24+1, guiTop+45+3+(isAdvanced ? OFFSET_ADVANCED : 0), StringUtil.DECIMAL_COLOR_GRAY_TEXT);
|
this.fontRendererObj.drawString(sideString[tileInputter.sideToPull+1], guiLeft+24+1, guiTop+45+3+(isAdvanced ? OFFSET_ADVANCED : 0), StringUtil.DECIMAL_COLOR_GRAY_TEXT);
|
||||||
this.fontRendererObj.drawString(sideString[tileInputter.sideToPut+1], guiLeft+109+1, guiTop+45+3+(isAdvanced ? OFFSET_ADVANCED : 0), StringUtil.DECIMAL_COLOR_GRAY_TEXT);
|
this.fontRendererObj.drawString(sideString[tileInputter.sideToPut+1], guiLeft+109+1, guiTop+45+3+(isAdvanced ? OFFSET_ADVANCED : 0), StringUtil.DECIMAL_COLOR_GRAY_TEXT);
|
||||||
|
|
|
@ -70,7 +70,7 @@ public class GuiRangedCollector extends GuiContainer{
|
||||||
|
|
||||||
this.whitelistButton.displayString = this.collector.isWhitelist ? "O" : "X";
|
this.whitelistButton.displayString = this.collector.isWhitelist ? "O" : "X";
|
||||||
|
|
||||||
String text1 = this.collector.isWhitelist ? StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.whitelist") : StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.blacklist");
|
String text1 = this.collector.isWhitelist ? StringUtil.localize("info."+ModUtil.MOD_ID+".gui.whitelist") : StringUtil.localize("info."+ModUtil.MOD_ID+".gui.blacklist");
|
||||||
if(x >= guiLeft+3 && y >= guiTop+16 && x <= guiLeft+18 && y <= guiTop+31){
|
if(x >= guiLeft+3 && y >= guiTop+16 && x <= guiLeft+18 && y <= guiTop+31){
|
||||||
this.drawHoveringText(Collections.singletonList(text1), x, y);
|
this.drawHoveringText(Collections.singletonList(text1), x, y);
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,8 +75,8 @@ public class GuiSmileyCloud extends GuiContainer{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawGuiContainerForegroundLayer(int x, int y){
|
public void drawGuiContainerForegroundLayer(int x, int y){
|
||||||
String name = cloud.name == null || cloud.name.isEmpty() ? "" : TextFormatting.GOLD+cloud.name+TextFormatting.RESET+" "+StringUtil.localize("info."+ModUtil.MOD_ID_LOWER+".gui.the")+" ";
|
String name = cloud.name == null || cloud.name.isEmpty() ? "" : TextFormatting.GOLD+cloud.name+TextFormatting.RESET+" "+StringUtil.localize("info."+ModUtil.MOD_ID+".gui.the")+" ";
|
||||||
String localizedName = name+StringUtil.localize("container."+ModUtil.MOD_ID_LOWER+".cloud.name");
|
String localizedName = name+StringUtil.localize("container."+ModUtil.MOD_ID+".cloud.name");
|
||||||
this.fontRendererObj.drawString(localizedName, xSize/2-this.fontRendererObj.getStringWidth(localizedName)/2, -10, StringUtil.DECIMAL_COLOR_WHITE);
|
this.fontRendererObj.drawString(localizedName, xSize/2-this.fontRendererObj.getStringWidth(localizedName)/2, -10, StringUtil.DECIMAL_COLOR_WHITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -220,14 +220,14 @@ public class InitItems{
|
||||||
itemGrowthRing = new ItemGrowthRing("itemGrowthRing");
|
itemGrowthRing = new ItemGrowthRing("itemGrowthRing");
|
||||||
itemMagnetRing = new ItemMagnetRing("itemSuctionRing");
|
itemMagnetRing = new ItemMagnetRing("itemSuctionRing");
|
||||||
itemWaterRemovalRing = new ItemWaterRemovalRing("itemWaterRemovalRing");
|
itemWaterRemovalRing = new ItemWaterRemovalRing("itemWaterRemovalRing");
|
||||||
itemHelmEmerald = new ItemArmorAA("itemHelmEmerald", InitArmorMaterials.armorMaterialEmerald, 0, new ItemStack(Items.emerald));
|
itemHelmEmerald = new ItemArmorAA("itemHelmEmerald", InitArmorMaterials.armorMaterialEmerald, 0, new ItemStack(Items.EMERALD));
|
||||||
itemChestEmerald = new ItemArmorAA("itemChestEmerald", InitArmorMaterials.armorMaterialEmerald, 1, new ItemStack(Items.emerald));
|
itemChestEmerald = new ItemArmorAA("itemChestEmerald", InitArmorMaterials.armorMaterialEmerald, 1, new ItemStack(Items.EMERALD));
|
||||||
itemPantsEmerald = new ItemArmorAA("itemPantsEmerald", InitArmorMaterials.armorMaterialEmerald, 2, new ItemStack(Items.emerald));
|
itemPantsEmerald = new ItemArmorAA("itemPantsEmerald", InitArmorMaterials.armorMaterialEmerald, 2, new ItemStack(Items.EMERALD));
|
||||||
itemBootsEmerald = new ItemArmorAA("itemBootsEmerald", InitArmorMaterials.armorMaterialEmerald, 3, new ItemStack(Items.emerald));
|
itemBootsEmerald = new ItemArmorAA("itemBootsEmerald", InitArmorMaterials.armorMaterialEmerald, 3, new ItemStack(Items.EMERALD));
|
||||||
itemHelmObsidian = new ItemArmorAA("itemHelmObsidian", InitArmorMaterials.armorMaterialObsidian, 0, new ItemStack(Blocks.obsidian));
|
itemHelmObsidian = new ItemArmorAA("itemHelmObsidian", InitArmorMaterials.armorMaterialObsidian, 0, new ItemStack(Blocks.OBSIDIAN));
|
||||||
itemChestObsidian = new ItemArmorAA("itemChestObsidian", InitArmorMaterials.armorMaterialObsidian, 1, new ItemStack(Blocks.obsidian));
|
itemChestObsidian = new ItemArmorAA("itemChestObsidian", InitArmorMaterials.armorMaterialObsidian, 1, new ItemStack(Blocks.OBSIDIAN));
|
||||||
itemPantsObsidian = new ItemArmorAA("itemPantsObsidian", InitArmorMaterials.armorMaterialObsidian, 2, new ItemStack(Blocks.obsidian));
|
itemPantsObsidian = new ItemArmorAA("itemPantsObsidian", InitArmorMaterials.armorMaterialObsidian, 2, new ItemStack(Blocks.OBSIDIAN));
|
||||||
itemBootsObsidian = new ItemArmorAA("itemBootsObsidian", InitArmorMaterials.armorMaterialObsidian, 3, new ItemStack(Blocks.obsidian));
|
itemBootsObsidian = new ItemArmorAA("itemBootsObsidian", InitArmorMaterials.armorMaterialObsidian, 3, new ItemStack(Blocks.OBSIDIAN));
|
||||||
itemHelmQuartz = new ItemArmorAA("itemHelmQuartz", InitArmorMaterials.armorMaterialQuartz, 0, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()));
|
itemHelmQuartz = new ItemArmorAA("itemHelmQuartz", InitArmorMaterials.armorMaterialQuartz, 0, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()));
|
||||||
itemChestQuartz = new ItemArmorAA("itemChestQuartz", InitArmorMaterials.armorMaterialQuartz, 1, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()));
|
itemChestQuartz = new ItemArmorAA("itemChestQuartz", InitArmorMaterials.armorMaterialQuartz, 1, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()));
|
||||||
itemPantsQuartz = new ItemArmorAA("itemPantsQuartz", InitArmorMaterials.armorMaterialQuartz, 2, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()));
|
itemPantsQuartz = new ItemArmorAA("itemPantsQuartz", InitArmorMaterials.armorMaterialQuartz, 2, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()));
|
||||||
|
@ -273,32 +273,32 @@ public class InitItems{
|
||||||
CompatUtil.registerMFRSeed(itemRiceSeed);
|
CompatUtil.registerMFRSeed(itemRiceSeed);
|
||||||
itemCanolaSeed = new ItemSeed("itemCanolaSeed", "seedCanola", InitBlocks.blockCanola, itemMisc, TheMiscItems.CANOLA.ordinal());
|
itemCanolaSeed = new ItemSeed("itemCanolaSeed", "seedCanola", InitBlocks.blockCanola, itemMisc, TheMiscItems.CANOLA.ordinal());
|
||||||
CompatUtil.registerMFRSeed(itemCanolaSeed);
|
CompatUtil.registerMFRSeed(itemCanolaSeed);
|
||||||
itemFlaxSeed = new ItemSeed("itemFlaxSeed", "seedFlax", InitBlocks.blockFlax, Items.string, 0);
|
itemFlaxSeed = new ItemSeed("itemFlaxSeed", "seedFlax", InitBlocks.blockFlax, Items.STRING, 0);
|
||||||
CompatUtil.registerMFRSeed(itemFlaxSeed);
|
CompatUtil.registerMFRSeed(itemFlaxSeed);
|
||||||
itemCoffeeSeed = new ItemSeed("itemCoffeeSeed", "seedCoffeeBeans", InitBlocks.blockCoffee, itemCoffeeBean, 0);
|
itemCoffeeSeed = new ItemSeed("itemCoffeeSeed", "seedCoffeeBeans", InitBlocks.blockCoffee, itemCoffeeBean, 0);
|
||||||
CompatUtil.registerMFRSeed(itemCoffeeSeed);
|
CompatUtil.registerMFRSeed(itemCoffeeSeed);
|
||||||
itemPickaxeEmerald = new ItemPickaxeAA(InitToolMaterials.toolMaterialEmerald, new ItemStack(Items.emerald), "itemPickaxeEmerald", EnumRarity.EPIC);
|
itemPickaxeEmerald = new ItemPickaxeAA(InitToolMaterials.toolMaterialEmerald, new ItemStack(Items.EMERALD), "itemPickaxeEmerald", EnumRarity.EPIC);
|
||||||
itemAxeEmerald = new ItemAxeAA(InitToolMaterials.toolMaterialEmerald, new ItemStack(Items.emerald), "itemAxeEmerald", EnumRarity.EPIC);
|
itemAxeEmerald = new ItemAxeAA(InitToolMaterials.toolMaterialEmerald, new ItemStack(Items.EMERALD), "itemAxeEmerald", EnumRarity.EPIC);
|
||||||
itemShovelEmerald = new ItemShovelAA(InitToolMaterials.toolMaterialEmerald, new ItemStack(Items.emerald), "itemShovelEmerald", EnumRarity.EPIC);
|
itemShovelEmerald = new ItemShovelAA(InitToolMaterials.toolMaterialEmerald, new ItemStack(Items.EMERALD), "itemShovelEmerald", EnumRarity.EPIC);
|
||||||
itemSwordEmerald = new ItemSwordAA(InitToolMaterials.toolMaterialEmerald, new ItemStack(Items.emerald), "itemSwordEmerald", EnumRarity.EPIC);
|
itemSwordEmerald = new ItemSwordAA(InitToolMaterials.toolMaterialEmerald, new ItemStack(Items.EMERALD), "itemSwordEmerald", EnumRarity.EPIC);
|
||||||
itemHoeEmerald = new ItemHoeAA(InitToolMaterials.toolMaterialEmerald, new ItemStack(Items.emerald), "itemHoeEmerald", EnumRarity.EPIC);
|
itemHoeEmerald = new ItemHoeAA(InitToolMaterials.toolMaterialEmerald, new ItemStack(Items.EMERALD), "itemHoeEmerald", EnumRarity.EPIC);
|
||||||
itemPickaxeObsidian = new ItemPickaxeAA(InitToolMaterials.toolMaterialObsidian, new ItemStack(Blocks.obsidian), "itemPickaxeObsidian", EnumRarity.UNCOMMON);
|
itemPickaxeObsidian = new ItemPickaxeAA(InitToolMaterials.toolMaterialObsidian, new ItemStack(Blocks.OBSIDIAN), "itemPickaxeObsidian", EnumRarity.UNCOMMON);
|
||||||
itemAxeObsidian = new ItemAxeAA(InitToolMaterials.toolMaterialObsidian, new ItemStack(Blocks.obsidian), "itemAxeObsidian", EnumRarity.UNCOMMON);
|
itemAxeObsidian = new ItemAxeAA(InitToolMaterials.toolMaterialObsidian, new ItemStack(Blocks.OBSIDIAN), "itemAxeObsidian", EnumRarity.UNCOMMON);
|
||||||
itemShovelObsidian = new ItemShovelAA(InitToolMaterials.toolMaterialObsidian, new ItemStack(Blocks.obsidian), "itemShovelObsidian", EnumRarity.UNCOMMON);
|
itemShovelObsidian = new ItemShovelAA(InitToolMaterials.toolMaterialObsidian, new ItemStack(Blocks.OBSIDIAN), "itemShovelObsidian", EnumRarity.UNCOMMON);
|
||||||
itemSwordObsidian = new ItemSwordAA(InitToolMaterials.toolMaterialObsidian, new ItemStack(Blocks.obsidian), "itemSwordObsidian", EnumRarity.UNCOMMON);
|
itemSwordObsidian = new ItemSwordAA(InitToolMaterials.toolMaterialObsidian, new ItemStack(Blocks.OBSIDIAN), "itemSwordObsidian", EnumRarity.UNCOMMON);
|
||||||
itemHoeObsidian = new ItemHoeAA(InitToolMaterials.toolMaterialObsidian, new ItemStack(Blocks.obsidian), "itemHoeObsidian", EnumRarity.UNCOMMON);
|
itemHoeObsidian = new ItemHoeAA(InitToolMaterials.toolMaterialObsidian, new ItemStack(Blocks.OBSIDIAN), "itemHoeObsidian", EnumRarity.UNCOMMON);
|
||||||
itemPickaxeQuartz = new ItemPickaxeAA(InitToolMaterials.toolMaterialQuartz, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), "itemPickaxeQuartz", EnumRarity.RARE);
|
itemPickaxeQuartz = new ItemPickaxeAA(InitToolMaterials.toolMaterialQuartz, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), "itemPickaxeQuartz", EnumRarity.RARE);
|
||||||
itemAxeQuartz = new ItemAxeAA(InitToolMaterials.toolMaterialQuartz, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), "itemAxeQuartz", EnumRarity.RARE);
|
itemAxeQuartz = new ItemAxeAA(InitToolMaterials.toolMaterialQuartz, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), "itemAxeQuartz", EnumRarity.RARE);
|
||||||
itemShovelQuartz = new ItemShovelAA(InitToolMaterials.toolMaterialQuartz, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), "itemShovelQuartz", EnumRarity.RARE);
|
itemShovelQuartz = new ItemShovelAA(InitToolMaterials.toolMaterialQuartz, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), "itemShovelQuartz", EnumRarity.RARE);
|
||||||
itemSwordQuartz = new ItemSwordAA(InitToolMaterials.toolMaterialQuartz, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), "itemSwordQuartz", EnumRarity.RARE);
|
itemSwordQuartz = new ItemSwordAA(InitToolMaterials.toolMaterialQuartz, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), "itemSwordQuartz", EnumRarity.RARE);
|
||||||
itemHoeQuartz = new ItemHoeAA(InitToolMaterials.toolMaterialQuartz, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), "itemHoeQuartz", EnumRarity.RARE);
|
itemHoeQuartz = new ItemHoeAA(InitToolMaterials.toolMaterialQuartz, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), "itemHoeQuartz", EnumRarity.RARE);
|
||||||
woodenPaxel = new ItemAllToolAA(Item.ToolMaterial.WOOD, "plankWood", "woodenPaxel", EnumRarity.UNCOMMON, 5192733);
|
woodenPaxel = new ItemAllToolAA(Item.ToolMaterial.WOOD, "plankWood", "woodenPaxel", EnumRarity.UNCOMMON, 5192733);
|
||||||
stonePaxel = new ItemAllToolAA(Item.ToolMaterial.STONE, new ItemStack(Blocks.cobblestone), "stonePaxel", EnumRarity.UNCOMMON, 7040621);
|
stonePaxel = new ItemAllToolAA(Item.ToolMaterial.STONE, new ItemStack(Blocks.COBBLESTONE), "stonePaxel", EnumRarity.UNCOMMON, 7040621);
|
||||||
ironPaxel = new ItemAllToolAA(Item.ToolMaterial.IRON, new ItemStack(Items.iron_ingot), "ironPaxel", EnumRarity.RARE, 10920613);
|
ironPaxel = new ItemAllToolAA(Item.ToolMaterial.IRON, new ItemStack(Items.IRON_INGOT), "ironPaxel", EnumRarity.RARE, 10920613);
|
||||||
goldPaxel = new ItemAllToolAA(Item.ToolMaterial.GOLD, new ItemStack(Items.gold_ingot), "goldPaxel", EnumRarity.RARE, 16770048);
|
goldPaxel = new ItemAllToolAA(Item.ToolMaterial.GOLD, new ItemStack(Items.GOLD_INGOT), "goldPaxel", EnumRarity.RARE, 16770048);
|
||||||
diamondPaxel = new ItemAllToolAA(Item.ToolMaterial.DIAMOND, new ItemStack(Items.diamond), "diamondPaxel", EnumRarity.EPIC, 3250376);
|
diamondPaxel = new ItemAllToolAA(Item.ToolMaterial.DIAMOND, new ItemStack(Items.DIAMOND), "diamondPaxel", EnumRarity.EPIC, 3250376);
|
||||||
emeraldPaxel = new ItemAllToolAA(InitToolMaterials.toolMaterialEmerald, new ItemStack(Items.emerald), "emeraldPaxel", EnumRarity.EPIC, 7723338);
|
emeraldPaxel = new ItemAllToolAA(InitToolMaterials.toolMaterialEmerald, new ItemStack(Items.EMERALD), "emeraldPaxel", EnumRarity.EPIC, 7723338);
|
||||||
obsidianPaxel = new ItemAllToolAA(InitToolMaterials.toolMaterialObsidian, new ItemStack(Blocks.obsidian), "obsidianPaxel", EnumRarity.EPIC, 4166);
|
obsidianPaxel = new ItemAllToolAA(InitToolMaterials.toolMaterialObsidian, new ItemStack(Blocks.OBSIDIAN), "obsidianPaxel", EnumRarity.EPIC, 4166);
|
||||||
quartzPaxel = new ItemAllToolAA(InitToolMaterials.toolMaterialQuartz, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), "quartzPaxel", EnumRarity.RARE, 1710103);
|
quartzPaxel = new ItemAllToolAA(InitToolMaterials.toolMaterialQuartz, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), "quartzPaxel", EnumRarity.RARE, 1710103);
|
||||||
|
|
||||||
itemPickaxeCrystalRed = new ItemPickaxeAA(InitToolMaterials.toolMaterialCrystalRed, new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal()), "itemPickaxeCrystalRed", Util.CRYSTAL_RED_RARITY);
|
itemPickaxeCrystalRed = new ItemPickaxeAA(InitToolMaterials.toolMaterialCrystalRed, new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal()), "itemPickaxeCrystalRed", Util.CRYSTAL_RED_RARITY);
|
||||||
|
|
|
@ -52,25 +52,25 @@ public class ItemAllToolAA extends ItemToolAA implements IColorProvidingItem{
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void registerRendering(){
|
protected void registerRendering(){
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ResourceLocation(ModUtil.MOD_ID_LOWER, "itemPaxel"));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this), new ResourceLocation(ModUtil.MOD_ID, "itemPaxel"));
|
||||||
ActuallyAdditions.proxy.addRenderVariant(this, new ResourceLocation(ModUtil.MOD_ID_LOWER, "itemPaxel"));
|
ActuallyAdditions.proxy.addRenderVariant(this, new ResourceLocation(ModUtil.MOD_ID, "itemPaxel"));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EnumActionResult onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ){
|
public EnumActionResult onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ){
|
||||||
return Items.iron_hoe.onItemUse(stack, playerIn, worldIn, pos, hand, side, hitX, hitY, hitZ);
|
return Items.IRON_HOE.onItemUse(stack, playerIn, worldIn, pos, hand, side, hitX, hitY, hitZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canHarvestBlock(IBlockState state, ItemStack stack){
|
public boolean canHarvestBlock(IBlockState state, ItemStack stack){
|
||||||
|
|
||||||
return this.hasExtraWhitelist(state.getBlock()) || state.getBlock().getMaterial(state).isToolNotRequired() || (state.getBlock() == Blocks.snow_layer || state.getBlock()== Blocks.snow || (state.getBlock()== Blocks.obsidian ? this.toolMaterial.getHarvestLevel() >= 3 : (state.getBlock()!= Blocks.diamond_block && state.getBlock()!= Blocks.diamond_ore ? (state.getBlock()!= Blocks.emerald_ore && state.getBlock()!= Blocks.emerald_block? (state.getBlock()!= Blocks.gold_block&& state.getBlock()!= Blocks.gold_ore ? (state.getBlock()!= Blocks.iron_block&& state.getBlock()!= Blocks.iron_ore ? (state.getBlock()!= Blocks.lapis_block&& state.getBlock()!= Blocks.lapis_ore ? (state.getBlock()!= Blocks.redstone_ore && state.getBlock()!= Blocks.lit_redstone_ore ? (state.getBlock().getMaterial(state) == Material.rock || (state.getBlock().getMaterial(state) == Material.iron || state.getBlock().getMaterial(state) == Material.anvil)) : this.toolMaterial.getHarvestLevel() >= 2) : this.toolMaterial.getHarvestLevel() >= 1) : this.toolMaterial.getHarvestLevel() >= 1) : this.toolMaterial.getHarvestLevel() >= 2) : this.toolMaterial.getHarvestLevel() >= 2) : this.toolMaterial.getHarvestLevel() >= 2)));
|
return this.hasExtraWhitelist(state.getBlock()) || state.getBlock().getMaterial(state).isToolNotRequired() || (state.getBlock() == Blocks.SNOW_LAYER || state.getBlock()== Blocks.SNOW || (state.getBlock()== Blocks.OBSIDIAN ? this.toolMaterial.getHarvestLevel() >= 3 : (state.getBlock()!= Blocks.DIAMOND_BLOCK && state.getBlock()!= Blocks.DIAMOND_ORE ? (state.getBlock()!= Blocks.EMERALD_ORE && state.getBlock()!= Blocks.EMERALD_BLOCK? (state.getBlock()!= Blocks.GOLD_BLOCK&& state.getBlock()!= Blocks.GOLD_ORE ? (state.getBlock()!= Blocks.IRON_BLOCK&& state.getBlock()!= Blocks.IRON_ORE ? (state.getBlock()!= Blocks.LAPIS_BLOCK&& state.getBlock()!= Blocks.LAPIS_ORE ? (state.getBlock()!= Blocks.REDSTONE_ORE && state.getBlock()!= Blocks.LIT_REDSTONE_ORE ? (state.getBlock().getMaterial(state) == Material.ROCK || (state.getBlock().getMaterial(state) == Material.IRON || state.getBlock().getMaterial(state) == Material.ANVIL)) : this.toolMaterial.getHarvestLevel() >= 2) : this.toolMaterial.getHarvestLevel() >= 1) : this.toolMaterial.getHarvestLevel() >= 1) : this.toolMaterial.getHarvestLevel() >= 2) : this.toolMaterial.getHarvestLevel() >= 2) : this.toolMaterial.getHarvestLevel() >= 2)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasExtraWhitelist(Block block){
|
private boolean hasExtraWhitelist(Block block){
|
||||||
String name = block.getRegistryName();
|
String name = block.getRegistryName().toString();
|
||||||
if(name != null){
|
if(name != null){
|
||||||
for(String list : ConfigValues.paxelExtraMiningWhitelist){
|
for(String list : ConfigValues.paxelExtraMiningWhitelist){
|
||||||
if(list.equals(name)){
|
if(list.equals(name)){
|
||||||
|
|
|
@ -24,7 +24,7 @@ import java.util.Set;
|
||||||
|
|
||||||
public class ItemAxeAA extends ItemToolAA{
|
public class ItemAxeAA extends ItemToolAA{
|
||||||
|
|
||||||
private static final Set<Block> EFFECTIVE_ON = Sets.newHashSet(Blocks.planks, Blocks.bookshelf, Blocks.log, Blocks.log2, Blocks.chest, Blocks.pumpkin, Blocks.lit_pumpkin, Blocks.melon_block, Blocks.ladder, Blocks.wooden_button, Blocks.wooden_pressure_plate);
|
private static final Set<Block> EFFECTIVE_ON = Sets.newHashSet(Blocks.PLANKS, Blocks.BOOKSHELF, Blocks.LOG, Blocks.LOG2, Blocks.CHEST, Blocks.PUMPKIN, Blocks.LIT_PUMPKIN, Blocks.MELON_BLOCK, Blocks.LADDER, Blocks.WOODEN_BUTTON, Blocks.WOODEN_PRESSURE_PLATE);
|
||||||
|
|
||||||
public ItemAxeAA(Item.ToolMaterial material, String repairItem, String unlocalizedName, EnumRarity rarity){
|
public ItemAxeAA(Item.ToolMaterial material, String repairItem, String unlocalizedName, EnumRarity rarity){
|
||||||
super(6.0F, -3.0F, material, repairItem, unlocalizedName, rarity, EFFECTIVE_ON);
|
super(6.0F, -3.0F, material, repairItem, unlocalizedName, rarity, EFFECTIVE_ON);
|
||||||
|
@ -36,6 +36,6 @@ public class ItemAxeAA extends ItemToolAA{
|
||||||
|
|
||||||
public float getStrVsBlock(ItemStack stack, IBlockState state){
|
public float getStrVsBlock(ItemStack stack, IBlockState state){
|
||||||
Material material = state.getMaterial();
|
Material material = state.getMaterial();
|
||||||
return material != Material.wood && material != Material.plants && material != Material.vine ? super.getStrVsBlock(stack, state) : this.efficiencyOnProperMaterial;
|
return material != Material.WOOD && material != Material.PLANTS && material != Material.VINE ? super.getStrVsBlock(stack, state) : this.efficiencyOnProperMaterial;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ public class ItemBooklet extends ItemBase implements IHudDisplay{
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool){
|
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool){
|
||||||
list.add(StringUtil.localize("tooltip."+ModUtil.MOD_ID_LOWER+"."+this.getBaseName()+".desc"));
|
list.add(StringUtil.localize("tooltip."+ModUtil.MOD_ID+"."+this.getBaseName()+".desc"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -27,7 +27,6 @@ import net.minecraft.item.EnumRarity;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.potion.Potion;
|
|
||||||
import net.minecraft.potion.PotionEffect;
|
import net.minecraft.potion.PotionEffect;
|
||||||
import net.minecraft.util.StringUtils;
|
import net.minecraft.util.StringUtils;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
@ -47,7 +46,7 @@ public class ItemCoffee extends ItemFoodBase{
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void initIngredients(){
|
public static void initIngredients(){
|
||||||
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new MilkIngredient(new ItemStack(Items.milk_bucket)));
|
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new MilkIngredient(new ItemStack(Items.MILK_BUCKET)));
|
||||||
//Pam's Soy Milk (For Jemx because he's lactose intolerant. YER HAPPY NAO!?)
|
//Pam's Soy Milk (For Jemx because he's lactose intolerant. YER HAPPY NAO!?)
|
||||||
if(Loader.isModLoaded("harvestcraft")){
|
if(Loader.isModLoaded("harvestcraft")){
|
||||||
Item item = ItemUtil.getItemFromName("harvestcraft:soymilkItem");
|
Item item = ItemUtil.getItemFromName("harvestcraft:soymilkItem");
|
||||||
|
@ -56,13 +55,13 @@ public class ItemCoffee extends ItemFoodBase{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.sugar), new PotionEffect[]{new PotionEffect(MobEffects.moveSpeed, 30, 0)}, 4));
|
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.SUGAR), new PotionEffect[]{new PotionEffect(MobEffects.SPEED, 30, 0)}, 4));
|
||||||
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.magma_cream), new PotionEffect[]{new PotionEffect(MobEffects.fireResistance, 20, 0)}, 2));
|
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.MAGMA_CREAM), new PotionEffect[]{new PotionEffect(MobEffects.FIRE_RESISTANCE, 20, 0)}, 2));
|
||||||
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.fish, 1, 3), new PotionEffect[]{new PotionEffect(MobEffects.waterBreathing, 10, 0)}, 2));
|
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.FISH, 1, 3), new PotionEffect[]{new PotionEffect(MobEffects.WATER_BREATHING, 10, 0)}, 2));
|
||||||
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.golden_carrot), new PotionEffect[]{new PotionEffect(MobEffects.nightVision, 30, 0)}, 2));
|
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.GOLDEN_CARROT), new PotionEffect[]{new PotionEffect(MobEffects.NIGHT_VISION, 30, 0)}, 2));
|
||||||
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.ghast_tear), new PotionEffect[]{new PotionEffect(MobEffects.regeneration, 5, 0)}, 3));
|
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.GHAST_TEAR), new PotionEffect[]{new PotionEffect(MobEffects.REGENERATION, 5, 0)}, 3));
|
||||||
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.blaze_powder), new PotionEffect[]{new PotionEffect(MobEffects.damageBoost, 15, 0)}, 4));
|
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.BLAZE_POWDER), new PotionEffect[]{new PotionEffect(MobEffects.STRENGTH, 15, 0)}, 4));
|
||||||
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.fermented_spider_eye), new PotionEffect[]{new PotionEffect(MobEffects.invisibility, 25, 0)}, 2));
|
ActuallyAdditionsAPI.addCoffeeMachineIngredient(new CoffeeIngredient(new ItemStack(Items.FERMENTED_SPIDER_EYE), new PotionEffect[]{new PotionEffect(MobEffects.INVISIBILITY, 25, 0)}, 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CoffeeIngredient getIngredientFromStack(ItemStack stack){
|
public static CoffeeIngredient getIngredientFromStack(ItemStack stack){
|
||||||
|
@ -159,7 +158,7 @@ public class ItemCoffee extends ItemFoodBase{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getExtraText(){
|
public String getExtraText(){
|
||||||
return StringUtil.localize("container.nei."+ModUtil.MOD_ID_LOWER+".coffee.extra.milk");
|
return StringUtil.localize("container.nei."+ModUtil.MOD_ID+".coffee.extra.milk");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -61,8 +61,8 @@ public class ItemCrystal extends ItemBase{
|
||||||
ResourceLocation[] resLocs = new ResourceLocation[BlockCrystal.allCrystals.length];
|
ResourceLocation[] resLocs = new ResourceLocation[BlockCrystal.allCrystals.length];
|
||||||
for(int i = 0; i < BlockCrystal.allCrystals.length; i++){
|
for(int i = 0; i < BlockCrystal.allCrystals.length; i++){
|
||||||
String name = this.getBaseName()+BlockCrystal.allCrystals[i].name;
|
String name = this.getBaseName()+BlockCrystal.allCrystals[i].name;
|
||||||
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID_LOWER, name);
|
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID, name);
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID_LOWER, name));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID, name));
|
||||||
}
|
}
|
||||||
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
|
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
|
||||||
}
|
}
|
||||||
|
|
|
@ -237,11 +237,11 @@ public class ItemDrill extends ItemEnergy{
|
||||||
if(this.getEnergyStored(stack) >= use){
|
if(this.getEnergyStored(stack) >= use){
|
||||||
//Enchants the Drill depending on the Upgrades it has
|
//Enchants the Drill depending on the Upgrades it has
|
||||||
if(this.getHasUpgrade(stack, ItemDrillUpgrade.UpgradeType.SILK_TOUCH)){
|
if(this.getHasUpgrade(stack, ItemDrillUpgrade.UpgradeType.SILK_TOUCH)){
|
||||||
ItemUtil.addEnchantment(stack, Enchantments.silkTouch, 1);
|
ItemUtil.addEnchantment(stack, Enchantments.SILK_TOUCH, 1);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(this.getHasUpgrade(stack, ItemDrillUpgrade.UpgradeType.FORTUNE)){
|
if(this.getHasUpgrade(stack, ItemDrillUpgrade.UpgradeType.FORTUNE)){
|
||||||
ItemUtil.addEnchantment(stack, Enchantments.fortune, this.getHasUpgrade(stack, ItemDrillUpgrade.UpgradeType.FORTUNE_II) ? 3 : 1);
|
ItemUtil.addEnchantment(stack, Enchantments.FORTUNE, this.getHasUpgrade(stack, ItemDrillUpgrade.UpgradeType.FORTUNE_II) ? 3 : 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,8 +259,8 @@ public class ItemDrill extends ItemEnergy{
|
||||||
}
|
}
|
||||||
|
|
||||||
//Removes Enchantments added above
|
//Removes Enchantments added above
|
||||||
ItemUtil.removeEnchantment(stack, Enchantments.silkTouch);
|
ItemUtil.removeEnchantment(stack, Enchantments.SILK_TOUCH);
|
||||||
ItemUtil.removeEnchantment(stack, Enchantments.fortune);
|
ItemUtil.removeEnchantment(stack, Enchantments.FORTUNE);
|
||||||
}
|
}
|
||||||
return toReturn;
|
return toReturn;
|
||||||
}
|
}
|
||||||
|
@ -269,7 +269,7 @@ public class ItemDrill extends ItemEnergy{
|
||||||
public boolean canHarvestBlock(IBlockState state, ItemStack stack){
|
public boolean canHarvestBlock(IBlockState state, ItemStack stack){
|
||||||
int harvestLevel = this.getHarvestLevel(stack, "");
|
int harvestLevel = this.getHarvestLevel(stack, "");
|
||||||
Block block = state.getBlock();
|
Block block = state.getBlock();
|
||||||
return this.getEnergyStored(stack) >= this.getEnergyUsePerBlock(stack) && (this.hasExtraWhitelist(block) || block.getMaterial(state).isToolNotRequired() || (block == Blocks.snow_layer || block == Blocks.snow || (block == Blocks.obsidian ? harvestLevel >= 3 : (block != Blocks.diamond_block && block != Blocks.diamond_ore ? (block != Blocks.emerald_ore && block != Blocks.emerald_block ? (block != Blocks.gold_block && block != Blocks.gold_ore ? (block != Blocks.iron_block && block != Blocks.iron_ore ? (block != Blocks.lapis_block && block != Blocks.lapis_ore ? (block != Blocks.redstone_ore && block != Blocks.lit_redstone_ore ? (block.getMaterial(state) == Material.rock || (block.getMaterial(state) == Material.iron || block.getMaterial(state) == Material.anvil)) : harvestLevel >= 2) : harvestLevel >= 1) : harvestLevel >= 1) : harvestLevel >= 2) : harvestLevel >= 2) : harvestLevel >= 2))));
|
return this.getEnergyStored(stack) >= this.getEnergyUsePerBlock(stack) && (this.hasExtraWhitelist(block) || block.getMaterial(state).isToolNotRequired() || (block == Blocks.SNOW_LAYER || block == Blocks.SNOW || (block == Blocks.OBSIDIAN ? harvestLevel >= 3 : (block != Blocks.DIAMOND_BLOCK && block != Blocks.DIAMOND_ORE ? (block != Blocks.EMERALD_ORE && block != Blocks.EMERALD_BLOCK ? (block != Blocks.GOLD_BLOCK && block != Blocks.GOLD_ORE ? (block != Blocks.IRON_BLOCK && block != Blocks.IRON_ORE ? (block != Blocks.LAPIS_BLOCK && block != Blocks.LAPIS_ORE ? (block != Blocks.REDSTONE_ORE && block != Blocks.LIT_REDSTONE_ORE ? (block.getMaterial(state) == Material.ROCK || (block.getMaterial(state) == Material.IRON || block.getMaterial(state) == Material.ANVIL)) : harvestLevel >= 2) : harvestLevel >= 1) : harvestLevel >= 1) : harvestLevel >= 2) : harvestLevel >= 2) : harvestLevel >= 2))));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -345,8 +345,8 @@ public class ItemDrill extends ItemEnergy{
|
||||||
ResourceLocation[] resLocs = new ResourceLocation[16];
|
ResourceLocation[] resLocs = new ResourceLocation[16];
|
||||||
for(int i = 0; i < 16; i++){
|
for(int i = 0; i < 16; i++){
|
||||||
String name = this.getBaseName()+TheColoredLampColors.values()[i].name;
|
String name = this.getBaseName()+TheColoredLampColors.values()[i].name;
|
||||||
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID_LOWER, name);
|
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID, name);
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID_LOWER, name));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID, name));
|
||||||
}
|
}
|
||||||
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
|
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
|
||||||
}
|
}
|
||||||
|
@ -516,7 +516,7 @@ public class ItemDrill extends ItemEnergy{
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasExtraWhitelist(Block block){
|
private boolean hasExtraWhitelist(Block block){
|
||||||
String name = block.getRegistryName();
|
String name = block.getRegistryName().toString();
|
||||||
if(name != null){
|
if(name != null){
|
||||||
for(String list : ConfigValues.drillExtraminingWhitelist){
|
for(String list : ConfigValues.drillExtraminingWhitelist){
|
||||||
if(list.equals(name)){
|
if(list.equals(name)){
|
||||||
|
|
|
@ -62,7 +62,7 @@ public class ItemDust extends ItemBase implements IColorProvidingItem{
|
||||||
@Override
|
@Override
|
||||||
protected void registerRendering(){
|
protected void registerRendering(){
|
||||||
for(int i = 0; i < allDusts.length; i++){
|
for(int i = 0; i < allDusts.length; i++){
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID_LOWER, this.getBaseName()));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID, this.getBaseName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@ import net.minecraft.item.EnumAction;
|
||||||
import net.minecraft.item.EnumRarity;
|
import net.minecraft.item.EnumRarity;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.EnumHand;
|
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.fml.relauncher.Side;
|
import net.minecraftforge.fml.relauncher.Side;
|
||||||
|
@ -106,8 +105,8 @@ public class ItemFoods extends ItemFoodBase{
|
||||||
ResourceLocation[] resLocs = new ResourceLocation[allFoods.length];
|
ResourceLocation[] resLocs = new ResourceLocation[allFoods.length];
|
||||||
for(int i = 0; i < allFoods.length; i++){
|
for(int i = 0; i < allFoods.length; i++){
|
||||||
String name = this.getBaseName()+allFoods[i].name;
|
String name = this.getBaseName()+allFoods[i].name;
|
||||||
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID_LOWER, name);
|
resLocs[i] = new ResourceLocation(ModUtil.MOD_ID, name);
|
||||||
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID_LOWER, name));
|
ActuallyAdditions.proxy.addRenderRegister(new ItemStack(this, 1, i), new ResourceLocation(ModUtil.MOD_ID, name));
|
||||||
}
|
}
|
||||||
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
|
ActuallyAdditions.proxy.addRenderVariant(this, resLocs);
|
||||||
}
|
}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue