mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-24 22:14:31 +00:00
Fix merge conflicts
This commit is contained in:
commit
856b31361d
199 files changed
+947
-322
No files matched your search
@@ -0,0 +1,136 @@
|
||||
package biomesoplenty.api;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
|
||||
import com.google.common.base.Optional;
|
||||
|
||||
public class Biomes
|
||||
{
|
||||
public static Optional<? extends BiomeGenBase> alps = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> alpsForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> alpsBase = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> arctic = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> badlands = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> bambooForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> bayou = Optional.absent();
|
||||
|
||||
public static Optional<? extends BiomeGenBase> beachGravel = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> beachOvergrown = Optional.absent();
|
||||
|
||||
public static Optional<? extends BiomeGenBase> birchForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> bog = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> borealForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> brushland = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> canyon = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> canyonRavine = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> chaparral = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> cherryBlossomGrove = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> coniferousForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> coniferousForestSnow = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> crag = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> deadForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> deadForestSnow = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> deadSwamp = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> deadlands = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> deciduousForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> dunes = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> fen = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> field = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> fieldForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> frostForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> fungiForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> garden = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> glacier = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> grassland = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> grove = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> heathland = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> highland = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> hotSprings = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> icyHills = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> jadeCliffs = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> lushDesert = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> lushSwamp = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> mangrove = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> mapleWoods = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> marsh = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> meadow = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> meadowForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> mesa = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> moor = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> mountain = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> mysticGrove = Optional.absent();
|
||||
|
||||
public static Optional<? extends BiomeGenBase> netherBase = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> netherGarden = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> netherDesert = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> netherLava = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> netherBone = Optional.absent();
|
||||
|
||||
public static Optional<? extends BiomeGenBase> oasis = Optional.absent();
|
||||
|
||||
public static Optional<? extends BiomeGenBase> oceanCoral = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> oceanKelp = Optional.absent();
|
||||
|
||||
public static Optional<? extends BiomeGenBase> ominousWoods = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> ominousWoodsThick = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> orchard = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> originValley = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> outback = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> overgrownGreens = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> pasture = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> pastureMeadow = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> pastureThin = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> polar = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> prairie = Optional.absent();
|
||||
|
||||
public static Optional<? extends BiomeGenBase> promisedLandForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> promisedLandPlains = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> promisedLandSwamp = Optional.absent();
|
||||
|
||||
public static Optional<? extends BiomeGenBase> quagmire = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> rainforest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> redwoodForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> sacredSprings = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> savanna = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> savannaPlateau = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> scrubland = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> seasonalForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> seasonalSpruceForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> shield = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> shore = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> shrubland = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> shrublandForest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> silkglades = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> sludgepit = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> spruceWoods = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> steppe = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> temperateRainforest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> thicket = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> timber = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> timberThin = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> tropicalRainforest = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> tropics = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> tundra = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> volcano = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> wasteland = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> wetland = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> woodland = Optional.absent();
|
||||
|
||||
public static Optional<? extends BiomeGenBase> plainsNew = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> desertNew = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> extremeHillsNew = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> forestNew = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> forestHillsNew = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> taigaNew = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> taigaHillsNew = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> swamplandNew = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> jungleNew = Optional.absent();
|
||||
public static Optional<? extends BiomeGenBase> jungleHillsNew = Optional.absent();
|
||||
|
||||
/**
|
||||
* Add any biomes you wish to spawn in the Nether
|
||||
*/
|
||||
public static ArrayList<BiomeGenBase> netherBiomes = new ArrayList<BiomeGenBase>();
|
||||
}
|
||||
@@ -0,0 +1,225 @@
|
||||
package biomesoplenty.api;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import com.google.common.base.Optional;
|
||||
|
||||
public class BlockReferences {
|
||||
|
||||
public static enum EnumBlocks
|
||||
{
|
||||
acaciaLog (Blocks.logs1, 0),
|
||||
cherryLog (Blocks.logs1, 1),
|
||||
darkLog (Blocks.logs1, 2),
|
||||
firLog (Blocks.logs1, 3),
|
||||
holyLog (Blocks.logs2, 0),
|
||||
magicLog (Blocks.logs2, 1),
|
||||
mangroveLog (Blocks.logs2, 2),
|
||||
palmLog (Blocks.logs2, 3),
|
||||
redwoodLog (Blocks.logs3, 0),
|
||||
willowLog (Blocks.logs3, 1),
|
||||
deadLog (Blocks.logs3, 2),
|
||||
bigFlowerStem (Blocks.logs3, 3),
|
||||
pineLog (Blocks.logs4, 0),
|
||||
hellBarkLog (Blocks.logs4, 1),
|
||||
jacarandaLog (Blocks.logs4, 2),
|
||||
|
||||
acaciaPlank (Blocks.planks, 0),
|
||||
cherryPlank (Blocks.planks, 1),
|
||||
darkPlank (Blocks.planks, 2),
|
||||
firPlank (Blocks.planks, 3),
|
||||
holyPlank (Blocks.planks, 4),
|
||||
magicPlank (Blocks.planks, 5),
|
||||
mangrovePlank (Blocks.planks, 6),
|
||||
palmPlank (Blocks.planks, 7),
|
||||
redwoodPlank (Blocks.planks, 8),
|
||||
willowPlank (Blocks.planks, 9),
|
||||
bambooThatching (Blocks.planks, 10),
|
||||
pinePlank (Blocks.planks, 11),
|
||||
hellBarkPlank (Blocks.planks, 12),
|
||||
jacarandaPlank (Blocks.planks, 13),
|
||||
|
||||
acaciaLeaves (Blocks.leavesColorized, 0),
|
||||
mangroveLeaves (Blocks.leavesColorized, 1),
|
||||
palmLeaves (Blocks.leavesColorized, 2),
|
||||
redwoodLeaves (Blocks.leavesColorized, 3),
|
||||
willowLeaves (Blocks.leavesColorized, 4),
|
||||
pineLeaves (Blocks.leavesColorized, 5),
|
||||
|
||||
yellowAutumnLeaves (Blocks.leaves1, 0),
|
||||
bambooLeaves (Blocks.leaves1, 1),
|
||||
magicLeaves (Blocks.leaves1, 2),
|
||||
darkLeaves (Blocks.leaves1, 3),
|
||||
deadLeaves (Blocks.leaves1, 4),
|
||||
firLeaves (Blocks.leaves1, 5),
|
||||
holyLeaves (Blocks.leaves1, 6),
|
||||
orangeAutumnLeaves (Blocks.leaves1, 7),
|
||||
originLeaves (Blocks.leaves2, 0),
|
||||
pinkCherryLeaves (Blocks.leaves2, 1),
|
||||
mapleLeaves (Blocks.leaves2, 2),
|
||||
whiteCherryLeaves (Blocks.leaves2, 3),
|
||||
hellBarkLeaves (Blocks.leaves2, 4),
|
||||
jacarandaLeaves (Blocks.leaves2, 5),
|
||||
|
||||
appleLeaves (Blocks.leavesFruit, 3),
|
||||
appleLeavesFruitless (Blocks.leavesFruit, 0),
|
||||
|
||||
bamboo (Blocks.bamboo, 0),
|
||||
|
||||
poisonIvyItem (Blocks.foliage, 7),
|
||||
sproutItem (Blocks.foliage, 5),
|
||||
bushItem (Blocks.foliage, 4),
|
||||
highGrassItem (Blocks.foliage, 3),
|
||||
mediumGrassItem (Blocks.foliage, 2),
|
||||
shortGrassItem (Blocks.foliage, 1),
|
||||
algae (Blocks.foliage, 0),
|
||||
|
||||
holySapling (Blocks.saplings, 7),
|
||||
magicSapling (Blocks.saplings, 3),
|
||||
darkSapling (Blocks.saplings, 4),
|
||||
deadSapling (Blocks.saplings, 5),
|
||||
acaciaSapling (Blocks.colorizedSaplings, 0),
|
||||
firSapling (Blocks.saplings, 6),
|
||||
mangroveSapling (Blocks.colorizedSaplings, 1),
|
||||
palmSapling (Blocks.colorizedSaplings, 2),
|
||||
redwoodSapling (Blocks.colorizedSaplings, 3),
|
||||
willowSapling (Blocks.colorizedSaplings, 4),
|
||||
pineSapling (Blocks.colorizedSaplings, 5),
|
||||
mapleSapling (Blocks.saplings, 11),
|
||||
orangeAutumnSapling (Blocks.saplings, 8),
|
||||
pinkCherrySapling (Blocks.saplings, 10),
|
||||
whiteCherrySapling (Blocks.saplings, 12),
|
||||
hellBarkSapling (Blocks.saplings, 13),
|
||||
jacarandaSapling (Blocks.saplings, 14),
|
||||
appleSapling (Blocks.saplings, 0),
|
||||
originSapling (Blocks.saplings, 9),
|
||||
yellowAutumnSapling (Blocks.saplings, 1),
|
||||
bambooSapling (Blocks.saplings, 2),
|
||||
|
||||
mud (Blocks.mud, 0),
|
||||
driedDirt (Blocks.driedDirt, 0),
|
||||
redRock (Blocks.redRock, 0),
|
||||
ash (Blocks.ash, 0),
|
||||
ashStone (Blocks.ashStone, 0),
|
||||
hardIce (Blocks.hardIce, 0),
|
||||
originGrass (Blocks.originGrass, 0),
|
||||
longGrass (Blocks.longGrass, 0),
|
||||
hardSand (Blocks.hardSand, 0),
|
||||
hardDirt (Blocks.hardDirt, 0),
|
||||
holyGrass (Blocks.holyGrass, 0),
|
||||
holyDirt (Blocks.holyDirt, 0),
|
||||
holyStone (Blocks.holyStone, 0),
|
||||
holyStoneCobble (Blocks.holyStone, 1),
|
||||
crystal (Blocks.crystal, 0),
|
||||
cragRock (Blocks.cragRock, 0),
|
||||
quicksand (Blocks.mud, 1),
|
||||
cloud (Blocks.cloud, 0),
|
||||
smolderingGrass (Blocks.holyGrass, 1),
|
||||
redRockCobble (Blocks.redRock, 1),
|
||||
giantFlowerRed (Blocks.petals, 0),
|
||||
giantFlowerYellow (Blocks.petals, 1),
|
||||
|
||||
amethystOre (Blocks.amethystOre, 0),
|
||||
amethystBlock (Blocks.amethystOre, 1),
|
||||
rubyOre (Blocks.amethystOre, 2),
|
||||
rubyBlock (Blocks.amethystOre, 3),
|
||||
peridotOre (Blocks.amethystOre, 4),
|
||||
peridotBlock (Blocks.amethystOre, 5),
|
||||
topazOre (Blocks.amethystOre, 6),
|
||||
topazBlock (Blocks.amethystOre, 7),
|
||||
tanzaniteOre (Blocks.amethystOre, 8),
|
||||
tanzaniteBlock (Blocks.amethystOre, 9),
|
||||
apatiteOre (Blocks.amethystOre, 10),
|
||||
apatiteBlock (Blocks.amethystOre, 11),
|
||||
sapphireOre (Blocks.amethystOre, 12),
|
||||
sapphireBlock (Blocks.amethystOre, 13),
|
||||
|
||||
smallBoneSegment (Blocks.bones, 0),
|
||||
mediumBoneSegment (Blocks.bones, 1),
|
||||
largeBoneSegment (Blocks.bones, 2),
|
||||
|
||||
kelp (Blocks.coral, 0),
|
||||
|
||||
toadstool (Blocks.mushrooms, 0),
|
||||
portobello (Blocks.mushrooms, 1),
|
||||
bluemilk (Blocks.mushrooms, 2),
|
||||
glowshroom (Blocks.mushrooms, 3),
|
||||
|
||||
deadGrass (Blocks.plants, 0),
|
||||
desertGrass (Blocks.plants, 1),
|
||||
desertSprouts (Blocks.plants, 2),
|
||||
duneGrass (Blocks.plants, 3),
|
||||
holyTallGrass (Blocks.plants, 4),
|
||||
thorn (Blocks.plants, 5),
|
||||
barley (Blocks.plants, 6),
|
||||
cattail (Blocks.plants, 7),
|
||||
reed (Blocks.plants, 8),
|
||||
tinyCactus (Blocks.plants, 12),
|
||||
|
||||
treeMoss (Blocks.treeMoss, 0),
|
||||
moss (Blocks.moss, 0),
|
||||
willow (Blocks.willow, 0),
|
||||
ivy (Blocks.ivy, 0),
|
||||
|
||||
clover (Blocks.flowers, 0),
|
||||
swampFlower (Blocks.flowers, 1),
|
||||
deathbloom (Blocks.flowers, 2),
|
||||
glowFlower (Blocks.flowers, 3),
|
||||
hydrangea (Blocks.flowers, 4),
|
||||
daisy (Blocks.flowers, 5),
|
||||
tulip (Blocks.flowers, 6),
|
||||
wildFlower (Blocks.flowers, 7),
|
||||
violet (Blocks.flowers, 8),
|
||||
anenome (Blocks.flowers, 9),
|
||||
lilyflower (Blocks.flowers, 10),
|
||||
rainbowflower (Blocks.flowers, 11),
|
||||
aloe (Blocks.flowers, 12),
|
||||
sunflower (Blocks.flowers, 13),
|
||||
dandelion (Blocks.flowers, 15),
|
||||
;
|
||||
|
||||
public Optional<? extends Block> block;
|
||||
public int meta;
|
||||
|
||||
private EnumBlocks(Optional<? extends Block> block, int meta) {
|
||||
this.block = block;
|
||||
this.meta = meta;
|
||||
}
|
||||
|
||||
public Optional<? extends Block> getBlock() {
|
||||
return block;
|
||||
}
|
||||
|
||||
public int getMeta() {
|
||||
return meta;
|
||||
}
|
||||
}
|
||||
|
||||
public static ItemStack getBlockItemStack(String string)
|
||||
{
|
||||
Optional<? extends Block> stackblock = EnumBlocks.valueOf(string).block;
|
||||
int stackmeta = EnumBlocks.valueOf(string).meta;
|
||||
|
||||
if (stackmeta != 0)
|
||||
{
|
||||
return new ItemStack(stackblock.get(), 1, stackmeta);
|
||||
}
|
||||
|
||||
return new ItemStack(stackblock.get(), 1);
|
||||
}
|
||||
|
||||
public static int getBlockID(String string)
|
||||
{
|
||||
Optional<? extends Block> stackblock = EnumBlocks.valueOf(string).block;
|
||||
|
||||
return stackblock.get().blockID;
|
||||
}
|
||||
|
||||
public static int getBlockMeta(String string)
|
||||
{
|
||||
int stackmeta = EnumBlocks.valueOf(string).meta;
|
||||
|
||||
return stackmeta;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package biomesoplenty.api;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockHalfSlab;
|
||||
|
||||
import com.google.common.base.Optional;
|
||||
|
||||
public class Blocks
|
||||
{
|
||||
// Worldgen Blocks
|
||||
public static Optional<? extends Block> ash = Optional.absent();
|
||||
public static Optional<? extends Block> ashStone = Optional.absent();
|
||||
public static Optional<? extends Block> cragRock = Optional.absent();
|
||||
public static Optional<? extends Block> driedDirt = Optional.absent();
|
||||
public static Optional<? extends Block> hardDirt = Optional.absent();
|
||||
public static Optional<? extends Block> hardIce = Optional.absent();
|
||||
public static Optional<? extends Block> hardSand = Optional.absent();
|
||||
public static Optional<? extends Block> holyGrass = Optional.absent();
|
||||
public static Optional<? extends Block> holyDirt = Optional.absent();
|
||||
public static Optional<? extends Block> holyStone = Optional.absent();
|
||||
public static Optional<? extends Block> mud = Optional.absent();
|
||||
public static Optional<? extends Block> originGrass = Optional.absent();
|
||||
public static Optional<? extends Block> longGrass = Optional.absent();
|
||||
public static Optional<? extends Block> redRock = Optional.absent();
|
||||
public static Optional<? extends Block> crystal = Optional.absent();
|
||||
|
||||
// Planks and logs
|
||||
public static Optional<? extends Block> planks = Optional.absent();
|
||||
public static Optional<? extends Block> logs1 = Optional.absent();
|
||||
public static Optional<? extends Block> logs2 = Optional.absent();
|
||||
public static Optional<? extends Block> logs3 = Optional.absent();
|
||||
public static Optional<? extends Block> logs4 = Optional.absent();
|
||||
|
||||
// Stairs
|
||||
public static Optional<? extends Block> acaciaStairs = Optional.absent();
|
||||
public static Optional<? extends Block> cherryStairs = Optional.absent();
|
||||
public static Optional<? extends Block> darkStairs = Optional.absent();
|
||||
public static Optional<? extends Block> firStairs = Optional.absent();
|
||||
public static Optional<? extends Block> holyStairs = Optional.absent();
|
||||
public static Optional<? extends Block> magicStairs = Optional.absent();
|
||||
public static Optional<? extends Block> mangroveStairs = Optional.absent();
|
||||
public static Optional<? extends Block> palmStairs = Optional.absent();
|
||||
public static Optional<? extends Block> redwoodStairs = Optional.absent();
|
||||
public static Optional<? extends Block> willowStairs = Optional.absent();
|
||||
public static Optional<? extends Block> redCobbleStairs = Optional.absent();
|
||||
public static Optional<? extends Block> redBricksStairs = Optional.absent();
|
||||
public static Optional<? extends Block> mudBricksStairs = Optional.absent();
|
||||
public static Optional<? extends Block> holyCobbleStairs = Optional.absent();
|
||||
public static Optional<? extends Block> holyBricksStairs = Optional.absent();
|
||||
public static Optional<? extends Block> pineStairs = Optional.absent();
|
||||
public static Optional<? extends Block> hellBarkStairs = Optional.absent();
|
||||
public static Optional<? extends Block> jacarandaStairs = Optional.absent();
|
||||
|
||||
// Slabs
|
||||
public static Optional<? extends BlockHalfSlab> woodenSingleSlab1 = Optional.absent();
|
||||
public static Optional<? extends BlockHalfSlab> woodenDoubleSlab1 = Optional.absent();
|
||||
public static Optional<? extends BlockHalfSlab> woodenSingleSlab2 = Optional.absent();
|
||||
public static Optional<? extends BlockHalfSlab> woodenDoubleSlab2 = Optional.absent();
|
||||
public static Optional<? extends BlockHalfSlab> stoneSingleSlab = Optional.absent();
|
||||
public static Optional<? extends BlockHalfSlab> stoneDoubleSlab = Optional.absent();
|
||||
|
||||
// Plants
|
||||
public static Optional<? extends Block> flowers = Optional.absent();
|
||||
public static Optional<? extends Block> mushrooms = Optional.absent();
|
||||
public static Optional<? extends Block> coral = Optional.absent();
|
||||
public static Optional<? extends Block> leaves1 = Optional.absent();
|
||||
public static Optional<? extends Block> leaves2 = Optional.absent();
|
||||
public static Optional<? extends Block> leavesColorized = Optional.absent();
|
||||
public static Optional<? extends Block> leavesFruit = Optional.absent();
|
||||
public static Optional<? extends Block> foliage = Optional.absent();
|
||||
public static Optional<? extends Block> plants = Optional.absent();
|
||||
public static Optional<? extends Block> flatPlants = Optional.absent();
|
||||
public static Optional<? extends Block> saplings = Optional.absent();
|
||||
public static Optional<? extends Block> colorizedSaplings = Optional.absent();
|
||||
public static Optional<? extends Block> willow = Optional.absent();
|
||||
public static Optional<? extends Block> ivy = Optional.absent();
|
||||
public static Optional<? extends Block> treeMoss = Optional.absent();
|
||||
public static Optional<? extends Block> moss = Optional.absent();
|
||||
public static Optional<? extends Block> petals = Optional.absent();
|
||||
public static Optional<? extends Block> bamboo = Optional.absent();
|
||||
public static Optional<? extends Block> cloud = Optional.absent();
|
||||
|
||||
//Nether
|
||||
public static Optional<? extends Block> bones = Optional.absent();
|
||||
|
||||
public static Optional<? extends Block> amethystOre = Optional.absent();
|
||||
|
||||
public static Optional<? extends Block> mudBrick = Optional.absent();
|
||||
|
||||
public static Optional<? extends Block> promisedPortal = Optional.absent();
|
||||
public static Optional<? extends Block> glass = Optional.absent();
|
||||
public static Optional<? extends Block> altar = Optional.absent();
|
||||
public static Optional<? extends Block> puddle = Optional.absent();
|
||||
public static Optional<? extends Block> grave = Optional.absent();
|
||||
|
||||
/**
|
||||
* Populated by Biomes O Plenty with default Biomes O Plenty leaves. Add additional leaves here (E.g. "Blocks.shearBlockIds.put(acaciaLeaves.blockID, 15.0F);")
|
||||
*/
|
||||
public static Map shearBlockIds = new HashMap();
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package biomesoplenty.api;
|
||||
|
||||
public class Entities {
|
||||
|
||||
public static Class Mudball = getClass("biomesoplenty.entities.projectiles.EntityMudball");
|
||||
public static Class Dart = getClass("biomesoplenty.entities.projectiles.EntityDart");
|
||||
public static Class JungleSpider = getClass("biomesoplenty.entities.EntityJungleSpider");
|
||||
public static Class Rosester = getClass("biomesoplenty.entities.EntityRosester");
|
||||
public static Class Glob = getClass("biomesoplenty.entities.EntityGlob");
|
||||
|
||||
public static Class getClass(String inputstring)
|
||||
{
|
||||
Class foundclass = null;
|
||||
try
|
||||
{
|
||||
foundclass = Class.forName(inputstring);
|
||||
}
|
||||
catch (ClassNotFoundException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
return foundclass;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package biomesoplenty.api;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
|
||||
import com.google.common.base.Optional;
|
||||
|
||||
public class Fluids
|
||||
{
|
||||
public static Optional<? extends Item> bopBucket = Optional.absent();
|
||||
|
||||
public static Optional<? extends Block> springWater = Optional.absent();
|
||||
public static Optional<? extends Block> liquidPoison = Optional.absent();
|
||||
|
||||
public static Optional<? extends Fluid> springWaterFluid = Optional.absent();
|
||||
public static Optional<? extends Fluid> liquidPoisonFluid = Optional.absent();
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package biomesoplenty.api;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
import com.google.common.base.Optional;
|
||||
|
||||
public class Items
|
||||
{
|
||||
public static Optional<? extends Item> bopDisc = Optional.absent();
|
||||
public static Optional<? extends Item> bopDiscMud = Optional.absent();
|
||||
|
||||
public static Optional<? extends Item> swordMud = Optional.absent();
|
||||
public static Optional<? extends Item> shovelMud = Optional.absent();
|
||||
public static Optional<? extends Item> pickaxeMud = Optional.absent();
|
||||
public static Optional<? extends Item> axeMud = Optional.absent();
|
||||
public static Optional<? extends Item> hoeMud = Optional.absent();
|
||||
public static Optional<? extends Item> helmetMud = Optional.absent();
|
||||
public static Optional<? extends Item> chestplateMud = Optional.absent();
|
||||
public static Optional<? extends Item> leggingsMud = Optional.absent();
|
||||
public static Optional<? extends Item> bootsMud = Optional.absent();
|
||||
|
||||
public static Optional<? extends Item> swordAmethyst = Optional.absent();
|
||||
public static Optional<? extends Item> shovelAmethyst = Optional.absent();
|
||||
public static Optional<? extends Item> pickaxeAmethyst = Optional.absent();
|
||||
public static Optional<? extends Item> axeAmethyst = Optional.absent();
|
||||
public static Optional<? extends Item> hoeAmethyst = Optional.absent();
|
||||
public static Optional<? extends Item> helmetAmethyst = Optional.absent();
|
||||
public static Optional<? extends Item> chestplateAmethyst = Optional.absent();
|
||||
public static Optional<? extends Item> leggingsAmethyst = Optional.absent();
|
||||
public static Optional<? extends Item> bootsAmethyst = Optional.absent();
|
||||
|
||||
public static Optional<? extends Item> scytheWood = Optional.absent();
|
||||
public static Optional<? extends Item> scytheStone = Optional.absent();
|
||||
public static Optional<? extends Item> scytheIron = Optional.absent();
|
||||
public static Optional<? extends Item> scytheGold = Optional.absent();
|
||||
public static Optional<? extends Item> scytheDiamond = Optional.absent();
|
||||
public static Optional<? extends Item> scytheMud = Optional.absent();
|
||||
public static Optional<? extends Item> scytheAmethyst = Optional.absent();
|
||||
|
||||
public static Optional<? extends Item> ancientStaff = Optional.absent();
|
||||
public static Optional<? extends Item> enderporter = Optional.absent();
|
||||
public static Optional<? extends Item> food = Optional.absent();
|
||||
public static Optional<? extends Item> miscItems = Optional.absent();
|
||||
public static Optional<? extends Item> mudball = Optional.absent();
|
||||
public static Optional<? extends Item> poison = Optional.absent();
|
||||
public static Optional<? extends Item> dartBlower = Optional.absent();
|
||||
public static Optional<? extends Item> dart = Optional.absent();
|
||||
public static Optional<? extends Item> soulManipulator = Optional.absent();
|
||||
|
||||
public static Optional<? extends Item> flowerBand = Optional.absent();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package biomesoplenty.api;
|
||||
|
||||
import net.minecraft.potion.Potion;
|
||||
|
||||
import com.google.common.base.Optional;
|
||||
|
||||
public class Potions
|
||||
{
|
||||
public static Optional<? extends Potion> paralysis = Optional.absent();
|
||||
}
|
||||
@@ -1,5 +1,12 @@
|
||||
package tconstruct.blocks;
|
||||
|
||||
import tconstruct.blocks.logic.EquipLogic;
|
||||
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import tconstruct.library.blocks.InventoryLogic;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import cpw.mods.fml.relauncher.*;
|
||||
@@ -115,6 +122,54 @@ public class EquipBlock extends InventoryBlock
|
||||
par1World.setBlockMetadataWithNotify(par2, par3, par4, newMeta, 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void breakBlock (World par1World, int x, int y, int z, int par5, int meta){
|
||||
TileEntity te = par1World.getBlockTileEntity(x, y, z);
|
||||
|
||||
if (te != null && te instanceof EquipLogic)
|
||||
{
|
||||
EquipLogic logic = (EquipLogic) te;
|
||||
for (int iter = 0; iter < logic.getSizeInventory(); ++iter)
|
||||
{
|
||||
ItemStack stack = iter == 0 ? logic.getEquipmentItem() : logic.getStackInSlot(iter);
|
||||
|
||||
if (stack != null && logic.canDropInventorySlot(iter))
|
||||
{
|
||||
float jumpX = rand.nextFloat() * 0.8F + 0.1F;
|
||||
float jumpY = rand.nextFloat() * 0.8F + 0.1F;
|
||||
float jumpZ = rand.nextFloat() * 0.8F + 0.1F;
|
||||
|
||||
while (stack.stackSize > 0)
|
||||
{
|
||||
int itemSize = rand.nextInt(21) + 10;
|
||||
|
||||
if (itemSize > stack.stackSize)
|
||||
{
|
||||
itemSize = stack.stackSize;
|
||||
}
|
||||
|
||||
stack.stackSize -= itemSize;
|
||||
EntityItem entityitem = new EntityItem(par1World, (double) ((float) x + jumpX), (double) ((float) y + jumpY), (double) ((float) z + jumpZ), new ItemStack(stack.itemID,
|
||||
itemSize, stack.getItemDamage()));
|
||||
|
||||
if (stack.hasTagCompound())
|
||||
{
|
||||
entityitem.getEntityItem().setTagCompound((NBTTagCompound) stack.getTagCompound().copy());
|
||||
}
|
||||
|
||||
float offset = 0.05F;
|
||||
entityitem.motionX = (double) ((float) rand.nextGaussian() * offset);
|
||||
entityitem.motionY = (double) ((float) rand.nextGaussian() * offset + 0.2F);
|
||||
entityitem.motionZ = (double) ((float) rand.nextGaussian() * offset);
|
||||
par1World.spawnEntityInWorld(entityitem);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
super.breakBlock(par1World, x, y, z, par5, meta);
|
||||
}
|
||||
|
||||
public int getLightValue (IBlockAccess world, int x, int y, int z)
|
||||
{
|
||||
return !isActive(world, x, y, z) ? 0 : 9;
|
||||
|
||||
@@ -397,7 +397,7 @@ public class CastingBasinLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readFromNBT(packet.customParam1);
|
||||
readFromNBT(packet.data);
|
||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
|
||||
@@ -571,7 +571,7 @@ public class CastingChannelLogic extends TileEntity implements IFluidTank, IFlui
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readCustomNBT(packet.customParam1);
|
||||
readCustomNBT(packet.data);
|
||||
this.worldObj.markBlockForRenderUpdate(this.xCoord, this.yCoord, this.zCoord);
|
||||
}
|
||||
|
||||
|
||||
@@ -395,7 +395,7 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readFromNBT(packet.customParam1);
|
||||
readFromNBT(packet.data);
|
||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
|
||||
@@ -482,7 +482,7 @@ public class DrawbridgeLogic extends InventoryLogic implements IFacingLogic, IAc
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readFromNBT(packet.customParam1);
|
||||
readFromNBT(packet.data);
|
||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ public class DryingRackLogic extends InventoryLogic
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readCustomNBT(packet.customParam1);
|
||||
readCustomNBT(packet.data);
|
||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,20 +32,23 @@ public abstract class EquipLogic extends InventoryLogic
|
||||
return inventory[0];
|
||||
}
|
||||
|
||||
/*@Override
|
||||
@Override
|
||||
public void setInventorySlotContents(int slot, ItemStack stack){
|
||||
if(slot == 0){
|
||||
return;
|
||||
}else{
|
||||
super.setInventorySlotContents(slot, stack);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getStackInSlot(int slot)
|
||||
{
|
||||
return inventory[slot +1];
|
||||
return slot != 0 ? inventory[slot] : null;
|
||||
}
|
||||
|
||||
public boolean isStackInSlot(int slot)
|
||||
{
|
||||
return inventory[slot +1] != null;
|
||||
return slot != 0 ? inventory[slot] != null : false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSizeInventory()
|
||||
{
|
||||
return inventory.length - 1;
|
||||
}*/
|
||||
}
|
||||
@@ -179,7 +179,7 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readCustomNBT(packet.customParam1);
|
||||
readCustomNBT(packet.data);
|
||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
|
||||
@@ -190,7 +190,7 @@ public class FirestarterLogic extends TileEntity implements IFacingLogic, IActiv
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readCustomNBT(packet.customParam1);
|
||||
readCustomNBT(packet.data);
|
||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
@@ -111,7 +111,7 @@ public class GolemCoreLogic extends InventoryLogic implements IInventory
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readFromNBT(packet.customParam1);
|
||||
readFromNBT(packet.data);
|
||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
@@ -158,7 +158,7 @@ public class LavaTankLogic extends MultiServantLogic implements IFluidHandler
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readCustomNBT(packet.customParam1);
|
||||
readCustomNBT(packet.data);
|
||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ public class LiquidTextureLogic extends TileEntity
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readCustomNBT(packet.customParam1);
|
||||
readCustomNBT(packet.data);
|
||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
@@ -140,7 +140,7 @@ public class MultiServantLogic extends TileEntity implements IServantLogic
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readCustomNBT(packet.customParam1);
|
||||
readCustomNBT(packet.data);
|
||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
@@ -66,7 +66,7 @@ public class RedwireLogic extends TileEntity
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readCustomNBT(packet.customParam1);
|
||||
readCustomNBT(packet.data);
|
||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package tconstruct.blocks.logic;
|
||||
|
||||
import tconstruct.library.crafting.AlloyMix;
|
||||
import tconstruct.library.util.IFacingLogic;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
@@ -22,38 +23,10 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
return false;
|
||||
}
|
||||
|
||||
/*@Override
|
||||
public FluidStack getLiquid ()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCapacity ()
|
||||
{
|
||||
if (!hasMaster)
|
||||
return 0;
|
||||
|
||||
SmelteryLogic smeltery = (SmelteryLogic) worldObj.getBlockTileEntity(master.x, master.y, master.z);
|
||||
return smeltery.getCapacity();
|
||||
}*/
|
||||
|
||||
/*@Override
|
||||
public int fill (FluidStack resource, boolean doFill)
|
||||
{
|
||||
|
||||
}*/
|
||||
|
||||
/*@Override
|
||||
public FluidStack drain (int maxDrain, boolean doDrain)
|
||||
{
|
||||
|
||||
}*/
|
||||
|
||||
@Override
|
||||
public int fill (ForgeDirection from, FluidStack resource, boolean doFill)
|
||||
{
|
||||
if (hasMaster && resource != null)
|
||||
if (hasValidMaster() && resource != null && canFill(from, resource.getFluid()))
|
||||
{
|
||||
if (doFill)
|
||||
{
|
||||
@@ -74,7 +47,7 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
@Override
|
||||
public FluidStack drain (ForgeDirection from, int maxDrain, boolean doDrain)
|
||||
{
|
||||
if (hasValidMaster())
|
||||
if (hasValidMaster() && canDrain(from, null))
|
||||
{
|
||||
SmelteryLogic smeltery = (SmelteryLogic) worldObj.getBlockTileEntity(master.x, master.y, master.z);
|
||||
return smeltery.drain(maxDrain, doDrain);
|
||||
@@ -88,51 +61,45 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
@Override
|
||||
public FluidStack drain (ForgeDirection from, FluidStack resource, boolean doDrain)
|
||||
{
|
||||
// TODO Auto-generated method stub
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canFill (ForgeDirection from, Fluid fluid)
|
||||
{
|
||||
return false;
|
||||
return from == getForgeDirection().getOpposite();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canDrain (ForgeDirection from, Fluid fluid)
|
||||
{
|
||||
return false;
|
||||
// Check that the drain is coming from the from the front of the block
|
||||
// and that the fluid to be drained is in the smeltery.
|
||||
boolean containsFluid = fluid == null;
|
||||
if(fluid!=null){
|
||||
SmelteryLogic smeltery = (SmelteryLogic) worldObj.getBlockTileEntity(master.x, master.y, master.z);
|
||||
for (FluidStack fstack : smeltery.moltenMetal){
|
||||
if(fstack.fluidID == fluid.getID()){
|
||||
containsFluid = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return from == getForgeDirection() && containsFluid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FluidTankInfo[] getTankInfo (ForgeDirection from)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@Override
|
||||
public ILiquidTank[] getTanks (ForgeDirection direction)
|
||||
{
|
||||
if (hasValidMaster())
|
||||
if (hasValidMaster() && (from==getForgeDirection() || from == getForgeDirection().getOpposite() || from == ForgeDirection.UNKNOWN))
|
||||
{
|
||||
SmelteryLogic smeltery = (SmelteryLogic) worldObj.getBlockTileEntity(master.x, master.y, master.z);
|
||||
return new ILiquidTank[] { smeltery };
|
||||
return new FluidTankInfo[] { smeltery.getInfo() };
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ILiquidTank getTank (ForgeDirection direction, FluidStack type)
|
||||
{
|
||||
if (hasValidMaster())
|
||||
{
|
||||
return (SmelteryLogic) worldObj.getBlockTileEntity(master.x, master.y, master.z);
|
||||
}
|
||||
return null;
|
||||
}*/
|
||||
|
||||
@Override
|
||||
public byte getRenderDirection ()
|
||||
{
|
||||
@@ -207,7 +174,7 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readFromNBT(packet.customParam1);
|
||||
readFromNBT(packet.data);
|
||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
@@ -325,7 +325,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
{
|
||||
if (currentLiquid + 25 < maxLiquid)
|
||||
{
|
||||
this.addMoltenMetal(new FluidStack(TContent.moltenEnder.blockID, 25), false);
|
||||
this.addMoltenMetal(new FluidStack(TContent.moltenEnderFluid, 25), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -986,8 +986,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
@Override
|
||||
public FluidTankInfo getInfo ()
|
||||
{
|
||||
//TODO: This
|
||||
return null;
|
||||
return new FluidTankInfo(this);
|
||||
}
|
||||
|
||||
/* NBT */
|
||||
@@ -1076,7 +1075,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readFromNBT(packet.customParam1);
|
||||
readFromNBT(packet.data);
|
||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
@@ -107,7 +107,7 @@ public class TileEntityLandmine extends TileEntity implements IInventory
|
||||
@Override
|
||||
public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
|
||||
{
|
||||
readFromNBT(packet.customParam1);
|
||||
readFromNBT(packet.data);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -61,7 +61,7 @@ public class ToolStationLogic extends InventoryLogic implements ISidedInventory
|
||||
if (this.worldObj != null)
|
||||
{
|
||||
this.blockMetadata = this.worldObj.getBlockMetadata(this.xCoord, this.yCoord, this.zCoord);
|
||||
this.worldObj.updateTileEntityChunkAndDoNothing(this.xCoord, this.yCoord, this.zCoord, this);
|
||||
this.worldObj.markTileEntityChunkModified(this.xCoord, this.yCoord, this.zCoord, this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -72,8 +72,8 @@ public class CustomBowRenderer implements IItemRenderer
|
||||
GL11.glPopMatrix();
|
||||
return;
|
||||
}
|
||||
TextureManager texturemanager = this.mc.func_110434_K();
|
||||
texturemanager.func_110577_a(texturemanager.func_130087_a(stack.getItemSpriteNumber()));
|
||||
TextureManager texturemanager = this.mc.getTextureManager();
|
||||
texturemanager.bindTexture(texturemanager.getResourceLocation(stack.getItemSpriteNumber()));
|
||||
|
||||
if (type == ItemRenderType.EQUIPPED_FIRST_PERSON)
|
||||
{
|
||||
@@ -101,7 +101,7 @@ public class CustomBowRenderer implements IItemRenderer
|
||||
GL11.glRotatef(50.0F, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glRotatef(335.0F, 0.0F, 0.0F, 1.0F);
|
||||
GL11.glTranslatef(-0.9375F, -0.0625F, 0.0F);
|
||||
ItemRenderer.renderItemIn2D(tessellator, f1, f2, f, f3, icon.getOriginX(), icon.getOriginY(), 0.0625F);
|
||||
ItemRenderer.renderItemIn2D(tessellator, f1, f2, f, f3, icon.getIconWidth(), icon.getIconHeight(), 0.0625F);
|
||||
|
||||
GL11.glDisable(GL12.GL_RESCALE_NORMAL);
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public class RenderItemCopy extends Render
|
||||
*/
|
||||
public void doRenderItem (EntityItem par1EntityItem, double par2, double par4, double par6, float par8, float par9)
|
||||
{
|
||||
this.func_110777_b(par1EntityItem);
|
||||
this.bindEntityTexture(par1EntityItem);
|
||||
this.random.setSeed(187L);
|
||||
ItemStack itemstack = par1EntityItem.getEntityItem();
|
||||
|
||||
@@ -192,7 +192,7 @@ public class RenderItemCopy extends Render
|
||||
|
||||
protected ResourceLocation func_110796_a (EntityItem par1EntityItem)
|
||||
{
|
||||
return this.renderManager.renderEngine.func_130087_a(par1EntityItem.getEntityItem().getItemSpriteNumber());
|
||||
return this.renderManager.renderEngine.getResourceLocation(par1EntityItem.getEntityItem().getItemSpriteNumber());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -209,9 +209,9 @@ public class RenderItemCopy extends Render
|
||||
|
||||
if (par2Icon == null)
|
||||
{
|
||||
TextureManager texturemanager = Minecraft.getMinecraft().func_110434_K();
|
||||
ResourceLocation resourcelocation = texturemanager.func_130087_a(par1EntityItem.getEntityItem().getItemSpriteNumber());
|
||||
par2Icon = ((TextureMap) texturemanager.func_110581_b(resourcelocation)).func_110572_b("missingno");
|
||||
TextureManager texturemanager = Minecraft.getMinecraft().getTextureManager();
|
||||
ResourceLocation resourcelocation = texturemanager.getResourceLocation(par1EntityItem.getEntityItem().getItemSpriteNumber());
|
||||
par2Icon = ((TextureMap) texturemanager.getTexture(resourcelocation)).getAtlasSprite("missingno");
|
||||
}
|
||||
|
||||
float f4 = ((Icon) par2Icon).getMinU();
|
||||
@@ -261,21 +261,21 @@ public class RenderItemCopy extends Render
|
||||
|
||||
if (itemstack.getItemSpriteNumber() == 0)
|
||||
{
|
||||
this.func_110776_a(TextureMap.field_110575_b);
|
||||
this.bindTexture(TextureMap.locationBlocksTexture);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.func_110776_a(TextureMap.field_110576_c);
|
||||
this.bindTexture(TextureMap.locationItemsTexture);
|
||||
}
|
||||
|
||||
GL11.glColor4f(par5, par6, par7, 1.0F);
|
||||
ItemRenderer.renderItemIn2D(tessellator, f5, f6, f4, f7, ((Icon) par2Icon).getOriginX(), ((Icon) par2Icon).getOriginY(), f12);
|
||||
ItemRenderer.renderItemIn2D(tessellator, f5, f6, f4, f7, ((Icon) par2Icon).getIconWidth(), ((Icon) par2Icon).getIconHeight(), f12);
|
||||
|
||||
if (itemstack.hasEffect(pass))
|
||||
{
|
||||
GL11.glDepthFunc(GL11.GL_EQUAL);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
this.renderManager.renderEngine.func_110577_a(field_110798_h);
|
||||
this.renderManager.renderEngine.bindTexture(field_110798_h);
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);
|
||||
float f13 = 0.76F;
|
||||
@@ -358,7 +358,7 @@ public class RenderItemCopy extends Render
|
||||
Block block = (k < Block.blocksList.length ? Block.blocksList[k] : null);
|
||||
if (par3ItemStack.getItemSpriteNumber() == 0 && block != null && RenderBlocks.renderItemIn3d(Block.blocksList[k].getRenderType()))
|
||||
{
|
||||
par2TextureManager.func_110577_a(TextureMap.field_110575_b);
|
||||
par2TextureManager.bindTexture(TextureMap.locationBlocksTexture);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float) (par4 - 2), (float) (par5 + 3), -3.0F + this.zLevel);
|
||||
GL11.glScalef(10.0F, 10.0F, 10.0F);
|
||||
@@ -388,7 +388,7 @@ public class RenderItemCopy extends Render
|
||||
|
||||
for (int j1 = 0; j1 < Item.itemsList[k].getRenderPasses(l); ++j1)
|
||||
{
|
||||
par2TextureManager.func_110577_a(par3ItemStack.getItemSpriteNumber() == 0 ? TextureMap.field_110575_b : TextureMap.field_110576_c);
|
||||
par2TextureManager.bindTexture(par3ItemStack.getItemSpriteNumber() == 0 ? TextureMap.locationBlocksTexture : TextureMap.locationItemsTexture);
|
||||
Icon icon = Item.itemsList[k].getIcon(par3ItemStack, j1);
|
||||
int k1 = Item.itemsList[k].getColorFromItemStack(par3ItemStack, j1);
|
||||
f1 = (float) (k1 >> 16 & 255) / 255.0F;
|
||||
@@ -413,12 +413,12 @@ public class RenderItemCopy extends Render
|
||||
else
|
||||
{
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
ResourceLocation resourcelocation = par2TextureManager.func_130087_a(par3ItemStack.getItemSpriteNumber());
|
||||
par2TextureManager.func_110577_a(resourcelocation);
|
||||
ResourceLocation resourcelocation = par2TextureManager.getResourceLocation(par3ItemStack.getItemSpriteNumber());
|
||||
par2TextureManager.bindTexture(resourcelocation);
|
||||
|
||||
if (object == null)
|
||||
{
|
||||
object = ((TextureMap) Minecraft.getMinecraft().func_110434_K().func_110581_b(resourcelocation)).func_110572_b("missingno");
|
||||
object = ((TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture(resourcelocation)).getAtlasSprite("missingno");
|
||||
}
|
||||
|
||||
i1 = Item.itemsList[k].getColorFromItemStack(par3ItemStack, 0);
|
||||
@@ -448,7 +448,7 @@ public class RenderItemCopy extends Render
|
||||
GL11.glDepthFunc(GL11.GL_GREATER);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glDepthMask(false);
|
||||
manager.func_110577_a(field_110798_h);
|
||||
manager.bindTexture(field_110798_h);
|
||||
this.zLevel -= 50.0F;
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_DST_COLOR, GL11.GL_DST_COLOR);
|
||||
@@ -479,7 +479,7 @@ public class RenderItemCopy extends Render
|
||||
GL11.glDepthFunc(GL11.GL_GREATER);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glDepthMask(false);
|
||||
par2TextureManager.func_110577_a(field_110798_h);
|
||||
par2TextureManager.bindTexture(field_110798_h);
|
||||
this.zLevel -= 50.0F;
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_DST_COLOR, GL11.GL_DST_COLOR);
|
||||
@@ -601,7 +601,7 @@ public class RenderItemCopy extends Render
|
||||
tessellator.draw();
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a (Entity par1Entity)
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return this.func_110796_a((EntityItem) par1Entity);
|
||||
}
|
||||
|
||||
@@ -109,13 +109,13 @@ public class TClientEvents
|
||||
highlight = false;
|
||||
}
|
||||
|
||||
AttributeInstance attrMaxHealth = this.mc.thePlayer.func_110148_a(SharedMonsterAttributes.field_111267_a);
|
||||
int health = MathHelper.ceiling_float_int(mc.thePlayer.func_110143_aJ());
|
||||
AttributeInstance attrMaxHealth = this.mc.thePlayer.getEntityAttribute(SharedMonsterAttributes.maxHealth);
|
||||
int health = MathHelper.ceiling_float_int(mc.thePlayer.getHealth());
|
||||
int healthLast = MathHelper.ceiling_float_int(mc.thePlayer.prevHealth);
|
||||
float healthMax = (float) attrMaxHealth.func_111126_e();
|
||||
float healthMax = (float) attrMaxHealth.getAttributeValue();
|
||||
if (healthMax > 20)
|
||||
healthMax = 20;
|
||||
float absorb = this.mc.thePlayer.func_110139_bj();
|
||||
float absorb = this.mc.thePlayer.getAbsorptionAmount();
|
||||
|
||||
int healthRows = MathHelper.ceiling_float_int((healthMax + absorb) / 2.0F / 10.0F);
|
||||
int rowHeight = Math.max(10 - (healthRows - 2), 3);
|
||||
@@ -187,9 +187,9 @@ public class TClientEvents
|
||||
return;
|
||||
|
||||
//Extra hearts
|
||||
this.mc.func_110434_K().func_110577_a(hearts);
|
||||
this.mc.getTextureManager().bindTexture(hearts);
|
||||
|
||||
int hp = MathHelper.ceiling_float_int(this.mc.thePlayer.func_110143_aJ());
|
||||
int hp = MathHelper.ceiling_float_int(this.mc.thePlayer.getHealth());
|
||||
for (int iter = 0; iter < hp / 20; iter++)
|
||||
{
|
||||
int renderHearts = (hp - 20 * (iter + 1)) / 2;
|
||||
@@ -205,7 +205,7 @@ public class TClientEvents
|
||||
}
|
||||
}
|
||||
|
||||
this.mc.func_110434_K().func_110577_a(icons);
|
||||
this.mc.getTextureManager().bindTexture(icons);
|
||||
GuiIngameForge.left_height += 10;
|
||||
if (absorb > 0)
|
||||
GuiIngameForge.left_height += 10;
|
||||
|
||||
@@ -42,10 +42,10 @@ public class TClientTickHandler implements ITickHandler
|
||||
int scaledHeight = scaledresolution.getScaledHeight();
|
||||
int xBasePos = scaledWidth / 2 - 91;
|
||||
int yBasePos = scaledHeight - 39;
|
||||
this.mc.func_110434_K().func_110577_a(hearts);
|
||||
this.mc.getTextureManager().bindTexture(hearts);
|
||||
//this.mc.renderEngine.bindTexture("/mods/tinker/textures/gui/newhearts.png");
|
||||
|
||||
int hp = MathHelper.ceiling_float_int(this.mc.thePlayer.func_110143_aJ());//(int) player.func_110148_a(SharedMonsterAttributes.field_111267_a).func_111125_b();//player.getHealth();
|
||||
int hp = MathHelper.ceiling_float_int(this.mc.thePlayer.getHealth());//(int) player.getEntityAttribute(SharedMonsterAttributes.field_111267_a).func_111125_b();//player.getHealth();
|
||||
//System.out.println("hp: "+hp);
|
||||
for (int iter = 0; iter < hp / 20; iter++)
|
||||
{
|
||||
|
||||
@@ -113,8 +113,8 @@ public class ToolCoreRenderer implements IItemRenderer
|
||||
xMax[i] = icon.getMaxU();
|
||||
yMin[i] = icon.getMinV();
|
||||
yMax[i] = icon.getMaxV();
|
||||
sheetWidth[i] = icon.getOriginX();
|
||||
sheetHeight[i] = icon.getOriginY();
|
||||
sheetWidth[i] = icon.getIconWidth();
|
||||
sheetHeight[i] = icon.getIconHeight();
|
||||
xDiff[i] = xMin[i] - xMax[i];
|
||||
yDiff[i] = yMin[i] - yMax[i];
|
||||
width[i] = sheetWidth[i] * xDiff[i];
|
||||
|
||||
@@ -19,7 +19,7 @@ public class BreakingFX extends EntityFX
|
||||
public BreakingFX(World par1World, double par2, double par4, double par6, Item par8Item, int par9)
|
||||
{
|
||||
super(par1World, par2, par4, par6, 0.0D, 0.0D, 0.0D);
|
||||
this.func_110125_a(par8Item.getIconFromDamage(par9));
|
||||
this.setParticleIcon(par8Item.getIconFromDamage(par9));
|
||||
this.particleRed = this.particleGreen = this.particleBlue = 1.0F;
|
||||
this.particleGravity = Block.blockSnow.blockParticleGravity;
|
||||
this.particleScale /= 2.0F;
|
||||
|
||||
@@ -79,15 +79,15 @@ public class PaneRender implements ISimpleBlockRenderingHandler
|
||||
icon = renderblocks.getBlockIconFromSideAndMetadata(pane, 0, meta);
|
||||
icon1 = pane.getSideTextureIndex(meta);
|
||||
|
||||
meta = icon.getOriginX();
|
||||
int k1 = icon.getOriginY();
|
||||
meta = icon.getIconWidth();
|
||||
int k1 = icon.getIconHeight();
|
||||
double d = (double) icon.getMinU();
|
||||
double d1 = (double) icon.getInterpolatedU(8.0D);
|
||||
double d2 = (double) icon.getMaxU();
|
||||
double d3 = (double) icon.getMinV();
|
||||
double d4 = (double) icon.getMaxV();
|
||||
int l1 = icon1.getOriginX();
|
||||
int i2 = icon1.getOriginY();
|
||||
int l1 = icon1.getIconWidth();
|
||||
int i2 = icon1.getIconHeight();
|
||||
double d5 = (double) icon1.getInterpolatedU(7.0D);
|
||||
double d6 = (double) icon1.getInterpolatedU(9.0D);
|
||||
double d7 = (double) icon1.getMinV();
|
||||
|
||||
@@ -107,7 +107,7 @@ public class SmallFontRenderer implements ResourceManagerReloadListener
|
||||
this.field_111273_g = par2ResourceLocation;
|
||||
this.renderEngine = par3TextureManager;
|
||||
this.unicodeFlag = true;
|
||||
par3TextureManager.func_110577_a(this.field_111273_g);
|
||||
par3TextureManager.bindTexture(this.field_111273_g);
|
||||
|
||||
for (int i = 0; i < 32; ++i)
|
||||
{
|
||||
@@ -144,7 +144,7 @@ public class SmallFontRenderer implements ResourceManagerReloadListener
|
||||
this.readGlyphSizes();
|
||||
}
|
||||
|
||||
public void func_110549_a (ResourceManager par1ResourceManager)
|
||||
public void onResourceManagerReload (ResourceManager par1ResourceManager)
|
||||
{
|
||||
this.func_111272_d();
|
||||
}
|
||||
@@ -155,7 +155,7 @@ public class SmallFontRenderer implements ResourceManagerReloadListener
|
||||
|
||||
try
|
||||
{
|
||||
bufferedimage = ImageIO.read(Minecraft.getMinecraft().func_110442_L().func_110536_a(this.field_111273_g).func_110527_b());
|
||||
bufferedimage = ImageIO.read(Minecraft.getMinecraft().getResourceManager().getResource(this.field_111273_g).getInputStream());
|
||||
}
|
||||
catch (IOException ioexception)
|
||||
{
|
||||
@@ -220,7 +220,7 @@ public class SmallFontRenderer implements ResourceManagerReloadListener
|
||||
{
|
||||
try
|
||||
{
|
||||
InputStream inputstream = Minecraft.getMinecraft().func_110442_L().func_110536_a(new ResourceLocation("font/glyph_sizes.bin")).func_110527_b();
|
||||
InputStream inputstream = Minecraft.getMinecraft().getResourceManager().getResource(new ResourceLocation("font/glyph_sizes.bin")).getInputStream();
|
||||
inputstream.read(this.glyphWidth);
|
||||
}
|
||||
catch (IOException ioexception)
|
||||
@@ -245,7 +245,7 @@ public class SmallFontRenderer implements ResourceManagerReloadListener
|
||||
float f = (float) (par1 % 16 * 8);
|
||||
float f1 = (float) (par1 / 16 * 8);
|
||||
float f2 = par2 ? 1.0F : 0.0F;
|
||||
this.renderEngine.func_110577_a(this.field_111273_g);
|
||||
this.renderEngine.bindTexture(this.field_111273_g);
|
||||
float f3 = (float) this.charWidth[par1] - 0.01F;
|
||||
GL11.glBegin(GL11.GL_TRIANGLE_STRIP);
|
||||
GL11.glTexCoord2f(f / 128.0F, f1 / 128.0F);
|
||||
@@ -275,7 +275,7 @@ public class SmallFontRenderer implements ResourceManagerReloadListener
|
||||
*/
|
||||
private void loadGlyphTexture (int par1)
|
||||
{
|
||||
this.renderEngine.func_110577_a(this.func_111271_a(par1));
|
||||
this.renderEngine.bindTexture(this.func_111271_a(par1));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1039,4 +1039,5 @@ public class SmallFontRenderer implements ResourceManagerReloadListener
|
||||
{
|
||||
return this.bidiFlag;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -132,7 +132,7 @@ public class CartRender extends Render
|
||||
this.renderPullcart((CartEntity) par1Entity, par2, par4, par6, par8, par9);
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a (Entity par1Entity)
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return texture;
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ public class CrystalGuardianRender extends RenderLiving
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ResourceLocation func_110775_a (Entity par1Entity)
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return texture;
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ public class CrystalRender extends RenderLiving
|
||||
return this.func_77061_b((Crystal) par1EntityLiving, par2, par3);
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a (Entity par1Entity)
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return texture;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ public class FancyItemRender extends Render
|
||||
*/
|
||||
public void doRenderItem (EntityItem par1EntityItem, double par2, double par4, double par6, float par8, float par9)
|
||||
{
|
||||
this.func_110777_b(par1EntityItem);
|
||||
this.bindEntityTexture(par1EntityItem);
|
||||
this.random.setSeed(187L);
|
||||
ItemStack itemstack = par1EntityItem.getEntityItem();
|
||||
|
||||
@@ -191,7 +191,7 @@ public class FancyItemRender extends Render
|
||||
|
||||
protected ResourceLocation func_110796_a (EntityItem par1EntityItem)
|
||||
{
|
||||
return this.renderManager.renderEngine.func_130087_a(par1EntityItem.getEntityItem().getItemSpriteNumber());
|
||||
return this.renderManager.renderEngine.getResourceLocation(par1EntityItem.getEntityItem().getItemSpriteNumber());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -208,9 +208,9 @@ public class FancyItemRender extends Render
|
||||
|
||||
if (par2Icon == null)
|
||||
{
|
||||
TextureManager texturemanager = Minecraft.getMinecraft().func_110434_K();
|
||||
ResourceLocation resourcelocation = texturemanager.func_130087_a(par1EntityItem.getEntityItem().getItemSpriteNumber());
|
||||
par2Icon = ((TextureMap) texturemanager.func_110581_b(resourcelocation)).func_110572_b("missingno");
|
||||
TextureManager texturemanager = Minecraft.getMinecraft().getTextureManager();
|
||||
ResourceLocation resourcelocation = texturemanager.getResourceLocation(par1EntityItem.getEntityItem().getItemSpriteNumber());
|
||||
par2Icon = ((TextureMap) texturemanager.getTexture(resourcelocation)).getAtlasSprite("missingno");
|
||||
}
|
||||
|
||||
float f4 = ((Icon) par2Icon).getMinU();
|
||||
@@ -258,21 +258,21 @@ public class FancyItemRender extends Render
|
||||
|
||||
if (itemstack.getItemSpriteNumber() == 0)
|
||||
{
|
||||
this.func_110776_a(TextureMap.field_110575_b);
|
||||
this.bindTexture(TextureMap.locationBlocksTexture);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.func_110776_a(TextureMap.field_110576_c);
|
||||
this.bindTexture(TextureMap.locationItemsTexture);
|
||||
}
|
||||
|
||||
GL11.glColor4f(par5, par6, par7, 1.0F);
|
||||
ItemRenderer.renderItemIn2D(tessellator, f5, f6, f4, f7, ((Icon) par2Icon).getOriginX(), ((Icon) par2Icon).getOriginY(), f12);
|
||||
ItemRenderer.renderItemIn2D(tessellator, f5, f6, f4, f7, ((Icon) par2Icon).getIconWidth(), ((Icon) par2Icon).getIconHeight(), f12);
|
||||
|
||||
if (itemstack.hasEffect(pass))
|
||||
{
|
||||
GL11.glDepthFunc(GL11.GL_EQUAL);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
this.renderManager.renderEngine.func_110577_a(field_110798_h);
|
||||
this.renderManager.renderEngine.bindTexture(field_110798_h);
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);
|
||||
float f13 = 0.76F;
|
||||
@@ -325,7 +325,7 @@ public class FancyItemRender extends Render
|
||||
Block block = (k < Block.blocksList.length ? Block.blocksList[k] : null);
|
||||
if (par3ItemStack.getItemSpriteNumber() == 0 && block != null && RenderBlocks.renderItemIn3d(Block.blocksList[k].getRenderType()))
|
||||
{
|
||||
par2TextureManager.func_110577_a(TextureMap.field_110575_b);
|
||||
par2TextureManager.bindTexture(TextureMap.locationBlocksTexture);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float) (par4 - 2), (float) (par5 + 3), -3.0F + this.zLevel);
|
||||
GL11.glScalef(10.0F, 10.0F, 10.0F);
|
||||
@@ -355,7 +355,7 @@ public class FancyItemRender extends Render
|
||||
|
||||
for (int j1 = 0; j1 < Item.itemsList[k].getRenderPasses(l); ++j1)
|
||||
{
|
||||
par2TextureManager.func_110577_a(par3ItemStack.getItemSpriteNumber() == 0 ? TextureMap.field_110575_b : TextureMap.field_110576_c);
|
||||
par2TextureManager.bindTexture(par3ItemStack.getItemSpriteNumber() == 0 ? TextureMap.locationBlocksTexture : TextureMap.locationItemsTexture);
|
||||
Icon icon = Item.itemsList[k].getIcon(par3ItemStack, j1);
|
||||
int k1 = Item.itemsList[k].getColorFromItemStack(par3ItemStack, j1);
|
||||
f1 = (float) (k1 >> 16 & 255) / 255.0F;
|
||||
@@ -380,12 +380,12 @@ public class FancyItemRender extends Render
|
||||
else
|
||||
{
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
ResourceLocation resourcelocation = par2TextureManager.func_130087_a(par3ItemStack.getItemSpriteNumber());
|
||||
par2TextureManager.func_110577_a(resourcelocation);
|
||||
ResourceLocation resourcelocation = par2TextureManager.getResourceLocation(par3ItemStack.getItemSpriteNumber());
|
||||
par2TextureManager.bindTexture(resourcelocation);
|
||||
|
||||
if (object == null)
|
||||
{
|
||||
object = ((TextureMap) Minecraft.getMinecraft().func_110434_K().func_110581_b(resourcelocation)).func_110572_b("missingno");
|
||||
object = ((TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture(resourcelocation)).getAtlasSprite("missingno");
|
||||
}
|
||||
|
||||
i1 = Item.itemsList[k].getColorFromItemStack(par3ItemStack, 0);
|
||||
@@ -415,7 +415,7 @@ public class FancyItemRender extends Render
|
||||
GL11.glDepthFunc(GL11.GL_GREATER);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glDepthMask(false);
|
||||
manager.func_110577_a(field_110798_h);
|
||||
manager.bindTexture(field_110798_h);
|
||||
this.zLevel -= 50.0F;
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_DST_COLOR, GL11.GL_DST_COLOR);
|
||||
@@ -446,7 +446,7 @@ public class FancyItemRender extends Render
|
||||
GL11.glDepthFunc(GL11.GL_GREATER);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glDepthMask(false);
|
||||
par2TextureManager.func_110577_a(field_110798_h);
|
||||
par2TextureManager.bindTexture(field_110798_h);
|
||||
this.zLevel -= 50.0F;
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_DST_COLOR, GL11.GL_DST_COLOR);
|
||||
@@ -568,7 +568,7 @@ public class FancyItemRender extends Render
|
||||
tessellator.draw();
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a (Entity par1Entity)
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return this.func_110796_a((EntityItem) par1Entity);
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ public class MiniGardyRender extends RenderLiving
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ResourceLocation func_110775_a (Entity par1Entity)
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return texture;
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class SlimeCloneRender extends RenderLiving
|
||||
}*/
|
||||
|
||||
@Override
|
||||
protected ResourceLocation func_110775_a (Entity entity)
|
||||
protected ResourceLocation getEntityTexture (Entity entity)
|
||||
{
|
||||
//return func_98191_a((SlimeClone)entity);
|
||||
return null;
|
||||
|
||||
@@ -36,7 +36,7 @@ public class SlimeRender extends RenderLiving
|
||||
public void renderBossHealth (BlueSlime slime)
|
||||
{
|
||||
if (slime.getSlimeSize() >= 8)
|
||||
BossStatus.func_82824_a(slime, true);
|
||||
BossStatus.setBossStatus(slime, true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -99,7 +99,7 @@ public class SlimeRender extends RenderLiving
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ResourceLocation func_110775_a (Entity par1Entity)
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return texture;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class ArrowRender extends Render
|
||||
*/
|
||||
public void doRenderItem(ArrowEntity par1ArrowEntity, double par2, double par4, double par6, float par8, float par9)
|
||||
{
|
||||
this.func_110777_b(par1ArrowEntity);
|
||||
this.bindEntityTexture(par1ArrowEntity);
|
||||
this.random.setSeed(187L);
|
||||
ItemStack itemstack = par1ArrowEntity.getEntityItem();
|
||||
|
||||
@@ -165,7 +165,7 @@ public class ArrowRender extends Render
|
||||
|
||||
protected ResourceLocation func_110796_a(ArrowEntity par1ArrowEntity)
|
||||
{
|
||||
return this.renderManager.renderEngine.func_130087_a(par1ArrowEntity.getEntityItem().getItemSpriteNumber());
|
||||
return this.renderManager.renderEngine.getResourceLocation(par1ArrowEntity.getEntityItem().getItemSpriteNumber());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -182,9 +182,9 @@ public class ArrowRender extends Render
|
||||
|
||||
if (par2Icon == null)
|
||||
{
|
||||
TextureManager texturemanager = Minecraft.getMinecraft().func_110434_K();
|
||||
ResourceLocation resourcelocation = texturemanager.func_130087_a(arrow.getEntityItem().getItemSpriteNumber());
|
||||
par2Icon = ((TextureMap) texturemanager.func_110581_b(resourcelocation)).func_110572_b("missingno");
|
||||
TextureManager texturemanager = Minecraft.getMinecraft().getTextureManager();
|
||||
ResourceLocation resourcelocation = texturemanager.getResourceLocation(arrow.getEntityItem().getItemSpriteNumber());
|
||||
par2Icon = ((TextureMap) texturemanager.getTexture(resourcelocation)).getAtlasSprite("missingno");
|
||||
}
|
||||
|
||||
float f4 = ((Icon) par2Icon).getMinU();
|
||||
@@ -227,21 +227,53 @@ public class ArrowRender extends Render
|
||||
|
||||
if (itemstack.getItemSpriteNumber() == 0)
|
||||
{
|
||||
this.func_110776_a(TextureMap.field_110575_b);
|
||||
this.bindTexture(TextureMap.locationBlocksTexture);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.func_110776_a(TextureMap.field_110576_c);
|
||||
this.bindTexture(TextureMap.locationItemsTexture);
|
||||
}
|
||||
|
||||
GL11.glColor4f(par5, par6, par7, 1.0F);
|
||||
ItemRenderer.renderItemIn2D(tessellator, f5, f6, f4, f7, ((Icon) par2Icon).getOriginX(), ((Icon) par2Icon).getOriginY(), f12);
|
||||
|
||||
ItemRenderer.renderItemIn2D(tessellator, f5, f6, f4, f7, ((Icon) par2Icon).getIconWidth(), ((Icon) par2Icon).getIconHeight(), f12);
|
||||
|
||||
if (itemstack.hasEffect(pass))
|
||||
{
|
||||
GL11.glDepthFunc(GL11.GL_EQUAL);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
this.renderManager.renderEngine.bindTexture(field_110798_h);
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);
|
||||
float f13 = 0.76F;
|
||||
GL11.glColor4f(0.5F * f13, 0.25F * f13, 0.8F * f13, 1.0F);
|
||||
GL11.glMatrixMode(GL11.GL_TEXTURE);
|
||||
GL11.glPushMatrix();
|
||||
float f14 = 0.125F;
|
||||
GL11.glScalef(f14, f14, f14);
|
||||
float f15 = (float) (Minecraft.getSystemTime() % 3000L) / 3000.0F * 8.0F;
|
||||
GL11.glTranslatef(f15, 0.0F, 0.0F);
|
||||
GL11.glRotatef(-50.0F, 0.0F, 0.0F, 1.0F);
|
||||
ItemRenderer.renderItemIn2D(tessellator, 0.0F, 0.0F, 1.0F, 1.0F, 255, 255, f12);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glPushMatrix();
|
||||
GL11.glScalef(f14, f14, f14);
|
||||
f15 = (float) (Minecraft.getSystemTime() % 4873L) / 4873.0F * 8.0F;
|
||||
GL11.glTranslatef(-f15, 0.0F, 0.0F);
|
||||
GL11.glRotatef(10.0F, 0.0F, 0.0F, 1.0F);
|
||||
ItemRenderer.renderItemIn2D(tessellator, 0.0F, 0.0F, 1.0F, 1.0F, 255, 255, f12);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glMatrixMode(GL11.GL_MODELVIEW);
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
GL11.glDepthFunc(GL11.GL_LEQUAL);
|
||||
}
|
||||
}
|
||||
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a(Entity par1Entity)
|
||||
protected ResourceLocation getEntityTexture(Entity par1Entity)
|
||||
{
|
||||
return this.func_110796_a((ArrowEntity) par1Entity);
|
||||
}
|
||||
|
||||
@@ -91,13 +91,13 @@ public class ArrowRenderCustom extends Render
|
||||
this.doRenderItem((ArrowEntity) par1Entity, par2, par4, par6, par8, par9);
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a (Entity par1Entity)
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return this.func_110796_a((ArrowEntity) par1Entity);
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110796_a (ArrowEntity par1ArrowEntity)
|
||||
{
|
||||
return this.renderManager.renderEngine.func_130087_a(par1ArrowEntity.getEntityItem().getItemSpriteNumber());
|
||||
return this.renderManager.renderEngine.getResourceLocation(par1ArrowEntity.getEntityItem().getItemSpriteNumber());
|
||||
}
|
||||
}
|
||||
@@ -52,7 +52,7 @@ public class DaggerRender extends Render
|
||||
*/
|
||||
public void doRenderItem (DaggerEntity par1ArrowEntity, double par2, double par4, double par6, float par8, float par9)
|
||||
{
|
||||
this.func_110777_b(par1ArrowEntity);
|
||||
this.bindEntityTexture(par1ArrowEntity);
|
||||
this.random.setSeed(187L);
|
||||
ItemStack itemstack = par1ArrowEntity.getEntityItem();
|
||||
|
||||
@@ -188,7 +188,7 @@ public class DaggerRender extends Render
|
||||
|
||||
protected ResourceLocation func_110796_a (DaggerEntity par1ArrowEntity)
|
||||
{
|
||||
return this.renderManager.renderEngine.func_130087_a(par1ArrowEntity.getEntityItem().getItemSpriteNumber());
|
||||
return this.renderManager.renderEngine.getResourceLocation(par1ArrowEntity.getEntityItem().getItemSpriteNumber());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -205,9 +205,9 @@ public class DaggerRender extends Render
|
||||
|
||||
if (par2Icon == null)
|
||||
{
|
||||
TextureManager texturemanager = Minecraft.getMinecraft().func_110434_K();
|
||||
ResourceLocation resourcelocation = texturemanager.func_130087_a(dagger.getEntityItem().getItemSpriteNumber());
|
||||
par2Icon = ((TextureMap) texturemanager.func_110581_b(resourcelocation)).func_110572_b("missingno");
|
||||
TextureManager texturemanager = Minecraft.getMinecraft().getTextureManager();
|
||||
ResourceLocation resourcelocation = texturemanager.getResourceLocation(dagger.getEntityItem().getItemSpriteNumber());
|
||||
par2Icon = ((TextureMap) texturemanager.getTexture(resourcelocation)).getAtlasSprite("missingno");
|
||||
}
|
||||
|
||||
float f4 = ((Icon) par2Icon).getMinU();
|
||||
@@ -249,23 +249,23 @@ public class DaggerRender extends Render
|
||||
|
||||
if (itemstack.getItemSpriteNumber() == 0)
|
||||
{
|
||||
this.func_110776_a(TextureMap.field_110575_b);
|
||||
this.bindTexture(TextureMap.locationBlocksTexture);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.func_110776_a(TextureMap.field_110576_c);
|
||||
this.bindTexture(TextureMap.locationItemsTexture);
|
||||
}
|
||||
|
||||
GL11.glColor4f(par5, par6, par7, 1.0F);
|
||||
GL11.glRotatef(90, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glRotatef(rotation, 0.0F, 0.0F, 1.0F);
|
||||
ItemRenderer.renderItemIn2D(tessellator, f5, f6, f4, f7, ((Icon) par2Icon).getOriginX(), ((Icon) par2Icon).getOriginY(), f12);
|
||||
ItemRenderer.renderItemIn2D(tessellator, f5, f6, f4, f7, ((Icon) par2Icon).getIconWidth(), ((Icon) par2Icon).getIconHeight(), f12);
|
||||
|
||||
/*if (itemstack.hasEffect(pass))
|
||||
{
|
||||
GL11.glDepthFunc(GL11.GL_EQUAL);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
this.renderManager.renderEngine.func_110577_a(field_110798_h);
|
||||
this.renderManager.renderEngine.bindTexture(field_110798_h);
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);
|
||||
float f13 = 0.76F;
|
||||
@@ -317,7 +317,7 @@ public class DaggerRender extends Render
|
||||
Block block = (k < Block.blocksList.length ? Block.blocksList[k] : null);
|
||||
if (par3ItemStack.getItemSpriteNumber() == 0 && block != null && RenderBlocks.renderItemIn3d(Block.blocksList[k].getRenderType()))
|
||||
{
|
||||
par2TextureManager.func_110577_a(TextureMap.field_110575_b);
|
||||
par2TextureManager.bindTexture(TextureMap.locationBlocksTexture);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float) (par4 - 2), (float) (par5 + 3), -3.0F + this.zLevel);
|
||||
GL11.glScalef(10.0F, 10.0F, 10.0F);
|
||||
@@ -347,7 +347,7 @@ public class DaggerRender extends Render
|
||||
|
||||
for (int j1 = 0; j1 < Item.itemsList[k].getRenderPasses(l); ++j1)
|
||||
{
|
||||
par2TextureManager.func_110577_a(par3ItemStack.getItemSpriteNumber() == 0 ? TextureMap.field_110575_b : TextureMap.field_110576_c);
|
||||
par2TextureManager.bindTexture(par3ItemStack.getItemSpriteNumber() == 0 ? TextureMap.locationBlocksTexture : TextureMap.locationItemsTexture);
|
||||
Icon icon = Item.itemsList[k].getIcon(par3ItemStack, j1);
|
||||
int k1 = Item.itemsList[k].getColorFromItemStack(par3ItemStack, j1);
|
||||
f1 = (float) (k1 >> 16 & 255) / 255.0F;
|
||||
@@ -372,12 +372,12 @@ public class DaggerRender extends Render
|
||||
else
|
||||
{
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
ResourceLocation resourcelocation = par2TextureManager.func_130087_a(par3ItemStack.getItemSpriteNumber());
|
||||
par2TextureManager.func_110577_a(resourcelocation);
|
||||
ResourceLocation resourcelocation = par2TextureManager.getResourceLocation(par3ItemStack.getItemSpriteNumber());
|
||||
par2TextureManager.bindTexture(resourcelocation);
|
||||
|
||||
if (object == null)
|
||||
{
|
||||
object = ((TextureMap) Minecraft.getMinecraft().func_110434_K().func_110581_b(resourcelocation)).func_110572_b("missingno");
|
||||
object = ((TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture(resourcelocation)).getAtlasSprite("missingno");
|
||||
}
|
||||
|
||||
i1 = Item.itemsList[k].getColorFromItemStack(par3ItemStack, 0);
|
||||
@@ -407,7 +407,7 @@ public class DaggerRender extends Render
|
||||
GL11.glDepthFunc(GL11.GL_GREATER);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glDepthMask(false);
|
||||
manager.func_110577_a(field_110798_h);
|
||||
manager.bindTexture(field_110798_h);
|
||||
this.zLevel -= 50.0F;
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_DST_COLOR, GL11.GL_DST_COLOR);
|
||||
@@ -438,7 +438,7 @@ public class DaggerRender extends Render
|
||||
GL11.glDepthFunc(GL11.GL_GREATER);
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
GL11.glDepthMask(false);
|
||||
par2TextureManager.func_110577_a(field_110798_h);
|
||||
par2TextureManager.bindTexture(field_110798_h);
|
||||
this.zLevel -= 50.0F;
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_DST_COLOR, GL11.GL_DST_COLOR);
|
||||
@@ -560,7 +560,7 @@ public class DaggerRender extends Render
|
||||
tessellator.draw();
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a (Entity par1Entity)
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return this.func_110796_a((DaggerEntity) par1Entity);
|
||||
}
|
||||
|
||||
@@ -98,13 +98,13 @@ public class DaggerRenderCustom extends Render
|
||||
this.doRenderItem((DaggerEntity) par1Entity, par2, par4, par6, par8, par9);
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a (Entity par1Entity)
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return this.func_110796_a((DaggerEntity) par1Entity);
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110796_a (DaggerEntity par1ArrowEntity)
|
||||
{
|
||||
return this.renderManager.renderEngine.func_130087_a(par1ArrowEntity.getEntityItem().getItemSpriteNumber());
|
||||
return this.renderManager.renderEngine.getResourceLocation(par1ArrowEntity.getEntityItem().getItemSpriteNumber());
|
||||
}
|
||||
}
|
||||
@@ -51,7 +51,7 @@ public class LaunchedItemRender extends Render
|
||||
GL11.glTranslatef((float) par2, (float) par4, (float) par6);
|
||||
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
|
||||
GL11.glScalef(0.5F, 0.5F, 0.5F);
|
||||
this.func_110777_b(par1Entity);
|
||||
this.bindEntityTexture(par1Entity);
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
|
||||
if (icon == ItemPotion.func_94589_d("bottle_splash"))
|
||||
@@ -73,9 +73,9 @@ public class LaunchedItemRender extends Render
|
||||
}
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a (Entity par1Entity)
|
||||
protected ResourceLocation getEntityTexture (Entity par1Entity)
|
||||
{
|
||||
return TextureMap.field_110576_c;
|
||||
return TextureMap.locationItemsTexture;
|
||||
}
|
||||
|
||||
private void func_77026_a (Tessellator par1Tessellator, Icon par2Icon)
|
||||
@@ -97,4 +97,5 @@ public class LaunchedItemRender extends Render
|
||||
par1Tessellator.addVertexWithUV((double) (0.0F - f5), (double) (f4 - f6), 0.0D, (double) f, (double) f2);
|
||||
par1Tessellator.draw();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -54,7 +54,7 @@ public class EventCloakRender
|
||||
|
||||
capePlayers.add(abstractClientPlayer);
|
||||
|
||||
abstractClientPlayer.func_110310_o().field_110559_g = false;
|
||||
abstractClientPlayer.getTextureCape().textureUploaded = false;
|
||||
new Thread(new CloakThread(abstractClientPlayer, cloakURL)).start();
|
||||
event.renderCape = true;
|
||||
}
|
||||
@@ -123,7 +123,7 @@ public class EventCloakRender
|
||||
Image cape = new ImageIcon(new URL(cloakURL)).getImage();
|
||||
BufferedImage bo = new BufferedImage(cape.getWidth(null), cape.getHeight(null), BufferedImage.TYPE_INT_ARGB);
|
||||
bo.getGraphics().drawImage(cape, 0, 0, null);
|
||||
abstractClientPlayer.func_110310_o().field_110560_d = bo;
|
||||
abstractClientPlayer.getTextureCape().bufferedImage = bo;
|
||||
}
|
||||
catch (MalformedURLException e)
|
||||
{
|
||||
|
||||
@@ -85,7 +85,7 @@ public class ArmorExtendedGui extends InventoryEffectRenderer
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
//mc.renderEngine.bindTexture("/mods/tinker/textures/gui/armorextended.png");
|
||||
this.mc.func_110434_K().func_110577_a(background);
|
||||
this.mc.getTextureManager().bindTexture(background);
|
||||
int cornerX = guiLeft;
|
||||
int cornerY = (height - ySize) / 2;
|
||||
drawTexturedModalRect(cornerX, cornerY, 0, 0, xSize, ySize);
|
||||
|
||||
@@ -35,7 +35,7 @@ public class CraftingStationGui extends GuiContainer
|
||||
protected void drawGuiContainerBackgroundLayer (float f, int i, int j)
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(background);
|
||||
this.mc.getTextureManager().bindTexture(background);
|
||||
int l = (width - xSize) / 2;
|
||||
int i1 = (height - ySize) / 2;
|
||||
drawTexturedModalRect(l, i1, 0, 0, xSize, ySize);
|
||||
|
||||
@@ -36,7 +36,7 @@ public class DrawbridgeButton extends GuiButton
|
||||
{
|
||||
boolean hovering = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
mc.func_110434_K().func_110577_a(background);
|
||||
mc.getTextureManager().bindTexture(background);
|
||||
int offset = 0;
|
||||
if (!this.enabled)
|
||||
offset = 46;
|
||||
|
||||
@@ -38,7 +38,7 @@ public class DrawbridgeGui extends GuiContainer
|
||||
protected void drawGuiContainerBackgroundLayer (float f, int i, int j)
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(background);
|
||||
this.mc.getTextureManager().bindTexture(background);
|
||||
int cornerX = (width - xSize) / 2;
|
||||
int cornerY = (height - ySize) / 2;
|
||||
drawTexturedModalRect(cornerX, cornerY, 0, 0, xSize, ySize);
|
||||
|
||||
@@ -31,7 +31,7 @@ public class FrypanGui extends GuiContainer
|
||||
protected void drawGuiContainerBackgroundLayer (float f, int i, int j)
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(background);
|
||||
this.mc.getTextureManager().bindTexture(background);
|
||||
int cornerX = (width - xSize) / 2;
|
||||
int cornerY = (height - ySize) / 2;
|
||||
drawTexturedModalRect(cornerX, cornerY, 0, 0, xSize, ySize);
|
||||
|
||||
@@ -42,7 +42,7 @@ public class GuiButtonTool extends GuiButton
|
||||
{
|
||||
boolean var4 = mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height;
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
mc.func_110434_K().func_110577_a(background);
|
||||
mc.getTextureManager().bindTexture(background);
|
||||
|
||||
this.field_82253_i = mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height;
|
||||
int var5 = this.getHoverState(this.field_82253_i);
|
||||
|
||||
@@ -77,7 +77,7 @@ public class GuiLandmine extends GuiContainer
|
||||
protected void drawGuiContainerBackgroundLayer (float f, int i, int j)
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
mc.renderEngine.func_110577_a(background);
|
||||
mc.renderEngine.bindTexture(background);
|
||||
int x = (width - xSize) / 2;
|
||||
int y = (height - ySize) / 2;
|
||||
this.drawTexturedModalRect(x, y, 0, 0, xSize, ySize);
|
||||
|
||||
@@ -158,13 +158,13 @@ public class GuiManual extends GuiScreen
|
||||
public void drawScreen (int par1, int par2, float par3)
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(bookRight);
|
||||
this.mc.getTextureManager().bindTexture(bookRight);
|
||||
int localWidth = (this.width) / 2;
|
||||
byte localHeight = 8;
|
||||
this.drawTexturedModalRect(localWidth, localHeight, 0, 0, this.bookImageWidth, this.bookImageHeight);
|
||||
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(bookLeft);
|
||||
this.mc.getTextureManager().bindTexture(bookLeft);
|
||||
localWidth = localWidth - this.bookImageWidth;
|
||||
this.drawTexturedModalRect(localWidth, localHeight, 256 - this.bookImageWidth, 0, this.bookImageWidth, this.bookImageHeight);
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ public class KnapsackGui extends GuiContainer
|
||||
protected void drawGuiContainerBackgroundLayer (float f, int i, int j)
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(background);
|
||||
this.mc.getTextureManager().bindTexture(background);
|
||||
int cornerX = guiLeft;
|
||||
int cornerY = (height - ySize) / 2;
|
||||
drawTexturedModalRect(cornerX, cornerY, 0, 0, xSize, ySize);
|
||||
|
||||
@@ -31,7 +31,7 @@ public class MiniGardyGui extends GuiContainer
|
||||
protected void drawGuiContainerBackgroundLayer (float f, int i, int j)
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(background);
|
||||
this.mc.getTextureManager().bindTexture(background);
|
||||
int cornerX = (width - xSize) / 2;
|
||||
int cornerY = (height - ySize) / 2;
|
||||
drawTexturedModalRect(cornerX, cornerY, 0, 0, xSize, ySize);
|
||||
|
||||
@@ -415,7 +415,7 @@ public abstract class NewContainerGui extends GuiScreen
|
||||
if (icon != null)
|
||||
{
|
||||
GL11.glDisable(GL11.GL_LIGHTING);
|
||||
this.mc.func_110434_K().func_110577_a(TextureMap.field_110576_c);
|
||||
this.mc.getTextureManager().bindTexture(TextureMap.locationItemsTexture);
|
||||
this.drawTexturedModelRectFromIcon(i, j, icon, 16, 16);
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
flag1 = true;
|
||||
|
||||
@@ -156,7 +156,7 @@ public class PartCrafterGui extends NewContainerGui
|
||||
{
|
||||
// Draw the background
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(background);
|
||||
this.mc.getTextureManager().bindTexture(background);
|
||||
int cornerX = (this.width - this.xSize) / 2;
|
||||
int cornerY = (this.height - this.ySize) / 2;
|
||||
this.drawTexturedModalRect(cornerX, cornerY, 0, 0, this.xSize, this.ySize);
|
||||
@@ -184,13 +184,13 @@ public class PartCrafterGui extends NewContainerGui
|
||||
if (drawChestPart)
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(minichest);
|
||||
this.mc.getTextureManager().bindTexture(minichest);
|
||||
this.drawTexturedModalRect(cornerX - 116, cornerY + 11, 0, 0, this.xSize, this.ySize);
|
||||
}
|
||||
|
||||
// Draw description
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(description);
|
||||
this.mc.getTextureManager().bindTexture(description);
|
||||
cornerX = (this.width + this.xSize) / 2;
|
||||
cornerY = (this.height - this.ySize) / 2;
|
||||
this.drawTexturedModalRect(cornerX, cornerY, 126, 0, 126, this.ySize);
|
||||
|
||||
@@ -33,7 +33,7 @@ public class PatternChestGui extends GuiContainer
|
||||
protected void drawGuiContainerBackgroundLayer (float f, int i, int j)
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(background);
|
||||
this.mc.getTextureManager().bindTexture(background);
|
||||
int cornerX = (width - xSize) / 2;
|
||||
int cornerY = (height - ySize) / 2;
|
||||
drawTexturedModalRect(cornerX, cornerY, 0, 0, xSize, ySize);
|
||||
|
||||
@@ -153,13 +153,13 @@ public class SmelteryGui extends NewContainerGui
|
||||
protected void drawGuiContainerBackgroundLayer (float f, int mouseX, int mouseY)
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(background);
|
||||
this.mc.getTextureManager().bindTexture(background);
|
||||
int cornerX = (width - xSize) / 2 + 36;
|
||||
int cornerY = (height - ySize) / 2;
|
||||
drawTexturedModalRect(cornerX + 46, cornerY, 0, 0, 176, ySize);
|
||||
|
||||
//Fuel - Lava
|
||||
this.mc.func_110434_K().func_110577_a(TextureMap.field_110575_b);
|
||||
this.mc.getTextureManager().bindTexture(TextureMap.locationBlocksTexture);
|
||||
if (logic.fuelGague > 0)
|
||||
{
|
||||
Icon lavaIcon = Block.lavaStill.getIcon(0, 0);
|
||||
@@ -206,12 +206,12 @@ public class SmelteryGui extends NewContainerGui
|
||||
//Liquid gague
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
|
||||
this.mc.func_110434_K().func_110577_a(background);
|
||||
this.mc.getTextureManager().bindTexture(background);
|
||||
drawTexturedModalRect(cornerX + 54, cornerY + 16, 176, 76, 52, 52);
|
||||
|
||||
//Side inventory
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(backgroundSide);
|
||||
this.mc.getTextureManager().bindTexture(backgroundSide);
|
||||
if (logic.layers > 0)
|
||||
{
|
||||
if (logic.layers == 1)
|
||||
|
||||
@@ -49,7 +49,7 @@ public class StencilTableGui extends GuiContainer
|
||||
protected void drawGuiContainerBackgroundLayer (float par1, int par2, int par3)
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(background);
|
||||
this.mc.getTextureManager().bindTexture(background);
|
||||
int cornerX = (this.width - this.xSize) / 2;
|
||||
int cornerY = (this.height - this.ySize) / 2;
|
||||
this.drawTexturedModalRect(cornerX, cornerY, 0, 0, this.xSize, this.ySize);
|
||||
|
||||
@@ -431,7 +431,7 @@ public class ToolStationGui extends NewContainerGui
|
||||
{
|
||||
// Draw the background
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(background);
|
||||
this.mc.getTextureManager().bindTexture(background);
|
||||
int cornerX = (this.width - this.xSize) / 2;
|
||||
int cornerY = (this.height - this.ySize) / 2;
|
||||
this.drawTexturedModalRect(cornerX, cornerY, 0, 0, this.xSize, this.ySize);
|
||||
@@ -442,7 +442,7 @@ public class ToolStationGui extends NewContainerGui
|
||||
}
|
||||
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(icons);
|
||||
this.mc.getTextureManager().bindTexture(icons);
|
||||
// Draw the slots
|
||||
|
||||
for (int i = 0; i < slotX.length; i++)
|
||||
@@ -456,7 +456,7 @@ public class ToolStationGui extends NewContainerGui
|
||||
|
||||
// Draw description
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
this.mc.func_110434_K().func_110577_a(description);
|
||||
this.mc.getTextureManager().bindTexture(description);
|
||||
cornerX = (this.width + this.xSize) / 2;
|
||||
cornerY = (this.height - this.ySize) / 2;
|
||||
this.drawTexturedModalRect(cornerX, cornerY, 0, 0, 126, this.ySize + 30);
|
||||
|
||||
@@ -34,7 +34,7 @@ public class TurnPageButton extends GuiButton
|
||||
{
|
||||
boolean var4 = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
par1Minecraft.func_110434_K().func_110577_a(background);
|
||||
par1Minecraft.getTextureManager().bindTexture(background);
|
||||
int var5 = 0;
|
||||
int var6 = 192;
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ public class BlockCastPage extends BookPage
|
||||
|
||||
public void renderBackgroundLayer (int localWidth, int localHeight)
|
||||
{
|
||||
manual.getMC().func_110434_K().func_110577_a(background);
|
||||
manual.getMC().getTextureManager().bindTexture(background);
|
||||
manual.drawTexturedModalRect(localWidth, localHeight + 32, 0, 0, 174, 115);
|
||||
manual.drawTexturedModalRect(localWidth + 62, localHeight + 105, 2, 118, 45, 45);
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ public class CraftingPage extends BookPage
|
||||
|
||||
public void drawBackground (int size, int localWidth, int localHeight)
|
||||
{
|
||||
manual.getMC().func_110434_K().func_110577_a(background);
|
||||
manual.getMC().getTextureManager().bindTexture(background);
|
||||
if (size == 2)
|
||||
manual.drawTexturedModalRect(localWidth + 8, localHeight + 46, 0, 116, 154, 78);
|
||||
if (size == 3)
|
||||
|
||||
@@ -56,7 +56,7 @@ public class FurnacePage extends BookPage
|
||||
|
||||
public void renderBackgroundLayer (int localWidth, int localHeight)
|
||||
{
|
||||
manual.getMC().func_110434_K().func_110577_a(background);
|
||||
manual.getMC().getTextureManager().bindTexture(background);
|
||||
manual.drawTexturedModalRect(localWidth + 32, localHeight + 32, 0, 0, 111, 114);
|
||||
}
|
||||
}
|
||||
@@ -57,7 +57,7 @@ public class ModifierPage extends BookPage
|
||||
|
||||
public void renderBackgroundLayer (int localWidth, int localHeight)
|
||||
{
|
||||
manual.getMC().func_110434_K().func_110577_a(background);
|
||||
manual.getMC().getTextureManager().bindTexture(background);
|
||||
manual.drawTexturedModalRect(localWidth + 12, localHeight + 32, 0, 0, 154, 78);
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,7 @@ public class PicturePage extends BookPage
|
||||
|
||||
public void renderBackgroundLayer (int localWidth, int localHeight)
|
||||
{
|
||||
manual.getMC().func_110434_K().func_110577_a(background);
|
||||
manual.getMC().getTextureManager().bindTexture(background);
|
||||
//manual.getMC().renderEngine.bindTexture(location);
|
||||
manual.drawTexturedModalRect(localWidth, localHeight + 12, 0, 0, 170, 144);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public abstract class AbstractTab extends GuiButton
|
||||
int ySize = this.enabled ? 28 : 32;
|
||||
int xOffset = this.id == 2 ? 0 : 1;
|
||||
|
||||
mc.renderEngine.func_110577_a(this.texture);
|
||||
mc.renderEngine.bindTexture(this.texture);
|
||||
this.drawTexturedModalRect(this.xPosition, this.yPosition, xOffset * 28, yTexPos, 28, ySize);
|
||||
|
||||
RenderHelper.enableGUIStandardItemLighting();
|
||||
|
||||
@@ -547,10 +547,9 @@ public class TinkerChunkProvider implements IChunkProvider
|
||||
this.genNetherBridge.generate(this, this.worldObj, par1, par2, (byte[]) null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_104112_b ()
|
||||
{
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
@Override
|
||||
public void saveExtraData() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,15 +1,9 @@
|
||||
package tconstruct.entity;
|
||||
|
||||
import tconstruct.TConstruct;
|
||||
import tconstruct.common.TContent;
|
||||
import tconstruct.library.TConstructRegistry;
|
||||
import tconstruct.library.crafting.ToolBuilder;
|
||||
import tconstruct.library.tools.ToolCore;
|
||||
import net.minecraft.entity.EntityList;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.EntityLivingData;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.SpiderEffectsGroupData;
|
||||
import net.minecraft.entity.boss.IBossDisplayData;
|
||||
import net.minecraft.entity.monster.EntityCreeper;
|
||||
import net.minecraft.entity.monster.EntitySkeleton;
|
||||
@@ -19,13 +13,17 @@ import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.EnumSkyBlock;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.ForgeHooks;
|
||||
import tconstruct.TConstruct;
|
||||
import tconstruct.common.TContent;
|
||||
import tconstruct.library.TConstructRegistry;
|
||||
import tconstruct.library.crafting.ToolBuilder;
|
||||
import tconstruct.library.tools.ToolCore;
|
||||
|
||||
public class BlueSlime extends EntityLiving implements IMob, IBossDisplayData
|
||||
{
|
||||
@@ -53,6 +51,7 @@ public class BlueSlime extends EntityLiving implements IMob, IBossDisplayData
|
||||
this.slimeJumpDelay = this.rand.nextInt(120) + 40;
|
||||
this.setSlimeSize(size);
|
||||
this.jumpMovementFactor = 0.004F * size + 0.01F;
|
||||
this.setHealth(getMaxHealthForSize());
|
||||
}
|
||||
|
||||
protected void damageEntity (DamageSource damageSource, int damage)
|
||||
@@ -122,13 +121,13 @@ public class BlueSlime extends EntityLiving implements IMob, IBossDisplayData
|
||||
|
||||
public EntityLivingData func_110161_a (EntityLivingData par1EntityLivingData)
|
||||
{
|
||||
Object par1EntityLivingData1 = super.func_110161_a(par1EntityLivingData);
|
||||
Object par1EntityLivingData1 = super.onSpawnWithEgg(par1EntityLivingData);
|
||||
|
||||
if (getSlimeSize() == 2 && rand.nextInt(8) == 0)
|
||||
{
|
||||
EntitySkeleton entityskeleton = new EntitySkeleton(this.worldObj);
|
||||
entityskeleton.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F);
|
||||
entityskeleton.func_110161_a(par1EntityLivingData);
|
||||
entityskeleton.onSpawnWithEgg(par1EntityLivingData);
|
||||
this.worldObj.spawnEntityInWorld(entityskeleton);
|
||||
entityskeleton.mountEntity(this);
|
||||
}
|
||||
@@ -136,7 +135,7 @@ public class BlueSlime extends EntityLiving implements IMob, IBossDisplayData
|
||||
{
|
||||
EntityCreeper creeper = new EntityCreeper(this.worldObj);
|
||||
creeper.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F);
|
||||
creeper.func_110161_a(par1EntityLivingData);
|
||||
creeper.onSpawnWithEgg(par1EntityLivingData);
|
||||
this.worldObj.spawnEntityInWorld(creeper);
|
||||
creeper.mountEntity(this);
|
||||
}
|
||||
@@ -157,7 +156,7 @@ public class BlueSlime extends EntityLiving implements IMob, IBossDisplayData
|
||||
|
||||
EntitySkeleton skelton = new EntitySkeleton(this.worldObj);
|
||||
skelton.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F);
|
||||
skelton.func_110161_a(par1EntityLivingData);
|
||||
skelton.onSpawnWithEgg(par1EntityLivingData);
|
||||
this.worldObj.spawnEntityInWorld(skelton);
|
||||
skelton.mountEntity(slime);
|
||||
}
|
||||
@@ -274,22 +273,23 @@ public class BlueSlime extends EntityLiving implements IMob, IBossDisplayData
|
||||
this.dataWatcher.updateObject(16, new Byte((byte) size));
|
||||
this.setSize(0.6F * (float) size, 0.6F * (float) size);
|
||||
this.setPosition(this.posX, this.posY, this.posZ);
|
||||
this.func_110148_a(SharedMonsterAttributes.field_111267_a).func_111128_a(this.getMaxHealth());
|
||||
this.setEntityHealth(this.func_110138_aP());
|
||||
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setAttribute(this.getMaxHealth());
|
||||
this.setHealth(this.getMaxHealth());
|
||||
|
||||
this.experienceValue = size + 2 ^ (size);
|
||||
if (size >= 8)
|
||||
this.experienceValue = 500;
|
||||
}
|
||||
|
||||
public int getMaxHealth ()
|
||||
// Invoked by constructor to set max health dependant on current size
|
||||
private float getMaxHealthForSize ()
|
||||
{
|
||||
int i = this.getSlimeSize();
|
||||
if (i == 1)
|
||||
return 4;
|
||||
if (i == 8)
|
||||
return 100;
|
||||
return (int) Math.min(i * i + 8, 49);
|
||||
return (float)Math.min(i * i + 8, 49);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -461,7 +461,7 @@ public class BlueSlime extends EntityLiving implements IMob, IBossDisplayData
|
||||
{
|
||||
int size = this.getSlimeSize();
|
||||
|
||||
if (!this.worldObj.isRemote && size > 1 && this.func_110143_aJ() <= 0 && size < 8)
|
||||
if (!this.worldObj.isRemote && size > 1 && this.getHealth() <= 0 && size < 8)
|
||||
{
|
||||
float f = (-0.5F) * (float) size / 4.0F;
|
||||
float f1 = (-0.5F) * (float) size / 4.0F;
|
||||
|
||||
@@ -11,6 +11,7 @@ public class MetalSlime extends BlueSlime
|
||||
{
|
||||
super(world);
|
||||
//this.texture = "/mods/tinker/textures/mob/slimemetal.png";
|
||||
this.setHealth(getMaxHealthForSize());
|
||||
}
|
||||
|
||||
public boolean attackEntityFrom (DamageSource damageSource, int damage)
|
||||
@@ -20,12 +21,13 @@ public class MetalSlime extends BlueSlime
|
||||
return super.attackEntityFrom(damageSource, damage);
|
||||
}
|
||||
|
||||
public int getMaxHealth ()
|
||||
// Invoked by constructor to set max health dependant on current size
|
||||
private float getMaxHealthForSize ()
|
||||
{
|
||||
int i = this.getSlimeSize();
|
||||
if (i == 1)
|
||||
return 4;
|
||||
return (int) Math.min(i * i + 20, 100);
|
||||
return (float) Math.min(i * i + 20, 100);
|
||||
}
|
||||
|
||||
public int getTotalArmorValue ()
|
||||
|
||||
@@ -186,7 +186,7 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
|
||||
{
|
||||
EntityPlayer entityplayer = (EntityPlayer) movingobjectposition.entityHit;
|
||||
|
||||
if (entityplayer.capabilities.disableDamage || this.shootingEntity instanceof EntityPlayer && !((EntityPlayer) this.shootingEntity).func_96122_a(entityplayer))
|
||||
if (entityplayer.capabilities.disableDamage || this.shootingEntity instanceof EntityPlayer && !((EntityPlayer) this.shootingEntity).canAttackPlayer(entityplayer))
|
||||
{
|
||||
movingobjectposition = null;
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ public class TitleIcon extends Item
|
||||
if (!world.isRemote)
|
||||
{
|
||||
entity.setPosition(x, y, z);
|
||||
((EntityLiving) entity).func_110161_a((EntityLivingData) null);
|
||||
((EntityLiving) entity).onSpawnWithEgg((EntityLivingData) null);
|
||||
world.spawnEntityInWorld(entity);
|
||||
}
|
||||
}
|
||||
@@ -163,7 +163,7 @@ public class TitleIcon extends Item
|
||||
{
|
||||
entity.setPosition(x, y, z);
|
||||
entity.setAngles(player.cameraYaw, player.cameraYaw);
|
||||
((EntityLiving) entity).func_110161_a((EntityLivingData) null);
|
||||
((EntityLiving) entity).onSpawnWithEgg((EntityLivingData) null);
|
||||
world.spawnEntityInWorld(entity);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class LavaTankItemBlock extends ItemBlock
|
||||
{
|
||||
@@ -37,7 +38,7 @@ public class LavaTankItemBlock extends ItemBlock
|
||||
NBTTagCompound liquidTag = stack.getTagCompound().getCompoundTag("Fluid");
|
||||
if (liquidTag != null)
|
||||
{
|
||||
list.add("Contains " + liquidTag.getString("FluidName"));
|
||||
list.add("Contains " + StatCollector.translateToLocal(liquidTag.getString("FluidName")));
|
||||
list.add(liquidTag.getInteger("Amount") + " mB");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ public class FryingPan extends Weapon
|
||||
@Override
|
||||
public boolean onLeftClickEntity (ItemStack stack, EntityPlayer player, Entity mob)
|
||||
{
|
||||
if (mob.canAttackWithItem() && !mob.func_85031_j(player) && mob.hurtResistantTime < 14)
|
||||
if (mob.canAttackWithItem() && !mob.hitByEntity(player) && mob.hurtResistantTime < 14)
|
||||
AbilityHelper.onLeftClickEntity(stack, player, mob, this);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ public class AbilityHelper
|
||||
{
|
||||
if (entity.canAttackWithItem() && stack.hasTagCompound())
|
||||
{
|
||||
if (!entity.func_85031_j(player)) // can't attack this entity
|
||||
if (!entity.hitByEntity(player)) // can't attack this entity
|
||||
{
|
||||
NBTTagCompound tags = stack.getTagCompound();
|
||||
NBTTagCompound toolTags = stack.getTagCompound().getCompoundTag("InfiTool");
|
||||
@@ -206,7 +206,7 @@ public class AbilityHelper
|
||||
}
|
||||
//damageTool(stack, 1, player, false);
|
||||
tool.onEntityDamaged(player.worldObj, player, entity);
|
||||
if (!PHConstruct.necroticUHS || (entity instanceof IMob && entity instanceof EntityLivingBase && ((EntityLivingBase) entity).func_110143_aJ() <= 0))
|
||||
if (!PHConstruct.necroticUHS || (entity instanceof IMob && entity instanceof EntityLivingBase && ((EntityLivingBase) entity).getHealth() <= 0))
|
||||
{
|
||||
int drain = toolTags.getInteger("Necrotic") * 2;
|
||||
if (drain > 0)
|
||||
@@ -240,7 +240,7 @@ public class AbilityHelper
|
||||
}
|
||||
}
|
||||
|
||||
player.func_130011_c(entity);
|
||||
player.setLastAttacker(entity);
|
||||
|
||||
if (entity instanceof EntityLivingBase)
|
||||
{
|
||||
@@ -308,7 +308,7 @@ public class AbilityHelper
|
||||
}
|
||||
}
|
||||
|
||||
if (!(living instanceof EntityPlayer) || player.func_96122_a((EntityPlayer) living))
|
||||
if (!(living instanceof EntityPlayer) || player.canAttackPlayer((EntityPlayer) living))
|
||||
{
|
||||
List var6 = player.worldObj.getEntitiesWithinAABB(EntityWolf.class,
|
||||
AxisAlignedBB.getAABBPool().getAABB(player.posX, player.posY, player.posZ, player.posX + 1.0D, player.posY + 1.0D, player.posZ + 1.0D).expand(16.0D, 4.0D, 16.0D));
|
||||
|
||||
@@ -1,23 +1,21 @@
|
||||
package tconstruct.plugins.minefactoryreloaded;
|
||||
|
||||
import cpw.mods.fml.common.*;
|
||||
import cpw.mods.fml.common.Mod.EventHandler;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.network.NetworkMod;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import powercrystals.minefactoryreloaded.api.FarmingRegistry;
|
||||
import tconstruct.common.TContent;
|
||||
import tconstruct.entity.BlueSlime;
|
||||
import tconstruct.plugins.minefactoryreloaded.grindables.GrindableStandard;
|
||||
import tconstruct.plugins.minefactoryreloaded.harvestables.HarvestableOreBerry;
|
||||
import cpw.mods.fml.common.FMLLog;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.Mod.Init;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.network.NetworkMod;
|
||||
|
||||
@Mod(modid = "TConstruct|CompatMineFactoryReloaded", name = "TConstruct Compat: MFR", version = "0.1", dependencies = "after:MineFactoryReloaded;after:TConstruct")
|
||||
@NetworkMod(clientSideRequired = false, serverSideRequired = false)
|
||||
public class MineFactoryReloaded
|
||||
{
|
||||
@Init
|
||||
@EventHandler
|
||||
public static void load (FMLInitializationEvent ev)
|
||||
{
|
||||
if (!Loader.isModLoaded("MineFactoryReloaded"))
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
package tconstruct.util;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
@@ -10,12 +7,7 @@ import net.minecraft.entity.EntityLivingData;
|
||||
import net.minecraft.entity.boss.EntityWither;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.item.EntityXPOrb;
|
||||
import net.minecraft.entity.monster.EntityCreeper;
|
||||
import net.minecraft.entity.monster.EntityGhast;
|
||||
import net.minecraft.entity.monster.EntitySkeleton;
|
||||
import net.minecraft.entity.monster.EntitySpider;
|
||||
import net.minecraft.entity.monster.EntityZombie;
|
||||
import net.minecraft.entity.monster.IMob;
|
||||
import net.minecraft.entity.monster.*;
|
||||
import net.minecraft.entity.passive.EntityChicken;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
@@ -46,14 +38,13 @@ import tconstruct.library.crafting.Smeltery;
|
||||
import tconstruct.library.crafting.ToolBuilder;
|
||||
import tconstruct.library.event.PartBuilderEvent;
|
||||
import tconstruct.library.event.ToolCraftEvent;
|
||||
import tconstruct.library.tools.ArrowMaterial;
|
||||
import tconstruct.library.tools.BowMaterial;
|
||||
import tconstruct.library.tools.BowstringMaterial;
|
||||
import tconstruct.library.tools.FletchingMaterial;
|
||||
import tconstruct.library.tools.ToolCore;
|
||||
import tconstruct.library.tools.*;
|
||||
import tconstruct.modifiers.ModAttack;
|
||||
import tconstruct.util.player.TPlayerStats;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Random;
|
||||
|
||||
public class TEventHandler
|
||||
{
|
||||
Random random = new Random();
|
||||
@@ -413,8 +404,11 @@ public class TEventHandler
|
||||
if (!player.worldObj.getGameRules().getGameRuleBooleanValue("keepInventory"))
|
||||
{
|
||||
TPlayerStats stats = TConstruct.playerTracker.getPlayerStats(player.username);
|
||||
stats.armor.dropItems();
|
||||
stats.knapsack.dropItems();
|
||||
if (stats != null)
|
||||
{
|
||||
stats.armor.dropItems();
|
||||
stats.knapsack.dropItems();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -464,7 +458,7 @@ public class TEventHandler
|
||||
if (!world.isRemote)
|
||||
{
|
||||
entity.setPosition(x, y, z);
|
||||
entity.func_110161_a((EntityLivingData) null);
|
||||
entity.onSpawnWithEgg((EntityLivingData) null);
|
||||
world.spawnEntityInWorld(entity);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -176,16 +176,16 @@ public class ArmorExtended implements IInventory
|
||||
//System.out.println("healthChange: "+healthChange+" on side "+FMLCommonHandler.instance().getEffectiveSide());
|
||||
if (healthChange != 0)
|
||||
{
|
||||
AttributeInstance attributeinstance = player.func_110140_aT().func_111151_a(SharedMonsterAttributes.field_111267_a);
|
||||
AttributeInstance attributeinstance = player.getAttributeMap().getAttributeInstance(SharedMonsterAttributes.maxHealth);
|
||||
try
|
||||
{
|
||||
attributeinstance.func_111124_b(attributeinstance.func_111127_a(globalID));
|
||||
attributeinstance.removeModifier(attributeinstance.getModifier(globalID));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
}
|
||||
|
||||
attributeinstance.func_111121_a(new AttributeModifier(globalID, "tconstruct.heartCanister", bonusHP, 0));
|
||||
attributeinstance.applyModifier(new AttributeModifier(globalID, "tconstruct.heartCanister", bonusHP, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -202,10 +202,10 @@ public class ArmorExtended implements IInventory
|
||||
int healthChange = bonusHP - prevHealth;
|
||||
if (healthChange != 0)
|
||||
{
|
||||
AttributeInstance attributeinstance = player.func_110140_aT().func_111151_a(SharedMonsterAttributes.field_111267_a);
|
||||
AttributeInstance attributeinstance = player.getAttributeMap().getAttributeInstance(SharedMonsterAttributes.maxHealth);
|
||||
try
|
||||
{
|
||||
attributeinstance.func_111124_b(attributeinstance.func_111127_a(globalID));
|
||||
attributeinstance.removeModifier(attributeinstance.getModifier(globalID));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user