Cleanup time.

This commit is contained in:
Vasco Lavos committed 2014-07-21 23:09:43 +01:00
1 parent 16a4cc085e
commit 91ca471f7e
32 files changed
+92 -108

No files matched your search

@@ -141,7 +141,7 @@ public final class HUDHandler {
Minecraft mc = Minecraft.getMinecraft();
int x = res.getScaledWidth() / 2 - 17;
int y = res.getScaledHeight() / 2 + 2;
RenderItem.getInstance().renderItemIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModItems.lexicon), x, y);
GL11.glDisable(GL11.GL_LIGHTING);
mc.fontRenderer.drawStringWithShadow("?", x + 10, y + 8, 0xFFFFFFFF);
@@ -124,7 +124,7 @@ public final class RenderHelper {
public static void drawTexturedModalRect(int par1, int par2, float z, int par3, int par4, int par5, int par6) {
drawTexturedModalRect(par1, par2, z, par3, par4, par5, par6, 0.00390625F, 0.00390625F);
}
public static void drawTexturedModalRect(int par1, int par2, float z, int par3, int par4, int par5, int par6, float f, float f1) {
Tessellator tessellator = Tessellator.instance;
tessellator.startDrawingQuads();
@@ -13,10 +13,9 @@ package vazkii.botania.client.model;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class ModelTinyPotato extends ModelBase {
ModelRenderer potato;
public ModelTinyPotato() {
@@ -11,15 +11,15 @@
*/
package vazkii.botania.client.render.block;
import org.lwjgl.opengl.GL11;
import vazkii.botania.client.lib.LibRenderIDs;
import vazkii.botania.common.block.tile.TileTinyPotato;
import vazkii.botania.common.block.tile.mana.TileSpreader;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
import net.minecraft.world.IBlockAccess;
import org.lwjgl.opengl.GL11;
import vazkii.botania.client.lib.LibRenderIDs;
import vazkii.botania.common.block.tile.TileTinyPotato;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
public class RenderTinyPotato implements ISimpleBlockRenderingHandler {
@@ -11,20 +11,17 @@
*/
package vazkii.botania.client.render.tile;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
import vazkii.botania.client.lib.LibResources;
import vazkii.botania.client.model.ModelPool;
import vazkii.botania.client.model.ModelTinyPotato;
import vazkii.botania.common.block.tile.TileTinyPlanet;
import vazkii.botania.common.block.tile.TileTinyPotato;
import vazkii.botania.common.block.tile.mana.TilePool;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.entity.passive.EntitySheep;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
public class RenderTileTinyPotato extends TileEntitySpecialRenderer {
@@ -45,11 +42,11 @@ public class RenderTileTinyPotato extends TileEntitySpecialRenderer {
GL11.glScalef(1F, -1F, -1F);
int meta = potato.getWorldObj() == null ? 3 : potato.getBlockMetadata();
GL11.glRotatef(meta * 90F - 180F, 0F, 1F, 0F);
int jump = potato.jumpTicks;
float up = (float) -Math.abs(Math.sin((float) jump / 10 * Math.PI)) * 0.2F;
float rot = (float) Math.sin((float) jump / 10 * Math.PI) * 2;
GL11.glTranslatef(0F, up, 0F);
GL11.glRotatef(rot, 0F, 0F, 1F);
@@ -12,7 +12,6 @@
package vazkii.botania.common.block;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
@@ -128,14 +127,14 @@ public class BlockForestDrum extends BlockMod implements IManaTrigger, ILexicona
}
}
}
Collections.shuffle(shearables);
int sheared = 0;
for(EntityLiving entity : shearables) {
if(sheared > 4)
break;
List<ItemStack> stacks = ((IShearable) entity).onSheared(stack, world, (int) entity.posX, (int) entity.posY, (int) entity.posZ, 0);
if(stacks != null && !world.isRemote)
for(ItemStack wool : stacks) {
@@ -138,7 +138,7 @@ public class BlockSpreader extends BlockModContainer implements IWandable, IWand
TileEntity tile = par1World.getTileEntity(par2, par3, par4);
if(!(tile instanceof TileSpreader))
return false;
TileSpreader spreader = (TileSpreader) tile;
ItemStack lens = spreader.getStackInSlot(0);
ItemStack heldItem = par5EntityPlayer.getCurrentEquippedItem();
@@ -168,7 +168,7 @@ public class BlockSpreader extends BlockModContainer implements IWandable, IWand
TileEntity tile = par1World.getTileEntity(par2, par3, par4);
if(!(tile instanceof TileSimpleInventory))
return;
TileSimpleInventory inv = (TileSimpleInventory) tile;
if (inv != null) {
@@ -27,7 +27,6 @@ import vazkii.botania.client.lib.LibRenderIDs;
import vazkii.botania.common.block.tile.TileTinyPotato;
import vazkii.botania.common.lexicon.LexiconData;
import vazkii.botania.common.lib.LibBlockNames;
import vazkii.botania.common.lib.LibBlockNames;
public class BlockTinyPotato extends BlockModContainer implements ILexiconable {
@@ -38,17 +37,17 @@ public class BlockTinyPotato extends BlockModContainer implements ILexiconable {
float f = 1F / 16F * 6F;
setBlockBounds(f, 0, f, 1F - f, f, 1F - f);
}
@Override
public void registerBlockIcons(IIconRegister par1IconRegister) {
// NO-OP
}
@Override
public IIcon getIcon(int side, int meta) {
return Blocks.hardened_clay.getIcon(0, 0);
}
@Override
public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) {
TileEntity tile = par1World.getTileEntity(par2, par3, par4);
@@ -56,24 +55,24 @@ public class BlockTinyPotato extends BlockModContainer implements ILexiconable {
((TileTinyPotato) tile).jump();
return true;
}
@Override
public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLiving, ItemStack par6ItemStack) {
int l1 = MathHelper.floor_double(par5EntityLiving.rotationYaw * 4.0F / 360.0F + 0.5D) & 3;
par1World.setBlockMetadataWithNotify(par2, par3, par4, l1, 2);
}
@Override
public boolean isOpaqueCube() {
return false;
}
@Override
public boolean renderAsNormalBlock() {
return false;
}
@Override
public int getRenderType() {
return LibRenderIDs.idTinyPotato;
@@ -231,7 +231,7 @@ public final class ModBlocks {
seaLamp = new BlockSeaLamp();
miniIsland = new BlockMiniIsland();
tinyPotato = new BlockTinyPotato();
livingwoodStairs = new BlockLivingwoodStairs();
livingwoodSlab = new BlockLivingwoodSlab(false);
livingwoodSlabFull = new BlockLivingwoodSlab(true);
@@ -14,7 +14,6 @@ package vazkii.botania.common.block.subtile.functional;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.entity.EntityCreature;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
@@ -54,7 +53,7 @@ public class SubTileHeiseiDream extends SubTileFunctional {
public static boolean brainwashEntity(EntityLiving entity, List<IMob> mobs) {
EntityLivingBase target = entity.getAttackTarget();
boolean did = false;
if(target == null || !(target instanceof IMob)) {
IMob newTarget;
do newTarget = mobs.get(entity.worldObj.rand.nextInt(mobs.size()));
@@ -72,12 +71,12 @@ public class SubTileHeiseiDream extends SubTileFunctional {
messWithAttackOnCollideAI((EntityAIAttackOnCollide) entry.action);
did = true;
}
if(did)
entity.setAttackTarget((EntityLiving) newTarget);
}
}
return did;
}
@@ -30,11 +30,11 @@ public class SubTileVinculotus extends SubTileFunctional {
public static Set<SubTileVinculotus> existingFlowers = Collections.newSetFromMap(new WeakHashMap());
private static boolean registered = false;
@Override
public void onUpdate() {
super.onUpdate();
if(!existingFlowers.contains(this)) {
existingFlowers.add(this);
if(!registered) {
@@ -43,43 +43,43 @@ public class SubTileVinculotus extends SubTileFunctional {
}
}
}
@Override
public boolean acceptsRedstone() {
return true;
}
@Override
public int getColor() {
return 0x0A6051;
}
@Override
public int getMaxMana() {
return 500;
}
@Override
public LexiconEntry getEntry() {
return LexiconData.vinculotus;
}
public static class EndermanIntercepter {
@SubscribeEvent
public void onEndermanTeleport(EnderTeleportEvent event) {
if(event.entity.worldObj.isRemote)
return;
int cost = 50;
int range = 64;
if(event.entity instanceof EntityEnderman) {
List<SubTileVinculotus> possibleFlowers = new ArrayList();
for(SubTileVinculotus flower : existingFlowers) {
if(flower.redstoneSignal > 0 || flower.mana <= cost || flower.supertile.getWorldObj() != event.entity.worldObj || flower.supertile.getWorldObj().getTileEntity(flower.supertile.xCoord, flower.supertile.yCoord, flower.supertile.zCoord) != flower.supertile)
continue;
double x = flower.supertile.xCoord + 0.5;
double y = flower.supertile.yCoord + 1.5;
double z = flower.supertile.zCoord + 0.5;
@@ -87,14 +87,14 @@ public class SubTileVinculotus extends SubTileFunctional {
if(MathHelper.pointDistanceSpace(x, y, z, event.targetX, event.targetY, event.targetZ) < range)
possibleFlowers.add(flower);
}
if(!possibleFlowers.isEmpty()) {
SubTileVinculotus flower = possibleFlowers.get(event.entity.worldObj.rand.nextInt(possibleFlowers.size()));
double x = flower.supertile.xCoord + 0.5;
double y = flower.supertile.yCoord + 1.5;
double z = flower.supertile.zCoord + 0.5;
event.targetX = x + Math.random() * 3 - 1;
event.targetY = y;
event.targetZ = z + Math.random() * 3 - 1;
@@ -103,7 +103,7 @@ public class SubTileVinculotus extends SubTileFunctional {
}
}
}
}
}
@@ -32,7 +32,7 @@ import vazkii.botania.common.lib.LibBlockNames;
public class TileAltar extends TileSimpleInventory implements ISidedInventory {
private static final Pattern SEED_PATTERN = Pattern.compile("(?:(?:(?:[A-Z-_.:]|^)seed)|(?:(?:[a-z-_.:]|^)Seed))(?:[sA-Z-_.:]|$)");
public static final String TAG_HAS_WATER = "hasWater";
public static final String TAG_IS_MOSSY = "isMossy";
@@ -11,25 +11,21 @@
*/
package vazkii.botania.common.block.tile;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
public class TileTinyPotato extends TileMod {
public int jumpTicks = 0;
public void jump() {
if(jumpTicks == 0)
jumpTicks = 20;
}
@Override
public void updateEntity() {
if(worldObj.rand.nextInt(100) == 0)
jump();
if(jumpTicks > 0)
jumpTicks--;
}
@@ -21,15 +21,15 @@ public final class ChestGenHandler {
public static void init() {
String c = ChestGenHooks.BONUS_CHEST;
ChestGenHooks.addItem(c, new WeightedRandomChestContent(new ItemStack(ModItems.lexicon), 1, 1, 12));
c = ChestGenHooks.STRONGHOLD_CORRIDOR;
ChestGenHooks.addItem(c, new WeightedRandomChestContent(new ItemStack(ModItems.manaResource, 1, 1), 1, 1, 8));
ChestGenHooks.addItem(c, new WeightedRandomChestContent(new ItemStack(ModItems.manaResource, 1, 1), 1, 3, 2));
c = ChestGenHooks.DUNGEON_CHEST;
ChestGenHooks.addItem(c, new WeightedRandomChestContent(new ItemStack(ModItems.manaResource, 1, 0), 1, 5, 9));
ChestGenHooks.addItem(c, new WeightedRandomChestContent(new ItemStack(ModItems.lexicon), 1, 1, 6));
ChestGenHooks.addItem(c, new WeightedRandomChestContent(new ItemStack(ModItems.manaBottle), 1, 1, 5));
}
}
@@ -106,7 +106,7 @@ public final class ConfigHandler {
desc = "Set to false to disable the animation when an item is charging on top of a mana pool.";
chargingAnimationEnabled = loadPropBool("chargeAnimation.enabled", desc, chargingAnimationEnabled);
desc = "Set to true if you are the chosen one. For lovers of glitch art and just general mad people.";
matrixMode = loadPropBool("matrixMode.enabled", desc, matrixMode);
@@ -23,9 +23,9 @@ import vazkii.botania.api.lexicon.LexiconEntry;
import vazkii.botania.common.Botania;
import vazkii.botania.common.block.ModBlocks;
import vazkii.botania.common.core.handler.BiomeDecorationHandler;
import vazkii.botania.common.core.handler.ChestGenHandler;
import vazkii.botania.common.core.handler.CommonTickHandler;
import vazkii.botania.common.core.handler.ConfigHandler;
import vazkii.botania.common.core.handler.ChestGenHandler;
import vazkii.botania.common.core.handler.InternalMethodHandler;
import vazkii.botania.common.core.handler.ManaNetworkHandler;
import vazkii.botania.common.core.handler.PixieHandler;
@@ -1010,11 +1010,11 @@ public final class ModCrafingRecipes {
// Necrodermal Virus Recipe
addShapelessOreDictRecipe(new ItemStack(ModItems.virus), LibOreDict.PIXIE_DUST, new ItemStack(ModItems.vineBall), new ItemStack(Items.magma_cream), new ItemStack(Items.fermented_spider_eye), new ItemStack(Items.ender_eye), new ItemStack(Items.skull, 1, 2));
recipeVirusZombie = BotaniaAPI.getLatestAddedRecipe();
// Nullodermal Virus Recipe
addShapelessOreDictRecipe(new ItemStack(ModItems.virus, 1, 1), LibOreDict.PIXIE_DUST, new ItemStack(ModItems.vineBall), new ItemStack(Items.magma_cream), new ItemStack(Items.fermented_spider_eye), new ItemStack(Items.ender_eye), new ItemStack(Items.skull));
recipeVirusSkeleton = BotaniaAPI.getLatestAddedRecipe();
// Mana and Terrasteel Block Recipes
addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0),
"III", "III", "III",
@@ -59,7 +59,7 @@ public final class ModManaInfusionRecipes {
manaQuartzRecipe = BotaniaAPI.registerManaInfusionRecipe(new ItemStack(ModItems.quartz, 1, 1), new ItemStack(Items.quartz), 250);
tinyPotatoRecipe = BotaniaAPI.registerManaInfusionRecipe(new ItemStack(ModBlocks.tinyPotato), new ItemStack(Items.potato), 1337);
BotaniaAPI.registerManaInfusionRecipe(new ItemStack(ModItems.manaBottle), new ItemStack(Items.glass_bottle), 5000);
}
@@ -97,7 +97,7 @@ public final class ModPetalRecipes {
looniumRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_LOONIUM), green, green, greenMana, greenMana, gray, grayMana, runeSloth, runeGluttony, runeEnvy, redstoneRoot);
daffomillRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_DAFFOMILL), white, whiteMana, brown, yellowMana, runeAir, redstoneRoot);
vinculotusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType(LibBlockNames.SUBTILE_VINCULOTUS), purpleMana, purpleMana, lime, black, blackMana, black, runeWater, runeSloth, runeLust, redstoneRoot);
ItemStack stack = new ItemStack(Items.skull, 1, 3);
ItemNBTHelper.setString(stack, "SkullOwner", "Vazkii");
Object[] inputs = new Object[16];
@@ -233,7 +233,7 @@ public class EntityDoppleganger extends EntityCreature implements IBossDisplayDa
active.removeAll(remove);
player.capabilities.isFlying = player.capabilities.isFlying && player.capabilities.isCreativeMode;
if(!playersInside.contains(player)) {
Vector3 sourceVector = new Vector3(source.posX + 0.5, source.posY + 0.5, source.posZ + 0.5);
Vector3 playerVector = Vector3.fromEntityCenter(player);
@@ -492,8 +492,7 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst {
Vector3 diffVecNorm = diffVec.copy().normalize();
double distance = 0.095;
int particles = 0;
do {
r = or + ((float) Math.random() - 0.5F) * 0.25F;
g = og + ((float) Math.random() - 0.5F) * 0.25F;
@@ -504,12 +503,11 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst {
posX += diffVecNorm.x * distance;
posY += diffVecNorm.y * distance;
posZ += diffVecNorm.z * distance;
currentPos = Vector3.fromEntity(this);
diffVec = oldPos.copy().sub(currentPos);
particles++;
} while(Math.abs(diffVec.mag()) > distance);
Botania.proxy.wispFX(worldObj, posX, posY, posZ, r, g, b, 0.1F * size, (float) (Math.random() - 0.5F) * 0.06F, (float) (Math.random() - 0.5F) * 0.06F, (float) (Math.random() - 0.5F) * 0.06F);
posX = savedPosX;
@@ -94,7 +94,7 @@ public class EntityPixie extends EntityFlyingCreature {
return super.attackEntityFrom(par1DamageSource, par2);
return false;
}
@Override
public void onEntityUpdate() {
super.onEntityUpdate();
@@ -53,9 +53,6 @@ public class ItemLaputaShard extends ItemMod implements ILensEffect {
public void spawnBurst(World world, int srcx, int srcy, int srcz) {
int range = 14;
int islandHeight = 64;
int blocks = 0;
if(!world.isRemote) {
for(int i = 0; i < range * 2 + 1; i++)
for(int j = range * 2 + 1; j > 0; j--)
@@ -179,7 +176,7 @@ public class ItemLaputaShard extends ItemMod implements ILensEffect {
EntityThrowable entity = (EntityThrowable) burst;
ItemStack lens = burst.getSourceLens();
int id = ItemNBTHelper.getInt(lens, TAG_BLOCK, 0);
Block block = Block.getBlockById(id);
Block.getBlockById(id);
int meta = ItemNBTHelper.getInt(lens, TAG_META, 0);
entity.worldObj.spawnParticle("blockcrack_" + id + "_" + meta, entity.posX, entity.posY, entity.posZ, entity.motionX, entity.motionY, entity.motionZ);
+10 -10
View File
@@ -63,20 +63,20 @@ import cpw.mods.fml.common.registry.GameRegistry;
public class ItemLens extends ItemMod implements ILens {
private static final int NORMAL = 0,
SPEED = 1,
POWER = 2,
TIME = 3,
private static final int NORMAL = 0,
SPEED = 1,
POWER = 2,
TIME = 3,
EFFICIENCY = 4,
BOUNCE = 5,
GRAVITY = 6,
MINE = 7,
GRAVITY = 6,
MINE = 7,
DAMAGE = 8,
PHANTOM = 9,
MAGNET = 10,
EXPLOSIVE = 11,
INFLUENCE = 12,
WEIGHT = 13,
WEIGHT = 13,
PAINT = 14,
FIRE = 15,
PISTON = 16;
@@ -87,7 +87,7 @@ public class ItemLens extends ItemMod implements ILens {
PROP_TOUCH = 1 << 2,
PROP_INTERACTION = 1 << 3,
PROP_DAMAGE = 1 << 4;
private static final Map<Integer, Integer> props = new HashMap();
static {
@@ -407,12 +407,12 @@ public class ItemLens extends ItemMod implements ILens {
int x = pos.blockX + dir.offsetX;
int y = pos.blockY + dir.offsetY;
int z = pos.blockZ + dir.offsetZ;
if(entity.worldObj.isAirBlock(x, y, z) || entity.worldObj.getBlock(x, y, z).isReplaceable(entity.worldObj, x, y, z)) {
Block block = entity.worldObj.getBlock(pos.blockX, pos.blockY, pos.blockZ);
int meta = entity.worldObj.getBlockMetadata(pos.blockX, pos.blockY, pos.blockZ);
TileEntity tile = entity.worldObj.getTileEntity(pos.blockX, pos.blockY, pos.blockZ);
if(block.getMobilityFlag() == 0 && block != Blocks.obsidian && tile == null) {
entity.worldObj.setBlockToAir(pos.blockX, pos.blockY, pos.blockZ);
entity.worldObj.setBlock(x, y, z, block, meta, 1 | 2);
@@ -65,10 +65,10 @@ public class ItemManaResource extends ItemMod implements IFlowerComponent, IElve
public int getColorFromItemStack(ItemStack par1ItemStack, int par2) {
if(par1ItemStack.getItemDamage() == 5)
return Color.HSBtoRGB(Botania.proxy.getWorldElapsedTicks() * 2 % 360 / 360F, 0.25F, 1F);
return 0xFFFFFF;
}
@Override
public String getUnlocalizedName(ItemStack par1ItemStack) {
return "item." + LibItemNames.MANA_RESOURCE_NAMES[Math.min(types - 1, par1ItemStack.getItemDamage())];
@@ -13,7 +13,6 @@ package vazkii.botania.common.item;
import java.util.List;
import cpw.mods.fml.relauncher.ReflectionHelper;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLivingBase;
@@ -30,18 +29,19 @@ import net.minecraft.util.IIcon;
import vazkii.botania.client.core.helper.IconHelper;
import vazkii.botania.common.lib.LibItemNames;
import vazkii.botania.common.lib.LibObfuscation;
import cpw.mods.fml.relauncher.ReflectionHelper;
public class ItemVirus extends ItemMod {
IIcon[] icons;
private static final int SUBTYPES = 2;
public ItemVirus() {
setUnlocalizedName(LibItemNames.VIRUS);
setHasSubtypes(true);
}
@Override
public boolean itemInteractionForEntity(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, EntityLivingBase par3EntityLivingBase) {
if(par3EntityLivingBase instanceof EntityHorse) {
@@ -63,18 +63,18 @@ public class ItemVirus extends ItemMod {
}
return false;
}
@Override
public void getSubItems(Item item, CreativeTabs tab, List list) {
for(int i = 0; i < SUBTYPES; i++)
list.add(new ItemStack(item, 1, i));
}
@Override
public IIcon getIconFromDamage(int par1) {
return icons[Math.min(icons.length - 1, par1)];
}
@Override
public String getUnlocalizedName(ItemStack par1ItemStack) {
return getUnlocalizedNameLazy(par1ItemStack) + par1ItemStack.getItemDamage();
@@ -90,5 +90,5 @@ public class ItemVirus extends ItemMod {
for(int i = 0; i < SUBTYPES; i++)
icons[i] = IconHelper.forItem(par1IconRegister, this, i);
}
}
@@ -57,7 +57,7 @@ public class ItemDivaCharm extends ItemBauble implements IManaUsingItem {
event.entityLiving.heal(event.entityLiving.getMaxHealth());
if(event.entityLiving.isDead)
event.entityLiving.isDead = false;
ManaItemHandler.requestManaExact(amulet, player, cost, true);
player.worldObj.playSoundAtEntity(player, "random.levelup", 1F, 1F);
@@ -319,7 +319,7 @@ public final class LexiconData {
vinculotus = new BLexiconEntry(LibLexicon.FFLOWER_VINCULOTUS, categoryFunctionalFlowers);
vinculotus.setLexiconPages(new PageText("0"), new PagePetalRecipe("1", ModPetalRecipes.vinculotusRecipe));
// GENERATING FLOWERS ENTRIES
generatingIntro = new BLexiconEntry(LibLexicon.GFLOWER_INTRO, categoryGenerationFlowers);
generatingIntro.setPriority().setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"));
@@ -395,7 +395,7 @@ public final class LexiconData {
gatherDrum = new ALexiconEntry(LibLexicon.DEVICE_GATHER_DRUM, categoryDevices);
gatherDrum.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipeGatherDrum));
// TOOLS ENTRIES
manaBlaster = new BLexiconEntry(LibLexicon.TOOL_MANA_BLASTER, categoryTools);
manaBlaster.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCrafingRecipes.recipeManaBlaster));
@@ -457,10 +457,10 @@ public final class LexiconData {
laputaShard = new ALexiconEntry(LibLexicon.TOOL_LAPUTA_SHARD, categoryTools);
laputaShard.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipesLaputaShard));
virus = new ALexiconEntry(LibLexicon.TOOL_VIRUS, categoryTools);
virus.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipeVirusZombie), new PageCraftingRecipe("2", ModCrafingRecipes.recipeVirusSkeleton));
// BAUBLES ENTRIES
baublesIntro = new BLexiconEntry(LibLexicon.BAUBLE_INTRO, categoryBaubles);
baublesIntro.setPriority().setLexiconPages(new PageText("0"), new PageImage("1", LibResources.ENTRY_BAUBLES), new PageText("2"));
@@ -550,7 +550,7 @@ public final class LexiconData {
shedding = new BLexiconEntry(LibLexicon.MISC_SHEDDING, categoryMisc);
shedding.setLexiconPages(new PageText("0"));
tinyPotato = new BLexiconEntry(LibLexicon.MISC_TINY_POTATO, categoryMisc);
tinyPotato.setLexiconPages(new PageText("0"), new PageManaInfusionRecipe("1", ModManaInfusionRecipes.tinyPotatoRecipe));
}
@@ -47,7 +47,7 @@ public final class LibObfuscation {
// Potion
public static final String[] IS_BAD_EFFECT = new String[] { "isBadEffect", "field_76418_K", "J" };
// EntityHorse
public static final String[] HORSE_JUMP_STRENGTH = new String[] { "horseJumpStrength", "field_110271_bv", "bv" };
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB