More registrations/objects

This commit is contained in:
chylex committed 2014-09-07 23:54:16 +02:00
1 parent a27860f5ae
commit 0ff09a30e7
2 files changed
+15 -1

No files matched your search

@@ -6,6 +6,7 @@ import net.minecraft.entity.monster.EntitySilverfish;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import chylex.hee.block.BlockCrossedDecoration;
import chylex.hee.block.BlockList;
import chylex.hee.entity.boss.EntityBossDragon;
import chylex.hee.entity.boss.EntityMiniBossEnderEye;
@@ -49,6 +50,7 @@ public final class KnowledgeRegistrations{
// ===
DRAGON_LAIR = new KnowledgeObject<ObjectDummy>(new ObjectDummy(),new ItemStack(Blocks.dragon_egg),"Dragon Lair"),
END_STONE = create(Blocks.end_stone),
FALLING_OBSIDIAN = create(BlockList.obsidian_falling),
DRAGON_ESSENCE_ALTAR = create(BlockList.essence_altar,EssenceType.DRAGON.id),
@@ -66,6 +68,7 @@ public final class KnowledgeRegistrations{
// ===
ENDSTONE_BLOB = new KnowledgeObject<ObjectDummy>(new ObjectDummy(),new ItemStack(Blocks.end_stone),"Endstone Blob"),
IGNEOUS_ROCK_ORE = create(BlockList.igneous_rock_ore),
DEATH_FLOWER = create(BlockList.death_flower),
ENDER_GOO = create(ItemList.bucket_ender_goo),
@@ -73,6 +76,7 @@ public final class KnowledgeRegistrations{
// ===
DUNGEON_TOWER = new KnowledgeObject<ObjectDummy>(new ObjectDummy(),new ItemStack(BlockList.obsidian_special,1),"Dungeon Tower"),
OBSIDIAN_STAIRS = create(BlockList.obsidian_stairs),
OBSIDIAN_SMOOTH = create(BlockList.obsidian_special,0),
OBSIDIAN_CHISELED = create(BlockList.obsidian_special,1),
@@ -87,6 +91,7 @@ public final class KnowledgeRegistrations{
// ===
METEOROID = new KnowledgeObject<ObjectDummy>(new ObjectDummy(),new ItemStack(BlockList.sphalerite),"Meteoroid"),
SPHALERITE = create(BlockList.sphalerite,0),
SPHALERITE_WITH_STARDUST = create(BlockList.sphalerite,1),
STARDUST = create(ItemList.stardust),
@@ -100,10 +105,16 @@ public final class KnowledgeRegistrations{
// =>
INFESTED_FOREST_BIOME = new KnowledgeObject<ObjectDummy>(new ObjectDummy(),new ItemStack(BlockList.end_terrain,1,0),"Infested Forest Biome"),
INFESTED_END_STONE = create(BlockList.end_terrain,0),
INFESTED_GRASS = create(BlockList.crossed_decoration,BlockCrossedDecoration.dataInfestedGrass),
INFESTED_TALL_GRASS = create(BlockList.crossed_decoration,BlockCrossedDecoration.dataInfestedTallgrass),
INFESTED_FERN = create(BlockList.crossed_decoration,BlockCrossedDecoration.dataInfestedFern),
THORNY_BUSH = create(BlockList.crossed_decoration,BlockCrossedDecoration.dataThornBush),
SPOOKY_TREES = create(BlockList.spooky_log),
SPOOKY_LEAVES = create(BlockList.spooky_leaves),
DRY_SPLINTER = create(ItemList.dry_splinter),
GHOST_AMULET = create(ItemList.ghost_amulet),
ECTOPLASM = create(ItemList.ectoplasm),
INFESTED_BAT = create(EntityMobInfestedBat.class),
@@ -121,7 +132,9 @@ public final class KnowledgeRegistrations{
// ===
BURNING_MOUNTAINS_BIOME = new KnowledgeObject<ObjectDummy>(new ObjectDummy(),new ItemStack(BlockList.end_terrain,1,1),"Burning Mountains Biome"),
BURNING_END_STONE = create(BlockList.end_terrain,1),
LILYFIRE = create(BlockList.crossed_decoration,BlockCrossedDecoration.dataLilyFire),
IGNEOUS_ROCK_ORE_LINKED = new LinkedKnowledgeObject<>(IGNEOUS_ROCK_ORE),
IGNEOUS_ROCK_LINKED = new LinkedKnowledgeObject<>(IGNEOUS_ROCK),
@@ -137,6 +150,7 @@ public final class KnowledgeRegistrations{
// ===
ENCHANTED_ISLAND_BIOME = new KnowledgeObject<ObjectDummy>(new ObjectDummy(),new ItemStack(BlockList.end_terrain,1,2),"Enchanted Island Biome"),
ENCHANTED_END_STONE = create(BlockList.end_terrain,2),
FALLING_OBSIDIAN_OINKED = new LinkedKnowledgeObject<>(FALLING_OBSIDIAN),
@@ -73,7 +73,7 @@ public class PlayerCompendiumData implements IExtendedEntityProperties{
public boolean tryDiscoverBlock(KnowledgeObject<ObjectBlock> block, boolean addReward){
if (discoveredBlocks.addObject(block.getObject())){
onDiscover(block,addReward);System.out.println("discover block "+block.getObject().getUnderlyingObject());
onDiscover(block,addReward);System.out.println("discover block "+block.getObject().getUnderlyingObject()); // TOOD remove all 3 debug things
return true;
}
else return false;