mirror of
https://github.com/GTNewHorizons/ThaumicHorizons.git
synced 2026-10-26 14:33:47 +00:00
spotlessApply
This commit is contained in:
1 parent
19b7503018
commit
6bf31c6be3
328 files changed
+18744
-10934
No files matched your search
@@ -1,190 +1,189 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client;
|
||||
|
||||
import com.kentington.thaumichorizons.client.fx.FXSonic;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiBloodInfuser;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiCase;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiFingers;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiInjector;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiInspiratron;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiSoulExtractor;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiSoulforge;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiVat;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiVisDynamo;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockBloodInfuserRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockEssentiaDynamoRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockInspiratronRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockJarTHRenderer;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockNodeMonitorRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockRecombinatorRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockSlotRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockSoulBeaconRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockSoulSieveRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockSoulforgeRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockSpikeRenderer;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockSyntheticNodeRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockTransductionAmplifierRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockVatInteriorRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockVatMatrixRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockVatRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockVatSolidRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockVisDynamoRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockVortexStabilizerRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.BlastPhialRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderAlchemitePrimed;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderBoatGreatwood;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderBoatThaumium;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderChocolateCow;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderEndersteed;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderFamiliar;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderGoldChicken;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderGolemTH;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderGravekeeper;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderGuardianPanther;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderLightningBoltFinite;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderLunarWolf;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderMeatSlime;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderMedSlime;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderMercurialSlime;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderNetherHound;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderNightmare;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderOreBoar;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderScholarChicken;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderSeawolf;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderSheeder;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderSoul;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderSyringe;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderTaintfeeder;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderVoltSlime;
|
||||
import com.kentington.thaumichorizons.client.renderer.item.ItemCorpseEffigyRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.item.ItemInjectorRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.item.ItemSyringeRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelFamiliar;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelGolemTH;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.ItemJarTHRenderer;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileBloodInfuserRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileCloudRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileEssentiaDynamoRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileEtherealShardRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileInspiratronRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileJarTHRenderer;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileNodeMonitorRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileRecombinatorRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileSlotRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileSoulBeaconRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileSoulSieveRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileSoulforgeRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileSpikeRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileTransductionAmplifierRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileVatMatrixRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileVatSlaveRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileVisDynamoRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileVortexRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileVortexStabilizerRender;
|
||||
import com.kentington.thaumichorizons.common.CommonProxy;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityAlchemitePrimed;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityBlastPhial;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityBoatGreatwood;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityBoatThaumium;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityChocolateCow;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityEndersteed;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityFamiliar;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityGoldChicken;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityGolemTH;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityGravekeeper;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityGuardianPanther;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityLightningBoltFinite;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityLunarWolf;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityMeatSlime;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityMedSlime;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityMercurialSlime;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityNetherHound;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityNightmare;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityOrePig;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityScholarChicken;
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySeawolf;
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySheeder;
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySoul;
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySyringe;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityTaintPig;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityVoltSlime;
|
||||
import com.kentington.thaumichorizons.common.items.WandManagerTH;
|
||||
import com.kentington.thaumichorizons.common.lib.THKeyHandler;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileBloodInfuser;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileCloud;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileEssentiaDynamo;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileInspiratron;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileNodeMonitor;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileRecombinator;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSlot;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulBeacon;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulExtractor;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulJar;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulforge;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSpike;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSyntheticNode;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileTransductionAmplifier;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVat;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVatMatrix;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVatSlave;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVisDynamo;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVortex;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVortexStabilizer;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import cpw.mods.fml.client.registry.ClientRegistry;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import java.awt.Color;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelChicken;
|
||||
import net.minecraft.client.model.ModelCow;
|
||||
import net.minecraft.client.model.ModelHorse;
|
||||
import net.minecraft.client.model.ModelOcelot;
|
||||
import net.minecraft.client.model.ModelPig;
|
||||
import net.minecraft.client.model.ModelSlime;
|
||||
import net.minecraft.client.model.ModelWolf;
|
||||
import net.minecraft.client.multiplayer.WorldClient;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import net.minecraft.client.particle.EntityFlameFX;
|
||||
import net.minecraft.client.particle.EntitySpellParticleFX;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.client.resources.IReloadableResourceManager;
|
||||
import net.minecraft.client.resources.IResourceManager;
|
||||
import net.minecraft.client.resources.IResourceManagerReloadListener;
|
||||
import net.minecraft.block.Block;
|
||||
import thaumcraft.client.fx.ParticleEngine;
|
||||
import thaumcraft.client.fx.particles.FXWisp;
|
||||
import java.awt.Color;
|
||||
import thaumcraft.client.fx.particles.FXBurst;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.particle.EntitySpellParticleFX;
|
||||
import net.minecraft.client.particle.EntityFlameFX;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import thaumcraft.client.fx.particles.FXSparkle;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockSlotRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockSpikeRenderer;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockVortexStabilizerRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockRecombinatorRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockTransductionAmplifierRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockSoulBeaconRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockBloodInfuserRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockVatMatrixRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockVatInteriorRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockVatSolidRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockVatRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockSoulforgeRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockInspiratronRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockSoulSieveRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockEssentiaDynamoRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockVisDynamoRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockNodeMonitorRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockSyntheticNodeRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileJarTHRenderer;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulJar;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import com.kentington.thaumichorizons.client.renderer.block.BlockJarTHRenderer;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.ItemJarTHRenderer;
|
||||
import net.minecraft.item.Item;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiFingers;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiCase;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiVat;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVat;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiInjector;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiBloodInfuser;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiSoulforge;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiInspiratron;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiSoulExtractor;
|
||||
import com.kentington.thaumichorizons.client.gui.GuiVisDynamo;
|
||||
import net.minecraft.client.multiplayer.WorldClient;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import thaumcraft.client.renderers.item.ItemWandRenderer;
|
||||
import com.kentington.thaumichorizons.client.renderer.item.ItemInjectorRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.item.ItemCorpseEffigyRender;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.client.IItemRenderer;
|
||||
import net.minecraftforge.client.MinecraftForgeClient;
|
||||
import com.kentington.thaumichorizons.client.renderer.item.ItemSyringeRender;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderLightningBoltFinite;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityLightningBoltFinite;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderSoul;
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySoul;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderSheeder;
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySheeder;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderMedSlime;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityMedSlime;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderVoltSlime;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityVoltSlime;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderMercurialSlime;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityMercurialSlime;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderMeatSlime;
|
||||
import net.minecraft.client.model.ModelSlime;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityMeatSlime;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderBoatThaumium;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityBoatThaumium;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderBoatGreatwood;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityBoatGreatwood;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderNightmare;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityNightmare;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderEndersteed;
|
||||
import net.minecraft.client.model.ModelHorse;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityEndersteed;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderGolemTH;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelGolemTH;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityGolemTH;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderLunarWolf;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityLunarWolf;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderSeawolf;
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySeawolf;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderNetherHound;
|
||||
import net.minecraft.client.model.ModelWolf;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityNetherHound;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderTaintfeeder;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityTaintPig;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderScholarChicken;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityScholarChicken;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderGoldChicken;
|
||||
import net.minecraft.client.model.ModelChicken;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityGoldChicken;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderGravekeeper;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityGravekeeper;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderFamiliar;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelFamiliar;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityFamiliar;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderGuardianPanther;
|
||||
import net.minecraft.client.model.ModelOcelot;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityGuardianPanther;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderOreBoar;
|
||||
import net.minecraft.client.model.ModelPig;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityOrePig;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderChocolateCow;
|
||||
import net.minecraft.client.model.ModelCow;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityChocolateCow;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.BlastPhialRender;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityBlastPhial;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderSyringe;
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySyringe;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||
import com.kentington.thaumichorizons.client.renderer.entity.RenderAlchemitePrimed;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityAlchemitePrimed;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileSlotRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSlot;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileCloudRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileCloud;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileSpikeRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSpike;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileVortexRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVortex;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileVortexStabilizerRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVortexStabilizer;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileRecombinatorRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileRecombinator;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileTransductionAmplifierRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileTransductionAmplifier;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileSoulBeaconRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulBeacon;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileBloodInfuserRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileBloodInfuser;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileVatMatrixRender;
|
||||
import com.kentington.thaumichorizons.client.fx.FXSonic;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVatMatrix;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileVatSlaveRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVatSlave;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileSoulforgeRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulforge;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileInspiratronRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileInspiratron;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileSoulSieveRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulExtractor;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileEssentiaDynamoRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileEssentiaDynamo;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileVisDynamoRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVisDynamo;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileEtherealShardRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSyntheticNode;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import cpw.mods.fml.client.registry.ClientRegistry;
|
||||
import com.kentington.thaumichorizons.client.renderer.tile.TileNodeMonitorRender;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileNodeMonitor;
|
||||
import com.kentington.thaumichorizons.common.lib.THKeyHandler;
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import com.kentington.thaumichorizons.common.items.WandManagerTH;
|
||||
import thaumcraft.api.wands.IWandTriggerManager;
|
||||
import com.kentington.thaumichorizons.common.CommonProxy;
|
||||
import thaumcraft.client.fx.ParticleEngine;
|
||||
import thaumcraft.client.fx.particles.FXBurst;
|
||||
import thaumcraft.client.fx.particles.FXSparkle;
|
||||
import thaumcraft.client.fx.particles.FXWisp;
|
||||
import thaumcraft.client.renderers.item.ItemWandRenderer;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
|
||||
public class ClientProxy extends CommonProxy
|
||||
{
|
||||
public class ClientProxy extends CommonProxy {
|
||||
public IWandTriggerManager wandManager;
|
||||
|
||||
|
||||
public ClientProxy() {
|
||||
this.wandManager = new WandManagerTH();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void registerHandlers() {
|
||||
MinecraftForge.EVENT_BUS.register((Object)ThaumicHorizons.instance.renderEventHandler);
|
||||
MinecraftForge.EVENT_BUS.register((Object) ThaumicHorizons.instance.renderEventHandler);
|
||||
final IResourceManager resourceManager = Minecraft.getMinecraft().getResourceManager();
|
||||
if (resourceManager instanceof IReloadableResourceManager) {
|
||||
((IReloadableResourceManager) resourceManager).registerReloadListener(new IResourceManagerReloadListener() {
|
||||
@@ -195,91 +194,141 @@ public class ClientProxy extends CommonProxy
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void registerKeyBindings() {
|
||||
FMLCommonHandler.instance().bus().register((Object)new THKeyHandler());
|
||||
FMLCommonHandler.instance().bus().register((Object) new THKeyHandler());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void registerRenderers() {
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileNodeMonitor.class, (TileEntitySpecialRenderer)new TileNodeMonitorRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileSyntheticNode.class, (TileEntitySpecialRenderer)new TileEtherealShardRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileVisDynamo.class, (TileEntitySpecialRenderer)new TileVisDynamoRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileEssentiaDynamo.class, (TileEntitySpecialRenderer)new TileEssentiaDynamoRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileSoulExtractor.class, (TileEntitySpecialRenderer)new TileSoulSieveRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileInspiratron.class, (TileEntitySpecialRenderer)new TileInspiratronRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileSoulforge.class, (TileEntitySpecialRenderer)new TileSoulforgeRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileVatSlave.class, (TileEntitySpecialRenderer)new TileVatSlaveRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileVatMatrix.class, (TileEntitySpecialRenderer)new TileVatMatrixRender(0));
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileBloodInfuser.class, (TileEntitySpecialRenderer)new TileBloodInfuserRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileSoulBeacon.class, (TileEntitySpecialRenderer)new TileSoulBeaconRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileTransductionAmplifier.class, (TileEntitySpecialRenderer)new TileTransductionAmplifierRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileRecombinator.class, (TileEntitySpecialRenderer)new TileRecombinatorRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileVortexStabilizer.class, (TileEntitySpecialRenderer)new TileVortexStabilizerRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileVortex.class, (TileEntitySpecialRenderer)new TileVortexRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileSpike.class, (TileEntitySpecialRenderer)new TileSpikeRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileCloud.class, (TileEntitySpecialRenderer)new TileCloudRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileSlot.class, (TileEntitySpecialRenderer)new TileSlotRender());
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityAlchemitePrimed.class, (Render)new RenderAlchemitePrimed());
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntitySyringe.class, (Render)new RenderSyringe());
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityBlastPhial.class, (Render)new BlastPhialRender());
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityChocolateCow.class, (Render)new RenderChocolateCow((ModelBase)new ModelCow(), 0.7f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityOrePig.class, (Render)new RenderOreBoar((ModelBase)new ModelPig(), (ModelBase)new ModelPig(0.5f), 0.7f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityGuardianPanther.class, (Render)new RenderGuardianPanther((ModelBase)new ModelOcelot(), 1.0f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityFamiliar.class, (Render)new RenderFamiliar(new ModelFamiliar(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityGravekeeper.class, (Render)new RenderGravekeeper((ModelBase)new ModelOcelot(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityGoldChicken.class, (Render)new RenderGoldChicken((ModelBase)new ModelChicken(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityScholarChicken.class, (Render)new RenderScholarChicken((ModelBase)new ModelChicken(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityTaintPig.class, (Render)new RenderTaintfeeder((ModelBase)new ModelPig(), (ModelBase)new ModelPig(0.5f), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityNetherHound.class, (Render)new RenderNetherHound((ModelBase)new ModelWolf(), (ModelBase)new ModelWolf(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntitySeawolf.class, (Render)new RenderSeawolf((ModelBase)new ModelWolf(), (ModelBase)new ModelWolf(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityLunarWolf.class, (Render)new RenderLunarWolf((ModelBase)new ModelWolf(), (ModelBase)new ModelWolf(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityGolemTH.class, (Render)new RenderGolemTH((ModelBase)new ModelGolemTH(false)));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityEndersteed.class, (Render)new RenderEndersteed((ModelBase)new ModelHorse(), 0.75f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityNightmare.class, (Render)new RenderNightmare((ModelBase)new ModelHorse(), 0.75f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityBoatGreatwood.class, (Render)new RenderBoatGreatwood());
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityBoatThaumium.class, (Render)new RenderBoatThaumium());
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityMeatSlime.class, (Render)new RenderMeatSlime((ModelBase)new ModelSlime(16), (ModelBase)new ModelSlime(0), 0.25f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityMercurialSlime.class, (Render)new RenderMercurialSlime((ModelBase)new ModelSlime(16), (ModelBase)new ModelSlime(0), 0.25f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityVoltSlime.class, (Render)new RenderVoltSlime((ModelBase)new ModelSlime(16), (ModelBase)new ModelSlime(0), 0.25f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityMedSlime.class, (Render)new RenderMedSlime((ModelBase)new ModelSlime(16), (ModelBase)new ModelSlime(0), 0.25f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntitySheeder.class, (Render)new RenderSheeder());
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntitySoul.class, (Render)new RenderSoul());
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class)EntityLightningBoltFinite.class, (Render)new RenderLightningBoltFinite());
|
||||
MinecraftForgeClient.registerItemRenderer(ThaumicHorizons.itemSyringeBloodSample, (IItemRenderer)new ItemSyringeRender());
|
||||
MinecraftForgeClient.registerItemRenderer(ThaumicHorizons.itemSyringeHuman, (IItemRenderer)new ItemSyringeRender());
|
||||
MinecraftForgeClient.registerItemRenderer(ThaumicHorizons.itemSyringeEmpty, (IItemRenderer)new ItemSyringeRender());
|
||||
MinecraftForgeClient.registerItemRenderer(ThaumicHorizons.itemSyringeInjection, (IItemRenderer)new ItemSyringeRender());
|
||||
MinecraftForgeClient.registerItemRenderer(ThaumicHorizons.itemCorpseEffigy, (IItemRenderer)new ItemCorpseEffigyRender());
|
||||
MinecraftForgeClient.registerItemRenderer(ThaumicHorizons.itemInjector, (IItemRenderer)new ItemInjectorRender());
|
||||
MinecraftForgeClient.registerItemRenderer(ThaumicHorizons.itemWandCastingDisposable, (IItemRenderer)new ItemWandRenderer());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileNodeMonitor.class, (TileEntitySpecialRenderer) new TileNodeMonitorRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileSyntheticNode.class, (TileEntitySpecialRenderer) new TileEtherealShardRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileVisDynamo.class, (TileEntitySpecialRenderer) new TileVisDynamoRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileEssentiaDynamo.class, (TileEntitySpecialRenderer) new TileEssentiaDynamoRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileSoulExtractor.class, (TileEntitySpecialRenderer) new TileSoulSieveRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileInspiratron.class, (TileEntitySpecialRenderer) new TileInspiratronRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileSoulforge.class, (TileEntitySpecialRenderer) new TileSoulforgeRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileVatSlave.class, (TileEntitySpecialRenderer) new TileVatSlaveRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileVatMatrix.class, (TileEntitySpecialRenderer) new TileVatMatrixRender(0));
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileBloodInfuser.class, (TileEntitySpecialRenderer) new TileBloodInfuserRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileSoulBeacon.class, (TileEntitySpecialRenderer) new TileSoulBeaconRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileTransductionAmplifier.class,
|
||||
(TileEntitySpecialRenderer) new TileTransductionAmplifierRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileRecombinator.class, (TileEntitySpecialRenderer) new TileRecombinatorRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileVortexStabilizer.class, (TileEntitySpecialRenderer) new TileVortexStabilizerRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileVortex.class, (TileEntitySpecialRenderer) new TileVortexRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileSpike.class, (TileEntitySpecialRenderer) new TileSpikeRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileCloud.class, (TileEntitySpecialRenderer) new TileCloudRender());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileSlot.class, (TileEntitySpecialRenderer) new TileSlotRender());
|
||||
RenderingRegistry.registerEntityRenderingHandler(
|
||||
(Class) EntityAlchemitePrimed.class, (Render) new RenderAlchemitePrimed());
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntitySyringe.class, (Render) new RenderSyringe());
|
||||
RenderingRegistry.registerEntityRenderingHandler(
|
||||
(Class) EntityBlastPhial.class, (Render) new BlastPhialRender());
|
||||
RenderingRegistry.registerEntityRenderingHandler(
|
||||
(Class) EntityChocolateCow.class, (Render) new RenderChocolateCow((ModelBase) new ModelCow(), 0.7f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntityOrePig.class, (Render)
|
||||
new RenderOreBoar((ModelBase) new ModelPig(), (ModelBase) new ModelPig(0.5f), 0.7f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntityGuardianPanther.class, (Render)
|
||||
new RenderGuardianPanther((ModelBase) new ModelOcelot(), 1.0f));
|
||||
RenderingRegistry.registerEntityRenderingHandler(
|
||||
(Class) EntityFamiliar.class, (Render) new RenderFamiliar(new ModelFamiliar(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler(
|
||||
(Class) EntityGravekeeper.class, (Render) new RenderGravekeeper((ModelBase) new ModelOcelot(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler(
|
||||
(Class) EntityGoldChicken.class, (Render) new RenderGoldChicken((ModelBase) new ModelChicken(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntityScholarChicken.class, (Render)
|
||||
new RenderScholarChicken((ModelBase) new ModelChicken(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntityTaintPig.class, (Render)
|
||||
new RenderTaintfeeder((ModelBase) new ModelPig(), (ModelBase) new ModelPig(0.5f), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntityNetherHound.class, (Render)
|
||||
new RenderNetherHound((ModelBase) new ModelWolf(), (ModelBase) new ModelWolf(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntitySeawolf.class, (Render)
|
||||
new RenderSeawolf((ModelBase) new ModelWolf(), (ModelBase) new ModelWolf(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntityLunarWolf.class, (Render)
|
||||
new RenderLunarWolf((ModelBase) new ModelWolf(), (ModelBase) new ModelWolf(), 0.5f));
|
||||
RenderingRegistry.registerEntityRenderingHandler(
|
||||
(Class) EntityGolemTH.class, (Render) new RenderGolemTH((ModelBase) new ModelGolemTH(false)));
|
||||
RenderingRegistry.registerEntityRenderingHandler(
|
||||
(Class) EntityEndersteed.class, (Render) new RenderEndersteed((ModelBase) new ModelHorse(), 0.75f));
|
||||
RenderingRegistry.registerEntityRenderingHandler(
|
||||
(Class) EntityNightmare.class, (Render) new RenderNightmare((ModelBase) new ModelHorse(), 0.75f));
|
||||
RenderingRegistry.registerEntityRenderingHandler(
|
||||
(Class) EntityBoatGreatwood.class, (Render) new RenderBoatGreatwood());
|
||||
RenderingRegistry.registerEntityRenderingHandler(
|
||||
(Class) EntityBoatThaumium.class, (Render) new RenderBoatThaumium());
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntityMeatSlime.class, (Render)
|
||||
new RenderMeatSlime((ModelBase) new ModelSlime(16), (ModelBase) new ModelSlime(0), 0.25f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntityMercurialSlime.class, (Render)
|
||||
new RenderMercurialSlime((ModelBase) new ModelSlime(16), (ModelBase) new ModelSlime(0), 0.25f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntityVoltSlime.class, (Render)
|
||||
new RenderVoltSlime((ModelBase) new ModelSlime(16), (ModelBase) new ModelSlime(0), 0.25f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntityMedSlime.class, (Render)
|
||||
new RenderMedSlime((ModelBase) new ModelSlime(16), (ModelBase) new ModelSlime(0), 0.25f));
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntitySheeder.class, (Render) new RenderSheeder());
|
||||
RenderingRegistry.registerEntityRenderingHandler((Class) EntitySoul.class, (Render) new RenderSoul());
|
||||
RenderingRegistry.registerEntityRenderingHandler(
|
||||
(Class) EntityLightningBoltFinite.class, (Render) new RenderLightningBoltFinite());
|
||||
MinecraftForgeClient.registerItemRenderer(
|
||||
ThaumicHorizons.itemSyringeBloodSample, (IItemRenderer) new ItemSyringeRender());
|
||||
MinecraftForgeClient.registerItemRenderer(
|
||||
ThaumicHorizons.itemSyringeHuman, (IItemRenderer) new ItemSyringeRender());
|
||||
MinecraftForgeClient.registerItemRenderer(
|
||||
ThaumicHorizons.itemSyringeEmpty, (IItemRenderer) new ItemSyringeRender());
|
||||
MinecraftForgeClient.registerItemRenderer(
|
||||
ThaumicHorizons.itemSyringeInjection, (IItemRenderer) new ItemSyringeRender());
|
||||
MinecraftForgeClient.registerItemRenderer(
|
||||
ThaumicHorizons.itemCorpseEffigy, (IItemRenderer) new ItemCorpseEffigyRender());
|
||||
MinecraftForgeClient.registerItemRenderer(
|
||||
ThaumicHorizons.itemInjector, (IItemRenderer) new ItemInjectorRender());
|
||||
MinecraftForgeClient.registerItemRenderer(
|
||||
ThaumicHorizons.itemWandCastingDisposable, (IItemRenderer) new ItemWandRenderer());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Object getClientGuiElement(final int ID, final EntityPlayer player, final World world, final int x, final int y, final int z) {
|
||||
public Object getClientGuiElement(
|
||||
final int ID, final EntityPlayer player, final World world, final int x, final int y, final int z) {
|
||||
if (world instanceof WorldClient) {
|
||||
switch (ID) {
|
||||
case 1: {
|
||||
return new GuiVisDynamo(player, (TileVisDynamo)world.getTileEntity(x, y, z));
|
||||
return new GuiVisDynamo(player, (TileVisDynamo) world.getTileEntity(x, y, z));
|
||||
}
|
||||
case 2: {
|
||||
return new GuiSoulExtractor(player.inventory, (TileSoulExtractor)world.getTileEntity(x, y, z));
|
||||
return new GuiSoulExtractor(player.inventory, (TileSoulExtractor) world.getTileEntity(x, y, z));
|
||||
}
|
||||
case 3: {
|
||||
return new GuiInspiratron(player.inventory, (TileInspiratron)world.getTileEntity(x, y, z));
|
||||
return new GuiInspiratron(player.inventory, (TileInspiratron) world.getTileEntity(x, y, z));
|
||||
}
|
||||
case 4: {
|
||||
return new GuiSoulforge(player, (TileSoulforge)world.getTileEntity(x, y, z));
|
||||
return new GuiSoulforge(player, (TileSoulforge) world.getTileEntity(x, y, z));
|
||||
}
|
||||
case 5: {
|
||||
return new GuiBloodInfuser(player, (TileBloodInfuser)world.getTileEntity(x, y, z));
|
||||
return new GuiBloodInfuser(player, (TileBloodInfuser) world.getTileEntity(x, y, z));
|
||||
}
|
||||
case 6: {
|
||||
return new GuiInjector(player);
|
||||
}
|
||||
case 7: {
|
||||
return new GuiVat(player, (TileVat)world.getTileEntity(x, y, z));
|
||||
return new GuiVat(player, (TileVat) world.getTileEntity(x, y, z));
|
||||
}
|
||||
case 8: {
|
||||
return new GuiCase(player.inventory, world, x, y, z);
|
||||
@@ -291,116 +340,162 @@ public class ClientProxy extends CommonProxy
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void registerDisplayInformation() {
|
||||
ThaumicHorizons.blockJarRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ThaumicHorizons.blockJar), (IItemRenderer)new ItemJarTHRenderer());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockJarTHRenderer());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer((Class)TileSoulJar.class, (TileEntitySpecialRenderer)new TileJarTHRenderer());
|
||||
MinecraftForgeClient.registerItemRenderer(
|
||||
Item.getItemFromBlock(ThaumicHorizons.blockJar), (IItemRenderer) new ItemJarTHRenderer());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockJarTHRenderer());
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(
|
||||
(Class) TileSoulJar.class, (TileEntitySpecialRenderer) new TileJarTHRenderer());
|
||||
ThaumicHorizons.blockSyntheticNodeRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockSyntheticNodeRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockSyntheticNodeRender());
|
||||
ThaumicHorizons.blockNodeMonRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockNodeMonitorRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockNodeMonitorRender());
|
||||
ThaumicHorizons.blockVisDynamoRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockVisDynamoRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockVisDynamoRender());
|
||||
ThaumicHorizons.blockEssentiaDynamoRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockEssentiaDynamoRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockEssentiaDynamoRender());
|
||||
ThaumicHorizons.blockSoulSieveRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockSoulSieveRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockSoulSieveRender());
|
||||
ThaumicHorizons.blockInspiratronRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockInspiratronRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockInspiratronRender());
|
||||
ThaumicHorizons.blockSoulforgeRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockSoulforgeRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockSoulforgeRender());
|
||||
ThaumicHorizons.blockVatRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockVatRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockVatRender());
|
||||
ThaumicHorizons.blockVatSolidRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockVatSolidRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockVatSolidRender());
|
||||
ThaumicHorizons.blockVatInteriorRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockVatInteriorRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockVatInteriorRender());
|
||||
ThaumicHorizons.blockVatMatrixRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockVatMatrixRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockVatMatrixRender());
|
||||
ThaumicHorizons.blockBloodInfuserRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockBloodInfuserRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockBloodInfuserRender());
|
||||
ThaumicHorizons.blockSoulBeaconRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockSoulBeaconRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockSoulBeaconRender());
|
||||
ThaumicHorizons.blockTransducerRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockTransductionAmplifierRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockTransductionAmplifierRender());
|
||||
ThaumicHorizons.blockRecombinatorRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockRecombinatorRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockRecombinatorRender());
|
||||
ThaumicHorizons.blockVortexStabilizerRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockVortexStabilizerRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockVortexStabilizerRender());
|
||||
ThaumicHorizons.blockSpikeRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockSpikeRenderer());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockSpikeRenderer());
|
||||
ThaumicHorizons.blockSlotRI = RenderingRegistry.getNextAvailableRenderId();
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler)new BlockSlotRender());
|
||||
RenderingRegistry.registerBlockHandler((ISimpleBlockRenderingHandler) new BlockSlotRender());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void disintegrateFX(final double blockX, final double blockY, final double blockZ, final EntityPlayer p, final int howMany, final boolean enlarged) {
|
||||
public void disintegrateFX(
|
||||
final double blockX,
|
||||
final double blockY,
|
||||
final double blockZ,
|
||||
final EntityPlayer p,
|
||||
final int howMany,
|
||||
final boolean enlarged) {
|
||||
if (enlarged) {
|
||||
for (int x = -1; x < 2; ++x) {
|
||||
for (int y = -1; y < 2; ++y) {
|
||||
for (int z = -1; z < 2; ++z) {
|
||||
for (int i = 0; i < howMany; ++i) {
|
||||
final FXSparkle fx = new FXSparkle(p.worldObj, blockX + 0.5, blockY + 0.5, blockZ + 0.5, 1.0f, 0, 6);
|
||||
final FXSparkle fx =
|
||||
new FXSparkle(p.worldObj, blockX + 0.5, blockY + 0.5, blockZ + 0.5, 1.0f, 0, 6);
|
||||
fx.motionX = (p.worldObj.rand.nextDouble() - 0.5) / 4.0;
|
||||
fx.motionY = (p.worldObj.rand.nextDouble() - 0.5) / 4.0;
|
||||
fx.motionZ = (p.worldObj.rand.nextDouble() - 0.5) / 4.0;
|
||||
fx.noClip = true;
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX)fx);
|
||||
FMLClientHandler.instance()
|
||||
.getClient()
|
||||
.effectRenderer
|
||||
.addEffect((EntityFX) fx);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
for (int j = 0; j < howMany; ++j) {
|
||||
final FXSparkle fx = new FXSparkle(p.worldObj, blockX + 0.5, blockY + 0.5, blockZ + 0.5, 1.0f, 0, 6);
|
||||
fx.motionX = (p.worldObj.rand.nextDouble() - 0.5) / 4.0;
|
||||
fx.motionY = (p.worldObj.rand.nextDouble() - 0.5) / 4.0;
|
||||
fx.motionZ = (p.worldObj.rand.nextDouble() - 0.5) / 4.0;
|
||||
fx.noClip = true;
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX)fx);
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX) fx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void smeltFX(final double blockX, final double blockY, final double blockZ, final World w, final int howMany, final boolean enlarged) {
|
||||
public void smeltFX(
|
||||
final double blockX,
|
||||
final double blockY,
|
||||
final double blockZ,
|
||||
final World w,
|
||||
final int howMany,
|
||||
final boolean enlarged) {
|
||||
if (enlarged) {
|
||||
for (int x = -1; x < 2; ++x) {
|
||||
for (int y = -1; y < 2; ++y) {
|
||||
for (int z = -1; z < 2; ++z) {
|
||||
for (int i = 0; i < howMany; ++i) {
|
||||
final EntityFlameFX fx = new EntityFlameFX(w, blockX + 0.5 + x, blockY + 0.5 + y, blockZ + 0.5 + z, (w.rand.nextDouble() - 0.5) * 0.25, (w.rand.nextDouble() - 0.5) * 0.25, (w.rand.nextDouble() - 0.5) * 0.25);
|
||||
final EntityFlameFX fx = new EntityFlameFX(
|
||||
w,
|
||||
blockX + 0.5 + x,
|
||||
blockY + 0.5 + y,
|
||||
blockZ + 0.5 + z,
|
||||
(w.rand.nextDouble() - 0.5) * 0.25,
|
||||
(w.rand.nextDouble() - 0.5) * 0.25,
|
||||
(w.rand.nextDouble() - 0.5) * 0.25);
|
||||
fx.noClip = true;
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX)fx);
|
||||
FMLClientHandler.instance()
|
||||
.getClient()
|
||||
.effectRenderer
|
||||
.addEffect((EntityFX) fx);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
for (int j = 0; j < howMany; ++j) {
|
||||
final EntityFlameFX fx = new EntityFlameFX(w, blockX + 0.5, blockY + 0.5, blockZ + 0.5, (w.rand.nextDouble() - 0.5) * 0.25, (w.rand.nextDouble() - 0.5) * 0.25, (w.rand.nextDouble() - 0.5) * 0.25);
|
||||
final EntityFlameFX fx = new EntityFlameFX(
|
||||
w,
|
||||
blockX + 0.5,
|
||||
blockY + 0.5,
|
||||
blockZ + 0.5,
|
||||
(w.rand.nextDouble() - 0.5) * 0.25,
|
||||
(w.rand.nextDouble() - 0.5) * 0.25,
|
||||
(w.rand.nextDouble() - 0.5) * 0.25);
|
||||
fx.noClip = true;
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX)fx);
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX) fx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void soulParticles(final int blockX, final int blockY, final int blockZ, final World world) {
|
||||
for (int i = 0; i < 10; ++i) {
|
||||
final EntitySpellParticleFX fx = new EntitySpellParticleFX(world, blockX + 0.5 + (world.rand.nextDouble() - 0.5) * 0.8, blockY + 0.8, blockZ + 0.5 + (world.rand.nextDouble() - 0.5) * 0.8, 0.0, world.rand.nextDouble() * 0.25, 0.0);
|
||||
final EntitySpellParticleFX fx = new EntitySpellParticleFX(
|
||||
world,
|
||||
blockX + 0.5 + (world.rand.nextDouble() - 0.5) * 0.8,
|
||||
blockY + 0.8,
|
||||
blockZ + 0.5 + (world.rand.nextDouble() - 0.5) * 0.8,
|
||||
0.0,
|
||||
world.rand.nextDouble() * 0.25,
|
||||
0.0);
|
||||
fx.noClip = true;
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX)fx);
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX) fx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void containmentFX(final double blockX, final double blockY, final double blockZ, final EntityPlayer p, final Entity ent, final int times) {
|
||||
public void containmentFX(
|
||||
final double blockX,
|
||||
final double blockY,
|
||||
final double blockZ,
|
||||
final EntityPlayer p,
|
||||
final Entity ent,
|
||||
final int times) {
|
||||
final double xSize = ent.boundingBox.maxX - ent.boundingBox.minX;
|
||||
final double ySize = ent.boundingBox.maxY - ent.boundingBox.minY;
|
||||
final double zSize = ent.boundingBox.maxZ - ent.boundingBox.minZ;
|
||||
@@ -419,52 +514,84 @@ public class ClientProxy extends CommonProxy
|
||||
final double z2 = zCenter + radius * Math.cos(phi);
|
||||
final double y2 = yCenter + radius * Math.sin(phi) * Math.sin(theta);
|
||||
final double x2 = xCenter + radius * Math.sin(phi) * Math.cos(theta);
|
||||
Thaumcraft.proxy.arcLightning(p.worldObj, x1, y1, z1, x2, y2, z2, p.worldObj.rand.nextFloat() * 0.1f, p.worldObj.rand.nextFloat() * 0.2f, p.worldObj.rand.nextFloat() * 0.8f, p.worldObj.rand.nextFloat());
|
||||
Thaumcraft.proxy.arcLightning(
|
||||
p.worldObj,
|
||||
x1,
|
||||
y1,
|
||||
z1,
|
||||
x2,
|
||||
y2,
|
||||
z2,
|
||||
p.worldObj.rand.nextFloat() * 0.1f,
|
||||
p.worldObj.rand.nextFloat() * 0.2f,
|
||||
p.worldObj.rand.nextFloat() * 0.8f,
|
||||
p.worldObj.rand.nextFloat());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void disintegrateExplodeFX(final World worldObj, final double posX, final double posY, final double posZ) {
|
||||
final FXBurst ef = new FXBurst(worldObj, posX, posY, posZ, 1.0f);
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX)ef);
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX) ef);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void illuminationFX(final World world, final int xCoord, final int yCoord, final int zCoord, final int md, final Color col) {
|
||||
public void illuminationFX(
|
||||
final World world, final int xCoord, final int yCoord, final int zCoord, final int md, final Color col) {
|
||||
if (world.rand.nextInt(9 - Thaumcraft.proxy.particleCount(2)) == 0) {
|
||||
final FXWisp ef = new FXWisp(world, (double)(xCoord + 0.55f), (double)(yCoord + 0.5f), (double)(zCoord + 0.55f), 0.5f, col.getRed() / 255.0f + 0.01f, col.getGreen() / 255.0f, col.getBlue() / 255.0f);
|
||||
final FXWisp ef = new FXWisp(
|
||||
world,
|
||||
(double) (xCoord + 0.55f),
|
||||
(double) (yCoord + 0.5f),
|
||||
(double) (zCoord + 0.55f),
|
||||
0.5f,
|
||||
col.getRed() / 255.0f + 0.01f,
|
||||
col.getGreen() / 255.0f,
|
||||
col.getBlue() / 255.0f);
|
||||
ef.setGravity(0.0f);
|
||||
ef.shrink = false;
|
||||
if (md == 0) {
|
||||
ef.blendmode = 0;
|
||||
}
|
||||
ParticleEngine.instance.addEffect(world, (EntityFX)ef);
|
||||
ParticleEngine.instance.addEffect(world, (EntityFX) ef);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void blockSplosionFX(final int x, final int y, final int z, final Block block, final int md) {
|
||||
Minecraft.getMinecraft().effectRenderer.addBlockDestroyEffects(x, y, z, block, md);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void alchemiteFX(final World worldObj, final double x, final double y, final double z) {
|
||||
final FXBurst ef = new FXBurst(worldObj, x, y, z, 10.0f);
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX)ef);
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX) ef);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean readyToRender() {
|
||||
return FMLClientHandler.instance().getClient().renderViewEntity != null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void addEffect(final Entity entity) {
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX)entity);
|
||||
FMLClientHandler.instance().getClient().effectRenderer.addEffect((EntityFX) entity);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void lightningBolt(final World worldObj, final double x, final double y, final double z, final int boltLength) {
|
||||
Thaumcraft.proxy.arcLightning(worldObj, x + worldObj.rand.nextFloat() - 0.5, y + boltLength + 0.5, z + worldObj.rand.nextFloat() - 0.5, x + worldObj.rand.nextFloat() - 0.5, y + 1.0, z + worldObj.rand.nextFloat() - 0.5, 0.8f, 1.0f, 1.0f, 0.1f);
|
||||
public void lightningBolt(
|
||||
final World worldObj, final double x, final double y, final double z, final int boltLength) {
|
||||
Thaumcraft.proxy.arcLightning(
|
||||
worldObj,
|
||||
x + worldObj.rand.nextFloat() - 0.5,
|
||||
y + boltLength + 0.5,
|
||||
z + worldObj.rand.nextFloat() - 0.5,
|
||||
x + worldObj.rand.nextFloat() - 0.5,
|
||||
y + 1.0,
|
||||
z + worldObj.rand.nextFloat() - 0.5,
|
||||
0.8f,
|
||||
1.0f,
|
||||
1.0f,
|
||||
0.1f);
|
||||
}
|
||||
}
|
||||
@@ -1,20 +1,19 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.fx;
|
||||
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.world.World;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
|
||||
public class FXContainment extends EntityFX
|
||||
{
|
||||
public class FXContainment extends EntityFX {
|
||||
public static final ResourceLocation portaltex;
|
||||
|
||||
|
||||
public FXContainment(final World par1World, final double par2, final double par4, final double par6) {
|
||||
super(par1World, par2, par4, par6, 0.0, 0.0, 0.0);
|
||||
final float particleRed = 0.6f;
|
||||
@@ -34,11 +33,18 @@ public class FXContainment extends EntityFX
|
||||
this.particleGravity = 0.0f;
|
||||
this.noClip = true;
|
||||
}
|
||||
|
||||
public void renderParticle(final Tessellator p_70539_1_, final float p_70539_2_, final float p_70539_3_, final float p_70539_4_, final float p_70539_5_, final float p_70539_6_, final float p_70539_7_) {
|
||||
|
||||
public void renderParticle(
|
||||
final Tessellator p_70539_1_,
|
||||
final float p_70539_2_,
|
||||
final float p_70539_3_,
|
||||
final float p_70539_4_,
|
||||
final float p_70539_5_,
|
||||
final float p_70539_6_,
|
||||
final float p_70539_7_) {
|
||||
final long nt = System.nanoTime();
|
||||
final long time = nt / 50000000L;
|
||||
final int frame = (int)time % 16;
|
||||
final int frame = (int) time % 16;
|
||||
final float f2 = frame / 16.0f;
|
||||
final float f3 = f2 + 0.0625f;
|
||||
final float f4 = 0.0f;
|
||||
@@ -49,23 +55,43 @@ public class FXContainment extends EntityFX
|
||||
GL11.glEnable(3042);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
final float f6 = 3.0f * this.particleScale;
|
||||
final float f7 = (float)(this.posX - FXContainment.interpPosX);
|
||||
final float f8 = (float)(this.posY - FXContainment.interpPosY);
|
||||
final float f9 = (float)(this.posZ - FXContainment.interpPosZ);
|
||||
final float f7 = (float) (this.posX - FXContainment.interpPosX);
|
||||
final float f8 = (float) (this.posY - FXContainment.interpPosY);
|
||||
final float f9 = (float) (this.posZ - FXContainment.interpPosZ);
|
||||
p_70539_1_.setColorRGBA_F(this.particleRed, this.particleGreen, this.particleBlue, 0.1f);
|
||||
p_70539_1_.addVertexWithUV((double)(f7 - p_70539_3_ * f6 - p_70539_6_ * f6), (double)(f8 - p_70539_4_ * f6), (double)(f9 - p_70539_5_ * f6 - p_70539_7_ * f6), (double)f2, (double)f4);
|
||||
p_70539_1_.addVertexWithUV((double)(f7 - p_70539_3_ * f6 + p_70539_6_ * f6), (double)(f8 + p_70539_4_ * f6), (double)(f9 - p_70539_5_ * f6 + p_70539_7_ * f6), (double)f3, (double)f4);
|
||||
p_70539_1_.addVertexWithUV((double)(f7 + p_70539_3_ * f6 + p_70539_6_ * f6), (double)(f8 + p_70539_4_ * f6), (double)(f9 + p_70539_5_ * f6 + p_70539_7_ * f6), (double)f3, (double)f5);
|
||||
p_70539_1_.addVertexWithUV((double)(f7 + p_70539_3_ * f6 - p_70539_6_ * f6), (double)(f8 - p_70539_4_ * f6), (double)(f9 + p_70539_5_ * f6 - p_70539_7_ * f6), (double)f2, (double)f5);
|
||||
p_70539_1_.addVertexWithUV(
|
||||
(double) (f7 - p_70539_3_ * f6 - p_70539_6_ * f6),
|
||||
(double) (f8 - p_70539_4_ * f6),
|
||||
(double) (f9 - p_70539_5_ * f6 - p_70539_7_ * f6),
|
||||
(double) f2,
|
||||
(double) f4);
|
||||
p_70539_1_.addVertexWithUV(
|
||||
(double) (f7 - p_70539_3_ * f6 + p_70539_6_ * f6),
|
||||
(double) (f8 + p_70539_4_ * f6),
|
||||
(double) (f9 - p_70539_5_ * f6 + p_70539_7_ * f6),
|
||||
(double) f3,
|
||||
(double) f4);
|
||||
p_70539_1_.addVertexWithUV(
|
||||
(double) (f7 + p_70539_3_ * f6 + p_70539_6_ * f6),
|
||||
(double) (f8 + p_70539_4_ * f6),
|
||||
(double) (f9 + p_70539_5_ * f6 + p_70539_7_ * f6),
|
||||
(double) f3,
|
||||
(double) f5);
|
||||
p_70539_1_.addVertexWithUV(
|
||||
(double) (f7 + p_70539_3_ * f6 - p_70539_6_ * f6),
|
||||
(double) (f8 - p_70539_4_ * f6),
|
||||
(double) (f9 + p_70539_5_ * f6 - p_70539_7_ * f6),
|
||||
(double) f2,
|
||||
(double) f5);
|
||||
GL11.glDisable(3042);
|
||||
GL11.glDepthMask(true);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
public int getFXLayer() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
public void onUpdate() {
|
||||
if (this.particleAge++ >= this.particleMaxAge) {
|
||||
this.setDead();
|
||||
@@ -73,7 +99,7 @@ public class FXContainment extends EntityFX
|
||||
}
|
||||
this.particleScale /= 1.15f;
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
portaltex = new ResourceLocation("thaumcraft", "textures/misc/eldritch_portal.png");
|
||||
}
|
||||
|
||||
@@ -1,23 +1,30 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.fx;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import java.awt.Color;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class FXEssentiaBubble extends EntityFX
|
||||
{
|
||||
public class FXEssentiaBubble extends EntityFX {
|
||||
private int count;
|
||||
private int delay;
|
||||
public int particle;
|
||||
|
||||
public FXEssentiaBubble(final World par1World, final double par2, final double par4, final double par6, final int count, final int color, final float scale, final int delay) {
|
||||
|
||||
public FXEssentiaBubble(
|
||||
final World par1World,
|
||||
final double par2,
|
||||
final double par4,
|
||||
final double par6,
|
||||
final int count,
|
||||
final int color,
|
||||
final float scale,
|
||||
final int delay) {
|
||||
super(par1World, par2, par4, par6, 0.0, 0.0, 0.0);
|
||||
this.count = 0;
|
||||
this.delay = 0;
|
||||
@@ -44,8 +51,15 @@ public class FXEssentiaBubble extends EntityFX
|
||||
this.particleGravity = 0.2f;
|
||||
this.noClip = false;
|
||||
}
|
||||
|
||||
public void renderParticle(final Tessellator tessellator, final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
|
||||
public void renderParticle(
|
||||
final Tessellator tessellator,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5) {
|
||||
if (this.delay > 0) {
|
||||
return;
|
||||
}
|
||||
@@ -57,22 +71,43 @@ public class FXEssentiaBubble extends EntityFX
|
||||
final int part = this.particle + this.particleAge % 16;
|
||||
final float s = MathHelper.sin((this.particleAge - this.count) / 5.0f) * 0.25f + 1.0f;
|
||||
final float var12 = 0.1f * this.particleScale * s;
|
||||
final float var13 = (float)(this.prevPosX + (this.posX - this.prevPosX) * f - FXEssentiaBubble.interpPosX);
|
||||
final float var14 = (float)(this.prevPosY + (this.posY - this.prevPosY) * f - FXEssentiaBubble.interpPosY);
|
||||
final float var15 = (float)(this.prevPosZ + (this.posZ - this.prevPosZ) * f - FXEssentiaBubble.interpPosZ);
|
||||
final float var13 = (float) (this.prevPosX + (this.posX - this.prevPosX) * f - FXEssentiaBubble.interpPosX);
|
||||
final float var14 = (float) (this.prevPosY + (this.posY - this.prevPosY) * f - FXEssentiaBubble.interpPosY);
|
||||
final float var15 = (float) (this.prevPosZ + (this.posZ - this.prevPosZ) * f - FXEssentiaBubble.interpPosZ);
|
||||
final float var16 = 1.0f;
|
||||
tessellator.setBrightness(240);
|
||||
tessellator.setColorRGBA_F(this.particleRed * var16, this.particleGreen * var16, this.particleBlue * var16, 0.5f);
|
||||
tessellator.addVertexWithUV((double)(var13 - f1 * var12 - f4 * var12), (double)(var14 - f2 * var12), (double)(var15 - f3 * var12 - f5 * var12), (double)t2, (double)t5);
|
||||
tessellator.addVertexWithUV((double)(var13 - f1 * var12 + f4 * var12), (double)(var14 + f2 * var12), (double)(var15 - f3 * var12 + f5 * var12), (double)t3, (double)t5);
|
||||
tessellator.addVertexWithUV((double)(var13 + f1 * var12 + f4 * var12), (double)(var14 + f2 * var12), (double)(var15 + f3 * var12 + f5 * var12), (double)t3, (double)t4);
|
||||
tessellator.addVertexWithUV((double)(var13 + f1 * var12 - f4 * var12), (double)(var14 - f2 * var12), (double)(var15 + f3 * var12 - f5 * var12), (double)t2, (double)t4);
|
||||
tessellator.setColorRGBA_F(
|
||||
this.particleRed * var16, this.particleGreen * var16, this.particleBlue * var16, 0.5f);
|
||||
tessellator.addVertexWithUV(
|
||||
(double) (var13 - f1 * var12 - f4 * var12),
|
||||
(double) (var14 - f2 * var12),
|
||||
(double) (var15 - f3 * var12 - f5 * var12),
|
||||
(double) t2,
|
||||
(double) t5);
|
||||
tessellator.addVertexWithUV(
|
||||
(double) (var13 - f1 * var12 + f4 * var12),
|
||||
(double) (var14 + f2 * var12),
|
||||
(double) (var15 - f3 * var12 + f5 * var12),
|
||||
(double) t3,
|
||||
(double) t5);
|
||||
tessellator.addVertexWithUV(
|
||||
(double) (var13 + f1 * var12 + f4 * var12),
|
||||
(double) (var14 + f2 * var12),
|
||||
(double) (var15 + f3 * var12 + f5 * var12),
|
||||
(double) t3,
|
||||
(double) t4);
|
||||
tessellator.addVertexWithUV(
|
||||
(double) (var13 + f1 * var12 - f4 * var12),
|
||||
(double) (var14 - f2 * var12),
|
||||
(double) (var15 + f3 * var12 - f5 * var12),
|
||||
(double) t2,
|
||||
(double) t4);
|
||||
}
|
||||
|
||||
|
||||
public int getFXLayer() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
public void onUpdate() {
|
||||
this.prevPosX = this.posX;
|
||||
this.prevPosY = this.posY;
|
||||
|
||||
@@ -1,25 +1,34 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.fx;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import java.awt.Color;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class FXEssentiaTrail extends EntityFX
|
||||
{
|
||||
public class FXEssentiaTrail extends EntityFX {
|
||||
private double targetX;
|
||||
private double targetY;
|
||||
private double targetZ;
|
||||
private int count;
|
||||
public int particle;
|
||||
|
||||
public FXEssentiaTrail(final World par1World, final double par2, final double par4, final double par6, final double tx, final double ty, final double tz, final int count, final int color, final float scale) {
|
||||
|
||||
public FXEssentiaTrail(
|
||||
final World par1World,
|
||||
final double par2,
|
||||
final double par4,
|
||||
final double par6,
|
||||
final double tx,
|
||||
final double ty,
|
||||
final double tz,
|
||||
final int count,
|
||||
final int color,
|
||||
final float scale) {
|
||||
super(par1World, par2, par4, par6, 0.0, 0.0, 0.0);
|
||||
this.count = 0;
|
||||
this.particle = 24;
|
||||
@@ -49,8 +58,15 @@ public class FXEssentiaTrail extends EntityFX
|
||||
this.particleGravity = 0.2f;
|
||||
this.noClip = false;
|
||||
}
|
||||
|
||||
public void renderParticle(final Tessellator tessellator, final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
|
||||
public void renderParticle(
|
||||
final Tessellator tessellator,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5) {
|
||||
final float t2 = 0.5625f;
|
||||
final float t3 = 0.625f;
|
||||
final float t4 = 0.0625f;
|
||||
@@ -59,22 +75,43 @@ public class FXEssentiaTrail extends EntityFX
|
||||
final int part = this.particle + this.particleAge % 16;
|
||||
final float s = MathHelper.sin((this.particleAge - this.count) / 5.0f) * 0.25f + 1.0f;
|
||||
final float var12 = 0.1f * this.particleScale * s;
|
||||
final float var13 = (float)(this.prevPosX + (this.posX - this.prevPosX) * f - FXEssentiaTrail.interpPosX);
|
||||
final float var14 = (float)(this.prevPosY + (this.posY - this.prevPosY) * f - FXEssentiaTrail.interpPosY);
|
||||
final float var15 = (float)(this.prevPosZ + (this.posZ - this.prevPosZ) * f - FXEssentiaTrail.interpPosZ);
|
||||
final float var13 = (float) (this.prevPosX + (this.posX - this.prevPosX) * f - FXEssentiaTrail.interpPosX);
|
||||
final float var14 = (float) (this.prevPosY + (this.posY - this.prevPosY) * f - FXEssentiaTrail.interpPosY);
|
||||
final float var15 = (float) (this.prevPosZ + (this.posZ - this.prevPosZ) * f - FXEssentiaTrail.interpPosZ);
|
||||
final float var16 = 1.0f;
|
||||
tessellator.setBrightness(240);
|
||||
tessellator.setColorRGBA_F(this.particleRed * var16, this.particleGreen * var16, this.particleBlue * var16, 0.5f);
|
||||
tessellator.addVertexWithUV((double)(var13 - f1 * var12 - f4 * var12), (double)(var14 - f2 * var12), (double)(var15 - f3 * var12 - f5 * var12), (double)t2, (double)t5);
|
||||
tessellator.addVertexWithUV((double)(var13 - f1 * var12 + f4 * var12), (double)(var14 + f2 * var12), (double)(var15 - f3 * var12 + f5 * var12), (double)t3, (double)t5);
|
||||
tessellator.addVertexWithUV((double)(var13 + f1 * var12 + f4 * var12), (double)(var14 + f2 * var12), (double)(var15 + f3 * var12 + f5 * var12), (double)t3, (double)t4);
|
||||
tessellator.addVertexWithUV((double)(var13 + f1 * var12 - f4 * var12), (double)(var14 - f2 * var12), (double)(var15 + f3 * var12 - f5 * var12), (double)t2, (double)t4);
|
||||
tessellator.setColorRGBA_F(
|
||||
this.particleRed * var16, this.particleGreen * var16, this.particleBlue * var16, 0.5f);
|
||||
tessellator.addVertexWithUV(
|
||||
(double) (var13 - f1 * var12 - f4 * var12),
|
||||
(double) (var14 - f2 * var12),
|
||||
(double) (var15 - f3 * var12 - f5 * var12),
|
||||
(double) t2,
|
||||
(double) t5);
|
||||
tessellator.addVertexWithUV(
|
||||
(double) (var13 - f1 * var12 + f4 * var12),
|
||||
(double) (var14 + f2 * var12),
|
||||
(double) (var15 - f3 * var12 + f5 * var12),
|
||||
(double) t3,
|
||||
(double) t5);
|
||||
tessellator.addVertexWithUV(
|
||||
(double) (var13 + f1 * var12 + f4 * var12),
|
||||
(double) (var14 + f2 * var12),
|
||||
(double) (var15 + f3 * var12 + f5 * var12),
|
||||
(double) t3,
|
||||
(double) t4);
|
||||
tessellator.addVertexWithUV(
|
||||
(double) (var13 + f1 * var12 - f4 * var12),
|
||||
(double) (var14 - f2 * var12),
|
||||
(double) (var15 + f3 * var12 - f5 * var12),
|
||||
(double) t2,
|
||||
(double) t4);
|
||||
}
|
||||
|
||||
|
||||
public int getFXLayer() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
public void onUpdate() {
|
||||
this.prevPosX = this.posX;
|
||||
this.prevPosY = this.posY;
|
||||
@@ -91,9 +128,9 @@ public class FXEssentiaTrail extends EntityFX
|
||||
this.motionX *= 0.985;
|
||||
this.motionY *= 0.985;
|
||||
this.motionZ *= 0.985;
|
||||
this.motionX = MathHelper.clamp_float((float)this.motionX, -0.05f, 0.05f);
|
||||
this.motionY = MathHelper.clamp_float((float)this.motionY, -0.05f, 0.05f);
|
||||
this.motionZ = MathHelper.clamp_float((float)this.motionZ, -0.05f, 0.05f);
|
||||
this.motionX = MathHelper.clamp_float((float) this.motionX, -0.05f, 0.05f);
|
||||
this.motionY = MathHelper.clamp_float((float) this.motionY, -0.05f, 0.05f);
|
||||
this.motionZ = MathHelper.clamp_float((float) this.motionZ, -0.05f, 0.05f);
|
||||
double dx = this.targetX - this.posX;
|
||||
double dy = this.targetY - this.posY;
|
||||
double dz = this.targetZ - this.posZ;
|
||||
@@ -113,11 +150,11 @@ public class FXEssentiaTrail extends EntityFX
|
||||
this.motionY += dy * (d13 / Math.min(1.0, d14));
|
||||
this.motionZ += dz * (d13 / Math.min(1.0, d14));
|
||||
}
|
||||
|
||||
|
||||
public void setGravity(final float value) {
|
||||
this.particleGravity = value;
|
||||
}
|
||||
|
||||
|
||||
protected boolean pushOutOfBlocks(final double par1, final double par3, final double par5) {
|
||||
final int var7 = MathHelper.floor_double(par1);
|
||||
final int var8 = MathHelper.floor_double(par3);
|
||||
@@ -125,7 +162,9 @@ public class FXEssentiaTrail extends EntityFX
|
||||
final double var10 = par1 - var7;
|
||||
final double var11 = par3 - var8;
|
||||
final double var12 = par5 - var9;
|
||||
if (!this.worldObj.isAirBlock(var7, var8, var9) && this.worldObj.isBlockNormalCubeDefault(var7, var8, var9, true) && !this.worldObj.isAnyLiquid(this.boundingBox)) {
|
||||
if (!this.worldObj.isAirBlock(var7, var8, var9)
|
||||
&& this.worldObj.isBlockNormalCubeDefault(var7, var8, var9, true)
|
||||
&& !this.worldObj.isAnyLiquid(this.boundingBox)) {
|
||||
final boolean var13 = !this.worldObj.isBlockNormalCubeDefault(var7 - 1, var8, var9, true);
|
||||
final boolean var14 = !this.worldObj.isBlockNormalCubeDefault(var7 + 1, var8, var9, true);
|
||||
final boolean var15 = !this.worldObj.isBlockNormalCubeDefault(var7, var8 - 1, var9, true);
|
||||
|
||||
@@ -1,27 +1,26 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.fx;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraftforge.client.model.AdvancedModelLoader;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.IModelCustom;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.client.model.AdvancedModelLoader;
|
||||
import net.minecraftforge.client.model.IModelCustom;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class FXSonic extends EntityFX
|
||||
{
|
||||
public class FXSonic extends EntityFX {
|
||||
float yaw;
|
||||
float pitch;
|
||||
public static IModelCustom model;
|
||||
private static final ResourceLocation MODEL;
|
||||
|
||||
|
||||
public FXSonic(final World world, final double d, final double d1, final double d2, final int age, final int dir) {
|
||||
super(world, d, d1, d2, 0.0, 0.0, 0.0);
|
||||
this.yaw = 0.0f;
|
||||
@@ -69,8 +68,15 @@ public class FXSonic extends EntityFX
|
||||
this.prevPosY = this.posY;
|
||||
this.prevPosZ = this.posZ;
|
||||
}
|
||||
|
||||
public void renderParticle(final Tessellator tessellator, final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
|
||||
public void renderParticle(
|
||||
final Tessellator tessellator,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5) {
|
||||
tessellator.draw();
|
||||
GL11.glPushMatrix();
|
||||
GL11.glDisable(2884);
|
||||
@@ -80,12 +86,12 @@ public class FXSonic extends EntityFX
|
||||
this.model = AdvancedModelLoader.loadModel(FXSonic.MODEL);
|
||||
}
|
||||
final float fade = (this.particleAge + f) / this.particleMaxAge;
|
||||
final float xx = (float)(this.prevPosX + (this.posX - this.prevPosX) * f - FXSonic.interpPosX);
|
||||
final float yy = (float)(this.prevPosY + (this.posY - this.prevPosY) * f - FXSonic.interpPosY);
|
||||
final float zz = (float)(this.prevPosZ + (this.posZ - this.prevPosZ) * f - FXSonic.interpPosZ);
|
||||
GL11.glTranslated((double)xx, (double)yy, (double)zz);
|
||||
final float xx = (float) (this.prevPosX + (this.posX - this.prevPosX) * f - FXSonic.interpPosX);
|
||||
final float yy = (float) (this.prevPosY + (this.posY - this.prevPosY) * f - FXSonic.interpPosY);
|
||||
final float zz = (float) (this.prevPosZ + (this.posZ - this.prevPosZ) * f - FXSonic.interpPosZ);
|
||||
GL11.glTranslated((double) xx, (double) yy, (double) zz);
|
||||
float b = 1.0f;
|
||||
final int frame = Math.min(15, (int)(14.0f * fade) + 1);
|
||||
final int frame = Math.min(15, (int) (14.0f * fade) + 1);
|
||||
UtilsFX.bindTexture("textures/models/ripple" + frame + ".png");
|
||||
b = 0.5f;
|
||||
final int i = 220;
|
||||
@@ -103,7 +109,7 @@ public class FXSonic extends EntityFX
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(UtilsFX.getParticleTexture());
|
||||
tessellator.startDrawingQuads();
|
||||
}
|
||||
|
||||
|
||||
public void onUpdate() {
|
||||
this.prevPosX = this.posX;
|
||||
this.prevPosY = this.posY;
|
||||
@@ -112,7 +118,7 @@ public class FXSonic extends EntityFX
|
||||
this.setDead();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
MODEL = new ResourceLocation("thaumcraft", "textures/models/hemis.obj");
|
||||
}
|
||||
|
||||
@@ -1,31 +1,30 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.gui;
|
||||
|
||||
import com.kentington.thaumichorizons.common.container.ContainerBloodInfuser;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileBloodInfuser;
|
||||
import java.awt.Color;
|
||||
import java.util.HashMap;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import thaumcraft.client.fx.ParticleEngine;
|
||||
import thaumcraft.common.config.Config;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
import net.minecraft.potion.Potion;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
import net.minecraft.inventory.Container;
|
||||
import com.kentington.thaumichorizons.common.container.ContainerBloodInfuser;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
import java.util.HashMap;
|
||||
import java.awt.Color;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileBloodInfuser;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import thaumcraft.client.fx.ParticleEngine;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
import thaumcraft.common.config.Config;
|
||||
|
||||
public class GuiBloodInfuser extends GuiContainer
|
||||
{
|
||||
public class GuiBloodInfuser extends GuiContainer {
|
||||
TileBloodInfuser tile;
|
||||
AspectList aspectsKnown;
|
||||
Aspect[] aspectsSelected;
|
||||
@@ -42,9 +41,9 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
Aspect mousedOver;
|
||||
HashMap<Integer, Integer> mousedEffects;
|
||||
NBTTagList cachedEffects;
|
||||
|
||||
|
||||
public GuiBloodInfuser(final EntityPlayer p, final TileBloodInfuser tile) {
|
||||
super((Container)new ContainerBloodInfuser(p, tile));
|
||||
super((Container) new ContainerBloodInfuser(p, tile));
|
||||
this.aspectsSelected = new Aspect[8];
|
||||
this.numSelected = 0;
|
||||
this.offset = 0;
|
||||
@@ -69,8 +68,9 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
this.ySize = 219;
|
||||
this.cachedEffects = tile.getCurrentEffects();
|
||||
}
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(final float p_146976_1_, final int p_146976_2_, final int p_146976_3_) {
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(
|
||||
final float p_146976_1_, final int p_146976_2_, final int p_146976_3_) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glEnable(3042);
|
||||
UtilsFX.bindTexture(new ResourceLocation("thaumichorizons", "textures/gui/guibloodinfuser.png"));
|
||||
@@ -81,7 +81,7 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
GL11.glDisable(3042);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
protected void drawGuiContainerForegroundLayer(final int par1, final int par2) {
|
||||
this.drawEssentiaSelected();
|
||||
this.drawAspectList();
|
||||
@@ -91,20 +91,17 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
if (this.canScrollLeft()) {
|
||||
this.drawTexturedModalRect(111, 75, 177, 136, 24, 8);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.drawTexturedModalRect(111, 75, 177, 144, 24, 8);
|
||||
}
|
||||
if (this.canScrollRight()) {
|
||||
this.drawTexturedModalRect(135, 75, 201, 136, 24, 8);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.drawTexturedModalRect(135, 75, 201, 144, 24, 8);
|
||||
}
|
||||
if (this.tile.mode == 1) {
|
||||
this.drawTexturedModalRect(38, 57, 178, 130, 6, 6);
|
||||
}
|
||||
else if (this.tile.mode == 2) {
|
||||
} else if (this.tile.mode == 2) {
|
||||
this.drawTexturedModalRect(38, 70, 178, 130, 6, 6);
|
||||
}
|
||||
final int gx = (this.width - this.xSize) / 2;
|
||||
@@ -123,8 +120,7 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
this.mousedOver = asp;
|
||||
this.mousedEffects = this.tile.getEffects(this.mousedOver);
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
x = par1 - (gx + 110);
|
||||
y = par2 - (gy + 74);
|
||||
if (x >= 0 && y >= 0 && x <= 49 && y <= 9) {
|
||||
@@ -136,8 +132,7 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
this.bottomOut -= 2;
|
||||
}
|
||||
this.drawTexturedModalRect(171, 69, 215 - this.bottomOut, 194, this.bottomOut, 59);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (this.bottomOut < 38) {
|
||||
this.bottomOut += 2;
|
||||
}
|
||||
@@ -146,13 +141,15 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
int k = 0;
|
||||
if (this.bottomOut == 38 && this.mousedEffects != null) {
|
||||
for (final Integer key : this.mousedEffects.keySet()) {
|
||||
if (key >=0) {
|
||||
if (key >= 0) {
|
||||
final Potion potion = Potion.potionTypes[key];
|
||||
if (potion.hasStatusIcon()) {
|
||||
this.mc.getTextureManager().bindTexture(GuiBloodInfuser.field_147001_a);
|
||||
final int l = potion.getStatusIconIndex();
|
||||
this.drawTexturedModalRect(j * 18 + 171, k * 18 + 72, 0 + l % 8 * 18, 198 + l / 8 * 18, 18, 18);
|
||||
this.fontRendererObj.drawString("" + this.mousedEffects.get(key), j * 18 + 171, k * 18 + 72, Color.GRAY.getRGB());
|
||||
this.drawTexturedModalRect(
|
||||
j * 18 + 171, k * 18 + 72, 0 + l % 8 * 18, 198 + l / 8 * 18, 18, 18);
|
||||
this.fontRendererObj.drawString(
|
||||
"" + this.mousedEffects.get(key), j * 18 + 171, k * 18 + 72, Color.GRAY.getRGB());
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
if (j == 0) {
|
||||
j = 1;
|
||||
@@ -161,7 +158,9 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
++k;
|
||||
}
|
||||
} else {
|
||||
this.mc.getTextureManager().bindTexture(new ResourceLocation("thaumichorizons", "textures/misc/potions.png"));
|
||||
this.mc
|
||||
.getTextureManager()
|
||||
.bindTexture(new ResourceLocation("thaumichorizons", "textures/misc/potions.png"));
|
||||
int ecks2 = 0;
|
||||
final int why2 = 216;
|
||||
if (potion.getId() == 23) {
|
||||
@@ -172,7 +171,8 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
ecks2 = 18;
|
||||
}
|
||||
this.drawTexturedModalRect(j * 18 + 171, k * 18 + 72, ecks2, why2, 18, 18);
|
||||
this.fontRendererObj.drawString("" + this.mousedEffects.get(key), j * 18 + 171, k * 18 + 72, Color.GRAY.getRGB());
|
||||
this.fontRendererObj.drawString(
|
||||
"" + this.mousedEffects.get(key), j * 18 + 171, k * 18 + 72, Color.GRAY.getRGB());
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
if (j == 0) {
|
||||
j = 1;
|
||||
@@ -196,27 +196,28 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
if (this.topOut == 38) {
|
||||
for (int index = 0; index < this.cachedEffects.tagCount(); ++index) {
|
||||
final Byte id = this.cachedEffects.getCompoundTagAt(index).getByte("Id");
|
||||
if (id < 0 || id >= Potion.potionTypes.length)
|
||||
continue;
|
||||
if (id < 0 || id >= Potion.potionTypes.length) continue;
|
||||
final Potion potion = Potion.potionTypes[id];
|
||||
if (potion != null) {
|
||||
this.mc.getTextureManager().bindTexture(GuiBloodInfuser.field_147001_a);
|
||||
final int l = potion.getStatusIconIndex();
|
||||
this.drawTexturedModalRect(j * 18 + 171, k * 18 + 28, 0 + l % 8 * 18, 198 + l / 8 * 18, 18, 18);
|
||||
this.fontRendererObj.drawString("" + (this.cachedEffects.getCompoundTagAt(index).getByte("Amplifier") + 1), j * 18 + 171, k * 18 + 28, Color.GRAY.getRGB());
|
||||
this.fontRendererObj.drawString(
|
||||
"" + (this.cachedEffects.getCompoundTagAt(index).getByte("Amplifier") + 1),
|
||||
j * 18 + 171,
|
||||
k * 18 + 28,
|
||||
Color.GRAY.getRGB());
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
if (j == 0) {
|
||||
j = 1;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
j = 0;
|
||||
++k;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (this.topOut > 2) {
|
||||
this.topOut -= 2;
|
||||
}
|
||||
@@ -230,7 +231,7 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
GL11.glDisable(3042);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
protected void mouseClicked(final int par1, final int par2, final int par3) {
|
||||
super.mouseClicked(par1, par2, par3);
|
||||
final int gx = (this.width - this.xSize) / 2;
|
||||
@@ -243,8 +244,7 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
if (this.tile.mode == 1) {
|
||||
this.tile.mode = 0;
|
||||
this.mc.playerController.sendEnchantPacket(this.inventorySlots.windowId, 0);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.tile.mode = 1;
|
||||
this.mc.playerController.sendEnchantPacket(this.inventorySlots.windowId, 1);
|
||||
}
|
||||
@@ -254,8 +254,7 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
if (this.tile.mode == 2) {
|
||||
this.tile.mode = 0;
|
||||
this.mc.playerController.sendEnchantPacket(this.inventorySlots.windowId, 0);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.tile.mode = 2;
|
||||
this.mc.playerController.sendEnchantPacket(this.inventorySlots.windowId, 2);
|
||||
}
|
||||
@@ -272,7 +271,12 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
for (int i = 0; i < 16; ++i) {
|
||||
x = par1 - (gx + 14 + 18 * (i / 2));
|
||||
y = par2 - (gy + 83 + ((i % 2 == 0) ? 18 : 0));
|
||||
if (this.offset + i < this.aspectsKnown.getAspectsSorted().length && this.numSelected < 8 && x >= 0 && x <= 16 && y >= 0 && y <= 16) {
|
||||
if (this.offset + i < this.aspectsKnown.getAspectsSorted().length
|
||||
&& this.numSelected < 8
|
||||
&& x >= 0
|
||||
&& x <= 16
|
||||
&& y >= 0
|
||||
&& y <= 16) {
|
||||
this.aspectsSelected[this.numSelected] = this.aspectsKnown.getAspectsSorted()[this.offset + i];
|
||||
++this.numSelected;
|
||||
this.tile.aspectsSelected.add(this.aspectsKnown.getAspectsSorted()[this.offset + i], 1);
|
||||
@@ -281,20 +285,41 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
this.flashColor = new Color(this.aspectsKnown.getAspectsSorted()[this.offset + i].getColor());
|
||||
this.flashX = par1 - gx - 8;
|
||||
this.flashY = par2 - gy - 8;
|
||||
this.mc.renderViewEntity.worldObj.playSound(this.mc.renderViewEntity.posX, this.mc.renderViewEntity.posY, this.mc.renderViewEntity.posZ, "thaumcraft:hhoff", 0.2f, 1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f, false);
|
||||
this.mc.renderViewEntity.worldObj.playSound(
|
||||
this.mc.renderViewEntity.posX,
|
||||
this.mc.renderViewEntity.posY,
|
||||
this.mc.renderViewEntity.posZ,
|
||||
"thaumcraft:hhoff",
|
||||
0.2f,
|
||||
1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f,
|
||||
false);
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < 8; ++i) {
|
||||
x = par1 - (gx + 54 + ((i % 2 == 1) ? 17 : 0));
|
||||
y = par2 - (gy + 12 + 17 * (i / 2));
|
||||
if (this.numSelected > i && x >= 0 && x <= 16 && y >= 0 && y <= 16 && Thaumcraft.proxy.playerKnowledge.hasDiscoveredAspect(this.mc.thePlayer.getCommandSenderName(), this.aspectsSelected[i])) {
|
||||
if (this.numSelected > i
|
||||
&& x >= 0
|
||||
&& x <= 16
|
||||
&& y >= 0
|
||||
&& y <= 16
|
||||
&& Thaumcraft.proxy.playerKnowledge.hasDiscoveredAspect(
|
||||
this.mc.thePlayer.getCommandSenderName(), this.aspectsSelected[i])) {
|
||||
this.tile.aspectsSelected.remove(this.aspectsSelected[i], 1);
|
||||
this.mc.playerController.sendEnchantPacket(this.inventorySlots.windowId, 3 + this.findInList(this.aspectsSelected[i]));
|
||||
this.mc.playerController.sendEnchantPacket(
|
||||
this.inventorySlots.windowId, 3 + this.findInList(this.aspectsSelected[i]));
|
||||
this.flashTimer = 8;
|
||||
this.flashColor = new Color(this.aspectsSelected[i].getColor());
|
||||
this.flashX = par1 - gx - 8;
|
||||
this.flashY = par2 - gy - 8;
|
||||
this.mc.renderViewEntity.worldObj.playSound(this.mc.renderViewEntity.posX, this.mc.renderViewEntity.posY, this.mc.renderViewEntity.posZ, "thaumcraft:hhoff", 0.2f, 1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f, false);
|
||||
this.mc.renderViewEntity.worldObj.playSound(
|
||||
this.mc.renderViewEntity.posX,
|
||||
this.mc.renderViewEntity.posY,
|
||||
this.mc.renderViewEntity.posZ,
|
||||
"thaumcraft:hhoff",
|
||||
0.2f,
|
||||
1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f,
|
||||
false);
|
||||
for (int j = i; j < 7; ++j) {
|
||||
this.aspectsSelected[j] = this.aspectsSelected[j + 1];
|
||||
}
|
||||
@@ -304,7 +329,7 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
}
|
||||
this.cachedEffects = this.tile.getCurrentEffects();
|
||||
}
|
||||
|
||||
|
||||
private void drawFlash() {
|
||||
float red = this.flashColor.getRed() / 255.0f;
|
||||
float green = this.flashColor.getGreen() / 255.0f;
|
||||
@@ -317,7 +342,7 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
GL11.glPushMatrix();
|
||||
UtilsFX.bindTexture(ParticleEngine.particleTexture);
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
GL11.glTranslated((double)this.flashX, (double)this.flashY, 0.0);
|
||||
GL11.glTranslated((double) this.flashX, (double) this.flashY, 0.0);
|
||||
final Tessellator tessellator = Tessellator.instance;
|
||||
final int part = this.flashTimer;
|
||||
final float var8 = 0.5f + part / 8.0f;
|
||||
@@ -327,49 +352,66 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setBrightness(240);
|
||||
tessellator.setColorRGBA_F(red, green, blue, 1.0f);
|
||||
tessellator.addVertexWithUV(0.0, 16.0, (double)this.zLevel, (double)var9, (double)var11);
|
||||
tessellator.addVertexWithUV(16.0, 16.0, (double)this.zLevel, (double)var9, (double)var10);
|
||||
tessellator.addVertexWithUV(16.0, 0.0, (double)this.zLevel, (double)var8, (double)var10);
|
||||
tessellator.addVertexWithUV(0.0, 0.0, (double)this.zLevel, (double)var8, (double)var11);
|
||||
tessellator.addVertexWithUV(0.0, 16.0, (double) this.zLevel, (double) var9, (double) var11);
|
||||
tessellator.addVertexWithUV(16.0, 16.0, (double) this.zLevel, (double) var9, (double) var10);
|
||||
tessellator.addVertexWithUV(16.0, 0.0, (double) this.zLevel, (double) var8, (double) var10);
|
||||
tessellator.addVertexWithUV(0.0, 0.0, (double) this.zLevel, (double) var8, (double) var11);
|
||||
tessellator.draw();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
boolean canScrollLeft() {
|
||||
return this.offset > 0;
|
||||
}
|
||||
|
||||
|
||||
boolean canScrollRight() {
|
||||
return this.offset + 16 < this.aspectsKnown.size();
|
||||
}
|
||||
|
||||
|
||||
void drawAspectList() {
|
||||
final Aspect[] known = this.aspectsKnown.getAspectsSorted();
|
||||
for (int i = 0; i < 16 && this.offset + i < known.length; ++i) {
|
||||
final Aspect asp = known[this.offset + i];
|
||||
UtilsFX.drawTag(14 + 18 * (i / 2), 83 + ((i % 2 == 0) ? 18 : 0), asp, 0.0f, 0, (double)this.zLevel, 771, 1.0f, false);
|
||||
UtilsFX.drawTag(
|
||||
14 + 18 * (i / 2),
|
||||
83 + ((i % 2 == 0) ? 18 : 0),
|
||||
asp,
|
||||
0.0f,
|
||||
0,
|
||||
(double) this.zLevel,
|
||||
771,
|
||||
1.0f,
|
||||
false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void drawEssentiaSelected() {
|
||||
final AspectList alreadyUsed = new AspectList();
|
||||
for (int i = 0; i < this.numSelected; ++i) {
|
||||
final Aspect asp = this.aspectsSelected[i];
|
||||
alreadyUsed.add(asp, 1);
|
||||
if (Thaumcraft.proxy.playerKnowledge.hasDiscoveredAspect(this.mc.thePlayer.getCommandSenderName(), this.aspectsSelected[i])) {
|
||||
UtilsFX.drawTag(54 + ((i % 2 == 1) ? 17 : 0), 12 + 17 * (i / 2), asp, 0.0f, 0, (double)this.zLevel, 771, 1.0f, this.tile.aspectsAcquired.getAmount(asp) < alreadyUsed.getAmount(asp));
|
||||
}
|
||||
else if (this.tile.aspectsAcquired.getAmount(asp) < alreadyUsed.getAmount(asp)) {
|
||||
if (Thaumcraft.proxy.playerKnowledge.hasDiscoveredAspect(
|
||||
this.mc.thePlayer.getCommandSenderName(), this.aspectsSelected[i])) {
|
||||
UtilsFX.drawTag(
|
||||
54 + ((i % 2 == 1) ? 17 : 0),
|
||||
12 + 17 * (i / 2),
|
||||
asp,
|
||||
0.0f,
|
||||
0,
|
||||
(double) this.zLevel,
|
||||
771,
|
||||
1.0f,
|
||||
this.tile.aspectsAcquired.getAmount(asp) < alreadyUsed.getAmount(asp));
|
||||
} else if (this.tile.aspectsAcquired.getAmount(asp) < alreadyUsed.getAmount(asp)) {
|
||||
final Color col = Color.DARK_GRAY;
|
||||
this.drawQuestionMark(54 + ((i % 2 == 1) ? 17 : 0), 12 + 17 * (i / 2), col);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
final Color col = new Color(asp.getColor());
|
||||
this.drawQuestionMark(54 + ((i % 2 == 1) ? 17 : 0), 12 + 17 * (i / 2), col);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void drawQuestionMark(final int x, final int y, final Color color) {
|
||||
final Minecraft mc = Minecraft.getMinecraft();
|
||||
GL11.glPushMatrix();
|
||||
@@ -383,10 +425,10 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
final Tessellator var9 = Tessellator.instance;
|
||||
var9.startDrawingQuads();
|
||||
var9.setColorRGBA_F(color.getRed() / 255.0f, color.getGreen() / 255.0f, color.getBlue() / 255.0f, 0.8f);
|
||||
var9.addVertexWithUV(x + 0.0, y + 16.0, (double)this.zLevel, 0.0, 1.0);
|
||||
var9.addVertexWithUV(x + 16.0, y + 16.0, (double)this.zLevel, 1.0, 1.0);
|
||||
var9.addVertexWithUV(x + 16.0, y + 0.0, (double)this.zLevel, 1.0, 0.0);
|
||||
var9.addVertexWithUV(x + 0.0, y + 0.0, (double)this.zLevel, 0.0, 0.0);
|
||||
var9.addVertexWithUV(x + 0.0, y + 16.0, (double) this.zLevel, 0.0, 1.0);
|
||||
var9.addVertexWithUV(x + 16.0, y + 16.0, (double) this.zLevel, 1.0, 1.0);
|
||||
var9.addVertexWithUV(x + 16.0, y + 0.0, (double) this.zLevel, 1.0, 0.0);
|
||||
var9.addVertexWithUV(x + 0.0, y + 0.0, (double) this.zLevel, 0.0, 0.0);
|
||||
var9.draw();
|
||||
GL11.glPopMatrix();
|
||||
GL11.glDisable(3042);
|
||||
@@ -395,7 +437,7 @@ public class GuiBloodInfuser extends GuiContainer
|
||||
GL11.glEnable(2896);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
int findInList(final Aspect asp) {
|
||||
final Aspect[] aspects = this.aspectsKnown.getAspectsSorted();
|
||||
for (int i = 0; i < aspects.length; ++i) {
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.gui;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.inventory.Container;
|
||||
import com.kentington.thaumichorizons.common.container.ContainerCase;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.world.World;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class GuiCase extends GuiContainer
|
||||
{
|
||||
public class GuiCase extends GuiContainer {
|
||||
private int blockSlot;
|
||||
|
||||
public GuiCase(final InventoryPlayer par1InventoryPlayer, final World world, final int x, final int y, final int z) {
|
||||
super((Container)new ContainerCase(par1InventoryPlayer, world, x, y, z));
|
||||
|
||||
public GuiCase(
|
||||
final InventoryPlayer par1InventoryPlayer, final World world, final int x, final int y, final int z) {
|
||||
super((Container) new ContainerCase(par1InventoryPlayer, world, x, y, z));
|
||||
this.blockSlot = par1InventoryPlayer.currentItem;
|
||||
this.xSize = 175;
|
||||
this.ySize = 232;
|
||||
}
|
||||
|
||||
|
||||
protected void drawGuiContainerForegroundLayer(final int par1, final int par2) {
|
||||
UtilsFX.bindTexture("textures/gui/gui_focuspouch.png");
|
||||
final float t = this.zLevel;
|
||||
@@ -35,11 +35,11 @@ public class GuiCase extends GuiContainer
|
||||
GL11.glDisable(3042);
|
||||
this.zLevel = t;
|
||||
}
|
||||
|
||||
|
||||
protected boolean checkHotbarKeys(final int par1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(final float par1, final int par2, final int par3) {
|
||||
if (this.mc.thePlayer.inventory.mainInventory[this.blockSlot] == null) {
|
||||
this.mc.thePlayer.closeScreen();
|
||||
|
||||
@@ -1,47 +1,45 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.gui;
|
||||
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import thaumcraft.common.lib.crafting.ThaumcraftCraftingManager;
|
||||
import thaumcraft.common.items.wands.ItemWandCasting;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.inventory.Container;
|
||||
import com.kentington.thaumichorizons.common.container.ContainerFingers;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import java.util.ArrayList;
|
||||
import com.kentington.thaumichorizons.common.container.InventoryFingers;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import java.util.ArrayList;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.common.items.wands.ItemWandCasting;
|
||||
import thaumcraft.common.lib.crafting.ThaumcraftCraftingManager;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class GuiFingers extends GuiContainer
|
||||
{
|
||||
public class GuiFingers extends GuiContainer {
|
||||
private InventoryPlayer ip;
|
||||
private InventoryFingers tileEntity;
|
||||
private int[][] aspectLocs;
|
||||
ArrayList<Aspect> primals;
|
||||
|
||||
|
||||
public GuiFingers(final InventoryPlayer par1InventoryPlayer) {
|
||||
super((Container)new ContainerFingers(par1InventoryPlayer));
|
||||
this.aspectLocs = new int[][] { { 72, 21 }, { 24, 43 }, { 24, 102 }, { 72, 124 }, { 120, 102 }, { 120, 43 } };
|
||||
super((Container) new ContainerFingers(par1InventoryPlayer));
|
||||
this.aspectLocs = new int[][] {{72, 21}, {24, 43}, {24, 102}, {72, 124}, {120, 102}, {120, 43}};
|
||||
this.primals = Aspect.getPrimalAspects();
|
||||
this.tileEntity = ((ContainerFingers)this.inventorySlots).tileEntity;
|
||||
this.tileEntity = ((ContainerFingers) this.inventorySlots).tileEntity;
|
||||
this.ip = par1InventoryPlayer;
|
||||
this.ySize = 234;
|
||||
this.xSize = 190;
|
||||
}
|
||||
|
||||
protected void drawGuiContainerForegroundLayer() {
|
||||
}
|
||||
|
||||
|
||||
protected void drawGuiContainerForegroundLayer() {}
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(final float par1, final int par2, final int par3) {
|
||||
UtilsFX.bindTexture("thaumichorizons", "textures/gui/guifingers.png");
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
@@ -51,31 +49,46 @@ public class GuiFingers extends GuiContainer
|
||||
this.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize);
|
||||
GL11.glDisable(3042);
|
||||
ItemWandCasting wand = null;
|
||||
if (this.tileEntity.getStackInSlot(10) != null && this.tileEntity.getStackInSlot(10).getItem() instanceof ItemWandCasting) {
|
||||
wand = (ItemWandCasting)this.tileEntity.getStackInSlot(10).getItem();
|
||||
if (this.tileEntity.getStackInSlot(10) != null
|
||||
&& this.tileEntity.getStackInSlot(10).getItem() instanceof ItemWandCasting) {
|
||||
wand = (ItemWandCasting) this.tileEntity.getStackInSlot(10).getItem();
|
||||
}
|
||||
AspectList cost = null;
|
||||
if (ThaumcraftCraftingManager.findMatchingArcaneRecipe((IInventory)this.tileEntity, this.ip.player) != null) {
|
||||
cost = ThaumcraftCraftingManager.findMatchingArcaneRecipeAspects((IInventory)this.tileEntity, this.ip.player);
|
||||
if (ThaumcraftCraftingManager.findMatchingArcaneRecipe((IInventory) this.tileEntity, this.ip.player) != null) {
|
||||
cost = ThaumcraftCraftingManager.findMatchingArcaneRecipeAspects(
|
||||
(IInventory) this.tileEntity, this.ip.player);
|
||||
int count = 0;
|
||||
for (final Aspect primal : this.primals) {
|
||||
float amt = cost.getAmount(primal);
|
||||
if (cost.getAmount(primal) > 0) {
|
||||
float alpha = 0.5f + (MathHelper.sin((this.ip.player.ticksExisted + count * 10) / 2.0f) * 0.2f - 0.2f);
|
||||
float alpha =
|
||||
0.5f + (MathHelper.sin((this.ip.player.ticksExisted + count * 10) / 2.0f) * 0.2f - 0.2f);
|
||||
if (wand != null) {
|
||||
amt *= wand.getConsumptionModifier(this.tileEntity.getStackInSlot(10), this.ip.player, primal, true);
|
||||
amt *= wand.getConsumptionModifier(
|
||||
this.tileEntity.getStackInSlot(10), this.ip.player, primal, true);
|
||||
if (amt * 100.0f <= wand.getVis(this.tileEntity.getStackInSlot(10), primal)) {
|
||||
alpha = 1.0f;
|
||||
}
|
||||
}
|
||||
UtilsFX.drawTag(var5 + this.aspectLocs[count][0] - 8, var6 + this.aspectLocs[count][1] - 8, primal, amt, 0, (double)this.zLevel, 771, alpha, false);
|
||||
UtilsFX.drawTag(
|
||||
var5 + this.aspectLocs[count][0] - 8,
|
||||
var6 + this.aspectLocs[count][1] - 8,
|
||||
primal,
|
||||
amt,
|
||||
0,
|
||||
(double) this.zLevel,
|
||||
771,
|
||||
alpha,
|
||||
false);
|
||||
}
|
||||
if (++count > 5) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (wand != null && cost != null && !wand.consumeAllVisCrafting(this.tileEntity.getStackInSlot(10), this.ip.player, cost, false)) {
|
||||
if (wand != null
|
||||
&& cost != null
|
||||
&& !wand.consumeAllVisCrafting(this.tileEntity.getStackInSlot(10), this.ip.player, cost, false)) {
|
||||
GL11.glPushMatrix();
|
||||
final float var7 = 0.33f;
|
||||
GL11.glColor4f(var7, var7, var7, 0.66f);
|
||||
@@ -83,14 +96,24 @@ public class GuiFingers extends GuiContainer
|
||||
GL11.glEnable(2896);
|
||||
GL11.glEnable(2884);
|
||||
GL11.glEnable(3042);
|
||||
GuiFingers.itemRender.renderItemAndEffectIntoGUI(this.mc.fontRenderer, this.mc.renderEngine, ThaumcraftCraftingManager.findMatchingArcaneRecipe((IInventory)this.tileEntity, this.ip.player), var5 + 160, var6 + 64);
|
||||
GuiFingers.itemRender.renderItemOverlayIntoGUI(this.mc.fontRenderer, this.mc.renderEngine, ThaumcraftCraftingManager.findMatchingArcaneRecipe((IInventory)this.tileEntity, this.ip.player), var5 + 160, var6 + 64);
|
||||
GuiFingers.itemRender.renderItemAndEffectIntoGUI(
|
||||
this.mc.fontRenderer,
|
||||
this.mc.renderEngine,
|
||||
ThaumcraftCraftingManager.findMatchingArcaneRecipe((IInventory) this.tileEntity, this.ip.player),
|
||||
var5 + 160,
|
||||
var6 + 64);
|
||||
GuiFingers.itemRender.renderItemOverlayIntoGUI(
|
||||
this.mc.fontRenderer,
|
||||
this.mc.renderEngine,
|
||||
ThaumcraftCraftingManager.findMatchingArcaneRecipe((IInventory) this.tileEntity, this.ip.player),
|
||||
var5 + 160,
|
||||
var6 + 64);
|
||||
GuiFingers.itemRender.renderWithColor = true;
|
||||
GL11.glDisable(3042);
|
||||
GL11.glDisable(2896);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)(var5 + 168), (float)(var6 + 46), 0.0f);
|
||||
GL11.glTranslatef((float) (var5 + 168), (float) (var6 + 46), 0.0f);
|
||||
GL11.glScalef(0.5f, 0.5f, 0.0f);
|
||||
final String text = "Insufficient vis";
|
||||
final int ll = this.fontRendererObj.getStringWidth(text) / 2;
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.gui;
|
||||
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import com.kentington.thaumichorizons.common.container.ContainerInjector;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.inventory.Container;
|
||||
import com.kentington.thaumichorizons.common.container.ContainerInjector;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class GuiInjector extends GuiContainer
|
||||
{
|
||||
public class GuiInjector extends GuiContainer {
|
||||
public GuiInjector(final EntityPlayer p) {
|
||||
super((Container)new ContainerInjector(p));
|
||||
super((Container) new ContainerInjector(p));
|
||||
this.xSize = 175;
|
||||
this.ySize = 191;
|
||||
}
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(final float p_146976_1_, final int p_146976_2_, final int p_146976_3_) {
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(
|
||||
final float p_146976_1_, final int p_146976_2_, final int p_146976_3_) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glEnable(3042);
|
||||
UtilsFX.bindTexture(new ResourceLocation("thaumichorizons", "textures/gui/guiinjector.png"));
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.gui;
|
||||
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.inventory.Container;
|
||||
import com.kentington.thaumichorizons.common.container.ContainerInspiratron;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileInspiratron;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class GuiInspiratron extends GuiContainer
|
||||
{
|
||||
public class GuiInspiratron extends GuiContainer {
|
||||
TileInspiratron tile;
|
||||
|
||||
|
||||
public GuiInspiratron(final InventoryPlayer player, final TileInspiratron tile) {
|
||||
super((Container)new ContainerInspiratron(player, tile));
|
||||
super((Container) new ContainerInspiratron(player, tile));
|
||||
this.tile = tile;
|
||||
this.xSize = 175;
|
||||
this.ySize = 219;
|
||||
}
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(final float p_146976_1_, final int p_146976_2_, final int p_146976_3_) {
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(
|
||||
final float p_146976_1_, final int p_146976_2_, final int p_146976_3_) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glEnable(3042);
|
||||
UtilsFX.bindTexture(new ResourceLocation("thaumichorizons", "textures/gui/guiinspiratron.png"));
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.gui;
|
||||
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.inventory.Container;
|
||||
import com.kentington.thaumichorizons.common.container.ContainerSoulExtractor;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulExtractor;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class GuiSoulExtractor extends GuiContainer
|
||||
{
|
||||
public class GuiSoulExtractor extends GuiContainer {
|
||||
TileSoulExtractor tile;
|
||||
|
||||
|
||||
public GuiSoulExtractor(final InventoryPlayer player, final TileSoulExtractor tile) {
|
||||
super((Container)new ContainerSoulExtractor(player, tile));
|
||||
super((Container) new ContainerSoulExtractor(player, tile));
|
||||
this.tile = tile;
|
||||
this.xSize = 175;
|
||||
this.ySize = 165;
|
||||
}
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(final float p_146976_1_, final int p_146976_2_, final int p_146976_3_) {
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(
|
||||
final float p_146976_1_, final int p_146976_2_, final int p_146976_3_) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glEnable(3042);
|
||||
UtilsFX.bindTexture(new ResourceLocation("thaumichorizons", "textures/gui/guisieve.png"));
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.gui;
|
||||
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.inventory.Container;
|
||||
import com.kentington.thaumichorizons.common.container.ContainerSoulforge;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulforge;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class GuiSoulforge extends GuiContainer
|
||||
{
|
||||
public class GuiSoulforge extends GuiContainer {
|
||||
TileSoulforge tile;
|
||||
|
||||
|
||||
public GuiSoulforge(final EntityPlayer player, final TileSoulforge tile) {
|
||||
super((Container)new ContainerSoulforge(player, tile));
|
||||
super((Container) new ContainerSoulforge(player, tile));
|
||||
this.xSize = 0;
|
||||
this.ySize = 0;
|
||||
}
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(final float p_146976_1_, final int p_146976_2_, final int p_146976_3_) {
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(
|
||||
final float p_146976_1_, final int p_146976_2_, final int p_146976_3_) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glEnable(3042);
|
||||
UtilsFX.bindTexture(new ResourceLocation("thaumichorizons", "textures/gui/guidynamo.png"));
|
||||
@@ -37,7 +37,6 @@ public class GuiSoulforge extends GuiContainer
|
||||
GL11.glDisable(3042);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
protected void drawGuiContainerForegroundLayer(final int par1, final int par2) {
|
||||
}
|
||||
|
||||
protected void drawGuiContainerForegroundLayer(final int par1, final int par2) {}
|
||||
}
|
||||
@@ -1,35 +1,35 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.gui;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import com.kentington.thaumichorizons.common.lib.EntityInfusionProperties;
|
||||
import thaumcraft.common.lib.research.ResearchManager;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.inventory.Container;
|
||||
import com.kentington.thaumichorizons.common.container.ContainerVat;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import com.kentington.thaumichorizons.common.lib.EntityInfusionProperties;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVat;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.common.lib.research.ResearchManager;
|
||||
|
||||
public class GuiVat extends GuiContainer
|
||||
{
|
||||
public class GuiVat extends GuiContainer {
|
||||
TileVat tile;
|
||||
EntityPlayer player;
|
||||
|
||||
|
||||
public GuiVat(final EntityPlayer p, final TileVat t) {
|
||||
super((Container)new ContainerVat(p, t));
|
||||
super((Container) new ContainerVat(p, t));
|
||||
this.tile = t;
|
||||
this.player = p;
|
||||
this.xSize = 176;
|
||||
this.ySize = 209;
|
||||
}
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(final float p_146976_1_, final int p_146976_2_, final int p_146976_3_) {
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(
|
||||
final float p_146976_1_, final int p_146976_2_, final int p_146976_3_) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glEnable(3042);
|
||||
UtilsFX.bindTexture(new ResourceLocation("thaumichorizons", "textures/gui/guivat.png"));
|
||||
@@ -44,42 +44,48 @@ public class GuiVat extends GuiContainer
|
||||
final EntityLivingBase critter = this.tile.getEntity();
|
||||
final float health = critter.getHealth() / 2.0f;
|
||||
final float max = critter.getMaxHealth() / 2.0f;
|
||||
for (int i = 0; i < (int)max; ++i) {
|
||||
for (int i = 0; i < (int) max; ++i) {
|
||||
if (health >= i) {
|
||||
this.drawTexturedModalRect(var5 + 56 + 7 * i - 63 * (i / 9), var6 + 12 + 7 * (i / 9), 176, 126, 7, 6);
|
||||
}
|
||||
else {
|
||||
this.drawTexturedModalRect(var5 + 56 + 7 * i - 63 * (i / 9), var6 + 12 + 7 * (i / 9), 176, 120, 7, 6);
|
||||
this.drawTexturedModalRect(
|
||||
var5 + 56 + 7 * i - 63 * (i / 9), var6 + 12 + 7 * (i / 9), 176, 126, 7, 6);
|
||||
} else {
|
||||
this.drawTexturedModalRect(
|
||||
var5 + 56 + 7 * i - 63 * (i / 9), var6 + 12 + 7 * (i / 9), 176, 120, 7, 6);
|
||||
if (health >= i - 0.5f) {
|
||||
this.drawTexturedModalRect(var5 + 56 + 7 * i - 63 * (i / 9), var6 + 12 + 7 * (i / 9), 176, 126, 4, 6);
|
||||
this.drawTexturedModalRect(
|
||||
var5 + 56 + 7 * i - 63 * (i / 9), var6 + 12 + 7 * (i / 9), 176, 126, 4, 6);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (this.tile.mode == 4 || this.tile.mode == 2) {
|
||||
} else if (this.tile.mode == 4 || this.tile.mode == 2) {
|
||||
final float health2 = this.tile.selfInfusionHealth / 2.0f;
|
||||
final float max2 = 10.0f;
|
||||
for (int j = 0; j < (int)max2; ++j) {
|
||||
for (int j = 0; j < (int) max2; ++j) {
|
||||
if (health2 >= j) {
|
||||
this.drawTexturedModalRect(var5 + 56 + 7 * j - 63 * (j / 9), var6 + 12 + 7 * (j / 9), 176, 126, 7, 6);
|
||||
}
|
||||
else {
|
||||
this.drawTexturedModalRect(var5 + 56 + 7 * j - 63 * (j / 9), var6 + 12 + 7 * (j / 9), 176, 120, 7, 6);
|
||||
this.drawTexturedModalRect(
|
||||
var5 + 56 + 7 * j - 63 * (j / 9), var6 + 12 + 7 * (j / 9), 176, 126, 7, 6);
|
||||
} else {
|
||||
this.drawTexturedModalRect(
|
||||
var5 + 56 + 7 * j - 63 * (j / 9), var6 + 12 + 7 * (j / 9), 176, 120, 7, 6);
|
||||
if (health2 >= j - 0.5f) {
|
||||
this.drawTexturedModalRect(var5 + 56 + 7 * j - 63 * (j / 9), var6 + 12 + 7 * (j / 9), 176, 126, 4, 6);
|
||||
this.drawTexturedModalRect(
|
||||
var5 + 56 + 7 * j - 63 * (j / 9), var6 + 12 + 7 * (j / 9), 176, 126, 4, 6);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.tile.getEntity() != null) {
|
||||
final int[] infusions = ((EntityInfusionProperties)this.tile.getEntity().getExtendedProperties("CreatureInfusion")).getInfusions();
|
||||
final int[] infusions = ((EntityInfusionProperties)
|
||||
this.tile.getEntity().getExtendedProperties("CreatureInfusion"))
|
||||
.getInfusions();
|
||||
if (infusions[0] != 0) {
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
for (int k = 0; k < 12; ++k) {
|
||||
if (infusions[k] == 0) {
|
||||
break;
|
||||
}
|
||||
this.drawTexturedModalRect(var5 + 55 + 16 * (k % 4), var6 + 56 + 17 * (k / 4), (infusions[k] - 1) * 16, 209, 16, 16);
|
||||
this.drawTexturedModalRect(
|
||||
var5 + 55 + 16 * (k % 4), var6 + 56 + 17 * (k / 4), (infusions[k] - 1) * 16, 209, 16, 16);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -90,13 +96,13 @@ public class GuiVat extends GuiContainer
|
||||
if (infusions[k] == 0) {
|
||||
break;
|
||||
}
|
||||
this.drawTexturedModalRect(var5 + 55 + 16 * (k % 4), var6 + 56 + 17 * (k / 4), (infusions[k] - 1) * 16, 225, 16, 16);
|
||||
this.drawTexturedModalRect(
|
||||
var5 + 55 + 16 * (k % 4), var6 + 56 + 17 * (k / 4), (infusions[k] - 1) * 16, 225, 16, 16);
|
||||
}
|
||||
}
|
||||
GL11.glDisable(3042);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
protected void drawGuiContainerForegroundLayer(final int par1, final int par2) {
|
||||
}
|
||||
|
||||
protected void drawGuiContainerForegroundLayer(final int par1, final int par2) {}
|
||||
}
|
||||
@@ -1,43 +1,42 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.gui;
|
||||
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import thaumcraft.client.fx.ParticleEngine;
|
||||
import thaumcraft.common.config.Config;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.inventory.Container;
|
||||
import com.kentington.thaumichorizons.common.container.ContainerVisDynamo;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import java.awt.Color;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVisDynamo;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import java.awt.Color;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.client.fx.ParticleEngine;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.common.config.Config;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class GuiVisDynamo extends GuiContainer
|
||||
{
|
||||
public class GuiVisDynamo extends GuiContainer {
|
||||
TileVisDynamo tile;
|
||||
int flashX;
|
||||
int flashY;
|
||||
Color flashColor;
|
||||
int flashTimer;
|
||||
|
||||
|
||||
public GuiVisDynamo(final EntityPlayer player, final TileVisDynamo tileEntity) {
|
||||
super((Container)new ContainerVisDynamo(player, tileEntity));
|
||||
super((Container) new ContainerVisDynamo(player, tileEntity));
|
||||
this.flashColor = null;
|
||||
this.flashTimer = 0;
|
||||
this.tile = tileEntity;
|
||||
this.xSize = 111;
|
||||
this.ySize = 104;
|
||||
}
|
||||
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(final float par1, final int par2, final int par3) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glEnable(3042);
|
||||
@@ -49,50 +48,44 @@ public class GuiVisDynamo extends GuiContainer
|
||||
GL11.glDisable(3042);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
protected void drawGuiContainerForegroundLayer(final int par1, final int par2) {
|
||||
if (this.tile.provideAer) {
|
||||
UtilsFX.drawTag(11, 12, Aspect.AIR, 0.0f, 0, (double)this.zLevel, 771, 1.0f, false);
|
||||
}
|
||||
else {
|
||||
UtilsFX.drawTag(11, 12, Aspect.AIR, 0.0f, 0, (double)this.zLevel, 771, 1.0f, true);
|
||||
UtilsFX.drawTag(11, 12, Aspect.AIR, 0.0f, 0, (double) this.zLevel, 771, 1.0f, false);
|
||||
} else {
|
||||
UtilsFX.drawTag(11, 12, Aspect.AIR, 0.0f, 0, (double) this.zLevel, 771, 1.0f, true);
|
||||
}
|
||||
if (this.tile.provideTerra) {
|
||||
UtilsFX.drawTag(83, 11, Aspect.EARTH, 0.0f, 0, (double)this.zLevel, 771, 1.0f, false);
|
||||
}
|
||||
else {
|
||||
UtilsFX.drawTag(83, 11, Aspect.EARTH, 0.0f, 0, (double)this.zLevel, 771, 1.0f, true);
|
||||
UtilsFX.drawTag(83, 11, Aspect.EARTH, 0.0f, 0, (double) this.zLevel, 771, 1.0f, false);
|
||||
} else {
|
||||
UtilsFX.drawTag(83, 11, Aspect.EARTH, 0.0f, 0, (double) this.zLevel, 771, 1.0f, true);
|
||||
}
|
||||
if (this.tile.provideIgnis) {
|
||||
UtilsFX.drawTag(11, 45, Aspect.FIRE, 0.0f, 0, (double)this.zLevel, 771, 1.0f, false);
|
||||
}
|
||||
else {
|
||||
UtilsFX.drawTag(11, 45, Aspect.FIRE, 0.0f, 0, (double)this.zLevel, 771, 1.0f, true);
|
||||
UtilsFX.drawTag(11, 45, Aspect.FIRE, 0.0f, 0, (double) this.zLevel, 771, 1.0f, false);
|
||||
} else {
|
||||
UtilsFX.drawTag(11, 45, Aspect.FIRE, 0.0f, 0, (double) this.zLevel, 771, 1.0f, true);
|
||||
}
|
||||
if (this.tile.provideAqua) {
|
||||
UtilsFX.drawTag(83, 45, Aspect.WATER, 0.0f, 0, (double)this.zLevel, 771, 1.0f, false);
|
||||
}
|
||||
else {
|
||||
UtilsFX.drawTag(83, 45, Aspect.WATER, 0.0f, 0, (double)this.zLevel, 771, 1.0f, true);
|
||||
UtilsFX.drawTag(83, 45, Aspect.WATER, 0.0f, 0, (double) this.zLevel, 771, 1.0f, false);
|
||||
} else {
|
||||
UtilsFX.drawTag(83, 45, Aspect.WATER, 0.0f, 0, (double) this.zLevel, 771, 1.0f, true);
|
||||
}
|
||||
if (this.tile.provideOrdo) {
|
||||
UtilsFX.drawTag(11, 78, Aspect.ORDER, 0.0f, 0, (double)this.zLevel, 771, 1.0f, false);
|
||||
}
|
||||
else {
|
||||
UtilsFX.drawTag(11, 78, Aspect.ORDER, 0.0f, 0, (double)this.zLevel, 771, 1.0f, true);
|
||||
UtilsFX.drawTag(11, 78, Aspect.ORDER, 0.0f, 0, (double) this.zLevel, 771, 1.0f, false);
|
||||
} else {
|
||||
UtilsFX.drawTag(11, 78, Aspect.ORDER, 0.0f, 0, (double) this.zLevel, 771, 1.0f, true);
|
||||
}
|
||||
if (this.tile.providePerditio) {
|
||||
UtilsFX.drawTag(83, 78, Aspect.ENTROPY, 0.0f, 0, (double)this.zLevel, 771, 1.0f, false);
|
||||
}
|
||||
else {
|
||||
UtilsFX.drawTag(83, 78, Aspect.ENTROPY, 0.0f, 0, (double)this.zLevel, 771, 1.0f, true);
|
||||
UtilsFX.drawTag(83, 78, Aspect.ENTROPY, 0.0f, 0, (double) this.zLevel, 771, 1.0f, false);
|
||||
} else {
|
||||
UtilsFX.drawTag(83, 78, Aspect.ENTROPY, 0.0f, 0, (double) this.zLevel, 771, 1.0f, true);
|
||||
}
|
||||
if (this.flashTimer > 0) {
|
||||
--this.flashTimer;
|
||||
this.drawFlash();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected void mouseClicked(final int par1, final int par2, final int par3) {
|
||||
super.mouseClicked(par1, par2, par3);
|
||||
final int gx = (this.width - this.xSize) / 2;
|
||||
@@ -106,7 +99,14 @@ public class GuiVisDynamo extends GuiContainer
|
||||
this.flashColor = new Color(Aspect.AIR.getColor());
|
||||
this.flashX = par1 - gx - 8;
|
||||
this.flashY = par2 - gy - 8;
|
||||
this.mc.renderViewEntity.worldObj.playSound(this.mc.renderViewEntity.posX, this.mc.renderViewEntity.posY, this.mc.renderViewEntity.posZ, "thaumcraft:hhoff", 0.2f, 1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f, false);
|
||||
this.mc.renderViewEntity.worldObj.playSound(
|
||||
this.mc.renderViewEntity.posX,
|
||||
this.mc.renderViewEntity.posY,
|
||||
this.mc.renderViewEntity.posZ,
|
||||
"thaumcraft:hhoff",
|
||||
0.2f,
|
||||
1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f,
|
||||
false);
|
||||
return;
|
||||
}
|
||||
x = par1 - (gx + 83);
|
||||
@@ -117,7 +117,14 @@ public class GuiVisDynamo extends GuiContainer
|
||||
this.flashColor = new Color(Aspect.EARTH.getColor());
|
||||
this.flashX = par1 - gx - 8;
|
||||
this.flashY = par2 - gy - 8;
|
||||
this.mc.renderViewEntity.worldObj.playSound(this.mc.renderViewEntity.posX, this.mc.renderViewEntity.posY, this.mc.renderViewEntity.posZ, "thaumcraft:hhoff", 0.2f, 1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f, false);
|
||||
this.mc.renderViewEntity.worldObj.playSound(
|
||||
this.mc.renderViewEntity.posX,
|
||||
this.mc.renderViewEntity.posY,
|
||||
this.mc.renderViewEntity.posZ,
|
||||
"thaumcraft:hhoff",
|
||||
0.2f,
|
||||
1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f,
|
||||
false);
|
||||
return;
|
||||
}
|
||||
x = par1 - (gx + 11);
|
||||
@@ -129,7 +136,14 @@ public class GuiVisDynamo extends GuiContainer
|
||||
this.flashColor = new Color(Aspect.FIRE.getColor());
|
||||
this.flashX = par1 - gx - 8;
|
||||
this.flashY = par2 - gy - 8;
|
||||
this.mc.renderViewEntity.worldObj.playSound(this.mc.renderViewEntity.posX, this.mc.renderViewEntity.posY, this.mc.renderViewEntity.posZ, "thaumcraft:hhoff", 0.2f, 1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f, false);
|
||||
this.mc.renderViewEntity.worldObj.playSound(
|
||||
this.mc.renderViewEntity.posX,
|
||||
this.mc.renderViewEntity.posY,
|
||||
this.mc.renderViewEntity.posZ,
|
||||
"thaumcraft:hhoff",
|
||||
0.2f,
|
||||
1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f,
|
||||
false);
|
||||
return;
|
||||
}
|
||||
x = par1 - (gx + 83);
|
||||
@@ -140,7 +154,14 @@ public class GuiVisDynamo extends GuiContainer
|
||||
this.flashColor = new Color(Aspect.WATER.getColor());
|
||||
this.flashX = par1 - gx - 8;
|
||||
this.flashY = par2 - gy - 8;
|
||||
this.mc.renderViewEntity.worldObj.playSound(this.mc.renderViewEntity.posX, this.mc.renderViewEntity.posY, this.mc.renderViewEntity.posZ, "thaumcraft:hhoff", 0.2f, 1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f, false);
|
||||
this.mc.renderViewEntity.worldObj.playSound(
|
||||
this.mc.renderViewEntity.posX,
|
||||
this.mc.renderViewEntity.posY,
|
||||
this.mc.renderViewEntity.posZ,
|
||||
"thaumcraft:hhoff",
|
||||
0.2f,
|
||||
1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f,
|
||||
false);
|
||||
return;
|
||||
}
|
||||
x = par1 - (gx + 11);
|
||||
@@ -152,7 +173,14 @@ public class GuiVisDynamo extends GuiContainer
|
||||
this.flashColor = new Color(Aspect.ORDER.getColor());
|
||||
this.flashX = par1 - gx - 8;
|
||||
this.flashY = par2 - gy - 8;
|
||||
this.mc.renderViewEntity.worldObj.playSound(this.mc.renderViewEntity.posX, this.mc.renderViewEntity.posY, this.mc.renderViewEntity.posZ, "thaumcraft:hhoff", 0.2f, 1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f, false);
|
||||
this.mc.renderViewEntity.worldObj.playSound(
|
||||
this.mc.renderViewEntity.posX,
|
||||
this.mc.renderViewEntity.posY,
|
||||
this.mc.renderViewEntity.posZ,
|
||||
"thaumcraft:hhoff",
|
||||
0.2f,
|
||||
1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f,
|
||||
false);
|
||||
return;
|
||||
}
|
||||
x = par1 - (gx + 83);
|
||||
@@ -163,10 +191,17 @@ public class GuiVisDynamo extends GuiContainer
|
||||
this.flashColor = new Color(Aspect.ENTROPY.getColor());
|
||||
this.flashX = par1 - gx - 8;
|
||||
this.flashY = par2 - gy - 8;
|
||||
this.mc.renderViewEntity.worldObj.playSound(this.mc.renderViewEntity.posX, this.mc.renderViewEntity.posY, this.mc.renderViewEntity.posZ, "thaumcraft:hhoff", 0.2f, 1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f, false);
|
||||
this.mc.renderViewEntity.worldObj.playSound(
|
||||
this.mc.renderViewEntity.posX,
|
||||
this.mc.renderViewEntity.posY,
|
||||
this.mc.renderViewEntity.posZ,
|
||||
"thaumcraft:hhoff",
|
||||
0.2f,
|
||||
1.0f + this.mc.renderViewEntity.worldObj.rand.nextFloat() * 0.1f,
|
||||
false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void drawFlash() {
|
||||
float red = this.flashColor.getRed() / 255.0f;
|
||||
float green = this.flashColor.getGreen() / 255.0f;
|
||||
@@ -179,7 +214,7 @@ public class GuiVisDynamo extends GuiContainer
|
||||
GL11.glPushMatrix();
|
||||
UtilsFX.bindTexture(ParticleEngine.particleTexture);
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
GL11.glTranslated((double)this.flashX, (double)this.flashY, 0.0);
|
||||
GL11.glTranslated((double) this.flashX, (double) this.flashY, 0.0);
|
||||
final Tessellator tessellator = Tessellator.instance;
|
||||
final int part = this.flashTimer;
|
||||
final float var8 = 0.5f + part / 8.0f;
|
||||
@@ -189,10 +224,10 @@ public class GuiVisDynamo extends GuiContainer
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setBrightness(240);
|
||||
tessellator.setColorRGBA_F(red, green, blue, 1.0f);
|
||||
tessellator.addVertexWithUV(0.0, 16.0, (double)this.zLevel, (double)var9, (double)var11);
|
||||
tessellator.addVertexWithUV(16.0, 16.0, (double)this.zLevel, (double)var9, (double)var10);
|
||||
tessellator.addVertexWithUV(16.0, 0.0, (double)this.zLevel, (double)var8, (double)var10);
|
||||
tessellator.addVertexWithUV(0.0, 0.0, (double)this.zLevel, (double)var8, (double)var11);
|
||||
tessellator.addVertexWithUV(0.0, 16.0, (double) this.zLevel, (double) var9, (double) var11);
|
||||
tessellator.addVertexWithUV(16.0, 16.0, (double) this.zLevel, (double) var9, (double) var10);
|
||||
tessellator.addVertexWithUV(16.0, 0.0, (double) this.zLevel, (double) var8, (double) var10);
|
||||
tessellator.addVertexWithUV(0.0, 0.0, (double) this.zLevel, (double) var8, (double) var11);
|
||||
tessellator.draw();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
@@ -1,46 +1,45 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.lib;
|
||||
|
||||
import java.awt.Graphics2D;
|
||||
import java.awt.Image;
|
||||
import java.io.InputStream;
|
||||
import net.minecraft.client.resources.IResource;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import javax.imageio.ImageIO;
|
||||
import java.io.IOException;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.client.renderer.texture.TextureUtil;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import com.kentington.thaumichorizons.common.blocks.BlockChocolate;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import java.awt.Graphics2D;
|
||||
import java.awt.Image;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import javax.imageio.ImageIO;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.texture.AbstractTexture;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.client.renderer.texture.TextureUtil;
|
||||
import net.minecraft.client.resources.IResource;
|
||||
import net.minecraft.client.resources.IResourceManager;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.client.renderer.texture.AbstractTexture;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class GolemTHTexture extends AbstractTexture
|
||||
{
|
||||
public class GolemTHTexture extends AbstractTexture {
|
||||
IIcon[] icons;
|
||||
IResourceManager manager;
|
||||
BufferedImage myImage;
|
||||
int special;
|
||||
|
||||
|
||||
public GolemTHTexture(final IIcon[] icons, final int isGrass) {
|
||||
this.icons = icons;
|
||||
this.special = isGrass;
|
||||
this.manager = Minecraft.getMinecraft().getResourceManager();
|
||||
}
|
||||
|
||||
|
||||
public void loadTexture(final IResourceManager p_110551_1_) throws IOException {
|
||||
this.deleteGlTexture();
|
||||
this.myImage = new BufferedImage(128, 128, 2);
|
||||
final TextureMap allBlocks = Minecraft.getMinecraft().getTextureMapBlocks();
|
||||
BufferedImage top = this.getIconImage(this.icons[1]);
|
||||
if (this.special == 1) {
|
||||
top = this.getIconImage(((BlockChocolate)ThaumicHorizons.blockChocolate).coloredGrass);
|
||||
top = this.getIconImage(((BlockChocolate) ThaumicHorizons.blockChocolate).coloredGrass);
|
||||
}
|
||||
if (this.special == 2) {
|
||||
top = top.getSubimage(1, 1, 14, 14);
|
||||
@@ -131,19 +130,19 @@ public class GolemTHTexture extends AbstractTexture
|
||||
this.myImage.setRGB(53, 5, 6, 16, tmp.getRGB(0, 0, 6, 16, null, 0, 6), 0, 6);
|
||||
tmp = this.resize(south, 4, 25);
|
||||
this.myImage.setRGB(76, 27, 4, 25, tmp.getRGB(0, 0, 4, 25, null, 0, 4), 0, 4);
|
||||
final int[] eyeOverlay = { -16777216, -16316917, -16185587, -15593446 };
|
||||
final int[] eyeOverlay = {-16777216, -16316917, -16185587, -15593446};
|
||||
this.myImage.setRGB(9, 12, 2, 2, eyeOverlay, 0, 2);
|
||||
this.myImage.setRGB(13, 12, 2, 2, eyeOverlay, 0, 2);
|
||||
TextureUtil.uploadTextureImageAllocate(this.getGlTextureId(), this.myImage, false, false);
|
||||
}
|
||||
|
||||
|
||||
public BufferedImage getIconImage(final IIcon icon) throws IOException {
|
||||
final ResourceLocation resourceLocation = this.getResourceLocation(icon.getIconName());
|
||||
final IResource resource = this.manager.getResource(resourceLocation);
|
||||
final InputStream in = resource.getInputStream();
|
||||
return ImageIO.read(in);
|
||||
}
|
||||
|
||||
|
||||
public ResourceLocation getResourceLocation(final String blockTexture) {
|
||||
String domain = "minecraft";
|
||||
String path = blockTexture;
|
||||
@@ -157,7 +156,7 @@ public class GolemTHTexture extends AbstractTexture
|
||||
final String resourcePath = "textures/blocks/" + path + ".png";
|
||||
return new ResourceLocation(domain.toLowerCase(), resourcePath);
|
||||
}
|
||||
|
||||
|
||||
public BufferedImage resize(final BufferedImage img, final int newW, final int newH) {
|
||||
final Image tmp = img.getScaledInstance(newW, newH, 4);
|
||||
final BufferedImage dimg = new BufferedImage(newW, newH, 2);
|
||||
|
||||
@@ -1,55 +1,54 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.lib;
|
||||
|
||||
import com.kentington.thaumichorizons.common.entities.EntityBoatThaumium;
|
||||
import net.minecraftforge.client.event.RenderBlockOverlayEvent;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraftforge.client.event.RenderWorldLastEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent;
|
||||
import net.minecraft.network.Packet;
|
||||
import net.minecraft.network.play.client.C07PacketPlayerDigging;
|
||||
import net.minecraft.block.material.Material;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraftforge.client.event.DrawBlockHighlightEvent;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.client.renderer.RenderHelper;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.input.Mouse;
|
||||
import net.minecraft.client.renderer.entity.RenderItem;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessage;
|
||||
import com.kentington.thaumichorizons.common.lib.networking.PacketLensChangeToServer;
|
||||
import com.kentington.thaumichorizons.common.lib.networking.PacketHandler;
|
||||
import org.lwjgl.opengl.Display;
|
||||
import com.kentington.thaumichorizons.common.items.lenses.ItemLensCase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import baubles.api.BaublesApi;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityBoatThaumium;
|
||||
import com.kentington.thaumichorizons.common.items.lenses.ILens;
|
||||
import com.kentington.thaumichorizons.common.items.lenses.ItemLensCase;
|
||||
import com.kentington.thaumichorizons.common.items.lenses.LensManager;
|
||||
import com.kentington.thaumichorizons.common.lib.THKeyHandler;
|
||||
import com.kentington.thaumichorizons.common.lib.networking.PacketHandler;
|
||||
import com.kentington.thaumichorizons.common.lib.networking.PacketLensChangeToServer;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessage;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import com.kentington.thaumichorizons.common.items.lenses.ILens;
|
||||
import net.minecraft.potion.Potion;
|
||||
import thaumcraft.api.nodes.IRevealer;
|
||||
import com.kentington.thaumichorizons.common.items.lenses.LensManager;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraftforge.client.event.RenderGameOverlayEvent;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import java.util.ArrayList;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import java.util.HashMap;
|
||||
import java.util.TreeMap;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.RenderHelper;
|
||||
import net.minecraft.client.renderer.entity.RenderItem;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.Packet;
|
||||
import net.minecraft.network.play.client.C07PacketPlayerDigging;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraftforge.client.event.DrawBlockHighlightEvent;
|
||||
import net.minecraftforge.client.event.RenderBlockOverlayEvent;
|
||||
import net.minecraftforge.client.event.RenderGameOverlayEvent;
|
||||
import net.minecraftforge.client.event.RenderWorldLastEvent;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import org.lwjgl.input.Mouse;
|
||||
import org.lwjgl.opengl.Display;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.api.nodes.IRevealer;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
|
||||
public class RenderEventHandler
|
||||
{
|
||||
public class RenderEventHandler {
|
||||
static float radialHudScale;
|
||||
TreeMap<String, Integer> foci;
|
||||
HashMap<String, ItemStack> fociItem;
|
||||
@@ -66,7 +65,7 @@ public class RenderEventHandler
|
||||
int[][] tempMD;
|
||||
public ForgeDirection tempDir;
|
||||
public ArrayList<EntityLivingBase> thingsThatSparkle;
|
||||
|
||||
|
||||
public RenderEventHandler() {
|
||||
this.foci = new TreeMap<String, Integer>();
|
||||
this.fociItem = new HashMap<String, ItemStack>();
|
||||
@@ -83,7 +82,7 @@ public class RenderEventHandler
|
||||
this.tempMD = new int[3][3];
|
||||
this.thingsThatSparkle = new ArrayList<EntityLivingBase>();
|
||||
}
|
||||
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@SubscribeEvent
|
||||
public void renderOverlay(final RenderGameOverlayEvent event) {
|
||||
@@ -92,19 +91,28 @@ public class RenderEventHandler
|
||||
if (event.type == RenderGameOverlayEvent.ElementType.TEXT) {
|
||||
this.handleFociRadial(mc, time, event);
|
||||
final ItemStack goggles = mc.thePlayer.inventory.armorItemInSlot(3);
|
||||
if (LensManager.nightVisionOffTime > 0L && (goggles == null || !(goggles.getItem() instanceof IRevealer) || goggles.stackTagCompound == null) && mc.thePlayer.getActivePotionEffect(Potion.nightVision) != null && mc.thePlayer.getActivePotionEffect(Potion.nightVision).getIsAmbient()) {
|
||||
if (LensManager.nightVisionOffTime > 0L
|
||||
&& (goggles == null
|
||||
|| !(goggles.getItem() instanceof IRevealer)
|
||||
|| goggles.stackTagCompound == null)
|
||||
&& mc.thePlayer.getActivePotionEffect(Potion.nightVision) != null
|
||||
&& mc.thePlayer.getActivePotionEffect(Potion.nightVision).getIsAmbient()) {
|
||||
mc.thePlayer.removePotionEffect(Potion.nightVision.id);
|
||||
LensManager.nightVisionOffTime = 0L;
|
||||
}
|
||||
if (goggles != null && goggles.getItem() instanceof IRevealer && goggles.stackTagCompound != null && goggles.stackTagCompound.getString("Lens") != null && !goggles.stackTagCompound.getString("Lens").equals("")) {
|
||||
final ILens theLens = (ILens)LensManager.getLens(goggles.stackTagCompound.getString("Lens"));
|
||||
if (goggles != null
|
||||
&& goggles.getItem() instanceof IRevealer
|
||||
&& goggles.stackTagCompound != null
|
||||
&& goggles.stackTagCompound.getString("Lens") != null
|
||||
&& !goggles.stackTagCompound.getString("Lens").equals("")) {
|
||||
final ILens theLens = (ILens) LensManager.getLens(goggles.stackTagCompound.getString("Lens"));
|
||||
if (theLens != null) {
|
||||
theLens.handleRender(mc, event.partialTicks);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void handleFociRadial(final Minecraft mc, final long time, final RenderGameOverlayEvent event) {
|
||||
if (THKeyHandler.radialActive || RenderEventHandler.radialHudScale > 0.0f) {
|
||||
@@ -124,19 +132,20 @@ public class RenderEventHandler
|
||||
this.fociScale.clear();
|
||||
int pouchcount = 0;
|
||||
ItemStack item = null;
|
||||
final IInventory baubles = BaublesApi.getBaubles((EntityPlayer)mc.thePlayer);
|
||||
final IInventory baubles = BaublesApi.getBaubles((EntityPlayer) mc.thePlayer);
|
||||
for (int a = 0; a < 4; ++a) {
|
||||
if (baubles.getStackInSlot(a) != null && baubles.getStackInSlot(a).getItem() instanceof ItemLensCase) {
|
||||
if (baubles.getStackInSlot(a) != null
|
||||
&& baubles.getStackInSlot(a).getItem() instanceof ItemLensCase) {
|
||||
++pouchcount;
|
||||
item = baubles.getStackInSlot(a);
|
||||
final ItemStack[] inv = ((ItemLensCase)item.getItem()).getInventory(item);
|
||||
final ItemStack[] inv = ((ItemLensCase) item.getItem()).getInventory(item);
|
||||
for (int q = 0; q < inv.length; ++q) {
|
||||
item = inv[q];
|
||||
if (item != null && item.getItem() instanceof ILens) {
|
||||
this.foci.put(((ILens)item.getItem()).lensName(), q + pouchcount * 1000);
|
||||
this.fociItem.put(((ILens)item.getItem()).lensName(), item.copy());
|
||||
this.fociScale.put(((ILens)item.getItem()).lensName(), 1.0f);
|
||||
this.fociHover.put(((ILens)item.getItem()).lensName(), false);
|
||||
this.foci.put(((ILens) item.getItem()).lensName(), q + pouchcount * 1000);
|
||||
this.fociItem.put(((ILens) item.getItem()).lensName(), item.copy());
|
||||
this.fociScale.put(((ILens) item.getItem()).lensName(), 1.0f);
|
||||
this.fociHover.put(((ILens) item.getItem()).lensName(), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -144,21 +153,21 @@ public class RenderEventHandler
|
||||
for (int a = 0; a < 36; ++a) {
|
||||
item = mc.thePlayer.inventory.mainInventory[a];
|
||||
if (item != null && item.getItem() instanceof ILens) {
|
||||
this.foci.put(((ILens)item.getItem()).lensName(), a);
|
||||
this.fociItem.put(((ILens)item.getItem()).lensName(), item.copy());
|
||||
this.fociScale.put(((ILens)item.getItem()).lensName(), 1.0f);
|
||||
this.fociHover.put(((ILens)item.getItem()).lensName(), false);
|
||||
this.foci.put(((ILens) item.getItem()).lensName(), a);
|
||||
this.fociItem.put(((ILens) item.getItem()).lensName(), item.copy());
|
||||
this.fociScale.put(((ILens) item.getItem()).lensName(), 1.0f);
|
||||
this.fociHover.put(((ILens) item.getItem()).lensName(), false);
|
||||
}
|
||||
if (item != null && item.getItem() instanceof ItemLensCase) {
|
||||
++pouchcount;
|
||||
final ItemStack[] inv = ((ItemLensCase)item.getItem()).getInventory(item);
|
||||
final ItemStack[] inv = ((ItemLensCase) item.getItem()).getInventory(item);
|
||||
for (int q = 0; q < inv.length; ++q) {
|
||||
item = inv[q];
|
||||
if (item != null && item.getItem() instanceof ILens) {
|
||||
this.foci.put(((ILens)item.getItem()).lensName(), q + pouchcount * 1000);
|
||||
this.fociItem.put(((ILens)item.getItem()).lensName(), item.copy());
|
||||
this.fociScale.put(((ILens)item.getItem()).lensName(), 1.0f);
|
||||
this.fociHover.put(((ILens)item.getItem()).lensName(), false);
|
||||
this.foci.put(((ILens) item.getItem()).lensName(), q + pouchcount * 1000);
|
||||
this.fociItem.put(((ILens) item.getItem()).lensName(), item.copy());
|
||||
this.fociScale.put(((ILens) item.getItem()).lensName(), 1.0f);
|
||||
this.fociHover.put(((ILens) item.getItem()).lensName(), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -168,28 +177,31 @@ public class RenderEventHandler
|
||||
mc.mouseHelper.ungrabMouseCursor();
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (mc.currentScreen == null && this.lastState) {
|
||||
} else if (mc.currentScreen == null && this.lastState) {
|
||||
if (Display.isActive() && !mc.inGameHasFocus) {
|
||||
mc.inGameHasFocus = true;
|
||||
mc.mouseHelper.grabMouseCursor();
|
||||
}
|
||||
this.lastState = false;
|
||||
}
|
||||
this.renderFocusRadialHUD(event.resolution.getScaledWidth_double(), event.resolution.getScaledHeight_double(), time, event.partialTicks);
|
||||
this.renderFocusRadialHUD(
|
||||
event.resolution.getScaledWidth_double(),
|
||||
event.resolution.getScaledHeight_double(),
|
||||
time,
|
||||
event.partialTicks);
|
||||
if (time > this.lastTime) {
|
||||
for (final String key : this.fociHover.keySet()) {
|
||||
if (this.fociHover.get(key)) {
|
||||
if (!THKeyHandler.radialActive && !THKeyHandler.radialLock) {
|
||||
PacketHandler.INSTANCE.sendToServer((IMessage)new PacketLensChangeToServer((EntityPlayer)mc.thePlayer, key));
|
||||
PacketHandler.INSTANCE.sendToServer(
|
||||
(IMessage) new PacketLensChangeToServer((EntityPlayer) mc.thePlayer, key));
|
||||
THKeyHandler.radialLock = true;
|
||||
}
|
||||
if (this.fociScale.get(key) >= 1.3f) {
|
||||
continue;
|
||||
}
|
||||
this.fociScale.put(key, this.fociScale.get(key) + 0.025f);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (this.fociScale.get(key) <= 1.0f) {
|
||||
continue;
|
||||
}
|
||||
@@ -198,8 +210,7 @@ public class RenderEventHandler
|
||||
}
|
||||
if (!THKeyHandler.radialActive) {
|
||||
RenderEventHandler.radialHudScale -= 0.05f;
|
||||
}
|
||||
else if (THKeyHandler.radialActive && RenderEventHandler.radialHudScale < 1.0f) {
|
||||
} else if (THKeyHandler.radialActive && RenderEventHandler.radialHudScale < 1.0f) {
|
||||
RenderEventHandler.radialHudScale += 0.05f;
|
||||
}
|
||||
if (RenderEventHandler.radialHudScale > 1.0f) {
|
||||
@@ -214,21 +225,22 @@ public class RenderEventHandler
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private void renderFocusRadialHUD(final double sw, final double sh, final long time, final float partialTicks) {
|
||||
final RenderItem ri = new RenderItem();
|
||||
final Minecraft mc = Minecraft.getMinecraft();
|
||||
if (mc.thePlayer.inventory.armorItemInSlot(3) == null || !(mc.thePlayer.inventory.armorItemInSlot(3).getItem() instanceof IRevealer)) {
|
||||
if (mc.thePlayer.inventory.armorItemInSlot(3) == null
|
||||
|| !(mc.thePlayer.inventory.armorItemInSlot(3).getItem() instanceof IRevealer)) {
|
||||
return;
|
||||
}
|
||||
final ItemStack goggles = mc.thePlayer.inventory.armorItemInSlot(3);
|
||||
ILens lens = null;
|
||||
if (goggles.stackTagCompound != null) {
|
||||
lens = (ILens)LensManager.getLens(goggles.stackTagCompound.getString("Lens"));
|
||||
lens = (ILens) LensManager.getLens(goggles.stackTagCompound.getString("Lens"));
|
||||
}
|
||||
final int i = (int)(Mouse.getEventX() * sw / mc.displayWidth);
|
||||
final int j = (int)(sh - Mouse.getEventY() * sh / mc.displayHeight - 1.0);
|
||||
final int i = (int) (Mouse.getEventX() * sw / mc.displayWidth);
|
||||
final int j = (int) (sh - Mouse.getEventY() * sh / mc.displayHeight - 1.0);
|
||||
final int k = Mouse.getEventButton();
|
||||
if (this.fociItem.size() == 0) {
|
||||
return;
|
||||
@@ -253,7 +265,8 @@ public class RenderEventHandler
|
||||
GL11.glAlphaFunc(516, 0.003921569f);
|
||||
GL11.glEnable(3042);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
UtilsFX.renderQuadCenteredFromTexture(width * 2.75f * RenderEventHandler.radialHudScale, 0.5f, 0.5f, 0.5f, 200, 771, 0.5f);
|
||||
UtilsFX.renderQuadCenteredFromTexture(
|
||||
width * 2.75f * RenderEventHandler.radialHudScale, 0.5f, 0.5f, 0.5f, 200, 771, 0.5f);
|
||||
GL11.glDisable(3042);
|
||||
GL11.glAlphaFunc(516, 0.1f);
|
||||
GL11.glPopMatrix();
|
||||
@@ -263,7 +276,8 @@ public class RenderEventHandler
|
||||
GL11.glAlphaFunc(516, 0.003921569f);
|
||||
GL11.glEnable(3042);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
UtilsFX.renderQuadCenteredFromTexture(width * 2.55f * RenderEventHandler.radialHudScale, 0.5f, 0.5f, 0.5f, 200, 771, 0.5f);
|
||||
UtilsFX.renderQuadCenteredFromTexture(
|
||||
width * 2.55f * RenderEventHandler.radialHudScale, 0.5f, 0.5f, 0.5f, 200, 771, 0.5f);
|
||||
GL11.glDisable(3042);
|
||||
GL11.glAlphaFunc(516, 0.1f);
|
||||
GL11.glPopMatrix();
|
||||
@@ -271,19 +285,20 @@ public class RenderEventHandler
|
||||
GL11.glPushMatrix();
|
||||
GL11.glEnable(32826);
|
||||
RenderHelper.enableGUIStandardItemLighting();
|
||||
final ItemStack item = new ItemStack((Item)lens);
|
||||
final ItemStack item = new ItemStack((Item) lens);
|
||||
item.stackTagCompound = null;
|
||||
ri.renderItemIntoGUI(mc.fontRenderer, mc.renderEngine, item, -8, -8);
|
||||
RenderHelper.disableStandardItemLighting();
|
||||
GL11.glDisable(32826);
|
||||
GL11.glPopMatrix();
|
||||
final int mx = (int)(i - sw / 2.0);
|
||||
final int my = (int)(j - sh / 2.0);
|
||||
final int mx = (int) (i - sw / 2.0);
|
||||
final int my = (int) (j - sh / 2.0);
|
||||
if (mx >= -10 && mx <= 10 && my >= -10 && my <= 10) {
|
||||
tt = new ItemStack((Item)lens);
|
||||
tt = new ItemStack((Item) lens);
|
||||
}
|
||||
}
|
||||
GL11.glScaled((double)RenderEventHandler.radialHudScale, (double)RenderEventHandler.radialHudScale, (double)RenderEventHandler.radialHudScale);
|
||||
GL11.glScaled((double) RenderEventHandler.radialHudScale, (double) RenderEventHandler.radialHudScale, (double)
|
||||
RenderEventHandler.radialHudScale);
|
||||
float currentRot = -90.0f * RenderEventHandler.radialHudScale;
|
||||
final float pieSlice = 360.0f / this.fociItem.size();
|
||||
String key = this.foci.firstKey();
|
||||
@@ -293,7 +308,8 @@ public class RenderEventHandler
|
||||
currentRot += pieSlice;
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslated(xx, yy, 100.0);
|
||||
GL11.glScalef((float)this.fociScale.get(key), (float)this.fociScale.get(key), (float)this.fociScale.get(key));
|
||||
GL11.glScalef(
|
||||
(float) this.fociScale.get(key), (float) this.fociScale.get(key), (float) this.fociScale.get(key));
|
||||
GL11.glEnable(32826);
|
||||
RenderHelper.enableGUIStandardItemLighting();
|
||||
final ItemStack item2 = this.fociItem.get(key).copy();
|
||||
@@ -303,19 +319,19 @@ public class RenderEventHandler
|
||||
GL11.glDisable(32826);
|
||||
GL11.glPopMatrix();
|
||||
if (!THKeyHandler.radialLock && THKeyHandler.radialActive) {
|
||||
final int mx2 = (int)(i - sw / 2.0 - xx);
|
||||
final int my2 = (int)(j - sh / 2.0 - yy);
|
||||
final int mx2 = (int) (i - sw / 2.0 - xx);
|
||||
final int my2 = (int) (j - sh / 2.0 - yy);
|
||||
if (mx2 >= -10 && mx2 <= 10 && my2 >= -10 && my2 <= 10) {
|
||||
this.fociHover.put(key, true);
|
||||
tt = this.fociItem.get(key);
|
||||
if (k == 0) {
|
||||
THKeyHandler.radialActive = false;
|
||||
THKeyHandler.radialLock = true;
|
||||
PacketHandler.INSTANCE.sendToServer((IMessage)new PacketLensChangeToServer((EntityPlayer)mc.thePlayer, key));
|
||||
PacketHandler.INSTANCE.sendToServer(
|
||||
(IMessage) new PacketLensChangeToServer((EntityPlayer) mc.thePlayer, key));
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.fociHover.put(key, false);
|
||||
}
|
||||
}
|
||||
@@ -323,7 +339,14 @@ public class RenderEventHandler
|
||||
}
|
||||
GL11.glPopMatrix();
|
||||
if (tt != null) {
|
||||
UtilsFX.drawCustomTooltip(mc.currentScreen, ri, mc.fontRenderer, tt.getTooltip((EntityPlayer)mc.thePlayer, mc.gameSettings.advancedItemTooltips), -4, 20, 11);
|
||||
UtilsFX.drawCustomTooltip(
|
||||
mc.currentScreen,
|
||||
ri,
|
||||
mc.fontRenderer,
|
||||
tt.getTooltip((EntityPlayer) mc.thePlayer, mc.gameSettings.advancedItemTooltips),
|
||||
-4,
|
||||
20,
|
||||
11);
|
||||
}
|
||||
GL11.glDepthMask(true);
|
||||
GL11.glEnable(2929);
|
||||
@@ -331,48 +354,57 @@ public class RenderEventHandler
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@SubscribeEvent
|
||||
public void blockHighlight(final DrawBlockHighlightEvent event) {
|
||||
final Minecraft mc = Minecraft.getMinecraft();
|
||||
final ItemStack goggles = mc.thePlayer.inventory.armorItemInSlot(3);
|
||||
if (goggles != null && goggles.getItem() instanceof IRevealer && goggles.stackTagCompound != null) {
|
||||
if (goggles.stackTagCompound.getString("Lens") != null && !goggles.stackTagCompound.getString("Lens").equals("")) {
|
||||
final ILens theLens = (ILens)LensManager.getLens(goggles.stackTagCompound.getString("Lens"));
|
||||
if (goggles.stackTagCompound.getString("Lens") != null
|
||||
&& !goggles.stackTagCompound.getString("Lens").equals("")) {
|
||||
final ILens theLens = (ILens) LensManager.getLens(goggles.stackTagCompound.getString("Lens"));
|
||||
if (theLens == ThaumicHorizons.itemLensEarth) {
|
||||
if (this.cacheX != event.target.blockX || this.cacheY != event.target.blockY || this.cacheZ != event.target.blockZ || this.tempDir != ForgeDirection.getOrientation(event.target.sideHit)) {
|
||||
this.resetBlocks((EntityPlayer)mc.thePlayer);
|
||||
if (this.cacheX != event.target.blockX
|
||||
|| this.cacheY != event.target.blockY
|
||||
|| this.cacheZ != event.target.blockZ
|
||||
|| this.tempDir != ForgeDirection.getOrientation(event.target.sideHit)) {
|
||||
this.resetBlocks((EntityPlayer) mc.thePlayer);
|
||||
}
|
||||
if (event.player.worldObj.getBlock(event.target.blockX, event.target.blockY, event.target.blockZ).getMaterial() != Material.air) {
|
||||
if (event.player
|
||||
.worldObj
|
||||
.getBlock(event.target.blockX, event.target.blockY, event.target.blockZ)
|
||||
.getMaterial()
|
||||
!= Material.air) {
|
||||
this.cacheX = event.target.blockX;
|
||||
this.cacheY = event.target.blockY;
|
||||
this.cacheZ = event.target.blockZ;
|
||||
this.tempDir = ForgeDirection.getOrientation(event.target.sideHit);
|
||||
} else {
|
||||
this.resetBlocks((EntityPlayer) mc.thePlayer);
|
||||
}
|
||||
else {
|
||||
this.resetBlocks((EntityPlayer)mc.thePlayer);
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.resetBlocks((EntityPlayer)mc.thePlayer);
|
||||
} else {
|
||||
this.resetBlocks((EntityPlayer) mc.thePlayer);
|
||||
}
|
||||
} else {
|
||||
this.resetBlocks((EntityPlayer) mc.thePlayer);
|
||||
}
|
||||
else {
|
||||
this.resetBlocks((EntityPlayer)mc.thePlayer);
|
||||
}
|
||||
}
|
||||
else if (this.evanescentStage != 0) {
|
||||
this.resetBlocks((EntityPlayer)mc.thePlayer);
|
||||
} else if (this.evanescentStage != 0) {
|
||||
this.resetBlocks((EntityPlayer) mc.thePlayer);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void setBlocksEvanescent(final EntityPlayer p) {
|
||||
if (p.isSwingInProgress) {
|
||||
this.breakProgress += p.worldObj.getBlock(this.cacheX, this.cacheY, this.cacheZ).getPlayerRelativeBlockHardness(p, p.worldObj, this.cacheX, this.cacheY, this.cacheZ);
|
||||
this.breakProgress += p.worldObj
|
||||
.getBlock(this.cacheX, this.cacheY, this.cacheZ)
|
||||
.getPlayerRelativeBlockHardness(p, p.worldObj, this.cacheX, this.cacheY, this.cacheZ);
|
||||
if (this.breakProgress > 1.0f) {
|
||||
Minecraft.getMinecraft().getNetHandler().addToSendQueue((Packet)new C07PacketPlayerDigging(2, p.getEntityId(), this.cacheX, this.cacheY, this.cacheZ));
|
||||
Minecraft.getMinecraft().playerController.onPlayerDestroyBlock(p.getEntityId(), this.cacheX, this.cacheY, this.cacheZ);
|
||||
Minecraft.getMinecraft().getNetHandler().addToSendQueue((Packet)
|
||||
new C07PacketPlayerDigging(2, p.getEntityId(), this.cacheX, this.cacheY, this.cacheZ));
|
||||
Minecraft.getMinecraft()
|
||||
.playerController
|
||||
.onPlayerDestroyBlock(p.getEntityId(), this.cacheX, this.cacheY, this.cacheZ);
|
||||
this.breakProgress = 0.0f;
|
||||
return;
|
||||
}
|
||||
@@ -380,73 +412,132 @@ public class RenderEventHandler
|
||||
for (int i = -1; i < 2; ++i) {
|
||||
for (int j = -1; j < 2; ++j) {
|
||||
if (this.tempDir == ForgeDirection.UP || this.tempDir == ForgeDirection.DOWN) {
|
||||
if (p.worldObj.getTileEntity(this.cacheX + i, this.cacheY, this.cacheZ + j) == null && p.worldObj.getBlock(this.cacheX + i, this.cacheY, this.cacheZ + j).getLightValue() == 0 && p.worldObj.getBlock(this.cacheX + i, this.cacheY, this.cacheZ + j).canCollideCheck(p.worldObj.getBlockMetadata(this.cacheX + i, this.cacheY, this.cacheZ + j), false)) {
|
||||
if (p.worldObj.getBlock(this.cacheX + i, this.cacheY, this.cacheZ + j) != ThaumicHorizons.blockEvanescent) {
|
||||
this.tempBlock[i + 1][j + 1] = p.worldObj.getBlock(this.cacheX + i, this.cacheY, this.cacheZ + j);
|
||||
this.tempMD[i + 1][j + 1] = p.worldObj.getBlockMetadata(this.cacheX + i, this.cacheY, this.cacheZ + j);
|
||||
if (p.worldObj.getTileEntity(this.cacheX + i, this.cacheY, this.cacheZ + j) == null
|
||||
&& p.worldObj
|
||||
.getBlock(this.cacheX + i, this.cacheY, this.cacheZ + j)
|
||||
.getLightValue()
|
||||
== 0
|
||||
&& p.worldObj
|
||||
.getBlock(this.cacheX + i, this.cacheY, this.cacheZ + j)
|
||||
.canCollideCheck(
|
||||
p.worldObj.getBlockMetadata(this.cacheX + i, this.cacheY, this.cacheZ + j),
|
||||
false)) {
|
||||
if (p.worldObj.getBlock(this.cacheX + i, this.cacheY, this.cacheZ + j)
|
||||
!= ThaumicHorizons.blockEvanescent) {
|
||||
this.tempBlock[i + 1][j + 1] =
|
||||
p.worldObj.getBlock(this.cacheX + i, this.cacheY, this.cacheZ + j);
|
||||
this.tempMD[i + 1][j + 1] =
|
||||
p.worldObj.getBlockMetadata(this.cacheX + i, this.cacheY, this.cacheZ + j);
|
||||
}
|
||||
if (this.tempBlock[i + 1][j + 1].getMaterial() != Material.air) {
|
||||
p.worldObj.setBlock(this.cacheX + i, this.cacheY, this.cacheZ + j, ThaumicHorizons.blockEvanescent);
|
||||
p.worldObj.setBlock(
|
||||
this.cacheX + i, this.cacheY, this.cacheZ + j, ThaumicHorizons.blockEvanescent);
|
||||
}
|
||||
}
|
||||
else if (p.worldObj.getBlock(this.cacheX + i, this.cacheY, this.cacheZ + j) != ThaumicHorizons.blockEvanescent) {
|
||||
} else if (p.worldObj.getBlock(this.cacheX + i, this.cacheY, this.cacheZ + j)
|
||||
!= ThaumicHorizons.blockEvanescent) {
|
||||
this.tempBlock[i + 1][j + 1] = null;
|
||||
}
|
||||
}
|
||||
else if (this.tempDir == ForgeDirection.NORTH || this.tempDir == ForgeDirection.SOUTH) {
|
||||
if (p.worldObj.getTileEntity(this.cacheX + i, this.cacheY + j, this.cacheZ) == null && p.worldObj.getBlock(this.cacheX + i, this.cacheY + j, this.cacheZ).getLightValue() == 0 && p.worldObj.getBlock(this.cacheX + i, this.cacheY + j, this.cacheZ).canCollideCheck(p.worldObj.getBlockMetadata(this.cacheX + i, this.cacheY + j, this.cacheZ), false)) {
|
||||
if (p.worldObj.getBlock(this.cacheX + i, this.cacheY + j, this.cacheZ) != ThaumicHorizons.blockEvanescent) {
|
||||
this.tempBlock[i + 1][j + 1] = p.worldObj.getBlock(this.cacheX + i, this.cacheY + j, this.cacheZ);
|
||||
this.tempMD[i + 1][j + 1] = p.worldObj.getBlockMetadata(this.cacheX + i, this.cacheY + j, this.cacheZ);
|
||||
} else if (this.tempDir == ForgeDirection.NORTH || this.tempDir == ForgeDirection.SOUTH) {
|
||||
if (p.worldObj.getTileEntity(this.cacheX + i, this.cacheY + j, this.cacheZ) == null
|
||||
&& p.worldObj
|
||||
.getBlock(this.cacheX + i, this.cacheY + j, this.cacheZ)
|
||||
.getLightValue()
|
||||
== 0
|
||||
&& p.worldObj
|
||||
.getBlock(this.cacheX + i, this.cacheY + j, this.cacheZ)
|
||||
.canCollideCheck(
|
||||
p.worldObj.getBlockMetadata(this.cacheX + i, this.cacheY + j, this.cacheZ),
|
||||
false)) {
|
||||
if (p.worldObj.getBlock(this.cacheX + i, this.cacheY + j, this.cacheZ)
|
||||
!= ThaumicHorizons.blockEvanescent) {
|
||||
this.tempBlock[i + 1][j + 1] =
|
||||
p.worldObj.getBlock(this.cacheX + i, this.cacheY + j, this.cacheZ);
|
||||
this.tempMD[i + 1][j + 1] =
|
||||
p.worldObj.getBlockMetadata(this.cacheX + i, this.cacheY + j, this.cacheZ);
|
||||
}
|
||||
if (this.tempBlock[i + 1][j + 1].getMaterial() != Material.air) {
|
||||
p.worldObj.setBlock(this.cacheX + i, this.cacheY + j, this.cacheZ, ThaumicHorizons.blockEvanescent);
|
||||
p.worldObj.setBlock(
|
||||
this.cacheX + i, this.cacheY + j, this.cacheZ, ThaumicHorizons.blockEvanescent);
|
||||
}
|
||||
}
|
||||
else if (p.worldObj.getBlock(this.cacheX + i, this.cacheY + j, this.cacheZ) != ThaumicHorizons.blockEvanescent) {
|
||||
} else if (p.worldObj.getBlock(this.cacheX + i, this.cacheY + j, this.cacheZ)
|
||||
!= ThaumicHorizons.blockEvanescent) {
|
||||
this.tempBlock[i + 1][j + 1] = null;
|
||||
}
|
||||
}
|
||||
else if (p.worldObj.getTileEntity(this.cacheX, this.cacheY + j, this.cacheZ + i) == null && p.worldObj.getBlock(this.cacheX, this.cacheY + j, this.cacheZ + i).getLightValue() == 0 && p.worldObj.getBlock(this.cacheX, this.cacheY + j, this.cacheZ + i).canCollideCheck(p.worldObj.getBlockMetadata(this.cacheX, this.cacheY + j, this.cacheZ + i), false)) {
|
||||
if (p.worldObj.getBlock(this.cacheX, this.cacheY + j, this.cacheZ + i) != ThaumicHorizons.blockEvanescent) {
|
||||
this.tempBlock[i + 1][j + 1] = p.worldObj.getBlock(this.cacheX, this.cacheY + j, this.cacheZ + i);
|
||||
this.tempMD[i + 1][j + 1] = p.worldObj.getBlockMetadata(this.cacheX, this.cacheY + j, this.cacheZ + i);
|
||||
} else if (p.worldObj.getTileEntity(this.cacheX, this.cacheY + j, this.cacheZ + i) == null
|
||||
&& p.worldObj
|
||||
.getBlock(this.cacheX, this.cacheY + j, this.cacheZ + i)
|
||||
.getLightValue()
|
||||
== 0
|
||||
&& p.worldObj
|
||||
.getBlock(this.cacheX, this.cacheY + j, this.cacheZ + i)
|
||||
.canCollideCheck(
|
||||
p.worldObj.getBlockMetadata(this.cacheX, this.cacheY + j, this.cacheZ + i),
|
||||
false)) {
|
||||
if (p.worldObj.getBlock(this.cacheX, this.cacheY + j, this.cacheZ + i)
|
||||
!= ThaumicHorizons.blockEvanescent) {
|
||||
this.tempBlock[i + 1][j + 1] =
|
||||
p.worldObj.getBlock(this.cacheX, this.cacheY + j, this.cacheZ + i);
|
||||
this.tempMD[i + 1][j + 1] =
|
||||
p.worldObj.getBlockMetadata(this.cacheX, this.cacheY + j, this.cacheZ + i);
|
||||
}
|
||||
if (this.tempBlock[i + 1][j + 1].getMaterial() != Material.air) {
|
||||
p.worldObj.setBlock(this.cacheX, this.cacheY + j, this.cacheZ + i, ThaumicHorizons.blockEvanescent);
|
||||
p.worldObj.setBlock(
|
||||
this.cacheX, this.cacheY + j, this.cacheZ + i, ThaumicHorizons.blockEvanescent);
|
||||
}
|
||||
}
|
||||
else if (p.worldObj.getBlock(this.cacheX, this.cacheY + j, this.cacheZ + i) != ThaumicHorizons.blockEvanescent) {
|
||||
} else if (p.worldObj.getBlock(this.cacheX, this.cacheY + j, this.cacheZ + i)
|
||||
!= ThaumicHorizons.blockEvanescent) {
|
||||
this.tempBlock[i + 1][j + 1] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.evanescentStage = 2;
|
||||
}
|
||||
|
||||
|
||||
public void resetBlocks(final EntityPlayer p) {
|
||||
this.breakProgress = 0.0f;
|
||||
for (int i = -1; i < 2; ++i) {
|
||||
for (int j = -1; j < 2; ++j) {
|
||||
if (this.tempDir == ForgeDirection.UP || this.tempDir == ForgeDirection.DOWN) {
|
||||
if (this.tempBlock[i + 1][j + 1] != null && p.worldObj.getBlock(this.cacheX + i, this.cacheY, this.cacheZ + j) == ThaumicHorizons.blockEvanescent) {
|
||||
p.worldObj.setBlock(this.cacheX + i, this.cacheY, this.cacheZ + j, this.tempBlock[i + 1][j + 1], this.tempMD[i + 1][j + 1], 4);
|
||||
if (this.tempBlock[i + 1][j + 1] != null
|
||||
&& p.worldObj.getBlock(this.cacheX + i, this.cacheY, this.cacheZ + j)
|
||||
== ThaumicHorizons.blockEvanescent) {
|
||||
p.worldObj.setBlock(
|
||||
this.cacheX + i,
|
||||
this.cacheY,
|
||||
this.cacheZ + j,
|
||||
this.tempBlock[i + 1][j + 1],
|
||||
this.tempMD[i + 1][j + 1],
|
||||
4);
|
||||
}
|
||||
}
|
||||
else if (this.tempDir == ForgeDirection.NORTH || this.tempDir == ForgeDirection.SOUTH) {
|
||||
if (this.tempBlock[i + 1][j + 1] != null && p.worldObj.getBlock(this.cacheX + i, this.cacheY + j, this.cacheZ) == ThaumicHorizons.blockEvanescent) {
|
||||
p.worldObj.setBlock(this.cacheX + i, this.cacheY + j, this.cacheZ, this.tempBlock[i + 1][j + 1], this.tempMD[i + 1][j + 1], 4);
|
||||
} else if (this.tempDir == ForgeDirection.NORTH || this.tempDir == ForgeDirection.SOUTH) {
|
||||
if (this.tempBlock[i + 1][j + 1] != null
|
||||
&& p.worldObj.getBlock(this.cacheX + i, this.cacheY + j, this.cacheZ)
|
||||
== ThaumicHorizons.blockEvanescent) {
|
||||
p.worldObj.setBlock(
|
||||
this.cacheX + i,
|
||||
this.cacheY + j,
|
||||
this.cacheZ,
|
||||
this.tempBlock[i + 1][j + 1],
|
||||
this.tempMD[i + 1][j + 1],
|
||||
4);
|
||||
}
|
||||
}
|
||||
else if (this.tempBlock[i + 1][j + 1] != null && p.worldObj.getBlock(this.cacheX, this.cacheY + j, this.cacheZ + i) == ThaumicHorizons.blockEvanescent) {
|
||||
p.worldObj.setBlock(this.cacheX, this.cacheY + j, this.cacheZ + i, this.tempBlock[i + 1][j + 1], this.tempMD[i + 1][j + 1], 4);
|
||||
} else if (this.tempBlock[i + 1][j + 1] != null
|
||||
&& p.worldObj.getBlock(this.cacheX, this.cacheY + j, this.cacheZ + i)
|
||||
== ThaumicHorizons.blockEvanescent) {
|
||||
p.worldObj.setBlock(
|
||||
this.cacheX,
|
||||
this.cacheY + j,
|
||||
this.cacheZ + i,
|
||||
this.tempBlock[i + 1][j + 1],
|
||||
this.tempMD[i + 1][j + 1],
|
||||
4);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.tempBlock = new Block[3][3];
|
||||
this.tempMD = new int[3][3];
|
||||
}
|
||||
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@SubscribeEvent
|
||||
public void renderTick(final TickEvent.RenderTickEvent event) {
|
||||
@@ -455,46 +546,63 @@ public class RenderEventHandler
|
||||
return;
|
||||
}
|
||||
final ItemStack goggles = mc.thePlayer.inventory.armorItemInSlot(3);
|
||||
if (goggles != null && goggles.getItem() instanceof IRevealer && goggles.stackTagCompound != null && goggles.stackTagCompound.getString("Lens") != null && !goggles.stackTagCompound.getString("Lens").equals("")) {
|
||||
final ILens theLens = (ILens)LensManager.getLens(goggles.stackTagCompound.getString("Lens"));
|
||||
if (goggles != null
|
||||
&& goggles.getItem() instanceof IRevealer
|
||||
&& goggles.stackTagCompound != null
|
||||
&& goggles.stackTagCompound.getString("Lens") != null
|
||||
&& !goggles.stackTagCompound.getString("Lens").equals("")) {
|
||||
final ILens theLens = (ILens) LensManager.getLens(goggles.stackTagCompound.getString("Lens"));
|
||||
if (theLens == ThaumicHorizons.itemLensEarth) {
|
||||
this.setBlocksEvanescent((EntityPlayer)mc.thePlayer);
|
||||
this.setBlocksEvanescent((EntityPlayer) mc.thePlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@SubscribeEvent
|
||||
public void renderLast(final RenderWorldLastEvent event) {
|
||||
for (final EntityLivingBase entity : this.thingsThatSparkle) {
|
||||
if (Minecraft.getMinecraft().thePlayer.getDistanceSqToEntity((Entity)entity) < 32.0 && entity.worldObj.rand.nextFloat() > 0.95f) {
|
||||
final float angle = (float)(entity.worldObj.rand.nextFloat() * 2.0f * 3.141592653589793);
|
||||
Thaumcraft.proxy.sparkle((float)entity.posX + entity.width * (float)Math.cos(angle), (float)entity.posY + entity.height * (entity.worldObj.rand.nextFloat() - 0.1f) * 1.2f, (float)entity.posZ + entity.width * (float)Math.sin(angle), 2.0f, 7, 0.0f);
|
||||
if (Minecraft.getMinecraft().thePlayer.getDistanceSqToEntity((Entity) entity) < 32.0
|
||||
&& entity.worldObj.rand.nextFloat() > 0.95f) {
|
||||
final float angle = (float) (entity.worldObj.rand.nextFloat() * 2.0f * 3.141592653589793);
|
||||
Thaumcraft.proxy.sparkle(
|
||||
(float) entity.posX + entity.width * (float) Math.cos(angle),
|
||||
(float) entity.posY + entity.height * (entity.worldObj.rand.nextFloat() - 0.1f) * 1.2f,
|
||||
(float) entity.posZ + entity.width * (float) Math.sin(angle),
|
||||
2.0f,
|
||||
7,
|
||||
0.0f);
|
||||
}
|
||||
}
|
||||
if (this.evanescentStage == 2) {
|
||||
final float temp = this.breakProgress;
|
||||
this.resetBlocks((EntityPlayer)Minecraft.getMinecraft().thePlayer);
|
||||
this.resetBlocks((EntityPlayer) Minecraft.getMinecraft().thePlayer);
|
||||
this.breakProgress = temp;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@SubscribeEvent
|
||||
public void clearWater(final RenderBlockOverlayEvent event) {
|
||||
final Minecraft mc = Minecraft.getMinecraft();
|
||||
final ItemStack goggles = mc.thePlayer.inventory.armorItemInSlot(3);
|
||||
if (goggles != null && goggles.getItem() instanceof IRevealer && goggles.stackTagCompound != null && goggles.stackTagCompound.getString("Lens") != null && !goggles.stackTagCompound.getString("Lens").equals("")) {
|
||||
final ILens theLens = (ILens)LensManager.getLens(goggles.stackTagCompound.getString("Lens"));
|
||||
if (goggles != null
|
||||
&& goggles.getItem() instanceof IRevealer
|
||||
&& goggles.stackTagCompound != null
|
||||
&& goggles.stackTagCompound.getString("Lens") != null
|
||||
&& !goggles.stackTagCompound.getString("Lens").equals("")) {
|
||||
final ILens theLens = (ILens) LensManager.getLens(goggles.stackTagCompound.getString("Lens"));
|
||||
if (theLens == ThaumicHorizons.itemLensWater) {
|
||||
event.setCanceled(true);
|
||||
}
|
||||
}
|
||||
if (event.overlayType == RenderBlockOverlayEvent.OverlayType.FIRE && mc.thePlayer.ridingEntity != null && mc.thePlayer.ridingEntity instanceof EntityBoatThaumium) {
|
||||
if (event.overlayType == RenderBlockOverlayEvent.OverlayType.FIRE
|
||||
&& mc.thePlayer.ridingEntity != null
|
||||
&& mc.thePlayer.ridingEntity instanceof EntityBoatThaumium) {
|
||||
event.setCanceled(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
RenderEventHandler.radialHudScale = 0.0f;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,41 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileBloodInfuser;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockBloodInfuserRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockBloodInfuserRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileBloodInfuser tc = new TileBloodInfuser();
|
||||
tc.blockMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockBloodInfuserRI;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,41 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileEssentiaDynamo;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockEssentiaDynamoRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockEssentiaDynamoRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileEssentiaDynamo tc = new TileEssentiaDynamo();
|
||||
tc.blockMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockEssentiaDynamoRI;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,41 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileInspiratron;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockInspiratronRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockInspiratronRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileInspiratron tc = new TileInspiratron();
|
||||
tc.blockMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockInspiratronRI;
|
||||
}
|
||||
|
||||
+55
-24
@@ -1,46 +1,77 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.util.IIcon;
|
||||
import com.kentington.thaumichorizons.common.blocks.BlockSoulJar;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockJarTHRenderer extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockJarTHRenderer extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glEnable(3042);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
|
||||
final IIcon i1 = ((BlockSoulJar)block).iconJarTop;
|
||||
final IIcon i2 = ((BlockSoulJar)block).iconJarSide;
|
||||
block.setBlockBounds(BlockJarTHRenderer.W3, 0.0f, BlockJarTHRenderer.W3, BlockJarTHRenderer.W13, BlockJarTHRenderer.W12, BlockJarTHRenderer.W13);
|
||||
final IIcon i1 = ((BlockSoulJar) block).iconJarTop;
|
||||
final IIcon i2 = ((BlockSoulJar) block).iconJarSide;
|
||||
block.setBlockBounds(
|
||||
BlockJarTHRenderer.W3,
|
||||
0.0f,
|
||||
BlockJarTHRenderer.W3,
|
||||
BlockJarTHRenderer.W13,
|
||||
BlockJarTHRenderer.W12,
|
||||
BlockJarTHRenderer.W13);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
drawFaces(renderer, block, ((BlockSoulJar)block).iconJarBottom, i1, i2, i2, i2, i2, true);
|
||||
block.setBlockBounds(BlockJarTHRenderer.W5, BlockJarTHRenderer.W12, BlockJarTHRenderer.W5, BlockJarTHRenderer.W11, BlockJarTHRenderer.W14, BlockJarTHRenderer.W11);
|
||||
drawFaces(renderer, block, ((BlockSoulJar) block).iconJarBottom, i1, i2, i2, i2, i2, true);
|
||||
block.setBlockBounds(
|
||||
BlockJarTHRenderer.W5,
|
||||
BlockJarTHRenderer.W12,
|
||||
BlockJarTHRenderer.W5,
|
||||
BlockJarTHRenderer.W11,
|
||||
BlockJarTHRenderer.W14,
|
||||
BlockJarTHRenderer.W11);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
drawFaces(renderer, block, ((BlockSoulJar)block).iconJarBottom, i1, i2, i2, i2, i2, true);
|
||||
drawFaces(renderer, block, ((BlockSoulJar) block).iconJarBottom, i1, i2, i2, i2, i2, true);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
final int bb = setBrightness(world, x, y, z, block);
|
||||
final int metadata = world.getBlockMetadata(x, y, z);
|
||||
block.setBlockBounds(BlockJarTHRenderer.W3, 0.0f, BlockJarTHRenderer.W3, BlockJarTHRenderer.W13, BlockJarTHRenderer.W12, BlockJarTHRenderer.W13);
|
||||
block.setBlockBounds(
|
||||
BlockJarTHRenderer.W3,
|
||||
0.0f,
|
||||
BlockJarTHRenderer.W3,
|
||||
BlockJarTHRenderer.W13,
|
||||
BlockJarTHRenderer.W12,
|
||||
BlockJarTHRenderer.W13);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
block.setBlockBounds(BlockJarTHRenderer.W5, BlockJarTHRenderer.W12, BlockJarTHRenderer.W5, BlockJarTHRenderer.W11, BlockJarTHRenderer.W14, BlockJarTHRenderer.W11);
|
||||
block.setBlockBounds(
|
||||
BlockJarTHRenderer.W5,
|
||||
BlockJarTHRenderer.W12,
|
||||
BlockJarTHRenderer.W5,
|
||||
BlockJarTHRenderer.W11,
|
||||
BlockJarTHRenderer.W14,
|
||||
BlockJarTHRenderer.W11);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
renderer.clearOverrideBlockTexture();
|
||||
@@ -48,11 +79,11 @@ public class BlockJarTHRenderer extends BlockRenderer implements ISimpleBlockRen
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockJarRI;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,41 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileNodeMonitor;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockNodeMonitorRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockNodeMonitorRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileNodeMonitor tc = new TileNodeMonitor();
|
||||
tc.blockMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockNodeMonRI;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,42 +1,49 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileRecombinator;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockRecombinatorRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockRecombinatorRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileRecombinator tc = new TileRecombinator();
|
||||
tc.blockType = ThaumicHorizons.blockRecombinator;
|
||||
tc.blockMetadata = 0;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockRecombinatorRI;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,42 +1,49 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSlot;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockSlotRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelId, final RenderBlocks renderer) {
|
||||
public class BlockSlotRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelId, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileSlot tc = new TileSlot();
|
||||
tc.blockType = ThaumicHorizons.blockSlot;
|
||||
tc.blockMetadata = 0;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockSlotRI;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,41 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulBeacon;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockSoulBeaconRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockSoulBeaconRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileSoulBeacon tc = new TileSoulBeacon();
|
||||
tc.blockMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockSoulBeaconRI;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,41 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulExtractor;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockSoulSieveRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockSoulSieveRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileSoulExtractor tc = new TileSoulExtractor();
|
||||
tc.blockMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockSoulSieveRI;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,41 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulforge;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockSoulforgeRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockSoulforgeRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileSoulforge tc = new TileSoulforge();
|
||||
tc.blockMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockSoulforgeRI;
|
||||
}
|
||||
|
||||
+27
-22
@@ -1,51 +1,56 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSpike;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSpike;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockSpikeRenderer extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockSpikeRenderer extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
byte type = 0;
|
||||
if (block == ThaumicHorizons.blockSpike) {
|
||||
type = 0;
|
||||
}
|
||||
else if (block == ThaumicHorizons.blockSpikeTooth) {
|
||||
} else if (block == ThaumicHorizons.blockSpikeTooth) {
|
||||
type = 2;
|
||||
}
|
||||
else if (block == ThaumicHorizons.blockSpikeWood) {
|
||||
} else if (block == ThaumicHorizons.blockSpikeWood) {
|
||||
type = 1;
|
||||
}
|
||||
final TileSpike tc = new TileSpike((byte)1, type);
|
||||
final TileSpike tc = new TileSpike((byte) 1, type);
|
||||
tc.blockMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockSpikeRI;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,41 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSyntheticNode;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockSyntheticNodeRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockSyntheticNodeRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileSyntheticNode tc = new TileSyntheticNode();
|
||||
tc.blockMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockSyntheticNodeRI;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,41 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileTransductionAmplifier;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockTransductionAmplifierRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockTransductionAmplifierRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileTransductionAmplifier tc = new TileTransductionAmplifier();
|
||||
tc.blockMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockTransducerRI;
|
||||
}
|
||||
|
||||
+19
-13
@@ -1,29 +1,35 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockVatInteriorRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelId, final RenderBlocks renderer) {
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
public class BlockVatInteriorRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelId, final RenderBlocks renderer) {}
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockVatInteriorRI;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,41 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVatMatrix;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockVatMatrixRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockVatMatrixRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileVatMatrix tc = new TileVatMatrix();
|
||||
tc.blockMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockVatMatrixRI;
|
||||
}
|
||||
|
||||
+230
-95
@@ -1,28 +1,34 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVat;
|
||||
import net.minecraft.init.Blocks;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import com.kentington.thaumichorizons.common.blocks.BlockVat;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVat;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVatSlave;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
||||
public class BlockVatRender implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
public class BlockVatRender implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {}
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
if (world.getTileEntity(x, y, z) instanceof TileVatSlave) {
|
||||
final TileVatSlave tco = (TileVatSlave)world.getTileEntity(x, y, z);
|
||||
final TileVatSlave tco = (TileVatSlave) world.getTileEntity(x, y, z);
|
||||
final TileVat boss = tco.getBoss(-1);
|
||||
if (boss == null) {
|
||||
return false;
|
||||
@@ -36,173 +42,302 @@ public class BlockVatRender implements ISimpleBlockRenderingHandler
|
||||
if (world.getBlockMetadata(x, y, z) == 10) {
|
||||
if (dy == 1) {
|
||||
if (dx == -1 && dz == -1) {
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassTL);
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassTR);
|
||||
renderer.renderFaceXPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassTL);
|
||||
renderer.renderFaceZPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassTR);
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 0.75f, 1.0f, 0.75f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceXPos(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZPos(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
else if (dx == 1 && dz == -1) {
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassTR);
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassTL);
|
||||
} else if (dx == 1 && dz == -1) {
|
||||
renderer.renderFaceXNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassTR);
|
||||
renderer.renderFaceZPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassTL);
|
||||
block.setBlockBounds(0.25f, 0.0f, 0.0f, 1.0f, 1.0f, 0.75f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceXNeg(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZPos(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
else if (dx == 1 && dz == 1) {
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassTL);
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassTR);
|
||||
} else if (dx == 1 && dz == 1) {
|
||||
renderer.renderFaceXNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassTL);
|
||||
renderer.renderFaceZNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassTR);
|
||||
block.setBlockBounds(0.25f, 0.0f, 0.25f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceXNeg(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZNeg(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
else if (dx == -1 && dz == 1) {
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassTR);
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassTL);
|
||||
} else if (dx == -1 && dz == 1) {
|
||||
renderer.renderFaceXPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassTR);
|
||||
renderer.renderFaceZNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassTL);
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.25f, 0.75f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceXPos(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZNeg(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
else if (dx == 0) {
|
||||
} else if (dx == 0) {
|
||||
if (dz == -1) {
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassT);
|
||||
renderer.renderFaceZPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassT);
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.75f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZPos(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
else if (dz == 1) {
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassT);
|
||||
} else if (dz == 1) {
|
||||
renderer.renderFaceZNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassT);
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.25f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZNeg(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
}
|
||||
else if (dz == 0) {
|
||||
} else if (dz == 0) {
|
||||
if (dx == -1) {
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassT);
|
||||
renderer.renderFaceXPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassT);
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 0.75f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceXPos(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
else if (dx == 1) {
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassT);
|
||||
} else if (dx == 1) {
|
||||
renderer.renderFaceXNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassT);
|
||||
block.setBlockBounds(0.25f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceXNeg(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (dy == 2) {
|
||||
} else if (dy == 2) {
|
||||
if (dx == -1 && dz == -1) {
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassBL);
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassBR);
|
||||
renderer.renderFaceXPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassBL);
|
||||
renderer.renderFaceZPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassBR);
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 0.75f, 1.0f, 0.75f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceXPos(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZPos(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
else if (dx == 1 && dz == -1) {
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassBR);
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassBL);
|
||||
} else if (dx == 1 && dz == -1) {
|
||||
renderer.renderFaceXNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassBR);
|
||||
renderer.renderFaceZPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassBL);
|
||||
block.setBlockBounds(0.25f, 0.0f, 0.0f, 1.0f, 1.0f, 0.75f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceXNeg(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZPos(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
else if (dx == 1 && dz == 1) {
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassBL);
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassBR);
|
||||
} else if (dx == 1 && dz == 1) {
|
||||
renderer.renderFaceXNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassBL);
|
||||
renderer.renderFaceZNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassBR);
|
||||
block.setBlockBounds(0.25f, 0.0f, 0.25f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceXNeg(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZNeg(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
else if (dx == -1 && dz == 1) {
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassBR);
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassBL);
|
||||
} else if (dx == -1 && dz == 1) {
|
||||
renderer.renderFaceXPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassBR);
|
||||
renderer.renderFaceZNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassBL);
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.25f, 0.75f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceXPos(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZNeg(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
else if (dx == 0) {
|
||||
} else if (dx == 0) {
|
||||
if (dz == -1) {
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassB);
|
||||
renderer.renderFaceZPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassB);
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.75f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZPos(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
else if (dz == 1) {
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassB);
|
||||
} else if (dz == 1) {
|
||||
renderer.renderFaceZNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassB);
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.25f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceZNeg(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
}
|
||||
else if (dz == 0) {
|
||||
} else if (dz == 0) {
|
||||
if (dx == -1) {
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassB);
|
||||
renderer.renderFaceXPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassB);
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 0.75f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceXPos(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
else if (dx == 1) {
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, ((BlockVat)ThaumicHorizons.blockVat).iconGlassB);
|
||||
} else if (dx == 1) {
|
||||
renderer.renderFaceXNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVat) ThaumicHorizons.blockVat).iconGlassB);
|
||||
block.setBlockBounds(0.25f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
Tessellator.instance.setColorRGBA(255, 255, 255, 255);
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, Blocks.water.getBlockTextureFromSide(0));
|
||||
renderer.renderFaceXNeg(
|
||||
block, (double) x, (double) y, (double) z, Blocks.water.getBlockTextureFromSide(0));
|
||||
block.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f);
|
||||
renderer.setRenderBoundsFromBlock(block);
|
||||
}
|
||||
@@ -214,11 +349,11 @@ public class BlockVatRender implements ISimpleBlockRenderingHandler
|
||||
renderer.enableAO = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockVatRI;
|
||||
}
|
||||
|
||||
+295
-89
@@ -1,27 +1,33 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVat;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import com.kentington.thaumichorizons.common.blocks.BlockVatSolid;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVat;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVatSlave;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
||||
public class BlockVatSolidRender implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelId, final RenderBlocks renderer) {
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
public class BlockVatSolidRender implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelId, final RenderBlocks renderer) {}
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
if (world.getTileEntity(x, y, z) instanceof TileVatSlave) {
|
||||
final TileVatSlave tco = (TileVatSlave)world.getTileEntity(x, y, z);
|
||||
final TileVatSlave tco = (TileVatSlave) world.getTileEntity(x, y, z);
|
||||
final TileVat boss = tco.getBoss(-1);
|
||||
if (boss == null) {
|
||||
return false;
|
||||
@@ -33,123 +39,323 @@ public class BlockVatSolidRender implements ISimpleBlockRenderingHandler
|
||||
final int dy = boss.yCoord - tco.yCoord;
|
||||
final int dz = boss.zCoord - tco.zCoord;
|
||||
if (world.getBlockMetadata(x, y, z) == 6) {
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseCenter);
|
||||
renderer.renderFaceYPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerCenter);
|
||||
}
|
||||
else {
|
||||
renderer.renderFaceXNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceZNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceXPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceZPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceYNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseCenter);
|
||||
renderer.renderFaceYPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerCenter);
|
||||
} else {
|
||||
if (world.getBlockMetadata(x, y, z) == 4) {
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseSideBottom);
|
||||
renderer.renderFaceXNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceZNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceXPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceZPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseSide);
|
||||
renderer.renderFaceYNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseSideBottom);
|
||||
if (dx == 0) {
|
||||
if (dz == -1) {
|
||||
renderer.renderFaceYPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerPosZ);
|
||||
renderer.renderFaceYPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerPosZ);
|
||||
} else if (dz == 1) {
|
||||
renderer.renderFaceYPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerNegZ);
|
||||
}
|
||||
else if (dz == 1) {
|
||||
renderer.renderFaceYPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerNegZ);
|
||||
}
|
||||
}
|
||||
else if (dz == 0) {
|
||||
} else if (dz == 0) {
|
||||
if (dx == -1) {
|
||||
renderer.renderFaceYPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerPosX);
|
||||
}
|
||||
else if (dx == 1) {
|
||||
renderer.renderFaceYPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerNegX);
|
||||
renderer.renderFaceYPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerPosX);
|
||||
} else if (dx == 1) {
|
||||
renderer.renderFaceYPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerNegX);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (world.getBlockMetadata(x, y, z) == 5 && dy == 3) {
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseLeftRight);
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseLeftRight);
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseLeftRight);
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseLeftRight);
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconBaseCenter);
|
||||
renderer.renderFaceXNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseLeftRight);
|
||||
renderer.renderFaceZNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseLeftRight);
|
||||
renderer.renderFaceXPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseLeftRight);
|
||||
renderer.renderFaceZPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseLeftRight);
|
||||
renderer.renderFaceYNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconBaseCenter);
|
||||
if (dx == -1) {
|
||||
if (dz == -1) {
|
||||
renderer.renderFaceYPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerCornerD);
|
||||
renderer.renderFaceYPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerCornerD);
|
||||
} else if (dz == 1) {
|
||||
renderer.renderFaceYPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerCornerC);
|
||||
}
|
||||
else if (dz == 1) {
|
||||
renderer.renderFaceYPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerCornerC);
|
||||
}
|
||||
}
|
||||
else if (dx == 1) {
|
||||
} else if (dx == 1) {
|
||||
if (dz == -1) {
|
||||
renderer.renderFaceYPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerCornerA);
|
||||
}
|
||||
else if (dz == 1) {
|
||||
renderer.renderFaceYPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerCornerB);
|
||||
renderer.renderFaceYPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerCornerA);
|
||||
} else if (dz == 1) {
|
||||
renderer.renderFaceYPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerCornerB);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (world.getBlockMetadata(x, y, z) == 5) {
|
||||
renderer.renderFaceYPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconGreatwood);
|
||||
renderer.renderFaceYPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconGreatwood);
|
||||
if (dx == 0 || dz == 0) {
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconLidSideCenter);
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconLidSideCenter);
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconLidSideCenter);
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconLidSideCenter);
|
||||
renderer.renderFaceXNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconLidSideCenter);
|
||||
renderer.renderFaceZNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconLidSideCenter);
|
||||
renderer.renderFaceXPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconLidSideCenter);
|
||||
renderer.renderFaceZPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconLidSideCenter);
|
||||
if (dz == -1) {
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerPosZ);
|
||||
renderer.renderFaceYNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerPosZ);
|
||||
} else if (dz == 1) {
|
||||
renderer.renderFaceYNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerNegZ);
|
||||
} else if (dx == -1) {
|
||||
renderer.renderFaceYNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerPosX);
|
||||
} else if (dx == 1) {
|
||||
renderer.renderFaceYNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerNegX);
|
||||
}
|
||||
else if (dz == 1) {
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerNegZ);
|
||||
}
|
||||
else if (dx == -1) {
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerPosX);
|
||||
}
|
||||
else if (dx == 1) {
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerNegX);
|
||||
}
|
||||
}
|
||||
else {
|
||||
renderer.renderFaceXNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconLidLeftRight);
|
||||
renderer.renderFaceZNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconLidLeftRight);
|
||||
renderer.renderFaceXPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconLidLeftRight);
|
||||
renderer.renderFaceZPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconLidLeftRight);
|
||||
} else {
|
||||
renderer.renderFaceXNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconLidLeftRight);
|
||||
renderer.renderFaceZNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconLidLeftRight);
|
||||
renderer.renderFaceXPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconLidLeftRight);
|
||||
renderer.renderFaceZPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconLidLeftRight);
|
||||
if (dx == -1) {
|
||||
if (dz == -1) {
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerCornerD);
|
||||
renderer.renderFaceYNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerCornerD);
|
||||
} else if (dz == 1) {
|
||||
renderer.renderFaceYNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerCornerC);
|
||||
}
|
||||
else if (dz == 1) {
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerCornerC);
|
||||
}
|
||||
}
|
||||
else if (dx == 1) {
|
||||
} else if (dx == 1) {
|
||||
if (dz == -1) {
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerCornerA);
|
||||
}
|
||||
else if (dz == 1) {
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerCornerB);
|
||||
renderer.renderFaceYNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerCornerA);
|
||||
} else if (dz == 1) {
|
||||
renderer.renderFaceYNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerCornerB);
|
||||
}
|
||||
}
|
||||
}
|
||||
return renderer.enableAO = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (world.getBlockMetadata(x, y, z) == 7) {
|
||||
} else if (world.getBlockMetadata(x, y, z) == 7) {
|
||||
Tessellator.instance.setColorOpaque_F(1.0f, 1.0f, 1.0f);
|
||||
renderer.enableAO = false;
|
||||
renderer.renderFaceYPos(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconLidCenterTop);
|
||||
renderer.renderFaceYNeg(block, (double)x, (double)y, (double)z, ((BlockVatSolid)ThaumicHorizons.blockVatSolid).iconInnerCenter);
|
||||
renderer.renderFaceYPos(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconLidCenterTop);
|
||||
renderer.renderFaceYNeg(
|
||||
block,
|
||||
(double) x,
|
||||
(double) y,
|
||||
(double) z,
|
||||
((BlockVatSolid) ThaumicHorizons.blockVatSolid).iconInnerCenter);
|
||||
return renderer.enableAO = true;
|
||||
}
|
||||
renderer.enableAO = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockVatSolidRI;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,41 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVisDynamo;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockVisDynamoRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
public class BlockVisDynamoRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelID, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileVisDynamo tc = new TileVisDynamo();
|
||||
tc.blockMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockVisDynamoRI;
|
||||
}
|
||||
|
||||
+23
-16
@@ -1,41 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.block;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVortexStabilizer;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.block.BlockRenderer;
|
||||
|
||||
public class BlockVortexStabilizerRender extends BlockRenderer implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
public void renderInventoryBlock(final Block block, final int metadata, final int modelId, final RenderBlocks renderer) {
|
||||
public class BlockVortexStabilizerRender extends BlockRenderer implements ISimpleBlockRenderingHandler {
|
||||
public void renderInventoryBlock(
|
||||
final Block block, final int metadata, final int modelId, final RenderBlocks renderer) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
|
||||
final TileVortexStabilizer tc = new TileVortexStabilizer();
|
||||
tc.blockMetadata = metadata;
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) tc, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public boolean renderWorldBlock(final IBlockAccess world, final int x, final int y, final int z, final Block block, final int modelId, final RenderBlocks renderer) {
|
||||
|
||||
public boolean renderWorldBlock(
|
||||
final IBlockAccess world,
|
||||
final int x,
|
||||
final int y,
|
||||
final int z,
|
||||
final Block block,
|
||||
final int modelId,
|
||||
final RenderBlocks renderer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public boolean shouldRender3DInInventory(final int modelId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public int getRenderId() {
|
||||
return ThaumicHorizons.blockVortexStabilizerRI;
|
||||
}
|
||||
|
||||
+29
-24
@@ -1,40 +1,45 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.potion.PotionHelper;
|
||||
import net.minecraft.entity.projectile.EntityPotion;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.entity.Entity;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.entity.RenderSnowball;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.projectile.EntityPotion;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.potion.PotionHelper;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class BlastPhialRender extends RenderSnowball
|
||||
{
|
||||
public class BlastPhialRender extends RenderSnowball {
|
||||
Item item;
|
||||
|
||||
|
||||
public BlastPhialRender() {
|
||||
super(ThaumicHorizons.itemSyringeInjection);
|
||||
this.item = ThaumicHorizons.itemSyringeInjection;
|
||||
}
|
||||
|
||||
public void doRender(final Entity p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
|
||||
public void doRender(
|
||||
final Entity p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
final IIcon iicon = this.item.getIconFromDamage(1);
|
||||
if (iicon != null) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)p_76986_2_, (float)p_76986_4_, (float)p_76986_6_);
|
||||
GL11.glTranslatef((float) p_76986_2_, (float) p_76986_4_, (float) p_76986_6_);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glScalef(0.5f, 0.5f, 0.5f);
|
||||
this.bindEntityTexture(p_76986_1_);
|
||||
final Tessellator tessellator = Tessellator.instance;
|
||||
final int i = PotionHelper.func_77915_a(((EntityPotion)p_76986_1_).getPotionDamage(), false);
|
||||
final int i = PotionHelper.func_77915_a(((EntityPotion) p_76986_1_).getPotionDamage(), false);
|
||||
final float f2 = (i >> 16 & 0xFF) / 255.0f;
|
||||
final float f3 = (i >> 8 & 0xFF) / 255.0f;
|
||||
final float f4 = (i & 0xFF) / 255.0f;
|
||||
@@ -47,7 +52,7 @@ public class BlastPhialRender extends RenderSnowball
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void func_77026_a(final Tessellator p_77026_1_, final IIcon p_77026_2_) {
|
||||
final float f = p_77026_2_.getMinU();
|
||||
final float f2 = p_77026_2_.getMaxU();
|
||||
@@ -60,13 +65,13 @@ public class BlastPhialRender extends RenderSnowball
|
||||
GL11.glRotatef(-this.renderManager.playerViewX, 1.0f, 0.0f, 0.0f);
|
||||
p_77026_1_.startDrawingQuads();
|
||||
p_77026_1_.setNormal(0.0f, 1.0f, 0.0f);
|
||||
p_77026_1_.addVertexWithUV((double)(0.0f - f6), (double)(0.0f - f7), 0.0, (double)f, (double)f4);
|
||||
p_77026_1_.addVertexWithUV((double)(f5 - f6), (double)(0.0f - f7), 0.0, (double)f2, (double)f4);
|
||||
p_77026_1_.addVertexWithUV((double)(f5 - f6), (double)(f5 - f7), 0.0, (double)f2, (double)f3);
|
||||
p_77026_1_.addVertexWithUV((double)(0.0f - f6), (double)(f5 - f7), 0.0, (double)f, (double)f3);
|
||||
p_77026_1_.addVertexWithUV((double) (0.0f - f6), (double) (0.0f - f7), 0.0, (double) f, (double) f4);
|
||||
p_77026_1_.addVertexWithUV((double) (f5 - f6), (double) (0.0f - f7), 0.0, (double) f2, (double) f4);
|
||||
p_77026_1_.addVertexWithUV((double) (f5 - f6), (double) (f5 - f7), 0.0, (double) f2, (double) f3);
|
||||
p_77026_1_.addVertexWithUV((double) (0.0f - f6), (double) (f5 - f7), 0.0, (double) f, (double) f3);
|
||||
p_77026_1_.draw();
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final Entity p_110775_1_) {
|
||||
return TextureMap.locationItemsTexture;
|
||||
}
|
||||
|
||||
+17
-11
@@ -1,32 +1,38 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelAlchemite extends ModelBase
|
||||
{
|
||||
public class ModelAlchemite extends ModelBase {
|
||||
ModelRenderer Shape1;
|
||||
|
||||
|
||||
public ModelAlchemite() {
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 32;
|
||||
(this.Shape1 = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 16, 16);
|
||||
(this.Shape1 = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 16, 16);
|
||||
this.Shape1.setRotationPoint(-8.0f, 8.0f, -8.0f);
|
||||
this.Shape1.setTextureSize(64, 32);
|
||||
this.Shape1.mirror = true;
|
||||
this.setRotation(this.Shape1, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
this.Shape1.render(f5);
|
||||
}
|
||||
|
||||
|
||||
private void setRotation(final ModelRenderer model, final float x, final float y, final float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
|
||||
+31
-19
@@ -1,38 +1,43 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityAlchemitePrimed;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.entity.RenderEntity;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class RenderAlchemitePrimed extends RenderEntity
|
||||
{
|
||||
public class RenderAlchemitePrimed extends RenderEntity {
|
||||
private RenderBlocks blockRenderer;
|
||||
|
||||
|
||||
public RenderAlchemitePrimed() {
|
||||
this.blockRenderer = new RenderBlocks();
|
||||
this.shadowSize = 0.5f;
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final Entity p_110775_1_) {
|
||||
return this.getEntityTexture((EntityAlchemitePrimed)p_110775_1_);
|
||||
return this.getEntityTexture((EntityAlchemitePrimed) p_110775_1_);
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityAlchemitePrimed p_110775_1_) {
|
||||
return TextureMap.locationBlocksTexture;
|
||||
}
|
||||
|
||||
public void doRenderStuff(final EntityAlchemitePrimed entity, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
|
||||
public void doRenderStuff(
|
||||
final EntityAlchemitePrimed entity,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)p_76986_2_, (float)p_76986_4_, (float)p_76986_6_);
|
||||
GL11.glTranslatef((float) p_76986_2_, (float) p_76986_4_, (float) p_76986_6_);
|
||||
if (entity.fuse - p_76986_9_ + 1.0f < 10.0f) {
|
||||
float f2 = 1.0f - (entity.fuse - p_76986_9_ + 1.0f) / 10.0f;
|
||||
if (f2 < 0.0f) {
|
||||
@@ -47,7 +52,7 @@ public class RenderAlchemitePrimed extends RenderEntity
|
||||
GL11.glScalef(f3, f3, f3);
|
||||
}
|
||||
float f2 = (1.0f - (entity.fuse - p_76986_9_ + 1.0f) / 100.0f) * 0.8f;
|
||||
this.bindEntityTexture((Entity)entity);
|
||||
this.bindEntityTexture((Entity) entity);
|
||||
this.blockRenderer.renderBlockAsItem(ThaumicHorizons.blockAlchemite, 0, entity.getBrightness(p_76986_9_));
|
||||
if (entity.fuse / 5 % 2 == 0) {
|
||||
GL11.glDisable(3553);
|
||||
@@ -63,8 +68,15 @@ public class RenderAlchemitePrimed extends RenderEntity
|
||||
}
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public void doRender(final Entity p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRenderStuff((EntityAlchemitePrimed)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final Entity p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRenderStuff(
|
||||
(EntityAlchemitePrimed) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
}
|
||||
+9
-10
@@ -1,26 +1,25 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityBoatGreatwood;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderBoat;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class RenderBoatGreatwood extends RenderBoat
|
||||
{
|
||||
public class RenderBoatGreatwood extends RenderBoat {
|
||||
private static final ResourceLocation boatTextures;
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityBoatGreatwood p_110775_1_) {
|
||||
return RenderBoatGreatwood.boatTextures;
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final Entity p_110775_1_) {
|
||||
return this.getEntityTexture((EntityBoatGreatwood)p_110775_1_);
|
||||
return this.getEntityTexture((EntityBoatGreatwood) p_110775_1_);
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
boatTextures = new ResourceLocation("thaumichorizons", "textures/entity/boatgreatwood.png");
|
||||
}
|
||||
|
||||
+9
-10
@@ -1,26 +1,25 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityBoatThaumium;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderBoat;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class RenderBoatThaumium extends RenderBoat
|
||||
{
|
||||
public class RenderBoatThaumium extends RenderBoat {
|
||||
private static final ResourceLocation boatTextures;
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityBoatThaumium p_110775_1_) {
|
||||
return RenderBoatThaumium.boatTextures;
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final Entity p_110775_1_) {
|
||||
return this.getEntityTexture((EntityBoatThaumium)p_110775_1_);
|
||||
return this.getEntityTexture((EntityBoatThaumium) p_110775_1_);
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
boatTextures = new ResourceLocation("thaumichorizons", "textures/entity/boatthaumium.png");
|
||||
}
|
||||
|
||||
+8
-9
@@ -1,26 +1,25 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.entity.passive.EntityCow;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderCow;
|
||||
import net.minecraft.entity.passive.EntityCow;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class RenderChocolateCow extends RenderCow
|
||||
{
|
||||
public class RenderChocolateCow extends RenderCow {
|
||||
private static final ResourceLocation cowTextures;
|
||||
|
||||
|
||||
public RenderChocolateCow(final ModelBase p_i1253_1_, final float p_i1253_2_) {
|
||||
super(p_i1253_1_, p_i1253_2_);
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityCow p_110775_1_) {
|
||||
return RenderChocolateCow.cowTextures;
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
cowTextures = new ResourceLocation("thaumichorizons", "textures/entity/chocolatecow.png");
|
||||
}
|
||||
|
||||
+9
-10
@@ -1,24 +1,23 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
import net.minecraft.entity.passive.EntityHorse;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import java.util.Map;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderHorse;
|
||||
import net.minecraft.entity.passive.EntityHorse;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class RenderEndersteed extends RenderHorse
|
||||
{
|
||||
public class RenderEndersteed extends RenderHorse {
|
||||
ResourceLocation enderTex;
|
||||
ResourceLocation enderTexIron;
|
||||
ResourceLocation enderTexGold;
|
||||
ResourceLocation enderTexDiamond;
|
||||
private static final Map field_110852_a;
|
||||
|
||||
|
||||
public RenderEndersteed(final ModelBase p_i1256_1_, final float p_i1256_2_) {
|
||||
super(p_i1256_1_, p_i1256_2_);
|
||||
this.enderTex = new ResourceLocation("thaumichorizons", "textures/entity/endersteed.png");
|
||||
@@ -26,7 +25,7 @@ public class RenderEndersteed extends RenderHorse
|
||||
this.enderTexGold = new ResourceLocation("thaumichorizons", "textures/entity/endersteedgold.png");
|
||||
this.enderTexDiamond = new ResourceLocation("thaumichorizons", "textures/entity/endersteeddiamond.png");
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityHorse p_110775_1_) {
|
||||
switch (p_110775_1_.func_110241_cb()) {
|
||||
case 1: {
|
||||
@@ -43,7 +42,7 @@ public class RenderEndersteed extends RenderHorse
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
field_110852_a = Maps.newHashMap();
|
||||
}
|
||||
|
||||
+55
-26
@@ -1,49 +1,78 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityFamiliar;
|
||||
import net.minecraft.entity.passive.EntityOcelot;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderOcelot;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityOcelot;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
|
||||
public class RenderFamiliar extends RenderOcelot
|
||||
{
|
||||
public class RenderFamiliar extends RenderOcelot {
|
||||
ResourceLocation rl;
|
||||
|
||||
|
||||
public RenderFamiliar(final ModelBase p_i1264_1_, final float p_i1264_2_) {
|
||||
super(p_i1264_1_, p_i1264_2_);
|
||||
this.rl = new ResourceLocation("thaumichorizons", "textures/entity/familiar.png");
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityOcelot p_110775_1_) {
|
||||
return this.rl;
|
||||
}
|
||||
|
||||
public void doRender(final EntityFamiliar p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
super.doRender((EntityOcelot)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityFamiliar p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
super.doRender((EntityOcelot) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
if (p_76986_1_.worldObj.rand.nextFloat() > 0.97f) {
|
||||
final float angle = (float)(p_76986_1_.worldObj.rand.nextFloat() * 2.0f * 3.141592653589793);
|
||||
Thaumcraft.proxy.sparkle((float)p_76986_1_.posX + p_76986_1_.width * (float)Math.cos(angle), (float)p_76986_1_.posY + p_76986_1_.height * (p_76986_1_.worldObj.rand.nextFloat() - 0.1f) * 1.2f, (float)p_76986_1_.posZ + p_76986_1_.width * (float)Math.sin(angle), 2.0f, 0, 0.0f);
|
||||
final float angle = (float) (p_76986_1_.worldObj.rand.nextFloat() * 2.0f * 3.141592653589793);
|
||||
Thaumcraft.proxy.sparkle(
|
||||
(float) p_76986_1_.posX + p_76986_1_.width * (float) Math.cos(angle),
|
||||
(float) p_76986_1_.posY + p_76986_1_.height * (p_76986_1_.worldObj.rand.nextFloat() - 0.1f) * 1.2f,
|
||||
(float) p_76986_1_.posZ + p_76986_1_.width * (float) Math.sin(angle),
|
||||
2.0f,
|
||||
0,
|
||||
0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
public void doRender(final Entity p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityFamiliar)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final Entity p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityFamiliar) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
|
||||
public void doRender(final EntityLiving p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityFamiliar)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityLiving p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityFamiliar) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
|
||||
public void doRender(final EntityLivingBase p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityFamiliar)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityLivingBase p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityFamiliar) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
}
|
||||
+55
-26
@@ -1,49 +1,78 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityGoldChicken;
|
||||
import net.minecraft.entity.passive.EntityChicken;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderChicken;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityChicken;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
|
||||
public class RenderGoldChicken extends RenderChicken
|
||||
{
|
||||
public class RenderGoldChicken extends RenderChicken {
|
||||
ResourceLocation rl;
|
||||
|
||||
|
||||
public RenderGoldChicken(final ModelBase p_i1252_1_, final float p_i1252_2_) {
|
||||
super(p_i1252_1_, p_i1252_2_);
|
||||
this.rl = new ResourceLocation("thaumichorizons", "textures/entity/goldchicken.png");
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityChicken p_110775_1_) {
|
||||
return this.rl;
|
||||
}
|
||||
|
||||
public void doRender(final EntityGoldChicken p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
super.doRender((EntityChicken)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityGoldChicken p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
super.doRender((EntityChicken) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
if (p_76986_1_.worldObj.rand.nextFloat() > 0.95f) {
|
||||
final float angle = (float)(p_76986_1_.worldObj.rand.nextFloat() * 2.0f * 3.141592653589793);
|
||||
Thaumcraft.proxy.sparkle((float)p_76986_1_.posX + p_76986_1_.width * (float)Math.cos(angle), (float)p_76986_1_.posY + p_76986_1_.height * (p_76986_1_.worldObj.rand.nextFloat() - 0.1f) * 1.2f, (float)p_76986_1_.posZ + p_76986_1_.width * (float)Math.sin(angle), 2.0f, 1, 0.0f);
|
||||
final float angle = (float) (p_76986_1_.worldObj.rand.nextFloat() * 2.0f * 3.141592653589793);
|
||||
Thaumcraft.proxy.sparkle(
|
||||
(float) p_76986_1_.posX + p_76986_1_.width * (float) Math.cos(angle),
|
||||
(float) p_76986_1_.posY + p_76986_1_.height * (p_76986_1_.worldObj.rand.nextFloat() - 0.1f) * 1.2f,
|
||||
(float) p_76986_1_.posZ + p_76986_1_.width * (float) Math.sin(angle),
|
||||
2.0f,
|
||||
1,
|
||||
0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
public void doRender(final Entity p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityGoldChicken)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final Entity p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityGoldChicken) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
|
||||
public void doRender(final EntityLiving p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityGoldChicken)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityLiving p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityGoldChicken) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
|
||||
public void doRender(final EntityLivingBase p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityGoldChicken)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityLivingBase p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityGoldChicken) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
}
|
||||
+69
-49
@@ -1,90 +1,108 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.util.IIcon;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import thaumcraft.common.config.ConfigItems;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.init.Blocks;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityGolemTH;
|
||||
import net.minecraft.entity.Entity;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelGolemTH;
|
||||
import thaumcraft.client.renderers.models.entities.ModelGolemAccessories;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityGolemTH;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.client.renderers.entity.RenderGolemBase;
|
||||
import thaumcraft.client.renderers.models.entities.ModelGolemAccessories;
|
||||
import thaumcraft.common.config.ConfigItems;
|
||||
|
||||
public class RenderGolemTH extends RenderGolemBase
|
||||
{
|
||||
public class RenderGolemTH extends RenderGolemBase {
|
||||
ResourceLocation voidGolem;
|
||||
ModelBase damage;
|
||||
ModelBase accessories;
|
||||
|
||||
|
||||
public RenderGolemTH(final ModelBase arg0) {
|
||||
super(arg0);
|
||||
this.voidGolem = new ResourceLocation("thaumichorizons", "textures/models/golem_void.png");
|
||||
this.accessories = (ModelBase)new ModelGolemAccessories(0.0f, 30.0f);
|
||||
this.accessories = (ModelBase) new ModelGolemAccessories(0.0f, 30.0f);
|
||||
if (arg0 instanceof ModelGolemTH) {
|
||||
final ModelGolemTH mg = new ModelGolemTH(false);
|
||||
mg.pass = 2;
|
||||
this.damage = (ModelBase)mg;
|
||||
this.damage = (ModelBase) mg;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final Entity entity) {
|
||||
if (entity instanceof EntityGolemTH) {
|
||||
final EntityGolemTH golem = (EntityGolemTH)entity;
|
||||
final EntityGolemTH golem = (EntityGolemTH) entity;
|
||||
if (golem.texture == null && golem.blocky != null && golem.blocky != Blocks.air) {
|
||||
golem.loadTexture();
|
||||
}
|
||||
else if (golem.texture == null) {
|
||||
} else if (golem.texture == null) {
|
||||
return this.voidGolem;
|
||||
}
|
||||
return golem.texture;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void render(final EntityGolemTH e, final double par2, final double par4, final double par6, final float par8, final float par9) {
|
||||
super.doRender((EntityLiving)e, par2, par4, par6, par8, par9);
|
||||
|
||||
public void render(
|
||||
final EntityGolemTH e,
|
||||
final double par2,
|
||||
final double par4,
|
||||
final double par6,
|
||||
final float par8,
|
||||
final float par9) {
|
||||
super.doRender((EntityLiving) e, par2, par4, par6, par8, par9);
|
||||
}
|
||||
|
||||
public void doRender(final EntityLiving par1EntityLiving, final double par2, final double par4, final double par6, final float par8, final float par9) {
|
||||
this.render((EntityGolemTH)par1EntityLiving, par2, par4, par6, par8, par9);
|
||||
|
||||
public void doRender(
|
||||
final EntityLiving par1EntityLiving,
|
||||
final double par2,
|
||||
final double par4,
|
||||
final double par6,
|
||||
final float par8,
|
||||
final float par9) {
|
||||
this.render((EntityGolemTH) par1EntityLiving, par2, par4, par6, par8, par9);
|
||||
}
|
||||
|
||||
public void doRender(final Entity par1Entity, final double par2, final double par4, final double par6, final float par8, final float par9) {
|
||||
this.render((EntityGolemTH)par1Entity, par2, par4, par6, par8, par9);
|
||||
|
||||
public void doRender(
|
||||
final Entity par1Entity,
|
||||
final double par2,
|
||||
final double par4,
|
||||
final double par6,
|
||||
final float par8,
|
||||
final float par9) {
|
||||
this.render((EntityGolemTH) par1Entity, par2, par4, par6, par8, par9);
|
||||
}
|
||||
|
||||
|
||||
protected int shouldRenderPass(final EntityLivingBase entity, final int pass, final float par3) {
|
||||
if (pass == 0) {
|
||||
final String deco = ((EntityGolemTH)entity).getGolemDecoration();
|
||||
if (((EntityGolemTH)entity).getCore() > -1) {
|
||||
final String deco = ((EntityGolemTH) entity).getGolemDecoration();
|
||||
if (((EntityGolemTH) entity).getCore() > -1) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(180.0f, 1.0f, 0.0f, 0.0f);
|
||||
GL11.glTranslatef(0.0875f, -0.96f, 0.15f + (deco.contains("P") ? 0.03f : 0.0f));
|
||||
GL11.glScaled(0.175, 0.175, 0.175);
|
||||
GL11.glRotatef(180.0f, 0.0f, 1.0f, 0.0f);
|
||||
final Tessellator tessellator = Tessellator.instance;
|
||||
final IIcon icon = ConfigItems.itemGolemCore.getIconFromDamage((int)((EntityGolemTH)entity).getCore());
|
||||
final IIcon icon =
|
||||
ConfigItems.itemGolemCore.getIconFromDamage((int) ((EntityGolemTH) entity).getCore());
|
||||
final float f1 = icon.getMaxU();
|
||||
final float f2 = icon.getMinV();
|
||||
final float f3 = icon.getMinU();
|
||||
final float f4 = icon.getMaxV();
|
||||
this.renderManager.renderEngine.bindTexture(TextureMap.locationItemsTexture);
|
||||
ItemRenderer.renderItemIn2D(tessellator, f1, f2, f3, f4, icon.getIconWidth(), icon.getIconHeight(), 0.2f);
|
||||
ItemRenderer.renderItemIn2D(
|
||||
tessellator, f1, f2, f3, f4, icon.getIconWidth(), icon.getIconHeight(), 0.2f);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
final int upgrades = ((EntityGolemTH)entity).upgrades.length;
|
||||
final int upgrades = ((EntityGolemTH) entity).upgrades.length;
|
||||
final float shift = 0.08f;
|
||||
GL11.glPushMatrix();
|
||||
GL11.glEnable(3042);
|
||||
@@ -95,7 +113,8 @@ public class RenderGolemTH extends RenderGolemBase
|
||||
GL11.glTranslatef(-0.05f - shift * (upgrades - 1) / 2.0f + shift * a, -1.106f, 0.099f);
|
||||
GL11.glScaled(0.1, 0.1, 0.1);
|
||||
final Tessellator tessellator2 = Tessellator.instance;
|
||||
final IIcon icon2 = ConfigItems.itemGolemUpgrade.getIconFromDamage((int)((EntityGolemTH)entity).getUpgrade(a));
|
||||
final IIcon icon2 =
|
||||
ConfigItems.itemGolemUpgrade.getIconFromDamage((int) ((EntityGolemTH) entity).getUpgrade(a));
|
||||
final float f5 = icon2.getMaxU();
|
||||
final float f6 = icon2.getMinV();
|
||||
final float f7 = icon2.getMinU();
|
||||
@@ -103,26 +122,27 @@ public class RenderGolemTH extends RenderGolemBase
|
||||
this.renderManager.renderEngine.bindTexture(TextureMap.locationItemsTexture);
|
||||
tessellator2.startDrawingQuads();
|
||||
tessellator2.setNormal(0.0f, 0.0f, 1.0f);
|
||||
tessellator2.addVertexWithUV(0.0, 0.0, 0.0, (double)f5, (double)f8);
|
||||
tessellator2.addVertexWithUV(1.0, 0.0, 0.0, (double)f7, (double)f8);
|
||||
tessellator2.addVertexWithUV(1.0, 1.0, 0.0, (double)f7, (double)f6);
|
||||
tessellator2.addVertexWithUV(0.0, 1.0, 0.0, (double)f5, (double)f6);
|
||||
tessellator2.addVertexWithUV(0.0, 0.0, 0.0, (double) f5, (double) f8);
|
||||
tessellator2.addVertexWithUV(1.0, 0.0, 0.0, (double) f7, (double) f8);
|
||||
tessellator2.addVertexWithUV(1.0, 1.0, 0.0, (double) f7, (double) f6);
|
||||
tessellator2.addVertexWithUV(0.0, 1.0, 0.0, (double) f5, (double) f6);
|
||||
tessellator2.draw();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
GL11.glDisable(3042);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
else {
|
||||
if (pass == 1 && (((EntityGolemTH)entity).getGolemDecoration().length() > 0 || ((EntityGolemTH)entity).advanced)) {
|
||||
} else {
|
||||
if (pass == 1
|
||||
&& (((EntityGolemTH) entity).getGolemDecoration().length() > 0
|
||||
|| ((EntityGolemTH) entity).advanced)) {
|
||||
UtilsFX.bindTexture("textures/models/golem_decoration.png");
|
||||
this.setRenderPassModel(this.accessories);
|
||||
return 1;
|
||||
}
|
||||
if (pass == 2 && ((EntityGolemTH)entity).getHealthPercentage() < 1.0f) {
|
||||
if (pass == 2 && ((EntityGolemTH) entity).getHealthPercentage() < 1.0f) {
|
||||
UtilsFX.bindTexture("textures/models/golem_damage.png");
|
||||
this.setRenderPassModel(this.damage);
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f - ((EntityGolemTH)entity).getHealthPercentage());
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f - ((EntityGolemTH) entity).getHealthPercentage());
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
+7
-8
@@ -1,23 +1,22 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.entity.passive.EntityOcelot;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderOcelot;
|
||||
import net.minecraft.entity.passive.EntityOcelot;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class RenderGravekeeper extends RenderOcelot
|
||||
{
|
||||
public class RenderGravekeeper extends RenderOcelot {
|
||||
ResourceLocation rl;
|
||||
|
||||
|
||||
public RenderGravekeeper(final ModelBase p_i1264_1_, final float p_i1264_2_) {
|
||||
super(p_i1264_1_, p_i1264_2_);
|
||||
this.rl = new ResourceLocation("thaumichorizons", "textures/entity/gravekeeper.png");
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityOcelot p_110775_1_) {
|
||||
return this.rl;
|
||||
}
|
||||
|
||||
+6
-7
@@ -1,20 +1,19 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.entity.passive.EntityOcelot;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderOcelot;
|
||||
import net.minecraft.entity.passive.EntityOcelot;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class RenderGuardianPanther extends RenderOcelot
|
||||
{
|
||||
public class RenderGuardianPanther extends RenderOcelot {
|
||||
public RenderGuardianPanther(final ModelBase p_i1264_1_, final float p_i1264_2_) {
|
||||
super(p_i1264_1_, p_i1264_2_);
|
||||
}
|
||||
|
||||
|
||||
protected void preRenderCallback(final EntityOcelot p_77041_1_, final float p_77041_2_) {
|
||||
super.preRenderCallback(p_77041_1_, p_77041_2_);
|
||||
GL11.glScalef(2.0f, 2.0f, 2.0f);
|
||||
|
||||
+27
-16
@@ -1,22 +1,32 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import java.util.Random;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityLightningBoltFinite;
|
||||
import net.minecraft.entity.Entity;
|
||||
import java.util.Random;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.entity.RenderLightningBolt;
|
||||
import net.minecraft.entity.Entity;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class RenderLightningBoltFinite extends RenderLightningBolt
|
||||
{
|
||||
public void doRender(final Entity p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
}
|
||||
|
||||
public void doRender(final EntityLightningBoltFinite p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
public class RenderLightningBoltFinite extends RenderLightningBolt {
|
||||
public void doRender(
|
||||
final Entity p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {}
|
||||
|
||||
public void doRender(
|
||||
final EntityLightningBoltFinite p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
final Tessellator tessellator = Tessellator.instance;
|
||||
GL11.glDisable(3553);
|
||||
GL11.glDisable(2896);
|
||||
@@ -53,8 +63,7 @@ public class RenderLightningBoltFinite extends RenderLightningBolt
|
||||
if (j == 0) {
|
||||
d5 += (random2.nextInt(11) - 5) * mult;
|
||||
d6 += (random2.nextInt(11) - 5) * mult;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
d5 += (random2.nextInt(31) - 15) * mult;
|
||||
d6 += (random2.nextInt(31) - 15) * mult;
|
||||
}
|
||||
@@ -86,8 +95,10 @@ public class RenderLightningBoltFinite extends RenderLightningBolt
|
||||
if (j2 == 2 || j2 == 3) {
|
||||
d14 += d10 * 2.0;
|
||||
}
|
||||
tessellator.addVertex(d13 + d5, p_76986_4_ + p_76986_1_.boltLength / (l - m + 1) * i2 / 2.0, d14 + d6);
|
||||
tessellator.addVertex(d11 + d7, p_76986_4_ + p_76986_1_.boltLength / (l - m + 1) * (i2 + 1) / 2.0, d12 + d8);
|
||||
tessellator.addVertex(
|
||||
d13 + d5, p_76986_4_ + p_76986_1_.boltLength / (l - m + 1) * i2 / 2.0, d14 + d6);
|
||||
tessellator.addVertex(
|
||||
d11 + d7, p_76986_4_ + p_76986_1_.boltLength / (l - m + 1) * (i2 + 1) / 2.0, d12 + d8);
|
||||
}
|
||||
tessellator.draw();
|
||||
}
|
||||
|
||||
+65
-31
@@ -1,32 +1,37 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityWolf;
|
||||
import net.minecraft.entity.Entity;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.client.renderers.tile.TileNodeRenderer;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityLunarWolf;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderWolf;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityWolf;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.client.renderers.tile.TileNodeRenderer;
|
||||
|
||||
public class RenderLunarWolf extends RenderWolf
|
||||
{
|
||||
public class RenderLunarWolf extends RenderWolf {
|
||||
ResourceLocation wolfTex;
|
||||
|
||||
|
||||
public RenderLunarWolf(final ModelBase p_i1269_1_, final ModelBase p_i1269_2_, final float p_i1269_3_) {
|
||||
super(p_i1269_1_, p_i1269_2_, p_i1269_3_);
|
||||
this.wolfTex = new ResourceLocation("thaumichorizons", "textures/entity/lunarwolf.png");
|
||||
}
|
||||
|
||||
public void doRender(final EntityLunarWolf p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
super.doRender((EntityLiving)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityLunarWolf p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
super.doRender((EntityLiving) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
if (p_76986_1_.worldObj.getWorldTime() % 24000L < 12000L) {
|
||||
return;
|
||||
}
|
||||
@@ -40,7 +45,18 @@ public class RenderLunarWolf extends RenderWolf
|
||||
GL11.glDisable(2884);
|
||||
final int i = p_76986_1_.ticksExisted % 32;
|
||||
UtilsFX.bindTexture(TileNodeRenderer.nodetex);
|
||||
UtilsFX.renderFacingStrip(p_76986_1_.posX, p_76986_1_.posY + p_76986_1_.height / 1.75, p_76986_1_.posZ, 0.0f, scale, 0.75f, 32, 1, i, p_76986_9_, 11197951);
|
||||
UtilsFX.renderFacingStrip(
|
||||
p_76986_1_.posX,
|
||||
p_76986_1_.posY + p_76986_1_.height / 1.75,
|
||||
p_76986_1_.posZ,
|
||||
0.0f,
|
||||
scale,
|
||||
0.75f,
|
||||
32,
|
||||
1,
|
||||
i,
|
||||
p_76986_9_,
|
||||
11197951);
|
||||
GL11.glEnable(2884);
|
||||
GL11.glDepthMask(true);
|
||||
GL11.glPopMatrix();
|
||||
@@ -48,28 +64,46 @@ public class RenderLunarWolf extends RenderWolf
|
||||
GL11.glAlphaFunc(516, 0.1f);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final Entity p_110775_1_) {
|
||||
return this.getEntityTexture((EntityLunarWolf)p_110775_1_);
|
||||
return this.getEntityTexture((EntityLunarWolf) p_110775_1_);
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityWolf p_110775_1_) {
|
||||
return this.getEntityTexture((EntityLunarWolf)p_110775_1_);
|
||||
return this.getEntityTexture((EntityLunarWolf) p_110775_1_);
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityLunarWolf p_110775_1_) {
|
||||
return this.wolfTex;
|
||||
}
|
||||
|
||||
public void doRender(final Entity p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityLunarWolf)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final Entity p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityLunarWolf) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
|
||||
public void doRender(final EntityLiving p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityLunarWolf)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityLiving p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityLunarWolf) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
|
||||
public void doRender(final EntityLivingBase p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityLunarWolf)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityLivingBase p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityLunarWolf) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
}
|
||||
+7
-8
@@ -1,26 +1,25 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderSlime;
|
||||
import net.minecraft.entity.monster.EntitySlime;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderSlime;
|
||||
|
||||
public class RenderMeatSlime extends RenderSlime
|
||||
{
|
||||
public class RenderMeatSlime extends RenderSlime {
|
||||
private static final ResourceLocation slimeTextures;
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntitySlime p_110775_1_) {
|
||||
return RenderMeatSlime.slimeTextures;
|
||||
}
|
||||
|
||||
|
||||
public RenderMeatSlime(final ModelBase p_i1267_1_, final ModelBase p_i1267_2_, final float p_i1267_3_) {
|
||||
super(p_i1267_1_, p_i1267_2_, p_i1267_3_);
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
slimeTextures = new ResourceLocation("thaumichorizons", "textures/entity/meatslime.png");
|
||||
}
|
||||
|
||||
+7
-8
@@ -1,26 +1,25 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderSlime;
|
||||
import net.minecraft.entity.monster.EntitySlime;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderSlime;
|
||||
|
||||
public class RenderMedSlime extends RenderSlime
|
||||
{
|
||||
public class RenderMedSlime extends RenderSlime {
|
||||
private static final ResourceLocation slimeTextures;
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntitySlime p_110775_1_) {
|
||||
return RenderMedSlime.slimeTextures;
|
||||
}
|
||||
|
||||
|
||||
public RenderMedSlime(final ModelBase p_i1267_1_, final ModelBase p_i1267_2_, final float p_i1267_3_) {
|
||||
super(p_i1267_1_, p_i1267_2_, p_i1267_3_);
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
slimeTextures = new ResourceLocation("thaumichorizons", "textures/entity/medslime.png");
|
||||
}
|
||||
|
||||
+7
-8
@@ -1,26 +1,25 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderSlime;
|
||||
import net.minecraft.entity.monster.EntitySlime;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderSlime;
|
||||
|
||||
public class RenderMercurialSlime extends RenderSlime
|
||||
{
|
||||
public class RenderMercurialSlime extends RenderSlime {
|
||||
private static final ResourceLocation slimeTextures;
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntitySlime p_110775_1_) {
|
||||
return RenderMercurialSlime.slimeTextures;
|
||||
}
|
||||
|
||||
|
||||
public RenderMercurialSlime(final ModelBase p_i1267_1_, final ModelBase p_i1267_2_, final float p_i1267_3_) {
|
||||
super(p_i1267_1_, p_i1267_2_, p_i1267_3_);
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
slimeTextures = new ResourceLocation("thaumichorizons", "textures/entity/mercurialslime.png");
|
||||
}
|
||||
|
||||
+12
-13
@@ -1,33 +1,32 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.entity.passive.EntityWolf;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityNetherHound;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderWolf;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.passive.EntityWolf;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class RenderNetherHound extends RenderWolf
|
||||
{
|
||||
public class RenderNetherHound extends RenderWolf {
|
||||
ResourceLocation wolfTex;
|
||||
|
||||
|
||||
public RenderNetherHound(final ModelBase p_i1269_1_, final ModelBase p_i1269_2_, final float p_i1269_3_) {
|
||||
super(p_i1269_1_, p_i1269_2_, p_i1269_3_);
|
||||
this.wolfTex = new ResourceLocation("thaumichorizons", "textures/entity/netherhound.png");
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final Entity p_110775_1_) {
|
||||
return this.getEntityTexture((EntityNetherHound)p_110775_1_);
|
||||
return this.getEntityTexture((EntityNetherHound) p_110775_1_);
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityWolf p_110775_1_) {
|
||||
return this.getEntityTexture((EntityNetherHound)p_110775_1_);
|
||||
return this.getEntityTexture((EntityNetherHound) p_110775_1_);
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityNetherHound p_110775_1_) {
|
||||
return this.wolfTex;
|
||||
}
|
||||
|
||||
+9
-10
@@ -1,24 +1,23 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
import net.minecraft.entity.passive.EntityHorse;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import java.util.Map;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderHorse;
|
||||
import net.minecraft.entity.passive.EntityHorse;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class RenderNightmare extends RenderHorse
|
||||
{
|
||||
public class RenderNightmare extends RenderHorse {
|
||||
ResourceLocation enderTex;
|
||||
ResourceLocation enderTexIron;
|
||||
ResourceLocation enderTexGold;
|
||||
ResourceLocation enderTexDiamond;
|
||||
private static final Map field_110852_a;
|
||||
|
||||
|
||||
public RenderNightmare(final ModelBase p_i1256_1_, final float p_i1256_2_) {
|
||||
super(p_i1256_1_, p_i1256_2_);
|
||||
this.enderTex = new ResourceLocation("thaumichorizons", "textures/entity/nightmare.png");
|
||||
@@ -26,7 +25,7 @@ public class RenderNightmare extends RenderHorse
|
||||
this.enderTexGold = new ResourceLocation("thaumichorizons", "textures/entity/nightmaregold.png");
|
||||
this.enderTexDiamond = new ResourceLocation("thaumichorizons", "textures/entity/nightmarediamond.png");
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityHorse p_110775_1_) {
|
||||
switch (p_110775_1_.func_110241_cb()) {
|
||||
case 1: {
|
||||
@@ -43,7 +42,7 @@ public class RenderNightmare extends RenderHorse
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
field_110852_a = Maps.newHashMap();
|
||||
}
|
||||
|
||||
+8
-9
@@ -1,26 +1,25 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.entity.passive.EntityPig;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderPig;
|
||||
import net.minecraft.entity.passive.EntityPig;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class RenderOreBoar extends RenderPig
|
||||
{
|
||||
public class RenderOreBoar extends RenderPig {
|
||||
private static final ResourceLocation pigTextures;
|
||||
|
||||
|
||||
public RenderOreBoar(final ModelBase p_i1265_1_, final ModelBase p_i1265_2_, final float p_i1265_3_) {
|
||||
super(p_i1265_1_, p_i1265_2_, p_i1265_3_);
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityPig p_110775_1_) {
|
||||
return RenderOreBoar.pigTextures;
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
pigTextures = new ResourceLocation("thaumichorizons", "textures/entity/oreboar.png");
|
||||
}
|
||||
|
||||
+7
-8
@@ -1,23 +1,22 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.entity.passive.EntityChicken;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderChicken;
|
||||
import net.minecraft.entity.passive.EntityChicken;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class RenderScholarChicken extends RenderChicken
|
||||
{
|
||||
public class RenderScholarChicken extends RenderChicken {
|
||||
ResourceLocation rl;
|
||||
|
||||
|
||||
public RenderScholarChicken(final ModelBase p_i1252_1_, final float p_i1252_2_) {
|
||||
super(p_i1252_1_, p_i1252_2_);
|
||||
this.rl = new ResourceLocation("thaumichorizons", "textures/entity/scholarchicken.png");
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityChicken p_110775_1_) {
|
||||
return this.rl;
|
||||
}
|
||||
|
||||
+12
-13
@@ -1,33 +1,32 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.entity.passive.EntityWolf;
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySeawolf;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderWolf;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.passive.EntityWolf;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class RenderSeawolf extends RenderWolf
|
||||
{
|
||||
public class RenderSeawolf extends RenderWolf {
|
||||
ResourceLocation wolfTex;
|
||||
|
||||
|
||||
public RenderSeawolf(final ModelBase p_i1269_1_, final ModelBase p_i1269_2_, final float p_i1269_3_) {
|
||||
super(p_i1269_1_, p_i1269_2_, p_i1269_3_);
|
||||
this.wolfTex = new ResourceLocation("thaumichorizons", "textures/entity/seawolf.png");
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final Entity p_110775_1_) {
|
||||
return this.getEntityTexture((EntitySeawolf)p_110775_1_);
|
||||
return this.getEntityTexture((EntitySeawolf) p_110775_1_);
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityWolf p_110775_1_) {
|
||||
return this.getEntityTexture((EntitySeawolf)p_110775_1_);
|
||||
return this.getEntityTexture((EntitySeawolf) p_110775_1_);
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntitySeawolf p_110775_1_) {
|
||||
return this.wolfTex;
|
||||
}
|
||||
|
||||
+8
-9
@@ -1,34 +1,33 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySheeder;
|
||||
import net.minecraft.client.renderer.entity.RenderSpider;
|
||||
import net.minecraft.entity.monster.EntitySpider;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderSpider;
|
||||
|
||||
public class RenderSheeder extends RenderSpider
|
||||
{
|
||||
public class RenderSheeder extends RenderSpider {
|
||||
private static final ResourceLocation spiderTextures;
|
||||
private static final ResourceLocation spiderEyesTextures;
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntitySpider p_110775_1_) {
|
||||
return RenderSheeder.spiderTextures;
|
||||
}
|
||||
|
||||
|
||||
protected int shouldRenderPass(final EntitySpider p_77032_1_, final int p_77032_2_, final float p_77032_3_) {
|
||||
if (p_77032_2_ != 0) {
|
||||
return -1;
|
||||
}
|
||||
if (!((EntitySheeder)p_77032_1_).getSheared()) {
|
||||
if (!((EntitySheeder) p_77032_1_).getSheared()) {
|
||||
this.bindTexture(RenderSheeder.spiderEyesTextures);
|
||||
return 1;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
spiderTextures = new ResourceLocation("thaumichorizons", "textures/entity/sheeder.png");
|
||||
spiderEyesTextures = new ResourceLocation("thaumichorizons", "textures/entity/sheederoverlay.png");
|
||||
|
||||
+45
-24
@@ -1,32 +1,32 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.client.entity.AbstractClientPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.ActiveRenderInfo;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class RenderSoul extends Render
|
||||
{
|
||||
public class RenderSoul extends Render {
|
||||
int size1;
|
||||
int size2;
|
||||
|
||||
|
||||
public RenderSoul() {
|
||||
this.size1 = 0;
|
||||
this.size2 = 0;
|
||||
this.shadowSize = 0.0f;
|
||||
}
|
||||
|
||||
public void renderEntityAt(final Entity entity, final double x, final double y, final double z, final float fq, final float pticks) {
|
||||
if (((EntityLiving)entity).getHealth() <= 0.0f) {
|
||||
|
||||
public void renderEntityAt(
|
||||
final Entity entity, final double x, final double y, final double z, final float fq, final float pticks) {
|
||||
if (((EntityLiving) entity).getHealth() <= 0.0f) {
|
||||
return;
|
||||
}
|
||||
final float f1 = ActiveRenderInfo.rotationX;
|
||||
@@ -35,9 +35,9 @@ public class RenderSoul extends Render
|
||||
final float f4 = ActiveRenderInfo.rotationYZ;
|
||||
final float f5 = ActiveRenderInfo.rotationXY;
|
||||
final float f6 = 0.25f;
|
||||
final float f7 = (float)x;
|
||||
final float f8 = (float)y;
|
||||
final float f9 = (float)z;
|
||||
final float f7 = (float) x;
|
||||
final float f8 = (float) y;
|
||||
final float f9 = (float) z;
|
||||
final Tessellator tessellator = Tessellator.instance;
|
||||
GL11.glPushMatrix();
|
||||
GL11.glDepthMask(false);
|
||||
@@ -49,23 +49,44 @@ public class RenderSoul extends Render
|
||||
final float x3 = (i + 1) / this.size1;
|
||||
tessellator.startDrawingQuads();
|
||||
tessellator.setBrightness(240);
|
||||
tessellator.addVertexWithUV((double)(f7 - f1 * f6 - f4 * f6), (double)(f8 - f2 * f6), (double)(f9 - f3 * f6 - f5 * f6), (double)x3, 0.0);
|
||||
tessellator.addVertexWithUV((double)(f7 - f1 * f6 + f4 * f6), (double)(f8 + f2 * f6), (double)(f9 - f3 * f6 + f5 * f6), (double)x3, 1.0);
|
||||
tessellator.addVertexWithUV((double)(f7 + f1 * f6 + f4 * f6), (double)(f8 + f2 * f6), (double)(f9 + f3 * f6 + f5 * f6), (double)x2, 1.0);
|
||||
tessellator.addVertexWithUV((double)(f7 + f1 * f6 - f4 * f6), (double)(f8 - f2 * f6), (double)(f9 + f3 * f6 - f5 * f6), (double)x2, 0.0);
|
||||
tessellator.addVertexWithUV(
|
||||
(double) (f7 - f1 * f6 - f4 * f6),
|
||||
(double) (f8 - f2 * f6),
|
||||
(double) (f9 - f3 * f6 - f5 * f6),
|
||||
(double) x3,
|
||||
0.0);
|
||||
tessellator.addVertexWithUV(
|
||||
(double) (f7 - f1 * f6 + f4 * f6),
|
||||
(double) (f8 + f2 * f6),
|
||||
(double) (f9 - f3 * f6 + f5 * f6),
|
||||
(double) x3,
|
||||
1.0);
|
||||
tessellator.addVertexWithUV(
|
||||
(double) (f7 + f1 * f6 + f4 * f6),
|
||||
(double) (f8 + f2 * f6),
|
||||
(double) (f9 + f3 * f6 + f5 * f6),
|
||||
(double) x2,
|
||||
1.0);
|
||||
tessellator.addVertexWithUV(
|
||||
(double) (f7 + f1 * f6 - f4 * f6),
|
||||
(double) (f8 - f2 * f6),
|
||||
(double) (f9 + f3 * f6 - f5 * f6),
|
||||
(double) x2,
|
||||
0.0);
|
||||
tessellator.draw();
|
||||
GL11.glDisable(3042);
|
||||
GL11.glDepthMask(true);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public void doRender(final Entity entity, final double d, final double d1, final double d2, final float f, final float f1) {
|
||||
|
||||
public void doRender(
|
||||
final Entity entity, final double d, final double d1, final double d2, final float f, final float f1) {
|
||||
if (this.size1 == 0) {
|
||||
this.size1 = 16;
|
||||
}
|
||||
this.renderEntityAt(entity, d, d1, d2, f, f1);
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final Entity entity) {
|
||||
return AbstractClientPlayer.locationStevePng;
|
||||
}
|
||||
|
||||
+20
-15
@@ -1,37 +1,42 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySyringe;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.entity.Entity;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelSyringe;
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySyringe;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class RenderSyringe extends Render
|
||||
{
|
||||
public class RenderSyringe extends Render {
|
||||
private ModelSyringe model;
|
||||
|
||||
|
||||
public RenderSyringe() {
|
||||
this.shadowSize = 0.0f;
|
||||
this.model = new ModelSyringe();
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final Entity p_110775_1_) {
|
||||
return new ResourceLocation("thaumichorizons", "textures/models/syringe.png");
|
||||
}
|
||||
|
||||
public void doRender(final Entity ent, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
|
||||
public void doRender(
|
||||
final Entity ent,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
if (ent instanceof EntitySyringe) {
|
||||
final EntitySyringe syringe = (EntitySyringe)ent;
|
||||
final EntitySyringe syringe = (EntitySyringe) ent;
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)p_76986_2_, (float)p_76986_4_, (float)p_76986_6_);
|
||||
GL11.glTranslatef((float) p_76986_2_, (float) p_76986_4_, (float) p_76986_6_);
|
||||
GL11.glRotatef(syringe.rotationYaw + 90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glRotatef(-syringe.rotationPitch, 0.0f, 0.0f, 1.0f);
|
||||
this.bindEntityTexture((Entity)syringe);
|
||||
this.bindEntityTexture((Entity) syringe);
|
||||
this.model.render(syringe, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0625f, null);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
+67
-34
@@ -1,37 +1,42 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import com.kentington.thaumichorizons.common.entities.EntityTaintPig;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.client.renderer.entity.RenderPig;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityPig;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.client.renderers.tile.TileNodeRenderer;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityTaintPig;
|
||||
import net.minecraft.entity.passive.EntityPig;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderPig;
|
||||
|
||||
public class RenderTaintfeeder extends RenderPig
|
||||
{
|
||||
public class RenderTaintfeeder extends RenderPig {
|
||||
private static final ResourceLocation pigTextures;
|
||||
private static final ResourceLocation pigEyesTextures;
|
||||
|
||||
|
||||
public RenderTaintfeeder(final ModelBase p_i1265_1_, final ModelBase p_i1265_2_, final float p_i1265_3_) {
|
||||
super(p_i1265_1_, p_i1265_2_, p_i1265_3_);
|
||||
}
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntityPig p_110775_1_) {
|
||||
return RenderTaintfeeder.pigTextures;
|
||||
}
|
||||
|
||||
public void doRender(final EntityTaintPig p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
super.doRender((EntityLiving)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityTaintPig p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
super.doRender((EntityLiving) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glAlphaFunc(516, 0.003921569f);
|
||||
GL11.glEnable(3042);
|
||||
@@ -41,7 +46,18 @@ public class RenderTaintfeeder extends RenderPig
|
||||
GL11.glDisable(2884);
|
||||
final int i = p_76986_1_.ticksExisted % 32;
|
||||
UtilsFX.bindTexture(TileNodeRenderer.nodetex);
|
||||
UtilsFX.renderFacingStrip(p_76986_1_.posX, p_76986_1_.posY + p_76986_1_.height / 1.75, p_76986_1_.posZ, 0.0f, 2.0f, 1.0f, 32, 6, i, p_76986_9_, 11197951);
|
||||
UtilsFX.renderFacingStrip(
|
||||
p_76986_1_.posX,
|
||||
p_76986_1_.posY + p_76986_1_.height / 1.75,
|
||||
p_76986_1_.posZ,
|
||||
0.0f,
|
||||
2.0f,
|
||||
1.0f,
|
||||
32,
|
||||
6,
|
||||
i,
|
||||
p_76986_9_,
|
||||
11197951);
|
||||
GL11.glEnable(2884);
|
||||
GL11.glDepthMask(true);
|
||||
GL11.glPopMatrix();
|
||||
@@ -49,36 +65,53 @@ public class RenderTaintfeeder extends RenderPig
|
||||
GL11.glAlphaFunc(516, 0.1f);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public void doRender(final Entity p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityTaintPig)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final Entity p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityTaintPig) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
|
||||
public void doRender(final EntityLiving p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityTaintPig)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityLiving p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityTaintPig) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
|
||||
public void doRender(final EntityLivingBase p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityTaintPig)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityLivingBase p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityTaintPig) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
|
||||
|
||||
protected int shouldRenderPass(final EntityLivingBase p_77032_1_, final int p_77032_2_, final float p_77032_3_) {
|
||||
return this.shouldRenderPass((EntityTaintPig)p_77032_1_, p_77032_2_, p_77032_3_);
|
||||
return this.shouldRenderPass((EntityTaintPig) p_77032_1_, p_77032_2_, p_77032_3_);
|
||||
}
|
||||
|
||||
|
||||
protected int shouldRenderPass(final EntityTaintPig p_77032_1_, final int p_77032_2_, final float p_77032_3_) {
|
||||
if (p_77032_2_ != 0) {
|
||||
return -1;
|
||||
}
|
||||
final float f = (float)Math.sin(Math.toRadians(p_77032_1_.ticksExisted % 45) * 8.0);
|
||||
final float f = (float) Math.sin(Math.toRadians(p_77032_1_.ticksExisted % 45) * 8.0);
|
||||
this.bindTexture(RenderTaintfeeder.pigEyesTextures);
|
||||
GL11.glEnable(3042);
|
||||
GL11.glDisable(3008);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
if (p_77032_1_.isInvisible()) {
|
||||
GL11.glDepthMask(false);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
GL11.glDepthMask(true);
|
||||
}
|
||||
final char c0 = '\uf0f0';
|
||||
@@ -88,7 +121,7 @@ public class RenderTaintfeeder extends RenderPig
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 0.32f + 0.32f * f);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
pigTextures = new ResourceLocation("thaumichorizons", "textures/entity/taintfeeder.png");
|
||||
pigEyesTextures = new ResourceLocation("thaumichorizons", "textures/entity/taintfeeder_eyes.png");
|
||||
|
||||
+7
-8
@@ -1,26 +1,25 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderSlime;
|
||||
import net.minecraft.entity.monster.EntitySlime;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.entity.RenderSlime;
|
||||
|
||||
public class RenderVoltSlime extends RenderSlime
|
||||
{
|
||||
public class RenderVoltSlime extends RenderSlime {
|
||||
private static final ResourceLocation slimeTextures;
|
||||
|
||||
|
||||
protected ResourceLocation getEntityTexture(final EntitySlime p_110775_1_) {
|
||||
return RenderVoltSlime.slimeTextures;
|
||||
}
|
||||
|
||||
|
||||
public RenderVoltSlime(final ModelBase p_i1267_1_, final ModelBase p_i1267_2_, final float p_i1267_3_) {
|
||||
super(p_i1267_1_, p_i1267_2_, p_i1267_3_);
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
slimeTextures = new ResourceLocation("thaumichorizons", "textures/entity/voltslime.png");
|
||||
}
|
||||
|
||||
+97
-40
@@ -1,49 +1,78 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.entity;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.client.renderers.tile.TileNodeRenderer;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import com.kentington.thaumichorizons.common.entities.EntityWizardCow;
|
||||
import java.util.HashMap;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.entity.RenderCow;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.nodes.NodeModifier;
|
||||
import thaumcraft.api.nodes.NodeType;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import java.util.HashMap;
|
||||
import net.minecraft.client.renderer.entity.RenderCow;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.client.renderers.tile.TileNodeRenderer;
|
||||
|
||||
public class RenderWizardCow extends RenderCow
|
||||
{
|
||||
public class RenderWizardCow extends RenderCow {
|
||||
public static HashMap<String, AspectList> cowAspects;
|
||||
public static HashMap<String, NodeType> cowTypes;
|
||||
public static HashMap<String, NodeModifier> cowMods;
|
||||
|
||||
|
||||
public RenderWizardCow(final ModelBase p_i1253_1_, final float p_i1253_2_) {
|
||||
super(p_i1253_1_, p_i1253_2_);
|
||||
}
|
||||
|
||||
public void doRender(final EntityWizardCow p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
|
||||
public void doRender(
|
||||
final EntityWizardCow p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
GL11.glEnable(3042);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 0.5f);
|
||||
super.doRender((EntityLiving)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
super.doRender((EntityLiving) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
if (RenderWizardCow.cowAspects.containsKey(p_76986_1_.getUniqueID().toString())) {
|
||||
this.renderMyNode(p_76986_1_.posX, p_76986_1_.posY + p_76986_1_.height / 2.0f, p_76986_1_.posZ, Minecraft.getMinecraft().renderViewEntity, 32.0, true, true, 1.0f, p_76986_9_, RenderWizardCow.cowAspects.get(p_76986_1_.getUniqueID().toString()), RenderWizardCow.cowTypes.get(p_76986_1_.getUniqueID().toString()), RenderWizardCow.cowMods.get(p_76986_1_.getUniqueID().toString()));
|
||||
this.renderMyNode(
|
||||
p_76986_1_.posX,
|
||||
p_76986_1_.posY + p_76986_1_.height / 2.0f,
|
||||
p_76986_1_.posZ,
|
||||
Minecraft.getMinecraft().renderViewEntity,
|
||||
32.0,
|
||||
true,
|
||||
true,
|
||||
1.0f,
|
||||
p_76986_9_,
|
||||
RenderWizardCow.cowAspects.get(p_76986_1_.getUniqueID().toString()),
|
||||
RenderWizardCow.cowTypes.get(p_76986_1_.getUniqueID().toString()),
|
||||
RenderWizardCow.cowMods.get(p_76986_1_.getUniqueID().toString()));
|
||||
}
|
||||
GL11.glDisable(3042);
|
||||
}
|
||||
|
||||
public void renderMyNode(final double x, final double y, final double z, final EntityLivingBase viewer, final double viewDistance, final boolean visible, final boolean depthIgnore, final float size, final float partialTicks, final AspectList aspects, final NodeType type, final NodeModifier mod) {
|
||||
|
||||
public void renderMyNode(
|
||||
final double x,
|
||||
final double y,
|
||||
final double z,
|
||||
final EntityLivingBase viewer,
|
||||
final double viewDistance,
|
||||
final boolean visible,
|
||||
final boolean depthIgnore,
|
||||
final float size,
|
||||
final float partialTicks,
|
||||
final AspectList aspects,
|
||||
final NodeType type,
|
||||
final NodeModifier mod) {
|
||||
final long nt = System.nanoTime();
|
||||
UtilsFX.bindTexture(TileNodeRenderer.nodetex);
|
||||
final int frames = 32;
|
||||
@@ -52,7 +81,7 @@ public class RenderWizardCow extends RenderCow
|
||||
if (distance > viewDistance) {
|
||||
return;
|
||||
}
|
||||
float alpha = (float)((viewDistance - distance) / viewDistance);
|
||||
float alpha = (float) ((viewDistance - distance) / viewDistance);
|
||||
if (mod != null) {
|
||||
switch (mod) {
|
||||
case BRIGHT: {
|
||||
@@ -81,7 +110,7 @@ public class RenderWizardCow extends RenderCow
|
||||
GL11.glPushMatrix();
|
||||
final float rad = 6.283186f;
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, alpha);
|
||||
int i = (int)((nt / 40000000L + x) % frames);
|
||||
int i = (int) ((nt / 40000000L + x) % frames);
|
||||
int count = 0;
|
||||
float scale = 0.0f;
|
||||
float angle = 0.0f;
|
||||
@@ -98,7 +127,18 @@ public class RenderWizardCow extends RenderCow
|
||||
scale = 0.2f + scale * (aspects.getAmount(aspect) / 50.0f);
|
||||
scale *= size;
|
||||
angle = time % (5000 + 500 * count) / (5000.0f + 500 * count) * rad;
|
||||
UtilsFX.renderFacingStrip(x, y, z, angle, scale, alpha / Math.max(1.0f, aspects.size() / 2.0f), frames, 0, i, partialTicks, aspect.getColor());
|
||||
UtilsFX.renderFacingStrip(
|
||||
x,
|
||||
y,
|
||||
z,
|
||||
angle,
|
||||
scale,
|
||||
alpha / Math.max(1.0f, aspects.size() / 2.0f),
|
||||
frames,
|
||||
0,
|
||||
i,
|
||||
partialTicks,
|
||||
aspect.getColor());
|
||||
GL11.glDisable(3042);
|
||||
GL11.glPopMatrix();
|
||||
++count;
|
||||
@@ -109,7 +149,7 @@ public class RenderWizardCow extends RenderCow
|
||||
average /= aspects.size();
|
||||
GL11.glPushMatrix();
|
||||
GL11.glEnable(3042);
|
||||
i = (int)((nt / 40000000L + x) % frames);
|
||||
i = (int) ((nt / 40000000L + x) % frames);
|
||||
scale = 0.1f + average / 150.0f;
|
||||
scale *= size;
|
||||
int strip = 1;
|
||||
@@ -158,14 +198,13 @@ public class RenderWizardCow extends RenderCow
|
||||
GL11.glDepthMask(true);
|
||||
GL11.glAlphaFunc(516, 0.1f);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glAlphaFunc(516, 0.003921569f);
|
||||
GL11.glEnable(3042);
|
||||
GL11.glBlendFunc(770, 1);
|
||||
GL11.glDepthMask(false);
|
||||
final int j = (int)((nt / 40000000L + x) % frames);
|
||||
final int j = (int) ((nt / 40000000L + x) % frames);
|
||||
GL11.glColor4f(1.0f, 0.0f, 1.0f, 0.1f);
|
||||
UtilsFX.renderFacingStrip(x, y, z, 0.0f, 0.5f, 0.1f, frames, 1, j, partialTicks, 16777215);
|
||||
GL11.glDepthMask(true);
|
||||
@@ -174,19 +213,37 @@ public class RenderWizardCow extends RenderCow
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
}
|
||||
|
||||
public void doRender(final Entity p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityWizardCow)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final Entity p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityWizardCow) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
|
||||
public void doRender(final EntityLiving p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityWizardCow)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityLiving p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityWizardCow) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
|
||||
public void doRender(final EntityLivingBase p_76986_1_, final double p_76986_2_, final double p_76986_4_, final double p_76986_6_, final float p_76986_8_, final float p_76986_9_) {
|
||||
this.doRender((EntityWizardCow)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
|
||||
public void doRender(
|
||||
final EntityLivingBase p_76986_1_,
|
||||
final double p_76986_2_,
|
||||
final double p_76986_4_,
|
||||
final double p_76986_6_,
|
||||
final float p_76986_8_,
|
||||
final float p_76986_9_) {
|
||||
this.doRender((EntityWizardCow) p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_);
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
RenderWizardCow.cowAspects = new HashMap<String, AspectList>();
|
||||
RenderWizardCow.cowTypes = new HashMap<String, NodeType>();
|
||||
|
||||
+21
-21
@@ -1,37 +1,39 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.item;
|
||||
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.client.model.ModelBiped;
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.IItemRenderer;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class ItemCorpseEffigyRender implements IItemRenderer
|
||||
{
|
||||
public class ItemCorpseEffigyRender implements IItemRenderer {
|
||||
private ModelBiped corpse;
|
||||
private String tx1;
|
||||
|
||||
|
||||
public ItemCorpseEffigyRender() {
|
||||
this.corpse = new ModelBiped();
|
||||
this.tx1 = "textures/models/corpseeffigy.png";
|
||||
}
|
||||
|
||||
|
||||
public boolean handleRenderType(final ItemStack item, final IItemRenderer.ItemRenderType type) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean shouldUseRenderHelper(final IItemRenderer.ItemRenderType type, final ItemStack item, final IItemRenderer.ItemRendererHelper helper) {
|
||||
|
||||
public boolean shouldUseRenderHelper(
|
||||
final IItemRenderer.ItemRenderType type,
|
||||
final ItemStack item,
|
||||
final IItemRenderer.ItemRendererHelper helper) {
|
||||
return helper != IItemRenderer.ItemRendererHelper.BLOCK_3D;
|
||||
}
|
||||
|
||||
|
||||
public void renderItem(final IItemRenderer.ItemRenderType type, final ItemStack item, final Object... data) {
|
||||
final ItemRenderer ir = RenderManager.instance.itemRenderer;
|
||||
GL11.glPushMatrix();
|
||||
@@ -40,18 +42,16 @@ public class ItemCorpseEffigyRender implements IItemRenderer
|
||||
if (type != IItemRenderer.ItemRenderType.INVENTORY) {
|
||||
if (type == IItemRenderer.ItemRenderType.ENTITY) {
|
||||
GL11.glTranslated(0.0, -3.0, 0.0);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
GL11.glScalef(0.5f, 0.5f, 0.5f);
|
||||
GL11.glTranslated(-1.0, -4.0, -1.0);
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
GL11.glTranslated(0.0, -0.9, 0.0);
|
||||
GL11.glScalef(0.5f, 0.5f, 0.5f);
|
||||
}
|
||||
UtilsFX.bindTexture(new ResourceLocation("thaumichorizons", this.tx1));
|
||||
this.corpse.render((Entity)null, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.125f);
|
||||
this.corpse.render((Entity) null, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.125f);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
}
|
||||
+24
-25
@@ -1,38 +1,40 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.item;
|
||||
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelInjector;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.IItemRenderer;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class ItemInjectorRender implements IItemRenderer
|
||||
{
|
||||
public class ItemInjectorRender implements IItemRenderer {
|
||||
private ModelBase injector;
|
||||
private String tx1;
|
||||
|
||||
|
||||
public ItemInjectorRender() {
|
||||
this.injector = new ModelInjector();
|
||||
this.tx1 = "textures/models/injector.png";
|
||||
}
|
||||
|
||||
|
||||
public boolean handleRenderType(final ItemStack item, final IItemRenderer.ItemRenderType type) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean shouldUseRenderHelper(final IItemRenderer.ItemRenderType type, final ItemStack item, final IItemRenderer.ItemRendererHelper helper) {
|
||||
|
||||
public boolean shouldUseRenderHelper(
|
||||
final IItemRenderer.ItemRenderType type,
|
||||
final ItemStack item,
|
||||
final IItemRenderer.ItemRendererHelper helper) {
|
||||
return helper != IItemRenderer.ItemRendererHelper.BLOCK_3D;
|
||||
}
|
||||
|
||||
|
||||
public void renderItem(final IItemRenderer.ItemRenderType type, final ItemStack item, final Object... data) {
|
||||
int ticksUsed = 0;
|
||||
int rotation = 0;
|
||||
@@ -43,8 +45,7 @@ public class ItemInjectorRender implements IItemRenderer
|
||||
if (rotation < rotationTarget) {
|
||||
++rotation;
|
||||
item.stackTagCompound.setInteger("rotation", rotation);
|
||||
}
|
||||
else if (rotation > rotationTarget) {
|
||||
} else if (rotation > rotationTarget) {
|
||||
--rotation;
|
||||
item.stackTagCompound.setInteger("rotation", rotation);
|
||||
}
|
||||
@@ -61,24 +62,22 @@ public class ItemInjectorRender implements IItemRenderer
|
||||
if (type != IItemRenderer.ItemRenderType.INVENTORY) {
|
||||
if (type == IItemRenderer.ItemRenderType.ENTITY) {
|
||||
GL11.glTranslated(0.0, -0.5, 0.0);
|
||||
}
|
||||
else if (type != IItemRenderer.ItemRenderType.EQUIPPED_FIRST_PERSON) {
|
||||
} else if (type != IItemRenderer.ItemRenderType.EQUIPPED_FIRST_PERSON) {
|
||||
GL11.glTranslated(0.25, -1.0, -1.25);
|
||||
GL11.glRotated(-45.0, 0.0, 0.0, 1.0);
|
||||
GL11.glRotated(-90.0, 0.0, 1.0, 0.0);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
GL11.glScaled(4.0, 4.0, 4.0);
|
||||
GL11.glTranslated(1.5, 0.0, 0.0);
|
||||
GL11.glRotated(230.0, 0.0, 1.0, 0.0);
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
GL11.glTranslated(0.38, -0.1, 0.38);
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
}
|
||||
UtilsFX.bindTexture(new ResourceLocation("thaumichorizons", this.tx1));
|
||||
this.injector.render((Entity)null, f * 3.1415927f / 16.0f, f * 3.1415927f / 4.0f, (float)rotation, f, 0.0f, 0.125f);
|
||||
this.injector.render(
|
||||
(Entity) null, f * 3.1415927f / 16.0f, f * 3.1415927f / 4.0f, (float) rotation, f, 0.0f, 0.125f);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
}
|
||||
+26
-22
@@ -1,42 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.item;
|
||||
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelSyringe;
|
||||
import com.kentington.thaumichorizons.common.items.ItemSyringeBlood;
|
||||
import com.kentington.thaumichorizons.common.items.ItemSyringeBloodSample;
|
||||
import com.kentington.thaumichorizons.common.items.ItemSyringeEmpty;
|
||||
import com.kentington.thaumichorizons.common.items.ItemSyringeInjection;
|
||||
import com.kentington.thaumichorizons.common.items.ItemSyringeBloodSample;
|
||||
import com.kentington.thaumichorizons.common.items.ItemSyringeBlood;
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelSyringe;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.IItemRenderer;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class ItemSyringeRender implements IItemRenderer
|
||||
{
|
||||
public class ItemSyringeRender implements IItemRenderer {
|
||||
private ModelSyringe syringe;
|
||||
private String tx1;
|
||||
|
||||
|
||||
public ItemSyringeRender() {
|
||||
this.syringe = new ModelSyringe();
|
||||
this.tx1 = "textures/models/syringe.png";
|
||||
}
|
||||
|
||||
|
||||
public boolean handleRenderType(final ItemStack item, final IItemRenderer.ItemRenderType type) {
|
||||
return item.getItemDamage() == 0;
|
||||
}
|
||||
|
||||
public boolean shouldUseRenderHelper(final IItemRenderer.ItemRenderType type, final ItemStack item, final IItemRenderer.ItemRendererHelper helper) {
|
||||
|
||||
public boolean shouldUseRenderHelper(
|
||||
final IItemRenderer.ItemRenderType type,
|
||||
final ItemStack item,
|
||||
final IItemRenderer.ItemRendererHelper helper) {
|
||||
return helper != IItemRenderer.ItemRendererHelper.BLOCK_3D;
|
||||
}
|
||||
|
||||
|
||||
public void renderItem(final IItemRenderer.ItemRenderType type, final ItemStack item, final Object... data) {
|
||||
if (item == null || (!(item.getItem() instanceof ItemSyringeBlood) && !(item.getItem() instanceof ItemSyringeBloodSample) && !(item.getItem() instanceof ItemSyringeInjection) && !(item.getItem() instanceof ItemSyringeEmpty))) {
|
||||
if (item == null
|
||||
|| (!(item.getItem() instanceof ItemSyringeBlood)
|
||||
&& !(item.getItem() instanceof ItemSyringeBloodSample)
|
||||
&& !(item.getItem() instanceof ItemSyringeInjection)
|
||||
&& !(item.getItem() instanceof ItemSyringeEmpty))) {
|
||||
return;
|
||||
}
|
||||
final ItemRenderer ir = RenderManager.instance.itemRenderer;
|
||||
@@ -44,13 +50,11 @@ public class ItemSyringeRender implements IItemRenderer
|
||||
if (type != IItemRenderer.ItemRenderType.INVENTORY) {
|
||||
if (type == IItemRenderer.ItemRenderType.ENTITY) {
|
||||
GL11.glTranslated(0.0, -2.0, 0.0);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
GL11.glRotatef(-66.0f, 0.0f, 0.0f, 1.0f);
|
||||
GL11.glTranslated(-1.0, -2.25, 0.75);
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
GL11.glTranslated(0.0, -2.75, 0.0);
|
||||
}
|
||||
GL11.glEnable(3042);
|
||||
|
||||
+26
-20
@@ -1,15 +1,14 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelBloodInfuser extends ModelBase
|
||||
{
|
||||
public class ModelBloodInfuser extends ModelBase {
|
||||
ModelRenderer Body;
|
||||
ModelRenderer SyringeSlot;
|
||||
ModelRenderer Pipe1A;
|
||||
@@ -20,63 +19,70 @@ public class ModelBloodInfuser extends ModelBase
|
||||
ModelRenderer Pipe3B;
|
||||
ModelRenderer Pipe4A;
|
||||
ModelRenderer Pipe4B;
|
||||
|
||||
|
||||
public ModelBloodInfuser() {
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 64;
|
||||
(this.Body = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 10, 16);
|
||||
(this.Body = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 10, 16);
|
||||
this.Body.setRotationPoint(-8.0f, 14.0f, -8.0f);
|
||||
this.Body.setTextureSize(64, 64);
|
||||
this.Body.mirror = true;
|
||||
this.setRotation(this.Body, 0.0f, 0.0f, 0.0f);
|
||||
(this.SyringeSlot = new ModelRenderer((ModelBase)this, 0, 32)).addBox(0.0f, 0.0f, 0.0f, 6, 6, 6);
|
||||
(this.SyringeSlot = new ModelRenderer((ModelBase) this, 0, 32)).addBox(0.0f, 0.0f, 0.0f, 6, 6, 6);
|
||||
this.SyringeSlot.setRotationPoint(-3.0f, 8.0f, -3.0f);
|
||||
this.SyringeSlot.setTextureSize(64, 64);
|
||||
this.SyringeSlot.mirror = true;
|
||||
this.setRotation(this.SyringeSlot, 0.0f, 0.0f, 0.0f);
|
||||
(this.Pipe1A = new ModelRenderer((ModelBase)this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 2, 2, 3);
|
||||
(this.Pipe1A = new ModelRenderer((ModelBase) this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 2, 2, 3);
|
||||
this.Pipe1A.setRotationPoint(-1.0f, 9.0f, 3.0f);
|
||||
this.Pipe1A.setTextureSize(64, 64);
|
||||
this.Pipe1A.mirror = true;
|
||||
this.setRotation(this.Pipe1A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Pipe1B = new ModelRenderer((ModelBase)this, 0, 54)).addBox(0.0f, 0.0f, 0.0f, 2, 3, 2);
|
||||
(this.Pipe1B = new ModelRenderer((ModelBase) this, 0, 54)).addBox(0.0f, 0.0f, 0.0f, 2, 3, 2);
|
||||
this.Pipe1B.setRotationPoint(-1.0f, 11.0f, 4.0f);
|
||||
this.Pipe1B.setTextureSize(64, 64);
|
||||
this.Pipe1B.mirror = true;
|
||||
this.setRotation(this.Pipe1B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Pipe2A = new ModelRenderer((ModelBase)this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 2, 2, 3);
|
||||
(this.Pipe2A = new ModelRenderer((ModelBase) this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 2, 2, 3);
|
||||
this.Pipe2A.setRotationPoint(-1.0f, 9.0f, -6.0f);
|
||||
this.Pipe2A.setTextureSize(64, 64);
|
||||
this.Pipe2A.mirror = true;
|
||||
this.setRotation(this.Pipe2A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Pipe2B = new ModelRenderer((ModelBase)this, 0, 54)).addBox(0.0f, 0.0f, 0.0f, 2, 3, 2);
|
||||
(this.Pipe2B = new ModelRenderer((ModelBase) this, 0, 54)).addBox(0.0f, 0.0f, 0.0f, 2, 3, 2);
|
||||
this.Pipe2B.setRotationPoint(-1.0f, 11.0f, -6.0f);
|
||||
this.Pipe2B.setTextureSize(64, 64);
|
||||
this.Pipe2B.mirror = true;
|
||||
this.setRotation(this.Pipe2B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Pipe3A = new ModelRenderer((ModelBase)this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 3, 2, 2);
|
||||
(this.Pipe3A = new ModelRenderer((ModelBase) this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 3, 2, 2);
|
||||
this.Pipe3A.setRotationPoint(3.0f, 9.0f, -1.0f);
|
||||
this.Pipe3A.setTextureSize(64, 64);
|
||||
this.Pipe3A.mirror = true;
|
||||
this.setRotation(this.Pipe3A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Pipe3B = new ModelRenderer((ModelBase)this, 0, 54)).addBox(0.0f, 0.0f, 0.0f, 2, 3, 2);
|
||||
(this.Pipe3B = new ModelRenderer((ModelBase) this, 0, 54)).addBox(0.0f, 0.0f, 0.0f, 2, 3, 2);
|
||||
this.Pipe3B.setRotationPoint(4.0f, 11.0f, -1.0f);
|
||||
this.Pipe3B.setTextureSize(64, 64);
|
||||
this.Pipe3B.mirror = true;
|
||||
this.setRotation(this.Pipe3B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Pipe4A = new ModelRenderer((ModelBase)this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 3, 2, 2);
|
||||
(this.Pipe4A = new ModelRenderer((ModelBase) this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 3, 2, 2);
|
||||
this.Pipe4A.setRotationPoint(-6.0f, 9.0f, -1.0f);
|
||||
this.Pipe4A.setTextureSize(64, 64);
|
||||
this.Pipe4A.mirror = true;
|
||||
this.setRotation(this.Pipe4A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Pipe4B = new ModelRenderer((ModelBase)this, 0, 54)).addBox(0.0f, 0.0f, 0.0f, 2, 3, 2);
|
||||
(this.Pipe4B = new ModelRenderer((ModelBase) this, 0, 54)).addBox(0.0f, 0.0f, 0.0f, 2, 3, 2);
|
||||
this.Pipe4B.setRotationPoint(-6.0f, 11.0f, -1.0f);
|
||||
this.Pipe4B.setTextureSize(64, 64);
|
||||
this.Pipe4B.mirror = true;
|
||||
this.setRotation(this.Pipe4B, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
this.Body.render(f5);
|
||||
this.SyringeSlot.render(f5);
|
||||
@@ -89,7 +95,7 @@ public class ModelBloodInfuser extends ModelBase
|
||||
this.Pipe4A.render(f5);
|
||||
this.Pipe4B.render(f5);
|
||||
}
|
||||
|
||||
|
||||
private void setRotation(final ModelRenderer model, final float x, final float y, final float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
|
||||
+55
-45
@@ -1,18 +1,17 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import net.minecraft.entity.passive.EntityOcelot;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityOcelot;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
||||
public class ModelFamiliar extends ModelBase
|
||||
{
|
||||
public class ModelFamiliar extends ModelBase {
|
||||
ModelRenderer Body;
|
||||
ModelRenderer Tail1;
|
||||
ModelRenderer Tail2;
|
||||
@@ -30,94 +29,101 @@ public class ModelFamiliar extends ModelBase
|
||||
ModelRenderer LegFrontL;
|
||||
ModelRenderer LegFrontR;
|
||||
int field_78163_i;
|
||||
|
||||
|
||||
public ModelFamiliar() {
|
||||
this.field_78163_i = 1;
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 32;
|
||||
(this.Body = new ModelRenderer((ModelBase)this, 20, 0)).addBox(-2.0f, 3.0f, -8.0f, 4, 16, 6);
|
||||
(this.Body = new ModelRenderer((ModelBase) this, 20, 0)).addBox(-2.0f, 3.0f, -8.0f, 4, 16, 6);
|
||||
this.Body.setRotationPoint(0.0f, 12.0f, -10.0f);
|
||||
this.Body.setTextureSize(64, 32);
|
||||
this.Body.mirror = true;
|
||||
this.setRotation(this.Body, 1.570796f, 0.0f, 0.0f);
|
||||
(this.Tail1 = new ModelRenderer((ModelBase)this, 0, 15)).addBox(-0.5f, 0.0f, 0.0f, 1, 8, 1);
|
||||
(this.Tail1 = new ModelRenderer((ModelBase) this, 0, 15)).addBox(-0.5f, 0.0f, 0.0f, 1, 8, 1);
|
||||
this.Tail1.setRotationPoint(0.0f, 15.0f, 8.0f);
|
||||
this.Tail1.setTextureSize(64, 32);
|
||||
this.Tail1.mirror = true;
|
||||
this.setRotation(this.Tail1, 1.570796f, 0.0f, 0.0f);
|
||||
(this.Tail2 = new ModelRenderer((ModelBase)this, 4, 15)).addBox(-0.5f, 0.0f, 0.0f, 1, 8, 1);
|
||||
(this.Tail2 = new ModelRenderer((ModelBase) this, 4, 15)).addBox(-0.5f, 0.0f, 0.0f, 1, 8, 1);
|
||||
this.Tail2.setRotationPoint(0.0f, 15.0f, 14.0f);
|
||||
this.Tail2.setTextureSize(64, 32);
|
||||
this.Tail2.mirror = true;
|
||||
this.setRotation(this.Tail2, 1.570796f, 0.0f, 0.0f);
|
||||
(this.LegBackL = new ModelRenderer((ModelBase)this, 8, 13)).addBox(-1.0f, 0.0f, 1.0f, 2, 6, 2);
|
||||
(this.LegBackL = new ModelRenderer((ModelBase) this, 8, 13)).addBox(-1.0f, 0.0f, 1.0f, 2, 6, 2);
|
||||
this.LegBackL.setRotationPoint(1.1f, 18.0f, 5.0f);
|
||||
this.LegBackL.setTextureSize(64, 32);
|
||||
this.LegBackL.mirror = true;
|
||||
this.setRotation(this.LegBackL, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ear1 = new ModelRenderer((ModelBase)this, 0, 10)).addBox(-2.0f, -3.0f, 0.0f, 1, 1, 2);
|
||||
(this.Ear1 = new ModelRenderer((ModelBase) this, 0, 10)).addBox(-2.0f, -3.0f, 0.0f, 1, 1, 2);
|
||||
this.Ear1.setRotationPoint(0.0f, 15.0f, -9.0f);
|
||||
this.Ear1.setTextureSize(64, 32);
|
||||
this.Ear1.mirror = true;
|
||||
this.setRotation(this.Ear1, 0.0f, 0.0f, 0.0f);
|
||||
(this.Nose = new ModelRenderer((ModelBase)this, 0, 24)).addBox(-1.5f, 0.0f, -4.0f, 3, 2, 2);
|
||||
(this.Nose = new ModelRenderer((ModelBase) this, 0, 24)).addBox(-1.5f, 0.0f, -4.0f, 3, 2, 2);
|
||||
this.Nose.setRotationPoint(0.0f, 15.0f, -9.0f);
|
||||
this.Nose.setTextureSize(64, 32);
|
||||
this.Nose.mirror = true;
|
||||
this.setRotation(this.Nose, 0.0f, 0.0f, 0.0f);
|
||||
(this.Main = new ModelRenderer((ModelBase)this, 0, 0)).addBox(-2.5f, -2.0f, -3.0f, 5, 4, 5);
|
||||
(this.Main = new ModelRenderer((ModelBase) this, 0, 0)).addBox(-2.5f, -2.0f, -3.0f, 5, 4, 5);
|
||||
this.Main.setRotationPoint(0.0f, 15.0f, -9.0f);
|
||||
this.Main.setTextureSize(64, 32);
|
||||
this.Main.mirror = true;
|
||||
this.setRotation(this.Main, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ear2 = new ModelRenderer((ModelBase)this, 6, 10)).addBox(1.0f, -3.0f, 0.0f, 1, 1, 2);
|
||||
(this.Ear2 = new ModelRenderer((ModelBase) this, 6, 10)).addBox(1.0f, -3.0f, 0.0f, 1, 1, 2);
|
||||
this.Ear2.setRotationPoint(0.0f, 15.0f, -9.0f);
|
||||
this.Ear2.setTextureSize(64, 32);
|
||||
this.Ear2.mirror = true;
|
||||
this.setRotation(this.Ear2, 0.0f, 0.0f, 0.0f);
|
||||
(this.HatBuckle = new ModelRenderer((ModelBase)this, 48, 13)).addBox(-1.0f, -4.0f, -3.0f, 2, 1, 1);
|
||||
(this.HatBuckle = new ModelRenderer((ModelBase) this, 48, 13)).addBox(-1.0f, -4.0f, -3.0f, 2, 1, 1);
|
||||
this.HatBuckle.setRotationPoint(0.0f, 15.0f, -9.0f);
|
||||
this.HatBuckle.setTextureSize(64, 32);
|
||||
this.HatBuckle.mirror = true;
|
||||
this.setRotation(this.HatBuckle, 0.0f, 0.0f, 0.0f);
|
||||
(this.HatC = new ModelRenderer((ModelBase)this, 48, 11)).addBox(-0.5f, -7.0f, -1.0f, 1, 1, 1);
|
||||
(this.HatC = new ModelRenderer((ModelBase) this, 48, 11)).addBox(-0.5f, -7.0f, -1.0f, 1, 1, 1);
|
||||
this.HatC.setRotationPoint(0.0f, 15.0f, -9.0f);
|
||||
this.HatC.setTextureSize(64, 32);
|
||||
this.HatC.mirror = true;
|
||||
this.setRotation(this.HatC, 0.0f, 0.0f, 0.0f);
|
||||
(this.HatB = new ModelRenderer((ModelBase)this, 48, 8)).addBox(-1.0f, -6.0f, -1.5f, 2, 1, 2);
|
||||
(this.HatB = new ModelRenderer((ModelBase) this, 48, 8)).addBox(-1.0f, -6.0f, -1.5f, 2, 1, 2);
|
||||
this.HatB.setRotationPoint(0.0f, 15.0f, -9.0f);
|
||||
this.HatB.setTextureSize(64, 32);
|
||||
this.HatB.mirror = true;
|
||||
this.setRotation(this.HatB, 0.0f, 0.0f, 0.0f);
|
||||
(this.HatA = new ModelRenderer((ModelBase)this, 48, 0)).addBox(-1.5f, -5.0f, -2.0f, 3, 2, 3);
|
||||
(this.HatA = new ModelRenderer((ModelBase) this, 48, 0)).addBox(-1.5f, -5.0f, -2.0f, 3, 2, 3);
|
||||
this.HatA.setRotationPoint(0.0f, 15.0f, -9.0f);
|
||||
this.HatA.setTextureSize(64, 32);
|
||||
this.HatA.mirror = true;
|
||||
this.setRotation(this.HatA, 0.0f, 0.0f, 0.0f);
|
||||
(this.HatBase = new ModelRenderer((ModelBase)this, 16, 24)).addBox(-3.0f, -3.0f, -3.5f, 6, 1, 6);
|
||||
(this.HatBase = new ModelRenderer((ModelBase) this, 16, 24)).addBox(-3.0f, -3.0f, -3.5f, 6, 1, 6);
|
||||
this.HatBase.setRotationPoint(0.0f, 15.0f, -9.0f);
|
||||
this.HatBase.setTextureSize(64, 32);
|
||||
this.HatBase.mirror = true;
|
||||
this.setRotation(this.HatBase, 0.0f, 0.0f, 0.0f);
|
||||
(this.LegBackR = new ModelRenderer((ModelBase)this, 8, 13)).addBox(-1.0f, 0.0f, 1.0f, 2, 6, 2);
|
||||
(this.LegBackR = new ModelRenderer((ModelBase) this, 8, 13)).addBox(-1.0f, 0.0f, 1.0f, 2, 6, 2);
|
||||
this.LegBackR.setRotationPoint(-1.1f, 18.0f, 5.0f);
|
||||
this.LegBackR.setTextureSize(64, 32);
|
||||
this.LegBackR.mirror = true;
|
||||
this.setRotation(this.LegBackR, 0.0f, 0.0f, 0.0f);
|
||||
(this.LegFrontL = new ModelRenderer((ModelBase)this, 40, 0)).addBox(-1.0f, 0.0f, 0.0f, 2, 10, 2);
|
||||
(this.LegFrontL = new ModelRenderer((ModelBase) this, 40, 0)).addBox(-1.0f, 0.0f, 0.0f, 2, 10, 2);
|
||||
this.LegFrontL.setRotationPoint(1.2f, 13.8f, -5.0f);
|
||||
this.LegFrontL.setTextureSize(64, 32);
|
||||
this.LegFrontL.mirror = true;
|
||||
this.setRotation(this.LegFrontL, 0.0f, 0.0f, 0.0f);
|
||||
(this.LegFrontR = new ModelRenderer((ModelBase)this, 40, 0)).addBox(-1.0f, 0.0f, 0.0f, 2, 10, 2);
|
||||
(this.LegFrontR = new ModelRenderer((ModelBase) this, 40, 0)).addBox(-1.0f, 0.0f, 0.0f, 2, 10, 2);
|
||||
this.LegFrontR.setRotationPoint(-1.2f, 13.8f, -5.0f);
|
||||
this.LegFrontR.setTextureSize(64, 32);
|
||||
this.LegFrontR.mirror = true;
|
||||
this.setRotation(this.LegFrontR, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5) {
|
||||
this.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
this.Body.render(f5);
|
||||
this.Tail1.render(f5);
|
||||
@@ -136,14 +142,21 @@ public class ModelFamiliar extends ModelBase
|
||||
this.LegFrontL.render(f5);
|
||||
this.LegFrontR.render(f5);
|
||||
}
|
||||
|
||||
|
||||
private void setRotation(final ModelRenderer model, final float x, final float y, final float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void setRotationAngles(final float p_78087_1_, final float p_78087_2_, final float p_78087_3_, final float p_78087_4_, final float p_78087_5_, final float p_78087_6_, final Entity p_78087_7_) {
|
||||
|
||||
public void setRotationAngles(
|
||||
final float p_78087_1_,
|
||||
final float p_78087_2_,
|
||||
final float p_78087_3_,
|
||||
final float p_78087_4_,
|
||||
final float p_78087_5_,
|
||||
final float p_78087_6_,
|
||||
final Entity p_78087_7_) {
|
||||
this.Main.rotateAngleX = p_78087_5_ / 57.295776f;
|
||||
this.Main.rotateAngleY = p_78087_4_ / 57.295776f;
|
||||
this.Nose.rotateAngleX = p_78087_5_ / 57.295776f;
|
||||
@@ -167,27 +180,27 @@ public class ModelFamiliar extends ModelBase
|
||||
if (this.field_78163_i == 2) {
|
||||
this.LegBackL.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f) * 1.0f * p_78087_2_;
|
||||
this.LegBackR.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f + 0.3f) * 1.0f * p_78087_2_;
|
||||
this.LegFrontL.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f + 3.1415927f + 0.3f) * 1.0f * p_78087_2_;
|
||||
this.LegFrontL.rotateAngleX =
|
||||
MathHelper.cos(p_78087_1_ * 0.6662f + 3.1415927f + 0.3f) * 1.0f * p_78087_2_;
|
||||
this.LegFrontR.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f + 3.1415927f) * 1.0f * p_78087_2_;
|
||||
this.Tail2.rotateAngleX = 1.7278761f + 0.31415927f * MathHelper.cos(p_78087_1_) * p_78087_2_;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.LegBackL.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f) * 1.0f * p_78087_2_;
|
||||
this.LegBackR.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f + 3.1415927f) * 1.0f * p_78087_2_;
|
||||
this.LegFrontL.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f + 3.1415927f) * 1.0f * p_78087_2_;
|
||||
this.LegFrontR.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f) * 1.0f * p_78087_2_;
|
||||
if (this.field_78163_i == 1) {
|
||||
this.Tail2.rotateAngleX = 1.7278761f + 0.7853982f * MathHelper.cos(p_78087_1_) * p_78087_2_;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.Tail2.rotateAngleX = 1.7278761f + 0.47123894f * MathHelper.cos(p_78087_1_) * p_78087_2_;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setLivingAnimations(final EntityLivingBase p_78086_1_, final float p_78086_2_, final float p_78086_3_, final float p_78086_4_) {
|
||||
final EntityOcelot entityocelot = (EntityOcelot)p_78086_1_;
|
||||
|
||||
public void setLivingAnimations(
|
||||
final EntityLivingBase p_78086_1_, final float p_78086_2_, final float p_78086_3_, final float p_78086_4_) {
|
||||
final EntityOcelot entityocelot = (EntityOcelot) p_78086_1_;
|
||||
this.Body.rotationPointY = 12.0f;
|
||||
this.Body.rotationPointZ = -10.0f;
|
||||
this.Main.rotationPointY = 15.0f;
|
||||
@@ -263,16 +276,14 @@ public class ModelFamiliar extends ModelBase
|
||||
this.Tail1.rotateAngleX = 1.5707964f;
|
||||
this.Tail2.rotateAngleX = 1.5707964f;
|
||||
this.field_78163_i = 0;
|
||||
}
|
||||
else if (entityocelot.isSprinting()) {
|
||||
} else if (entityocelot.isSprinting()) {
|
||||
this.Tail2.rotationPointY = this.Tail1.rotationPointY;
|
||||
final ModelRenderer tail4 = this.Tail2;
|
||||
tail4.rotationPointZ += 2.0f;
|
||||
this.Tail1.rotateAngleX = 1.5707964f;
|
||||
this.Tail2.rotateAngleX = 1.5707964f;
|
||||
this.field_78163_i = 2;
|
||||
}
|
||||
else if (entityocelot.isSitting()) {
|
||||
} else if (entityocelot.isSitting()) {
|
||||
this.Body.rotateAngleX = 0.7853982f;
|
||||
final ModelRenderer body2 = this.Body;
|
||||
body2.rotationPointY -= 4.0f;
|
||||
@@ -355,8 +366,7 @@ public class ModelFamiliar extends ModelBase
|
||||
legBackR5.rotationPointZ = n10;
|
||||
legBackL5.rotationPointZ = n10;
|
||||
this.field_78163_i = 3;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.field_78163_i = 1;
|
||||
}
|
||||
}
|
||||
|
||||
+21
-15
@@ -1,52 +1,58 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelFamiliarHat extends ModelBase
|
||||
{
|
||||
public class ModelFamiliarHat extends ModelBase {
|
||||
ModelRenderer HatBase;
|
||||
ModelRenderer HatA;
|
||||
ModelRenderer HatB;
|
||||
ModelRenderer HatC;
|
||||
ModelRenderer GoldBuckle;
|
||||
|
||||
|
||||
public ModelFamiliarHat() {
|
||||
this.textureWidth = 32;
|
||||
this.textureHeight = 32;
|
||||
(this.HatBase = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 7, 1, 7);
|
||||
(this.HatBase = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 7, 1, 7);
|
||||
this.HatBase.setRotationPoint(0.0f, 0.0f, 0.0f);
|
||||
this.HatBase.setTextureSize(32, 32);
|
||||
this.HatBase.mirror = true;
|
||||
this.setRotation(this.HatBase, 0.0f, 0.0f, 0.0f);
|
||||
(this.HatA = new ModelRenderer((ModelBase)this, 0, 8)).addBox(0.0f, -1.0f, 1.0f, 5, 2, 5);
|
||||
(this.HatA = new ModelRenderer((ModelBase) this, 0, 8)).addBox(0.0f, -1.0f, 1.0f, 5, 2, 5);
|
||||
this.HatA.setRotationPoint(1.0f, -1.0f, 0.0f);
|
||||
this.HatA.setTextureSize(32, 32);
|
||||
this.HatA.mirror = true;
|
||||
this.setRotation(this.HatA, 0.0f, 0.0f, 0.0f);
|
||||
(this.HatB = new ModelRenderer((ModelBase)this, 0, 15)).addBox(0.0f, 0.0f, 0.0f, 3, 2, 3);
|
||||
(this.HatB = new ModelRenderer((ModelBase) this, 0, 15)).addBox(0.0f, 0.0f, 0.0f, 3, 2, 3);
|
||||
this.HatB.setRotationPoint(2.0f, -4.0f, 2.0f);
|
||||
this.HatB.setTextureSize(32, 32);
|
||||
this.HatB.mirror = true;
|
||||
this.setRotation(this.HatB, 0.0f, 0.0f, 0.0f);
|
||||
(this.HatC = new ModelRenderer((ModelBase)this, 0, 20)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 1);
|
||||
(this.HatC = new ModelRenderer((ModelBase) this, 0, 20)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 1);
|
||||
this.HatC.setRotationPoint(3.0f, -5.0f, 3.0f);
|
||||
this.HatC.setTextureSize(32, 32);
|
||||
this.HatC.mirror = true;
|
||||
this.setRotation(this.HatC, 0.0f, 0.0f, 0.0f);
|
||||
(this.GoldBuckle = new ModelRenderer((ModelBase)this, 0, 22)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 1);
|
||||
(this.GoldBuckle = new ModelRenderer((ModelBase) this, 0, 22)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 1);
|
||||
this.GoldBuckle.setRotationPoint(0.0f, -1.0f, 3.0f);
|
||||
this.GoldBuckle.setTextureSize(32, 32);
|
||||
this.GoldBuckle.mirror = true;
|
||||
this.setRotation(this.GoldBuckle, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
this.HatBase.render(f5);
|
||||
this.HatA.render(f5);
|
||||
@@ -54,7 +60,7 @@ public class ModelFamiliarHat extends ModelBase
|
||||
this.HatC.render(f5);
|
||||
this.GoldBuckle.render(f5);
|
||||
}
|
||||
|
||||
|
||||
private void setRotation(final ModelRenderer model, final float x, final float y, final float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
|
||||
+20
-14
@@ -1,27 +1,33 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.common.entities.golems.EntityGolemBase;
|
||||
import net.minecraft.entity.Entity;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.renderers.models.entities.ModelGolem;
|
||||
import thaumcraft.common.entities.golems.EntityGolemBase;
|
||||
|
||||
public class ModelGolemTH extends ModelGolem
|
||||
{
|
||||
public class ModelGolemTH extends ModelGolem {
|
||||
public ModelGolemTH(final boolean p) {
|
||||
super(p);
|
||||
}
|
||||
|
||||
public void setRotationAngles(final Entity en, final float par1, final float par2, final float par3, final float par4, final float par5, final float par6) {
|
||||
|
||||
public void setRotationAngles(
|
||||
final Entity en,
|
||||
final float par1,
|
||||
final float par2,
|
||||
final float par3,
|
||||
final float par4,
|
||||
final float par5,
|
||||
final float par6) {
|
||||
int core = 0;
|
||||
if (en instanceof EntityGolemBase) {
|
||||
core = ((EntityGolemBase)en).getCore();
|
||||
if (this.pass == 0 && ((EntityGolemBase)en).healing > 0) {
|
||||
final float h1 = ((EntityGolemBase)en).healing / 10.0f;
|
||||
final float h2 = ((EntityGolemBase)en).healing / 5.0f;
|
||||
core = ((EntityGolemBase) en).getCore();
|
||||
if (this.pass == 0 && ((EntityGolemBase) en).healing > 0) {
|
||||
final float h1 = ((EntityGolemBase) en).healing / 10.0f;
|
||||
final float h2 = ((EntityGolemBase) en).healing / 5.0f;
|
||||
GL11.glColor3f(0.5f + h1, 0.9f + h2, 0.5f + h1);
|
||||
}
|
||||
}
|
||||
@@ -34,12 +40,12 @@ public class ModelGolemTH extends ModelGolem
|
||||
this.golemLeftArm.rotateAngleZ = 0.0f;
|
||||
this.golemRightArm.rotateAngleZ = 0.0f;
|
||||
if (core == 6) {
|
||||
final float s = (1.0f - (0.5f + Math.min(64, ((EntityGolemBase)en).getCarryLimit()) / 128.0f)) * 25.0f;
|
||||
final float s = (1.0f - (0.5f + Math.min(64, ((EntityGolemBase) en).getCarryLimit()) / 128.0f)) * 25.0f;
|
||||
this.golemLeftArm.rotateAngleZ = s / 57.295776f;
|
||||
this.golemRightArm.rotateAngleZ = -s / 57.295776f;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private float func_78172_a(final float par1, final float par2) {
|
||||
return (Math.abs(par1 % par2 - par2 * 0.5f) - par2 * 0.25f) / (par2 * 0.25f);
|
||||
}
|
||||
|
||||
+54
-42
@@ -1,22 +1,21 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import net.minecraft.entity.passive.EntityOcelot;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityOcelot;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class ModelGuardianPanther extends ModelBase
|
||||
{
|
||||
public class ModelGuardianPanther extends ModelBase {
|
||||
ModelRenderer ocelotBackLeftLeg;
|
||||
ModelRenderer ocelotBackRightLeg;
|
||||
ModelRenderer ocelotFrontLeftLeg;
|
||||
@@ -27,36 +26,43 @@ public class ModelGuardianPanther extends ModelBase
|
||||
ModelRenderer ocelotBody;
|
||||
int field_78163_i;
|
||||
private static final String __OBFID = "CL_00000848";
|
||||
|
||||
|
||||
public ModelGuardianPanther() {
|
||||
this.field_78163_i = 1;
|
||||
this.setTextureOffset("head.main", 0, 0);
|
||||
this.setTextureOffset("head.nose", 0, 24);
|
||||
this.setTextureOffset("head.ear1", 0, 10);
|
||||
this.setTextureOffset("head.ear2", 6, 10);
|
||||
(this.ocelotHead = new ModelRenderer((ModelBase)this, "head")).addBox("main", -5.0f, -4.0f, -6.0f, 10, 8, 10);
|
||||
(this.ocelotHead = new ModelRenderer((ModelBase) this, "head")).addBox("main", -5.0f, -4.0f, -6.0f, 10, 8, 10);
|
||||
this.ocelotHead.addBox("nose", -3.0f, 0.0f, -8.0f, 6, 4, 4);
|
||||
this.ocelotHead.addBox("ear1", -4.0f, -6.0f, 0.0f, 2, 2, 4);
|
||||
this.ocelotHead.addBox("ear2", 2.0f, -6.0f, 0.0f, 2, 2, 4);
|
||||
this.ocelotHead.setRotationPoint(0.0f, 30.0f, -18.0f);
|
||||
(this.ocelotBody = new ModelRenderer((ModelBase)this, 20, 0)).addBox(-4.0f, 6.0f, -16.0f, 8, 32, 12, 0.0f);
|
||||
(this.ocelotBody = new ModelRenderer((ModelBase) this, 20, 0)).addBox(-4.0f, 6.0f, -16.0f, 8, 32, 12, 0.0f);
|
||||
this.ocelotBody.setRotationPoint(0.0f, 24.0f, -20.0f);
|
||||
(this.ocelotTail = new ModelRenderer((ModelBase)this, 0, 15)).addBox(-1.0f, 0.0f, 0.0f, 2, 16, 2);
|
||||
(this.ocelotTail = new ModelRenderer((ModelBase) this, 0, 15)).addBox(-1.0f, 0.0f, 0.0f, 2, 16, 2);
|
||||
this.ocelotTail.rotateAngleX = 0.9f;
|
||||
this.ocelotTail.setRotationPoint(0.0f, 30.0f, 16.0f);
|
||||
(this.ocelotTail2 = new ModelRenderer((ModelBase)this, 4, 15)).addBox(-1.0f, 0.0f, 0.0f, 2, 16, 2);
|
||||
(this.ocelotTail2 = new ModelRenderer((ModelBase) this, 4, 15)).addBox(-1.0f, 0.0f, 0.0f, 2, 16, 2);
|
||||
this.ocelotTail2.setRotationPoint(0.0f, 40.0f, 28.0f);
|
||||
(this.ocelotBackLeftLeg = new ModelRenderer((ModelBase)this, 8, 13)).addBox(-2.0f, 0.0f, 2.0f, 4, 12, 4);
|
||||
(this.ocelotBackLeftLeg = new ModelRenderer((ModelBase) this, 8, 13)).addBox(-2.0f, 0.0f, 2.0f, 4, 12, 4);
|
||||
this.ocelotBackLeftLeg.setRotationPoint(2.2f, 36.0f, 10.0f);
|
||||
(this.ocelotBackRightLeg = new ModelRenderer((ModelBase)this, 8, 13)).addBox(-2.0f, 0.0f, 2.0f, 4, 12, 4);
|
||||
(this.ocelotBackRightLeg = new ModelRenderer((ModelBase) this, 8, 13)).addBox(-2.0f, 0.0f, 2.0f, 4, 12, 4);
|
||||
this.ocelotBackRightLeg.setRotationPoint(-2.2f, 36.0f, 10.0f);
|
||||
(this.ocelotFrontLeftLeg = new ModelRenderer((ModelBase)this, 40, 0)).addBox(-2.0f, 0.0f, 0.0f, 4, 20, 4);
|
||||
(this.ocelotFrontLeftLeg = new ModelRenderer((ModelBase) this, 40, 0)).addBox(-2.0f, 0.0f, 0.0f, 4, 20, 4);
|
||||
this.ocelotFrontLeftLeg.setRotationPoint(2.4f, 27.6f, -10.0f);
|
||||
(this.ocelotFrontRightLeg = new ModelRenderer((ModelBase)this, 40, 0)).addBox(-1.0f, 0.0f, 0.0f, 4, 10, 4);
|
||||
(this.ocelotFrontRightLeg = new ModelRenderer((ModelBase) this, 40, 0)).addBox(-1.0f, 0.0f, 0.0f, 4, 10, 4);
|
||||
this.ocelotFrontRightLeg.setRotationPoint(-2.4f, 27.6f, -10.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity p_78088_1_, final float p_78088_2_, final float p_78088_3_, final float p_78088_4_, final float p_78088_5_, final float p_78088_6_, final float p_78088_7_) {
|
||||
|
||||
public void render(
|
||||
final Entity p_78088_1_,
|
||||
final float p_78088_2_,
|
||||
final float p_78088_3_,
|
||||
final float p_78088_4_,
|
||||
final float p_78088_5_,
|
||||
final float p_78088_6_,
|
||||
final float p_78088_7_) {
|
||||
this.setRotationAngles(p_78088_2_, p_78088_3_, p_78088_4_, p_78088_5_, p_78088_6_, p_78088_7_, p_78088_1_);
|
||||
if (this.isChild) {
|
||||
final float f6 = 2.0f;
|
||||
@@ -76,8 +82,7 @@ public class ModelGuardianPanther extends ModelBase
|
||||
this.ocelotTail.render(p_78088_7_);
|
||||
this.ocelotTail2.render(p_78088_7_);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.ocelotHead.render(p_78088_7_);
|
||||
this.ocelotBody.render(p_78088_7_);
|
||||
this.ocelotTail.render(p_78088_7_);
|
||||
@@ -88,8 +93,15 @@ public class ModelGuardianPanther extends ModelBase
|
||||
this.ocelotFrontRightLeg.render(p_78088_7_);
|
||||
}
|
||||
}
|
||||
|
||||
public void setRotationAngles(final float p_78087_1_, final float p_78087_2_, final float p_78087_3_, final float p_78087_4_, final float p_78087_5_, final float p_78087_6_, final Entity p_78087_7_) {
|
||||
|
||||
public void setRotationAngles(
|
||||
final float p_78087_1_,
|
||||
final float p_78087_2_,
|
||||
final float p_78087_3_,
|
||||
final float p_78087_4_,
|
||||
final float p_78087_5_,
|
||||
final float p_78087_6_,
|
||||
final Entity p_78087_7_) {
|
||||
this.ocelotHead.rotateAngleX = p_78087_5_ / 57.295776f;
|
||||
this.ocelotHead.rotateAngleY = p_78087_4_ / 57.295776f;
|
||||
if (this.field_78163_i != 3) {
|
||||
@@ -97,27 +109,30 @@ public class ModelGuardianPanther extends ModelBase
|
||||
if (this.field_78163_i == 2) {
|
||||
this.ocelotBackLeftLeg.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f) * 1.0f * p_78087_2_;
|
||||
this.ocelotBackRightLeg.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f + 0.3f) * 1.0f * p_78087_2_;
|
||||
this.ocelotFrontLeftLeg.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f + 3.1415927f + 0.3f) * 1.0f * p_78087_2_;
|
||||
this.ocelotFrontRightLeg.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f + 3.1415927f) * 1.0f * p_78087_2_;
|
||||
this.ocelotFrontLeftLeg.rotateAngleX =
|
||||
MathHelper.cos(p_78087_1_ * 0.6662f + 3.1415927f + 0.3f) * 1.0f * p_78087_2_;
|
||||
this.ocelotFrontRightLeg.rotateAngleX =
|
||||
MathHelper.cos(p_78087_1_ * 0.6662f + 3.1415927f) * 1.0f * p_78087_2_;
|
||||
this.ocelotTail2.rotateAngleX = 1.7278761f + 0.31415927f * MathHelper.cos(p_78087_1_) * p_78087_2_;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.ocelotBackLeftLeg.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f) * 1.0f * p_78087_2_;
|
||||
this.ocelotBackRightLeg.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f + 3.1415927f) * 1.0f * p_78087_2_;
|
||||
this.ocelotFrontLeftLeg.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f + 3.1415927f) * 1.0f * p_78087_2_;
|
||||
this.ocelotBackRightLeg.rotateAngleX =
|
||||
MathHelper.cos(p_78087_1_ * 0.6662f + 3.1415927f) * 1.0f * p_78087_2_;
|
||||
this.ocelotFrontLeftLeg.rotateAngleX =
|
||||
MathHelper.cos(p_78087_1_ * 0.6662f + 3.1415927f) * 1.0f * p_78087_2_;
|
||||
this.ocelotFrontRightLeg.rotateAngleX = MathHelper.cos(p_78087_1_ * 0.6662f) * 1.0f * p_78087_2_;
|
||||
if (this.field_78163_i == 1) {
|
||||
this.ocelotTail2.rotateAngleX = 1.7278761f + 0.7853982f * MathHelper.cos(p_78087_1_) * p_78087_2_;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.ocelotTail2.rotateAngleX = 1.7278761f + 0.47123894f * MathHelper.cos(p_78087_1_) * p_78087_2_;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setLivingAnimations(final EntityLivingBase p_78086_1_, final float p_78086_2_, final float p_78086_3_, final float p_78086_4_) {
|
||||
final EntityOcelot entityocelot = (EntityOcelot)p_78086_1_;
|
||||
|
||||
public void setLivingAnimations(
|
||||
final EntityLivingBase p_78086_1_, final float p_78086_2_, final float p_78086_3_, final float p_78086_4_) {
|
||||
final EntityOcelot entityocelot = (EntityOcelot) p_78086_1_;
|
||||
this.ocelotBody.rotationPointY = 12.0f;
|
||||
this.ocelotBody.rotationPointZ = -10.0f;
|
||||
this.ocelotHead.rotationPointY = 15.0f;
|
||||
@@ -161,16 +176,14 @@ public class ModelGuardianPanther extends ModelBase
|
||||
this.ocelotTail.rotateAngleX = 1.5707964f;
|
||||
this.ocelotTail2.rotateAngleX = 1.5707964f;
|
||||
this.field_78163_i = 0;
|
||||
}
|
||||
else if (entityocelot.isSprinting()) {
|
||||
} else if (entityocelot.isSprinting()) {
|
||||
this.ocelotTail2.rotationPointY = this.ocelotTail.rotationPointY;
|
||||
final ModelRenderer ocelotTail4 = this.ocelotTail2;
|
||||
ocelotTail4.rotationPointZ += 2.0f;
|
||||
this.ocelotTail.rotateAngleX = 1.5707964f;
|
||||
this.ocelotTail2.rotateAngleX = 1.5707964f;
|
||||
this.field_78163_i = 2;
|
||||
}
|
||||
else if (entityocelot.isSitting()) {
|
||||
} else if (entityocelot.isSitting()) {
|
||||
this.ocelotBody.rotateAngleX = 0.7853982f;
|
||||
final ModelRenderer ocelotBody2 = this.ocelotBody;
|
||||
ocelotBody2.rotationPointY -= 4.0f;
|
||||
@@ -221,8 +234,7 @@ public class ModelGuardianPanther extends ModelBase
|
||||
ocelotBackRightLeg5.rotationPointZ = n10;
|
||||
ocelotBackLeftLeg5.rotationPointZ = n10;
|
||||
this.field_78163_i = 3;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.field_78163_i = 1;
|
||||
}
|
||||
}
|
||||
|
||||
+50
-27
@@ -1,17 +1,16 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.entity.Entity;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class ModelInjector extends ModelBase
|
||||
{
|
||||
public class ModelInjector extends ModelBase {
|
||||
ModelRenderer Drum;
|
||||
ModelRenderer Front;
|
||||
ModelRenderer BowL1;
|
||||
@@ -21,57 +20,64 @@ public class ModelInjector extends ModelBase
|
||||
ModelRenderer Stock;
|
||||
ModelRenderer Grip;
|
||||
ModelRenderer Thingy;
|
||||
|
||||
|
||||
public ModelInjector() {
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 32;
|
||||
(this.Drum = new ModelRenderer((ModelBase)this, 0, 0)).addBox(-2.5f, -2.5f, 0.0f, 5, 5, 1);
|
||||
(this.Drum = new ModelRenderer((ModelBase) this, 0, 0)).addBox(-2.5f, -2.5f, 0.0f, 5, 5, 1);
|
||||
this.Drum.setRotationPoint(2.5f, 2.25f, 0.0f);
|
||||
this.Drum.setTextureSize(64, 32);
|
||||
this.Drum.mirror = true;
|
||||
this.setRotation(this.Drum, 0.0f, 0.0f, 0.0f);
|
||||
(this.Front = new ModelRenderer((ModelBase)this, 12, 0)).addBox(0.0f, 0.0f, 0.0f, 3, 1, 8);
|
||||
(this.Front = new ModelRenderer((ModelBase) this, 12, 0)).addBox(0.0f, 0.0f, 0.0f, 3, 1, 8);
|
||||
this.Front.setRotationPoint(1.0f, 1.0f, -8.0f);
|
||||
this.Front.setTextureSize(64, 32);
|
||||
this.Front.mirror = true;
|
||||
this.setRotation(this.Front, 0.0f, 0.0f, 0.0f);
|
||||
(this.BowL1 = new ModelRenderer((ModelBase)this, 0, 6)).addBox(0.0f, -1.0f, 0.0f, 4, 1, 1);
|
||||
(this.BowL1 = new ModelRenderer((ModelBase) this, 0, 6)).addBox(0.0f, -1.0f, 0.0f, 4, 1, 1);
|
||||
this.BowL1.setRotationPoint(2.5f, 1.0f, -8.0f);
|
||||
this.BowL1.setTextureSize(64, 32);
|
||||
this.BowL1.mirror = true;
|
||||
this.setRotation(this.BowL1, 0.0f, 0.0f, 0.0f);
|
||||
(this.BowR1 = new ModelRenderer((ModelBase)this, 0, 6)).addBox(0.0f, -1.0f, -1.0f, 4, 1, 1);
|
||||
(this.BowR1 = new ModelRenderer((ModelBase) this, 0, 6)).addBox(0.0f, -1.0f, -1.0f, 4, 1, 1);
|
||||
this.BowR1.setRotationPoint(2.5f, 1.0f, -8.0f);
|
||||
this.BowR1.setTextureSize(64, 32);
|
||||
this.BowR1.mirror = true;
|
||||
this.setRotation(this.BowR1, 0.0f, 3.141593f, 0.0f);
|
||||
(this.BowL2 = new ModelRenderer((ModelBase)this, 0, 8)).addBox(0.0f, -1.0f, 0.0f, 3, 1, 1);
|
||||
(this.BowL2 = new ModelRenderer((ModelBase) this, 0, 8)).addBox(0.0f, -1.0f, 0.0f, 3, 1, 1);
|
||||
this.BowL2.setRotationPoint(6.0f, 1.0f, -7.5f);
|
||||
this.BowL2.setTextureSize(64, 32);
|
||||
this.BowL2.mirror = true;
|
||||
this.setRotation(this.BowL2, 0.0f, -0.3490659f, 0.0f);
|
||||
(this.BowR2 = new ModelRenderer((ModelBase)this, 0, 8)).addBox(0.0f, -1.0f, -1.0f, 3, 1, 1);
|
||||
(this.BowR2 = new ModelRenderer((ModelBase) this, 0, 8)).addBox(0.0f, -1.0f, -1.0f, 3, 1, 1);
|
||||
this.BowR2.setRotationPoint(-1.0f, 1.0f, -7.5f);
|
||||
this.BowR2.setTextureSize(64, 32);
|
||||
this.BowR2.mirror = true;
|
||||
this.setRotation(this.BowR2, 0.0f, 3.490659f, 0.0f);
|
||||
(this.Thingy = new ModelRenderer((ModelBase)this, 13, 0)).addBox(-0.5f, 0.0f, 0.5f, 1, 1, 1);
|
||||
(this.Thingy = new ModelRenderer((ModelBase) this, 13, 0)).addBox(-0.5f, 0.0f, 0.5f, 1, 1, 1);
|
||||
this.Thingy.setRotationPoint((this.BowR2.rotationPointX + this.BowL2.rotationPointX) / 2.0f, 0.0f, -6.5f);
|
||||
this.Thingy.setTextureSize(64, 32);
|
||||
this.Thingy.mirror = true;
|
||||
(this.Stock = new ModelRenderer((ModelBase)this, 0, 10)).addBox(0.0f, 0.0f, 0.0f, 3, 1, 3);
|
||||
(this.Stock = new ModelRenderer((ModelBase) this, 0, 10)).addBox(0.0f, 0.0f, 0.0f, 3, 1, 3);
|
||||
this.Stock.setRotationPoint(1.0f, 1.0f, 1.0f);
|
||||
this.Stock.setTextureSize(64, 32);
|
||||
this.Stock.mirror = true;
|
||||
this.setRotation(this.Stock, 0.0f, 0.0f, 0.0f);
|
||||
(this.Grip = new ModelRenderer((ModelBase)this, 0, 14)).addBox(0.0f, 0.0f, 0.0f, 3, 2, 1);
|
||||
(this.Grip = new ModelRenderer((ModelBase) this, 0, 14)).addBox(0.0f, 0.0f, 0.0f, 3, 2, 1);
|
||||
this.Grip.setRotationPoint(1.0f, 2.0f, 3.0f);
|
||||
this.Grip.setTextureSize(64, 32);
|
||||
this.Grip.mirror = true;
|
||||
this.setRotation(this.Grip, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
this.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
this.Drum.render(f5);
|
||||
@@ -87,23 +93,40 @@ public class ModelInjector extends ModelBase
|
||||
final Tessellator tessellator = Tessellator.instance;
|
||||
tessellator.startDrawing(3);
|
||||
tessellator.setColorOpaque_I(0);
|
||||
tessellator.addVertex(this.BowR2.rotationPointX + 0.6 + f3 * 0.25, this.BowR2.rotationPointY - 0.9375, this.BowR2.rotationPointZ + 6.8125 + f3 * 0.125);
|
||||
tessellator.addVertex((this.BowR2.rotationPointX + this.BowL2.rotationPointX) / 2.0f - 2.175, this.BowR2.rotationPointY - 0.9375, this.BowR2.rotationPointZ + 6.8125 + f3 * 0.65);
|
||||
tessellator.addVertex(this.BowL2.rotationPointX - 4.95 - f3 * 0.25, this.BowL2.rotationPointY - 0.9375, this.BowL2.rotationPointZ + 6.8125 + f3 * 0.125);
|
||||
tessellator.addVertex(
|
||||
this.BowR2.rotationPointX + 0.6 + f3 * 0.25,
|
||||
this.BowR2.rotationPointY - 0.9375,
|
||||
this.BowR2.rotationPointZ + 6.8125 + f3 * 0.125);
|
||||
tessellator.addVertex(
|
||||
(this.BowR2.rotationPointX + this.BowL2.rotationPointX) / 2.0f - 2.175,
|
||||
this.BowR2.rotationPointY - 0.9375,
|
||||
this.BowR2.rotationPointZ + 6.8125 + f3 * 0.65);
|
||||
tessellator.addVertex(
|
||||
this.BowL2.rotationPointX - 4.95 - f3 * 0.25,
|
||||
this.BowL2.rotationPointY - 0.9375,
|
||||
this.BowL2.rotationPointZ + 6.8125 + f3 * 0.125);
|
||||
tessellator.draw();
|
||||
GL11.glEnable(2896);
|
||||
GL11.glEnable(3553);
|
||||
this.Thingy.setRotationPoint((this.BowR2.rotationPointX + this.BowL2.rotationPointX) / 2.0f, 0.0f, -6.5f + 5.0f * f3);
|
||||
this.Thingy.setRotationPoint(
|
||||
(this.BowR2.rotationPointX + this.BowL2.rotationPointX) / 2.0f, 0.0f, -6.5f + 5.0f * f3);
|
||||
this.Thingy.render(f5);
|
||||
}
|
||||
|
||||
|
||||
private void setRotation(final ModelRenderer model, final float x, final float y, final float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void setRotationAngles(final float f, final float f1, final float f2, final float f3, final float f4, final float f5, final Entity ent) {
|
||||
|
||||
public void setRotationAngles(
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5,
|
||||
final Entity ent) {
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, ent);
|
||||
this.BowL1.rotateAngleY = -f;
|
||||
this.BowR1.rotateAngleY = f + 3.1415927f;
|
||||
|
||||
+20
-14
@@ -1,53 +1,59 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelInspiratron extends ModelBase
|
||||
{
|
||||
public class ModelInspiratron extends ModelBase {
|
||||
ModelRenderer Jar;
|
||||
ModelRenderer BottomA;
|
||||
ModelRenderer Bottom1B;
|
||||
ModelRenderer Top;
|
||||
|
||||
|
||||
public ModelInspiratron() {
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 64;
|
||||
(this.Jar = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 10, 14, 10);
|
||||
(this.Jar = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 10, 14, 10);
|
||||
this.Jar.setRotationPoint(-5.0f, 11.0f, -5.0f);
|
||||
this.Jar.setTextureSize(64, 64);
|
||||
this.Jar.mirror = true;
|
||||
this.setRotation(this.Jar, 0.0f, 0.0f, 0.0f);
|
||||
(this.BottomA = new ModelRenderer((ModelBase)this, 0, 39)).addBox(0.0f, 0.0f, 0.0f, 16, 1, 16);
|
||||
(this.BottomA = new ModelRenderer((ModelBase) this, 0, 39)).addBox(0.0f, 0.0f, 0.0f, 16, 1, 16);
|
||||
this.BottomA.setRotationPoint(-8.0f, 23.0f, -8.0f);
|
||||
this.BottomA.setTextureSize(64, 64);
|
||||
this.BottomA.mirror = true;
|
||||
this.setRotation(this.BottomA, 0.0f, 0.0f, 0.0f);
|
||||
(this.Bottom1B = new ModelRenderer((ModelBase)this, 0, 24)).addBox(0.0f, 0.0f, 0.0f, 12, 3, 12);
|
||||
(this.Bottom1B = new ModelRenderer((ModelBase) this, 0, 24)).addBox(0.0f, 0.0f, 0.0f, 12, 3, 12);
|
||||
this.Bottom1B.setRotationPoint(-6.0f, 20.0f, -6.0f);
|
||||
this.Bottom1B.setTextureSize(64, 64);
|
||||
this.Bottom1B.mirror = true;
|
||||
this.setRotation(this.Bottom1B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Top = new ModelRenderer((ModelBase)this, 0, 24)).addBox(0.0f, 0.0f, 0.0f, 12, 1, 12);
|
||||
(this.Top = new ModelRenderer((ModelBase) this, 0, 24)).addBox(0.0f, 0.0f, 0.0f, 12, 1, 12);
|
||||
this.Top.setRotationPoint(-6.0f, 10.0f, -6.0f);
|
||||
this.Top.setTextureSize(64, 64);
|
||||
this.Top.mirror = true;
|
||||
this.setRotation(this.Top, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
this.Jar.render(f5);
|
||||
this.BottomA.render(f5);
|
||||
this.Bottom1B.render(f5);
|
||||
this.Top.render(f5);
|
||||
}
|
||||
|
||||
|
||||
private void setRotation(final ModelRenderer model, final float x, final float y, final float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
|
||||
+7
-8
@@ -1,25 +1,24 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
|
||||
public class ModelQuarterBlock extends ModelBase
|
||||
{
|
||||
public class ModelQuarterBlock extends ModelBase {
|
||||
public ModelRenderer block;
|
||||
|
||||
|
||||
public ModelQuarterBlock() {
|
||||
(this.block = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 1, 16);
|
||||
(this.block = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 1, 16);
|
||||
this.block.setRotationPoint(0.0f, 0.0f, 0.0f);
|
||||
this.block.setTextureSize(64, 32);
|
||||
this.block.mirror = true;
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 32;
|
||||
}
|
||||
|
||||
|
||||
public void render() {
|
||||
this.block.render(0.0625f);
|
||||
}
|
||||
|
||||
+46
-37
@@ -1,18 +1,17 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import java.awt.Color;
|
||||
import com.kentington.thaumichorizons.common.lib.PocketPlaneData;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import java.awt.Color;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class ModelReceptacle extends ModelBase
|
||||
{
|
||||
public class ModelReceptacle extends ModelBase {
|
||||
ModelRenderer Corner1;
|
||||
ModelRenderer Corner2;
|
||||
ModelRenderer Corner3;
|
||||
@@ -34,118 +33,127 @@ public class ModelReceptacle extends ModelBase
|
||||
ModelRenderer Side3C;
|
||||
ModelRenderer Side3D;
|
||||
ModelRenderer Keystone;
|
||||
|
||||
|
||||
public ModelReceptacle() {
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 64;
|
||||
(this.Corner1 = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
(this.Corner1 = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
this.Corner1.setRotationPoint(-8.0f, 20.0f, 4.0f);
|
||||
this.Corner1.setTextureSize(64, 64);
|
||||
this.Corner1.mirror = true;
|
||||
this.setRotation(this.Corner1, 0.0f, 0.0f, 0.0f);
|
||||
(this.Corner2 = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
(this.Corner2 = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
this.Corner2.setRotationPoint(-8.0f, 20.0f, -8.0f);
|
||||
this.Corner2.setTextureSize(64, 64);
|
||||
this.Corner2.mirror = true;
|
||||
this.setRotation(this.Corner2, 0.0f, 0.0f, 0.0f);
|
||||
(this.Corner3 = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
(this.Corner3 = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
this.Corner3.setRotationPoint(4.0f, 20.0f, -8.0f);
|
||||
this.Corner3.setTextureSize(64, 64);
|
||||
this.Corner3.mirror = true;
|
||||
this.setRotation(this.Corner3, 0.0f, 0.0f, 0.0f);
|
||||
(this.Corner4 = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
(this.Corner4 = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
this.Corner4.setRotationPoint(4.0f, 20.0f, 4.0f);
|
||||
this.Corner4.setTextureSize(64, 64);
|
||||
this.Corner4.mirror = true;
|
||||
this.setRotation(this.Corner4, 0.0f, 0.0f, 0.0f);
|
||||
(this.Side1A = new ModelRenderer((ModelBase)this, 0, 8)).addBox(0.0f, 0.0f, 0.0f, 8, 4, 4);
|
||||
(this.Side1A = new ModelRenderer((ModelBase) this, 0, 8)).addBox(0.0f, 0.0f, 0.0f, 8, 4, 4);
|
||||
this.Side1A.setRotationPoint(-4.0f, 8.0f, 4.0f);
|
||||
this.Side1A.setTextureSize(64, 64);
|
||||
this.Side1A.mirror = true;
|
||||
this.setRotation(this.Side1A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Corner5 = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
(this.Corner5 = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
this.Corner5.setRotationPoint(-8.0f, 8.0f, 4.0f);
|
||||
this.Corner5.setTextureSize(64, 64);
|
||||
this.Corner5.mirror = true;
|
||||
this.setRotation(this.Corner5, 0.0f, 0.0f, 0.0f);
|
||||
(this.Corner6 = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
(this.Corner6 = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
this.Corner6.setRotationPoint(-8.0f, 8.0f, -8.0f);
|
||||
this.Corner6.setTextureSize(64, 64);
|
||||
this.Corner6.mirror = true;
|
||||
this.setRotation(this.Corner6, 0.0f, 0.0f, 0.0f);
|
||||
(this.Corner7 = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
(this.Corner7 = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
this.Corner7.setRotationPoint(4.0f, 8.0f, -8.0f);
|
||||
this.Corner7.setTextureSize(64, 64);
|
||||
this.Corner7.mirror = true;
|
||||
this.setRotation(this.Corner7, 0.0f, 0.0f, 0.0f);
|
||||
(this.Corner8 = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
(this.Corner8 = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
this.Corner8.setRotationPoint(4.0f, 8.0f, 4.0f);
|
||||
this.Corner8.setTextureSize(64, 64);
|
||||
this.Corner8.mirror = true;
|
||||
this.setRotation(this.Corner8, 0.0f, 0.0f, 0.0f);
|
||||
(this.Side1B = new ModelRenderer((ModelBase)this, 0, 8)).addBox(0.0f, 0.0f, 0.0f, 8, 4, 4);
|
||||
(this.Side1B = new ModelRenderer((ModelBase) this, 0, 8)).addBox(0.0f, 0.0f, 0.0f, 8, 4, 4);
|
||||
this.Side1B.setRotationPoint(-4.0f, 8.0f, -8.0f);
|
||||
this.Side1B.setTextureSize(64, 64);
|
||||
this.Side1B.mirror = true;
|
||||
this.setRotation(this.Side1B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Side1C = new ModelRenderer((ModelBase)this, 0, 8)).addBox(0.0f, 0.0f, 0.0f, 8, 4, 4);
|
||||
(this.Side1C = new ModelRenderer((ModelBase) this, 0, 8)).addBox(0.0f, 0.0f, 0.0f, 8, 4, 4);
|
||||
this.Side1C.setRotationPoint(-4.0f, 20.0f, -8.0f);
|
||||
this.Side1C.setTextureSize(64, 64);
|
||||
this.Side1C.mirror = true;
|
||||
this.setRotation(this.Side1C, 0.0f, 0.0f, 0.0f);
|
||||
(this.Side1D = new ModelRenderer((ModelBase)this, 0, 8)).addBox(0.0f, 0.0f, 0.0f, 8, 4, 4);
|
||||
(this.Side1D = new ModelRenderer((ModelBase) this, 0, 8)).addBox(0.0f, 0.0f, 0.0f, 8, 4, 4);
|
||||
this.Side1D.setRotationPoint(-4.0f, 20.0f, 4.0f);
|
||||
this.Side1D.setTextureSize(64, 64);
|
||||
this.Side1D.mirror = true;
|
||||
this.setRotation(this.Side1D, 0.0f, 0.0f, 0.0f);
|
||||
(this.Side2A = new ModelRenderer((ModelBase)this, 0, 16)).addBox(0.0f, 0.0f, 0.0f, 4, 8, 4);
|
||||
(this.Side2A = new ModelRenderer((ModelBase) this, 0, 16)).addBox(0.0f, 0.0f, 0.0f, 4, 8, 4);
|
||||
this.Side2A.setRotationPoint(-8.0f, 12.0f, -8.0f);
|
||||
this.Side2A.setTextureSize(64, 64);
|
||||
this.Side2A.mirror = true;
|
||||
this.setRotation(this.Side2A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Side2B = new ModelRenderer((ModelBase)this, 0, 16)).addBox(0.0f, 0.0f, 0.0f, 4, 8, 4);
|
||||
(this.Side2B = new ModelRenderer((ModelBase) this, 0, 16)).addBox(0.0f, 0.0f, 0.0f, 4, 8, 4);
|
||||
this.Side2B.setRotationPoint(4.0f, 12.0f, 4.0f);
|
||||
this.Side2B.setTextureSize(64, 64);
|
||||
this.Side2B.mirror = true;
|
||||
this.setRotation(this.Side2B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Side2C = new ModelRenderer((ModelBase)this, 0, 16)).addBox(0.0f, 0.0f, 0.0f, 4, 8, 4);
|
||||
(this.Side2C = new ModelRenderer((ModelBase) this, 0, 16)).addBox(0.0f, 0.0f, 0.0f, 4, 8, 4);
|
||||
this.Side2C.setRotationPoint(-8.0f, 12.0f, 4.0f);
|
||||
this.Side2C.setTextureSize(64, 64);
|
||||
this.Side2C.mirror = true;
|
||||
this.setRotation(this.Side2C, 0.0f, 0.0f, 0.0f);
|
||||
(this.Side2D = new ModelRenderer((ModelBase)this, 0, 16)).addBox(0.0f, 0.0f, 0.0f, 4, 8, 4);
|
||||
(this.Side2D = new ModelRenderer((ModelBase) this, 0, 16)).addBox(0.0f, 0.0f, 0.0f, 4, 8, 4);
|
||||
this.Side2D.setRotationPoint(4.0f, 12.0f, -8.0f);
|
||||
this.Side2D.setTextureSize(64, 64);
|
||||
this.Side2D.mirror = true;
|
||||
this.setRotation(this.Side2D, 0.0f, 0.0f, 0.0f);
|
||||
(this.Side3A = new ModelRenderer((ModelBase)this, 0, 28)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 8);
|
||||
(this.Side3A = new ModelRenderer((ModelBase) this, 0, 28)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 8);
|
||||
this.Side3A.setRotationPoint(-8.0f, 8.0f, -4.0f);
|
||||
this.Side3A.setTextureSize(64, 64);
|
||||
this.Side3A.mirror = true;
|
||||
this.setRotation(this.Side3A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Side3B = new ModelRenderer((ModelBase)this, 0, 28)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 8);
|
||||
(this.Side3B = new ModelRenderer((ModelBase) this, 0, 28)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 8);
|
||||
this.Side3B.setRotationPoint(4.0f, 8.0f, -4.0f);
|
||||
this.Side3B.setTextureSize(64, 64);
|
||||
this.Side3B.mirror = true;
|
||||
this.setRotation(this.Side3B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Side3C = new ModelRenderer((ModelBase)this, 0, 28)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 8);
|
||||
(this.Side3C = new ModelRenderer((ModelBase) this, 0, 28)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 8);
|
||||
this.Side3C.setRotationPoint(-8.0f, 20.0f, -4.0f);
|
||||
this.Side3C.setTextureSize(64, 64);
|
||||
this.Side3C.mirror = true;
|
||||
this.setRotation(this.Side3C, 0.0f, 0.0f, 0.0f);
|
||||
(this.Side3D = new ModelRenderer((ModelBase)this, 0, 28)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 8);
|
||||
(this.Side3D = new ModelRenderer((ModelBase) this, 0, 28)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 8);
|
||||
this.Side3D.setRotationPoint(4.0f, 20.0f, -4.0f);
|
||||
this.Side3D.setTextureSize(64, 64);
|
||||
this.Side3D.mirror = true;
|
||||
this.setRotation(this.Side3D, 0.0f, 0.0f, 0.0f);
|
||||
(this.Keystone = new ModelRenderer((ModelBase)this, 24, 0)).addBox(0.0f, 0.0f, 0.0f, 8, 8, 8);
|
||||
(this.Keystone = new ModelRenderer((ModelBase) this, 24, 0)).addBox(0.0f, 0.0f, 0.0f, 8, 8, 8);
|
||||
this.Keystone.setRotationPoint(-4.0f, 12.0f, -4.0f);
|
||||
this.Keystone.setTextureSize(64, 64);
|
||||
this.Keystone.mirror = true;
|
||||
this.setRotation(this.Keystone, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5, final boolean keystone, final int plane) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5,
|
||||
final boolean keystone,
|
||||
final int plane) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
this.setRotationAngles(f, f1, f2, f3, f4, f5);
|
||||
this.Corner1.render(f5);
|
||||
@@ -172,11 +180,11 @@ public class ModelReceptacle extends ModelBase
|
||||
final Color col = new Color(PocketPlaneData.planes.get(plane).color);
|
||||
renderKeystone(col.getRed() / 255.0f, col.getGreen() / 255.0f, col.getBlue() / 255.0f, f5);
|
||||
} else if (keystone) {
|
||||
renderKeystone(1f,1f,1f, f5);
|
||||
renderKeystone(1f, 1f, 1f, f5);
|
||||
}
|
||||
}
|
||||
|
||||
private void renderKeystone(float r, float g, float b, float f5){
|
||||
private void renderKeystone(float r, float g, float b, float f5) {
|
||||
GL11.glColor4f(r, g, b, 1.0f);
|
||||
this.Keystone.render(f5);
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
@@ -187,8 +195,9 @@ public class ModelReceptacle extends ModelBase
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void setRotationAngles(final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, (Entity)null);
|
||||
|
||||
public void setRotationAngles(
|
||||
final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, (Entity) null);
|
||||
}
|
||||
}
|
||||
+33
-25
@@ -1,15 +1,14 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelRecombinator extends ModelBase
|
||||
{
|
||||
public class ModelRecombinator extends ModelBase {
|
||||
ModelRenderer Base;
|
||||
ModelRenderer Pearl;
|
||||
ModelRenderer Claw1A;
|
||||
@@ -22,73 +21,81 @@ public class ModelRecombinator extends ModelBase
|
||||
ModelRenderer Claw2B;
|
||||
ModelRenderer Claw3B;
|
||||
ModelRenderer Claw4B;
|
||||
|
||||
|
||||
public ModelRecombinator() {
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 64;
|
||||
(this.Base = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 4, 16);
|
||||
(this.Base = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 4, 16);
|
||||
this.Base.setRotationPoint(-8.0f, 20.0f, -8.0f);
|
||||
this.Base.setTextureSize(64, 64);
|
||||
this.Base.mirror = true;
|
||||
this.setRotation(this.Base, 0.0f, 0.0f, 0.0f);
|
||||
(this.Pearl = new ModelRenderer((ModelBase)this, 0, 20)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
(this.Pearl = new ModelRenderer((ModelBase) this, 0, 20)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
this.Pearl.setRotationPoint(-2.0f, 14.0f, -2.0f);
|
||||
this.Pearl.setTextureSize(64, 64);
|
||||
this.Pearl.mirror = true;
|
||||
this.setRotation(this.Pearl, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw1A = new ModelRenderer((ModelBase)this, 0, 28)).addBox(0.0f, 0.0f, 0.0f, 2, 8, 1);
|
||||
(this.Claw1A = new ModelRenderer((ModelBase) this, 0, 28)).addBox(0.0f, 0.0f, 0.0f, 2, 8, 1);
|
||||
this.Claw1A.setRotationPoint(-1.0f, 12.0f, 7.0f);
|
||||
this.Claw1A.setTextureSize(64, 64);
|
||||
this.Claw1A.mirror = true;
|
||||
this.setRotation(this.Claw1A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw2A = new ModelRenderer((ModelBase)this, 0, 28)).addBox(0.0f, 0.0f, 0.0f, 2, 8, 1);
|
||||
(this.Claw2A = new ModelRenderer((ModelBase) this, 0, 28)).addBox(0.0f, 0.0f, 0.0f, 2, 8, 1);
|
||||
this.Claw2A.setRotationPoint(-1.0f, 12.0f, -8.0f);
|
||||
this.Claw2A.setTextureSize(64, 64);
|
||||
this.Claw2A.mirror = true;
|
||||
this.setRotation(this.Claw2A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw3A = new ModelRenderer((ModelBase)this, 6, 28)).addBox(0.0f, 0.0f, 0.0f, 1, 8, 2);
|
||||
(this.Claw3A = new ModelRenderer((ModelBase) this, 6, 28)).addBox(0.0f, 0.0f, 0.0f, 1, 8, 2);
|
||||
this.Claw3A.setRotationPoint(-8.0f, 12.0f, -1.0f);
|
||||
this.Claw3A.setTextureSize(64, 64);
|
||||
this.Claw3A.mirror = true;
|
||||
this.setRotation(this.Claw3A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw4A = new ModelRenderer((ModelBase)this, 6, 28)).addBox(0.0f, 0.0f, 0.0f, 1, 8, 2);
|
||||
(this.Claw4A = new ModelRenderer((ModelBase) this, 6, 28)).addBox(0.0f, 0.0f, 0.0f, 1, 8, 2);
|
||||
this.Claw4A.setRotationPoint(7.0f, 12.0f, -1.0f);
|
||||
this.Claw4A.setTextureSize(64, 64);
|
||||
this.Claw4A.mirror = true;
|
||||
this.setRotation(this.Claw4A, 0.0f, 0.0f, 0.0f);
|
||||
(this.EndA = new ModelRenderer((ModelBase)this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 4, 2, 4);
|
||||
(this.EndA = new ModelRenderer((ModelBase) this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 4, 2, 4);
|
||||
this.EndA.setRotationPoint(-2.0f, 8.0f, -2.0f);
|
||||
this.EndA.setTextureSize(64, 64);
|
||||
this.EndA.mirror = true;
|
||||
this.setRotation(this.EndA, 0.0f, 0.0f, 0.0f);
|
||||
(this.Shape1 = new ModelRenderer((ModelBase)this, 0, 38)).addBox(0.0f, 0.0f, 0.0f, 8, 2, 8);
|
||||
(this.Shape1 = new ModelRenderer((ModelBase) this, 0, 38)).addBox(0.0f, 0.0f, 0.0f, 8, 2, 8);
|
||||
this.Shape1.setRotationPoint(-4.0f, 10.0f, -4.0f);
|
||||
this.Shape1.setTextureSize(64, 64);
|
||||
this.Shape1.mirror = true;
|
||||
this.setRotation(this.Shape1, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw1B = new ModelRenderer((ModelBase)this, 0, 54)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 4);
|
||||
(this.Claw1B = new ModelRenderer((ModelBase) this, 0, 54)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 4);
|
||||
this.Claw1B.setRotationPoint(-1.0f, 11.0f, 4.0f);
|
||||
this.Claw1B.setTextureSize(64, 64);
|
||||
this.Claw1B.mirror = true;
|
||||
this.setRotation(this.Claw1B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw2B = new ModelRenderer((ModelBase)this, 0, 54)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 4);
|
||||
(this.Claw2B = new ModelRenderer((ModelBase) this, 0, 54)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 4);
|
||||
this.Claw2B.setRotationPoint(-1.0f, 11.0f, -8.0f);
|
||||
this.Claw2B.setTextureSize(64, 64);
|
||||
this.Claw2B.mirror = true;
|
||||
this.setRotation(this.Claw2B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw3B = new ModelRenderer((ModelBase)this, 0, 59)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 2);
|
||||
(this.Claw3B = new ModelRenderer((ModelBase) this, 0, 59)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 2);
|
||||
this.Claw3B.setRotationPoint(4.0f, 11.0f, -1.0f);
|
||||
this.Claw3B.setTextureSize(64, 64);
|
||||
this.Claw3B.mirror = true;
|
||||
this.setRotation(this.Claw3B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw4B = new ModelRenderer((ModelBase)this, 0, 59)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 2);
|
||||
(this.Claw4B = new ModelRenderer((ModelBase) this, 0, 59)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 2);
|
||||
this.Claw4B.setRotationPoint(-8.0f, 11.0f, -1.0f);
|
||||
this.Claw4B.setTextureSize(64, 64);
|
||||
this.Claw4B.mirror = true;
|
||||
this.setRotation(this.Claw4B, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5, final float motion) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5,
|
||||
final float motion) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
this.setRotationAngles(f, f1, f2, f3, f4, f5);
|
||||
this.Base.render(f5);
|
||||
@@ -105,14 +112,15 @@ public class ModelRecombinator extends ModelBase
|
||||
this.Claw3B.render(f5);
|
||||
this.Claw4B.render(f5);
|
||||
}
|
||||
|
||||
|
||||
private void setRotation(final ModelRenderer model, final float x, final float y, final float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void setRotationAngles(final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, (Entity)null);
|
||||
|
||||
public void setRotationAngles(
|
||||
final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, (Entity) null);
|
||||
}
|
||||
}
|
||||
+39
-26
@@ -1,15 +1,14 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelSoulBeacon extends ModelBase
|
||||
{
|
||||
public class ModelSoulBeacon extends ModelBase {
|
||||
ModelRenderer Base;
|
||||
ModelRenderer Core;
|
||||
ModelRenderer Claw1A;
|
||||
@@ -24,83 +23,90 @@ public class ModelSoulBeacon extends ModelBase
|
||||
ModelRenderer Claw2C;
|
||||
ModelRenderer Claw3C;
|
||||
ModelRenderer Claw4C;
|
||||
|
||||
|
||||
public ModelSoulBeacon() {
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 64;
|
||||
(this.Base = new ModelRenderer((ModelBase)this, 0, 23)).addBox(0.0f, 0.0f, 0.0f, 16, 1, 16);
|
||||
(this.Base = new ModelRenderer((ModelBase) this, 0, 23)).addBox(0.0f, 0.0f, 0.0f, 16, 1, 16);
|
||||
this.Base.setRotationPoint(-8.0f, 23.0f, -8.0f);
|
||||
this.Base.setTextureSize(64, 64);
|
||||
this.Base.mirror = true;
|
||||
this.setRotation(this.Base, 0.0f, 0.0f, 0.0f);
|
||||
(this.Core = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 12, 11, 12);
|
||||
(this.Core = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 12, 11, 12);
|
||||
this.Core.setRotationPoint(-6.0f, 12.0f, -6.0f);
|
||||
this.Core.setTextureSize(64, 64);
|
||||
this.Core.mirror = true;
|
||||
this.setRotation(this.Core, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw1A = new ModelRenderer((ModelBase)this, 48, 0)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 2);
|
||||
(this.Claw1A = new ModelRenderer((ModelBase) this, 48, 0)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 2);
|
||||
this.Claw1A.setRotationPoint(6.0f, 12.0f, -1.0f);
|
||||
this.Claw1A.setTextureSize(64, 64);
|
||||
this.Claw1A.mirror = true;
|
||||
this.setRotation(this.Claw1A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw2A = new ModelRenderer((ModelBase)this, 48, 0)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 2);
|
||||
(this.Claw2A = new ModelRenderer((ModelBase) this, 48, 0)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 2);
|
||||
this.Claw2A.setRotationPoint(-8.0f, 12.0f, -1.0f);
|
||||
this.Claw2A.setTextureSize(64, 64);
|
||||
this.Claw2A.mirror = true;
|
||||
this.setRotation(this.Claw2A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw3A = new ModelRenderer((ModelBase)this, 48, 0)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 2);
|
||||
(this.Claw3A = new ModelRenderer((ModelBase) this, 48, 0)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 2);
|
||||
this.Claw3A.setRotationPoint(-1.0f, 12.0f, -8.0f);
|
||||
this.Claw3A.setTextureSize(64, 64);
|
||||
this.Claw3A.mirror = true;
|
||||
this.setRotation(this.Claw3A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw4A = new ModelRenderer((ModelBase)this, 48, 0)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 2);
|
||||
(this.Claw4A = new ModelRenderer((ModelBase) this, 48, 0)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 2);
|
||||
this.Claw4A.setRotationPoint(-1.0f, 12.0f, 6.0f);
|
||||
this.Claw4A.setTextureSize(64, 64);
|
||||
this.Claw4A.mirror = true;
|
||||
this.setRotation(this.Claw4A, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw3B = new ModelRenderer((ModelBase)this, 48, 8)).addBox(0.0f, 0.0f, 0.0f, 2, 4, 1);
|
||||
(this.Claw3B = new ModelRenderer((ModelBase) this, 48, 8)).addBox(0.0f, 0.0f, 0.0f, 2, 4, 1);
|
||||
this.Claw3B.setRotationPoint(-1.0f, 8.0f, -8.0f);
|
||||
this.Claw3B.setTextureSize(64, 64);
|
||||
this.Claw3B.mirror = true;
|
||||
this.setRotation(this.Claw3B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw4B = new ModelRenderer((ModelBase)this, 48, 8)).addBox(0.0f, 0.0f, 0.0f, 2, 4, 1);
|
||||
(this.Claw4B = new ModelRenderer((ModelBase) this, 48, 8)).addBox(0.0f, 0.0f, 0.0f, 2, 4, 1);
|
||||
this.Claw4B.setRotationPoint(-1.0f, 8.0f, 7.0f);
|
||||
this.Claw4B.setTextureSize(64, 64);
|
||||
this.Claw4B.mirror = true;
|
||||
this.setRotation(this.Claw4B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw1B = new ModelRenderer((ModelBase)this, 48, 16)).addBox(0.0f, 0.0f, 0.0f, 1, 4, 2);
|
||||
(this.Claw1B = new ModelRenderer((ModelBase) this, 48, 16)).addBox(0.0f, 0.0f, 0.0f, 1, 4, 2);
|
||||
this.Claw1B.setRotationPoint(7.0f, 8.0f, -1.0f);
|
||||
this.Claw1B.setTextureSize(64, 64);
|
||||
this.Claw1B.mirror = true;
|
||||
this.setRotation(this.Claw1B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw2B = new ModelRenderer((ModelBase)this, 48, 16)).addBox(0.0f, 0.0f, 0.0f, 1, 4, 2);
|
||||
(this.Claw2B = new ModelRenderer((ModelBase) this, 48, 16)).addBox(0.0f, 0.0f, 0.0f, 1, 4, 2);
|
||||
this.Claw2B.setRotationPoint(-8.0f, 8.0f, -1.0f);
|
||||
this.Claw2B.setTextureSize(64, 64);
|
||||
this.Claw2B.mirror = true;
|
||||
this.setRotation(this.Claw2B, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw1C = new ModelRenderer((ModelBase)this, 48, 48)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 2);
|
||||
(this.Claw1C = new ModelRenderer((ModelBase) this, 48, 48)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 2);
|
||||
this.Claw1C.setRotationPoint(3.0f, 8.0f, -1.0f);
|
||||
this.Claw1C.setTextureSize(64, 64);
|
||||
this.Claw1C.mirror = true;
|
||||
this.setRotation(this.Claw1C, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw2C = new ModelRenderer((ModelBase)this, 48, 48)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 2);
|
||||
(this.Claw2C = new ModelRenderer((ModelBase) this, 48, 48)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 2);
|
||||
this.Claw2C.setRotationPoint(-7.0f, 8.0f, -1.0f);
|
||||
this.Claw2C.setTextureSize(64, 64);
|
||||
this.Claw2C.mirror = true;
|
||||
this.setRotation(this.Claw2C, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw3C = new ModelRenderer((ModelBase)this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 4);
|
||||
(this.Claw3C = new ModelRenderer((ModelBase) this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 4);
|
||||
this.Claw3C.setRotationPoint(-1.0f, 8.0f, -7.0f);
|
||||
this.Claw3C.setTextureSize(64, 64);
|
||||
this.Claw3C.mirror = true;
|
||||
this.setRotation(this.Claw3C, 0.0f, 0.0f, 0.0f);
|
||||
(this.Claw4C = new ModelRenderer((ModelBase)this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 4);
|
||||
(this.Claw4C = new ModelRenderer((ModelBase) this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 4);
|
||||
this.Claw4C.setRotationPoint(-1.0f, 8.0f, 3.0f);
|
||||
this.Claw4C.setTextureSize(64, 64);
|
||||
this.Claw4C.mirror = true;
|
||||
this.setRotation(this.Claw4C, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
this.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
this.Base.render(f5);
|
||||
@@ -118,14 +124,21 @@ public class ModelSoulBeacon extends ModelBase
|
||||
this.Claw3C.render(f5);
|
||||
this.Claw4C.render(f5);
|
||||
}
|
||||
|
||||
|
||||
private void setRotation(final ModelRenderer model, final float x, final float y, final float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void setRotationAngles(final float f, final float f1, final float f2, final float f3, final float f4, final float f5, final Entity ent) {
|
||||
|
||||
public void setRotationAngles(
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5,
|
||||
final Entity ent) {
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, ent);
|
||||
}
|
||||
}
|
||||
+43
-35
@@ -1,16 +1,15 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class ModelSoulSieve extends ModelBase
|
||||
{
|
||||
public class ModelSoulSieve extends ModelBase {
|
||||
ModelRenderer TopSide1;
|
||||
ModelRenderer TopSide2;
|
||||
ModelRenderer TopSide3;
|
||||
@@ -35,133 +34,142 @@ public class ModelSoulSieve extends ModelBase
|
||||
ModelRenderer SieveOuter2B;
|
||||
ModelRenderer SieveOuter1B;
|
||||
ModelRenderer SieveOuter1A;
|
||||
|
||||
|
||||
public ModelSoulSieve() {
|
||||
this.textureWidth = 128;
|
||||
this.textureHeight = 64;
|
||||
(this.TopSide1 = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 6, 1);
|
||||
(this.TopSide1 = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 6, 1);
|
||||
this.TopSide1.setRotationPoint(-8.0f, 8.0f, 7.0f);
|
||||
this.TopSide1.setTextureSize(64, 32);
|
||||
this.TopSide1.mirror = true;
|
||||
this.setRotation(this.TopSide1, 0.0f, 0.0f, 0.0f);
|
||||
(this.TopSide2 = new ModelRenderer((ModelBase)this, 0, 9)).addBox(0.0f, 0.0f, 0.0f, 16, 6, 1);
|
||||
(this.TopSide2 = new ModelRenderer((ModelBase) this, 0, 9)).addBox(0.0f, 0.0f, 0.0f, 16, 6, 1);
|
||||
this.TopSide2.setRotationPoint(-8.0f, 8.0f, -8.0f);
|
||||
this.TopSide2.setTextureSize(64, 32);
|
||||
this.TopSide2.mirror = true;
|
||||
this.setRotation(this.TopSide2, 0.0f, 0.0f, 0.0f);
|
||||
(this.TopSide3 = new ModelRenderer((ModelBase)this, 0, 44)).addBox(0.0f, 0.0f, 0.0f, 1, 6, 14);
|
||||
(this.TopSide3 = new ModelRenderer((ModelBase) this, 0, 44)).addBox(0.0f, 0.0f, 0.0f, 1, 6, 14);
|
||||
this.TopSide3.setRotationPoint(7.0f, 8.0f, -7.0f);
|
||||
this.TopSide3.setTextureSize(64, 32);
|
||||
this.TopSide3.mirror = true;
|
||||
this.setRotation(this.TopSide3, 0.0f, 0.0f, 0.0f);
|
||||
(this.TopSide4 = new ModelRenderer((ModelBase)this, 0, 18)).addBox(0.0f, 0.0f, 0.0f, 1, 6, 14);
|
||||
(this.TopSide4 = new ModelRenderer((ModelBase) this, 0, 18)).addBox(0.0f, 0.0f, 0.0f, 1, 6, 14);
|
||||
this.TopSide4.setRotationPoint(-8.0f, 8.0f, -7.0f);
|
||||
this.TopSide4.setTextureSize(64, 32);
|
||||
this.TopSide4.mirror = true;
|
||||
this.setRotation(this.TopSide4, 0.0f, 0.0f, 0.0f);
|
||||
(this.TopBottom = new ModelRenderer((ModelBase)this, 48, 0)).addBox(0.0f, 0.0f, 0.0f, 14, 1, 14);
|
||||
(this.TopBottom = new ModelRenderer((ModelBase) this, 48, 0)).addBox(0.0f, 0.0f, 0.0f, 14, 1, 14);
|
||||
this.TopBottom.setRotationPoint(-7.0f, 13.0f, -7.0f);
|
||||
this.TopBottom.setTextureSize(64, 32);
|
||||
this.TopBottom.mirror = true;
|
||||
this.setRotation(this.TopBottom, 0.0f, 0.0f, 0.0f);
|
||||
(this.Middle = new ModelRenderer((ModelBase)this, 32, 32)).addBox(0.0f, 0.0f, 0.0f, 8, 6, 8);
|
||||
(this.Middle = new ModelRenderer((ModelBase) this, 32, 32)).addBox(0.0f, 0.0f, 0.0f, 8, 6, 8);
|
||||
this.Middle.setRotationPoint(-4.0f, 14.0f, -4.0f);
|
||||
this.Middle.setTextureSize(64, 32);
|
||||
this.Middle.mirror = true;
|
||||
this.setRotation(this.Middle, 0.0f, 0.0f, 0.0f);
|
||||
(this.Bottom = new ModelRenderer((ModelBase)this, 32, 18)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
(this.Bottom = new ModelRenderer((ModelBase) this, 32, 18)).addBox(0.0f, 0.0f, 0.0f, 4, 4, 4);
|
||||
this.Bottom.setRotationPoint(-2.0f, 20.0f, -2.0f);
|
||||
this.Bottom.setTextureSize(64, 32);
|
||||
this.Bottom.mirror = true;
|
||||
this.setRotation(this.Bottom, 0.0f, 0.0f, 0.0f);
|
||||
(this.Sand = new ModelRenderer((ModelBase)this, 72, 16)).addBox(0.0f, 0.0f, 0.0f, 14, 3, 14);
|
||||
(this.Sand = new ModelRenderer((ModelBase) this, 72, 16)).addBox(0.0f, 0.0f, 0.0f, 14, 3, 14);
|
||||
this.Sand.setRotationPoint(-7.0f, 10.0f, -7.0f);
|
||||
this.Sand.setTextureSize(64, 32);
|
||||
this.Sand.mirror = true;
|
||||
this.setRotation(this.Sand, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveSide4 = new ModelRenderer((ModelBase)this, 64, 36)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 5);
|
||||
(this.SieveSide4 = new ModelRenderer((ModelBase) this, 64, 36)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 5);
|
||||
this.SieveSide4.setRotationPoint(-1.0f, 8.0f, 2.0f);
|
||||
this.SieveSide4.setTextureSize(64, 32);
|
||||
this.SieveSide4.mirror = true;
|
||||
this.setRotation(this.SieveSide4, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveSide3 = new ModelRenderer((ModelBase)this, 64, 36)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 5);
|
||||
(this.SieveSide3 = new ModelRenderer((ModelBase) this, 64, 36)).addBox(0.0f, 0.0f, 0.0f, 2, 1, 5);
|
||||
this.SieveSide3.setRotationPoint(-1.0f, 8.0f, -7.0f);
|
||||
this.SieveSide3.setTextureSize(64, 32);
|
||||
this.SieveSide3.mirror = true;
|
||||
this.setRotation(this.SieveSide3, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveSide2 = new ModelRenderer((ModelBase)this, 48, 18)).addBox(0.0f, 0.0f, 0.0f, 5, 1, 2);
|
||||
(this.SieveSide2 = new ModelRenderer((ModelBase) this, 48, 18)).addBox(0.0f, 0.0f, 0.0f, 5, 1, 2);
|
||||
this.SieveSide2.setRotationPoint(-7.0f, 8.0f, -1.0f);
|
||||
this.SieveSide2.setTextureSize(64, 32);
|
||||
this.SieveSide2.mirror = true;
|
||||
this.setRotation(this.SieveSide2, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveSide1 = new ModelRenderer((ModelBase)this, 48, 18)).addBox(0.0f, 0.0f, 0.0f, 5, 1, 2);
|
||||
(this.SieveSide1 = new ModelRenderer((ModelBase) this, 48, 18)).addBox(0.0f, 0.0f, 0.0f, 5, 1, 2);
|
||||
this.SieveSide1.setRotationPoint(2.0f, 8.0f, -1.0f);
|
||||
this.SieveSide1.setTextureSize(64, 32);
|
||||
this.SieveSide1.mirror = true;
|
||||
this.setRotation(this.SieveSide1, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveCenter4 = new ModelRenderer((ModelBase)this, 36, 0)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 2);
|
||||
(this.SieveCenter4 = new ModelRenderer((ModelBase) this, 36, 0)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 2);
|
||||
this.SieveCenter4.setRotationPoint(1.0f, 8.0f, -1.0f);
|
||||
this.SieveCenter4.setTextureSize(64, 32);
|
||||
this.SieveCenter4.mirror = true;
|
||||
this.setRotation(this.SieveCenter4, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveCenter3 = new ModelRenderer((ModelBase)this, 36, 0)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 2);
|
||||
(this.SieveCenter3 = new ModelRenderer((ModelBase) this, 36, 0)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 2);
|
||||
this.SieveCenter3.setRotationPoint(-2.0f, 8.0f, -1.0f);
|
||||
this.SieveCenter3.setTextureSize(64, 32);
|
||||
this.SieveCenter3.mirror = true;
|
||||
this.setRotation(this.SieveCenter3, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveCenter2 = new ModelRenderer((ModelBase)this, 32, 28)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
(this.SieveCenter2 = new ModelRenderer((ModelBase) this, 32, 28)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
this.SieveCenter2.setRotationPoint(-2.0f, 8.0f, 1.0f);
|
||||
this.SieveCenter2.setTextureSize(64, 32);
|
||||
this.SieveCenter2.mirror = true;
|
||||
this.setRotation(this.SieveCenter2, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveCenter1 = new ModelRenderer((ModelBase)this, 32, 28)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
(this.SieveCenter1 = new ModelRenderer((ModelBase) this, 32, 28)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
this.SieveCenter1.setRotationPoint(-2.0f, 8.0f, -2.0f);
|
||||
this.SieveCenter1.setTextureSize(64, 32);
|
||||
this.SieveCenter1.mirror = true;
|
||||
this.setRotation(this.SieveCenter1, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveOuter4B = new ModelRenderer((ModelBase)this, 62, 24)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
(this.SieveOuter4B = new ModelRenderer((ModelBase) this, 62, 24)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
this.SieveOuter4B.setRotationPoint(-5.0f, 8.0f, -5.0f);
|
||||
this.SieveOuter4B.setTextureSize(128, 64);
|
||||
this.SieveOuter4B.mirror = true;
|
||||
this.setRotation(this.SieveOuter4B, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveOuter4A = new ModelRenderer((ModelBase)this, 64, 32)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 3);
|
||||
(this.SieveOuter4A = new ModelRenderer((ModelBase) this, 64, 32)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 3);
|
||||
this.SieveOuter4A.setRotationPoint(-5.0f, 8.0f, -4.0f);
|
||||
this.SieveOuter4A.setTextureSize(128, 64);
|
||||
this.SieveOuter4A.mirror = true;
|
||||
this.setRotation(this.SieveOuter4A, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveOuter3B = new ModelRenderer((ModelBase)this, 62, 24)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
(this.SieveOuter3B = new ModelRenderer((ModelBase) this, 62, 24)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
this.SieveOuter3B.setRotationPoint(1.0f, 8.0f, -5.0f);
|
||||
this.SieveOuter3B.setTextureSize(128, 64);
|
||||
this.SieveOuter3B.mirror = true;
|
||||
this.setRotation(this.SieveOuter3B, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveOuter3A = new ModelRenderer((ModelBase)this, 64, 32)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 3);
|
||||
(this.SieveOuter3A = new ModelRenderer((ModelBase) this, 64, 32)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 3);
|
||||
this.SieveOuter3A.setRotationPoint(4.0f, 8.0f, -4.0f);
|
||||
this.SieveOuter3A.setTextureSize(128, 64);
|
||||
this.SieveOuter3A.mirror = true;
|
||||
this.setRotation(this.SieveOuter3A, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveOuter2A = new ModelRenderer((ModelBase)this, 64, 32)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 3);
|
||||
(this.SieveOuter2A = new ModelRenderer((ModelBase) this, 64, 32)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 3);
|
||||
this.SieveOuter2A.setRotationPoint(4.0f, 8.0f, 1.0f);
|
||||
this.SieveOuter2A.setTextureSize(128, 64);
|
||||
this.SieveOuter2A.mirror = true;
|
||||
this.setRotation(this.SieveOuter2A, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveOuter2B = new ModelRenderer((ModelBase)this, 62, 24)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
(this.SieveOuter2B = new ModelRenderer((ModelBase) this, 62, 24)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
this.SieveOuter2B.setRotationPoint(1.0f, 8.0f, 4.0f);
|
||||
this.SieveOuter2B.setTextureSize(128, 64);
|
||||
this.SieveOuter2B.mirror = true;
|
||||
this.setRotation(this.SieveOuter2B, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveOuter1B = new ModelRenderer((ModelBase)this, 62, 24)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
(this.SieveOuter1B = new ModelRenderer((ModelBase) this, 62, 24)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
this.SieveOuter1B.setRotationPoint(-5.0f, 8.0f, 4.0f);
|
||||
this.SieveOuter1B.setTextureSize(128, 64);
|
||||
this.SieveOuter1B.mirror = true;
|
||||
this.setRotation(this.SieveOuter1B, 0.0f, 0.0f, 0.0f);
|
||||
(this.SieveOuter1A = new ModelRenderer((ModelBase)this, 64, 32)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 3);
|
||||
(this.SieveOuter1A = new ModelRenderer((ModelBase) this, 64, 32)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 3);
|
||||
this.SieveOuter1A.setRotationPoint(-5.0f, 8.0f, 1.0f);
|
||||
this.SieveOuter1A.setTextureSize(128, 64);
|
||||
this.SieveOuter1A.mirror = true;
|
||||
this.setRotation(this.SieveOuter1A, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5, final float sieveMovement, final float sandScale) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5,
|
||||
final float sieveMovement,
|
||||
final float sandScale) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
this.TopSide1.render(f5);
|
||||
this.TopSide2.render(f5);
|
||||
@@ -193,7 +201,7 @@ public class ModelSoulSieve extends ModelBase
|
||||
this.Sand.render(f5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void setRotation(final ModelRenderer model, final float x, final float y, final float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
|
||||
+34
-21
@@ -1,15 +1,14 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelSoulforge extends ModelBase
|
||||
{
|
||||
public class ModelSoulforge extends ModelBase {
|
||||
ModelRenderer BrainTank;
|
||||
ModelRenderer Neck;
|
||||
ModelRenderer SoulTank;
|
||||
@@ -18,53 +17,60 @@ public class ModelSoulforge extends ModelBase
|
||||
ModelRenderer Rod3;
|
||||
ModelRenderer Rod4;
|
||||
public ModelRenderer Brine;
|
||||
|
||||
|
||||
public ModelSoulforge() {
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 64;
|
||||
(this.BrainTank = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 8, 16);
|
||||
(this.BrainTank = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 8, 16);
|
||||
this.BrainTank.setRotationPoint(-8.0f, 16.0f, -8.0f);
|
||||
this.BrainTank.setTextureSize(64, 64);
|
||||
this.BrainTank.mirror = true;
|
||||
this.setRotation(this.BrainTank, 0.0f, 0.0f, 0.0f);
|
||||
(this.Neck = new ModelRenderer((ModelBase)this, 0, 24)).addBox(0.0f, 0.0f, 0.0f, 5, 2, 5);
|
||||
(this.Neck = new ModelRenderer((ModelBase) this, 0, 24)).addBox(0.0f, 0.0f, 0.0f, 5, 2, 5);
|
||||
this.Neck.setRotationPoint(-2.5f, 14.0f, -2.5f);
|
||||
this.Neck.setTextureSize(64, 64);
|
||||
this.Neck.mirror = true;
|
||||
this.setRotation(this.Neck, 0.0f, 0.0f, 0.0f);
|
||||
(this.SoulTank = new ModelRenderer((ModelBase)this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 10, 6, 10);
|
||||
(this.SoulTank = new ModelRenderer((ModelBase) this, 0, 48)).addBox(0.0f, 0.0f, 0.0f, 10, 6, 10);
|
||||
this.SoulTank.setRotationPoint(-5.0f, 8.0f, -5.0f);
|
||||
this.SoulTank.setTextureSize(64, 64);
|
||||
this.SoulTank.mirror = true;
|
||||
this.setRotation(this.SoulTank, 0.0f, 0.0f, 0.0f);
|
||||
(this.Rod1 = new ModelRenderer((ModelBase)this, 0, 31)).addBox(0.0f, 0.0f, 0.0f, 1, 4, 1);
|
||||
(this.Rod1 = new ModelRenderer((ModelBase) this, 0, 31)).addBox(0.0f, 0.0f, 0.0f, 1, 4, 1);
|
||||
this.Rod1.setRotationPoint(-8.0f, 12.0f, -8.0f);
|
||||
this.Rod1.setTextureSize(64, 64);
|
||||
this.Rod1.mirror = true;
|
||||
this.setRotation(this.Rod1, 0.0f, 0.0f, 0.0f);
|
||||
(this.Rod2 = new ModelRenderer((ModelBase)this, 0, 31)).addBox(0.0f, 0.0f, 0.0f, 1, 4, 1);
|
||||
(this.Rod2 = new ModelRenderer((ModelBase) this, 0, 31)).addBox(0.0f, 0.0f, 0.0f, 1, 4, 1);
|
||||
this.Rod2.setRotationPoint(-8.0f, 12.0f, 7.0f);
|
||||
this.Rod2.setTextureSize(64, 64);
|
||||
this.Rod2.mirror = true;
|
||||
this.setRotation(this.Rod2, 0.0f, 0.0f, 0.0f);
|
||||
(this.Rod3 = new ModelRenderer((ModelBase)this, 0, 31)).addBox(0.0f, 0.0f, 0.0f, 1, 4, 1);
|
||||
(this.Rod3 = new ModelRenderer((ModelBase) this, 0, 31)).addBox(0.0f, 0.0f, 0.0f, 1, 4, 1);
|
||||
this.Rod3.setRotationPoint(7.0f, 12.0f, 7.0f);
|
||||
this.Rod3.setTextureSize(64, 64);
|
||||
this.Rod3.mirror = true;
|
||||
this.setRotation(this.Rod3, 0.0f, 0.0f, 0.0f);
|
||||
(this.Rod4 = new ModelRenderer((ModelBase)this, 0, 31)).addBox(0.0f, 0.0f, 0.0f, 1, 4, 1);
|
||||
(this.Rod4 = new ModelRenderer((ModelBase) this, 0, 31)).addBox(0.0f, 0.0f, 0.0f, 1, 4, 1);
|
||||
this.Rod4.setRotationPoint(7.0f, 12.0f, -8.0f);
|
||||
this.Rod4.setTextureSize(64, 64);
|
||||
this.Rod4.mirror = true;
|
||||
this.setRotation(this.Rod4, 0.0f, 0.0f, 0.0f);
|
||||
(this.Brine = new ModelRenderer((ModelBase)this, 0, 0)).addBox(-7.0f, 17.0f, -7.0f, 14, 6, 14);
|
||||
(this.Brine = new ModelRenderer((ModelBase) this, 0, 0)).addBox(-7.0f, 17.0f, -7.0f, 14, 6, 14);
|
||||
this.Brine.setRotationPoint(0.0f, 0.0f, 0.0f);
|
||||
this.Brine.setTextureSize(64, 32);
|
||||
this.Brine.mirror = true;
|
||||
this.setRotation(this.Brine, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
this.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
this.BrainTank.render(f5);
|
||||
@@ -75,17 +81,24 @@ public class ModelSoulforge extends ModelBase
|
||||
this.Rod3.render(f5);
|
||||
this.Rod4.render(f5);
|
||||
}
|
||||
|
||||
|
||||
private void setRotation(final ModelRenderer model, final float x, final float y, final float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void setRotationAngles(final float f, final float f1, final float f2, final float f3, final float f4, final float f5, final Entity entity) {
|
||||
|
||||
public void setRotationAngles(
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5,
|
||||
final Entity entity) {
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
}
|
||||
|
||||
|
||||
public void renderBrine() {
|
||||
this.Brine.render(0.0625f);
|
||||
}
|
||||
|
||||
+37
-25
@@ -1,51 +1,58 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySyringe;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import java.awt.Color;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import com.kentington.thaumichorizons.common.entities.EntitySyringe;
|
||||
import java.awt.Color;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class ModelSyringe extends ModelBase
|
||||
{
|
||||
public class ModelSyringe extends ModelBase {
|
||||
ModelRenderer Body;
|
||||
ModelRenderer Needle;
|
||||
ModelRenderer PlungerA;
|
||||
ModelRenderer PlungerB;
|
||||
|
||||
|
||||
public ModelSyringe() {
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 32;
|
||||
(this.Body = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 9, 3, 3);
|
||||
(this.Body = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 9, 3, 3);
|
||||
this.Body.setRotationPoint(-3.0f, 21.0f, -1.0f);
|
||||
this.Body.setTextureSize(64, 32);
|
||||
this.Body.mirror = true;
|
||||
this.setRotation(this.Body, 0.0f, 0.0f, 0.0f);
|
||||
(this.Needle = new ModelRenderer((ModelBase)this, 25, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
(this.Needle = new ModelRenderer((ModelBase) this, 25, 0)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
this.Needle.setRotationPoint(-7.0f, 22.0f, 0.0f);
|
||||
this.Needle.setTextureSize(64, 32);
|
||||
this.Needle.mirror = true;
|
||||
this.setRotation(this.Needle, 0.0f, 0.0f, 0.0f);
|
||||
(this.PlungerA = new ModelRenderer((ModelBase)this, 0, 8)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 1);
|
||||
(this.PlungerA = new ModelRenderer((ModelBase) this, 0, 8)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 1);
|
||||
this.PlungerA.setRotationPoint(6.0f, 22.0f, 0.0f);
|
||||
this.PlungerA.setTextureSize(64, 32);
|
||||
this.PlungerA.mirror = true;
|
||||
this.setRotation(this.PlungerA, 0.0f, 0.0f, 0.0f);
|
||||
(this.PlungerB = new ModelRenderer((ModelBase)this, 0, 12)).addBox(0.0f, 0.0f, 0.0f, 1, 3, 3);
|
||||
(this.PlungerB = new ModelRenderer((ModelBase) this, 0, 12)).addBox(0.0f, 0.0f, 0.0f, 1, 3, 3);
|
||||
this.PlungerB.setRotationPoint(7.0f, 21.0f, -1.0f);
|
||||
this.PlungerB.setTextureSize(64, 32);
|
||||
this.PlungerB.mirror = true;
|
||||
this.setRotation(this.PlungerB, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5, final ItemStack item) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5,
|
||||
final ItemStack item) {
|
||||
if (item != null) {
|
||||
final Color col = new Color(ThaumicHorizons.itemSyringeInjection.getColorFromItemStack(item, 0));
|
||||
final float red = col.getRed() / 255.0f;
|
||||
@@ -53,13 +60,11 @@ public class ModelSyringe extends ModelBase
|
||||
final float blue = col.getBlue() / 255.0f;
|
||||
if (item.getItem() != ThaumicHorizons.itemSyringeEmpty) {
|
||||
GL11.glColor4f(red, green, blue, 0.75f);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
GL11.glColor4f(red, green, blue, 0.5f);
|
||||
}
|
||||
}
|
||||
else if (entity != null && entity instanceof EntitySyringe) {
|
||||
final Color col = new Color(((EntitySyringe)entity).color);
|
||||
} else if (entity != null && entity instanceof EntitySyringe) {
|
||||
final Color col = new Color(((EntitySyringe) entity).color);
|
||||
final float red = col.getRed() / 255.0f;
|
||||
final float green = col.getGreen() / 255.0f;
|
||||
final float blue = col.getBlue() / 255.0f;
|
||||
@@ -72,14 +77,21 @@ public class ModelSyringe extends ModelBase
|
||||
this.PlungerA.render(f5);
|
||||
this.PlungerB.render(f5);
|
||||
}
|
||||
|
||||
|
||||
private void setRotation(final ModelRenderer model, final float x, final float y, final float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void setRotationAngles(final float f, final float f1, final float f2, final float f3, final float f4, final float f5, final Entity ent) {
|
||||
|
||||
public void setRotationAngles(
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5,
|
||||
final Entity ent) {
|
||||
this.Body.rotateAngleX = ent.rotationPitch;
|
||||
this.Body.rotateAngleY = ent.rotationYaw;
|
||||
this.Needle.rotateAngleX = ent.rotationPitch;
|
||||
|
||||
@@ -1,52 +1,58 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelVat extends ModelBase
|
||||
{
|
||||
public class ModelVat extends ModelBase {
|
||||
ModelRenderer Base;
|
||||
ModelRenderer Water;
|
||||
ModelRenderer Glass;
|
||||
ModelRenderer Top;
|
||||
ModelRenderer Hatch;
|
||||
|
||||
|
||||
public ModelVat() {
|
||||
this.textureWidth = 512;
|
||||
this.textureHeight = 512;
|
||||
(this.Base = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 48, 16, 48);
|
||||
(this.Base = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 48, 16, 48);
|
||||
this.Base.setRotationPoint(-24.0f, 8.0f, -24.0f);
|
||||
this.Base.setTextureSize(512, 512);
|
||||
this.Base.mirror = true;
|
||||
this.setRotation(this.Base, 0.0f, 0.0f, 0.0f);
|
||||
(this.Water = new ModelRenderer((ModelBase)this, 256, 0)).addBox(0.0f, 0.0f, 0.0f, 40, 32, 40);
|
||||
(this.Water = new ModelRenderer((ModelBase) this, 256, 0)).addBox(0.0f, 0.0f, 0.0f, 40, 32, 40);
|
||||
this.Water.setRotationPoint(-20.0f, -24.0f, -20.0f);
|
||||
this.Water.setTextureSize(512, 512);
|
||||
this.Water.mirror = true;
|
||||
this.setRotation(this.Water, 0.0f, 0.0f, 0.0f);
|
||||
(this.Glass = new ModelRenderer((ModelBase)this, 0, 128)).addBox(0.0f, 0.0f, 0.0f, 48, 32, 48);
|
||||
(this.Glass = new ModelRenderer((ModelBase) this, 0, 128)).addBox(0.0f, 0.0f, 0.0f, 48, 32, 48);
|
||||
this.Glass.setRotationPoint(-24.0f, -24.0f, -24.0f);
|
||||
this.Glass.setTextureSize(512, 512);
|
||||
this.Glass.mirror = true;
|
||||
this.setRotation(this.Glass, 0.0f, 0.0f, 0.0f);
|
||||
(this.Top = new ModelRenderer((ModelBase)this, 256, 128)).addBox(0.0f, 0.0f, 0.0f, 48, 14, 48);
|
||||
(this.Top = new ModelRenderer((ModelBase) this, 256, 128)).addBox(0.0f, 0.0f, 0.0f, 48, 14, 48);
|
||||
this.Top.setRotationPoint(-24.0f, -38.0f, -24.0f);
|
||||
this.Top.setTextureSize(512, 512);
|
||||
this.Top.mirror = true;
|
||||
this.setRotation(this.Top, 0.0f, 0.0f, 0.0f);
|
||||
(this.Hatch = new ModelRenderer((ModelBase)this, 0, 80)).addBox(0.0f, 0.0f, 0.0f, 16, 2, 16);
|
||||
(this.Hatch = new ModelRenderer((ModelBase) this, 0, 80)).addBox(0.0f, 0.0f, 0.0f, 16, 2, 16);
|
||||
this.Hatch.setRotationPoint(-8.0f, -40.0f, -8.0f);
|
||||
this.Hatch.setTextureSize(512, 512);
|
||||
this.Hatch.mirror = true;
|
||||
this.setRotation(this.Hatch, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
this.Base.render(f5);
|
||||
this.Water.render(f5);
|
||||
@@ -54,7 +60,7 @@ public class ModelVat extends ModelBase
|
||||
this.Top.render(f5);
|
||||
this.Hatch.render(f5);
|
||||
}
|
||||
|
||||
|
||||
private void setRotation(final ModelRenderer model, final float x, final float y, final float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
|
||||
+34
-27
@@ -1,15 +1,14 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.model;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelVortexAttenuator extends ModelBase
|
||||
{
|
||||
public class ModelVortexAttenuator extends ModelBase {
|
||||
ModelRenderer Base;
|
||||
ModelRenderer Rod;
|
||||
ModelRenderer Ring_A1;
|
||||
@@ -24,83 +23,90 @@ public class ModelVortexAttenuator extends ModelBase
|
||||
ModelRenderer Ring_C2;
|
||||
ModelRenderer Ring_C3;
|
||||
ModelRenderer Ring_C4;
|
||||
|
||||
|
||||
public ModelVortexAttenuator() {
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 64;
|
||||
(this.Base = new ModelRenderer((ModelBase)this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 4, 16);
|
||||
(this.Base = new ModelRenderer((ModelBase) this, 0, 0)).addBox(0.0f, 0.0f, 0.0f, 16, 4, 16);
|
||||
this.Base.setRotationPoint(-8.0f, 20.0f, -8.0f);
|
||||
this.Base.setTextureSize(64, 64);
|
||||
this.Base.mirror = true;
|
||||
this.setRotation(this.Base, 0.0f, 0.0f, 0.0f);
|
||||
(this.Rod = new ModelRenderer((ModelBase)this, 0, 20)).addBox(0.0f, 0.0f, 0.0f, 2, 12, 2);
|
||||
(this.Rod = new ModelRenderer((ModelBase) this, 0, 20)).addBox(0.0f, 0.0f, 0.0f, 2, 12, 2);
|
||||
this.Rod.setRotationPoint(-1.0f, 8.0f, -1.0f);
|
||||
this.Rod.setTextureSize(64, 64);
|
||||
this.Rod.mirror = true;
|
||||
this.setRotation(this.Rod, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ring_A1 = new ModelRenderer((ModelBase)this, 0, 34)).addBox(0.0f, 0.0f, 0.0f, 12, 1, 1);
|
||||
(this.Ring_A1 = new ModelRenderer((ModelBase) this, 0, 34)).addBox(0.0f, 0.0f, 0.0f, 12, 1, 1);
|
||||
this.Ring_A1.setRotationPoint(-6.0f, 18.0f, -6.0f);
|
||||
this.Ring_A1.setTextureSize(64, 64);
|
||||
this.Ring_A1.mirror = true;
|
||||
this.setRotation(this.Ring_A1, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ring_A2 = new ModelRenderer((ModelBase)this, 0, 34)).addBox(0.0f, 0.0f, 0.0f, 12, 1, 1);
|
||||
(this.Ring_A2 = new ModelRenderer((ModelBase) this, 0, 34)).addBox(0.0f, 0.0f, 0.0f, 12, 1, 1);
|
||||
this.Ring_A2.setRotationPoint(-6.0f, 18.0f, 5.0f);
|
||||
this.Ring_A2.setTextureSize(64, 64);
|
||||
this.Ring_A2.mirror = true;
|
||||
this.setRotation(this.Ring_A2, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ring_A3 = new ModelRenderer((ModelBase)this, 0, 36)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 10);
|
||||
(this.Ring_A3 = new ModelRenderer((ModelBase) this, 0, 36)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 10);
|
||||
this.Ring_A3.setRotationPoint(5.0f, 18.0f, -5.0f);
|
||||
this.Ring_A3.setTextureSize(64, 64);
|
||||
this.Ring_A3.mirror = true;
|
||||
this.setRotation(this.Ring_A3, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ring_A4 = new ModelRenderer((ModelBase)this, 0, 36)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 10);
|
||||
(this.Ring_A4 = new ModelRenderer((ModelBase) this, 0, 36)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 10);
|
||||
this.Ring_A4.setRotationPoint(-6.0f, 18.0f, -5.0f);
|
||||
this.Ring_A4.setTextureSize(64, 64);
|
||||
this.Ring_A4.mirror = true;
|
||||
this.setRotation(this.Ring_A4, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ring_B1 = new ModelRenderer((ModelBase)this, 0, 47)).addBox(0.0f, 0.0f, 0.0f, 8, 1, 1);
|
||||
(this.Ring_B1 = new ModelRenderer((ModelBase) this, 0, 47)).addBox(0.0f, 0.0f, 0.0f, 8, 1, 1);
|
||||
this.Ring_B1.setRotationPoint(-4.0f, 15.0f, 3.0f);
|
||||
this.Ring_B1.setTextureSize(64, 64);
|
||||
this.Ring_B1.mirror = true;
|
||||
this.setRotation(this.Ring_B1, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ring_B2 = new ModelRenderer((ModelBase)this, 0, 47)).addBox(0.0f, 0.0f, 0.0f, 8, 1, 1);
|
||||
(this.Ring_B2 = new ModelRenderer((ModelBase) this, 0, 47)).addBox(0.0f, 0.0f, 0.0f, 8, 1, 1);
|
||||
this.Ring_B2.setRotationPoint(-4.0f, 15.0f, -4.0f);
|
||||
this.Ring_B2.setTextureSize(64, 64);
|
||||
this.Ring_B2.mirror = true;
|
||||
this.setRotation(this.Ring_B2, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ring_B3 = new ModelRenderer((ModelBase)this, 0, 49)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 6);
|
||||
(this.Ring_B3 = new ModelRenderer((ModelBase) this, 0, 49)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 6);
|
||||
this.Ring_B3.setRotationPoint(3.0f, 15.0f, -3.0f);
|
||||
this.Ring_B3.setTextureSize(64, 64);
|
||||
this.Ring_B3.mirror = true;
|
||||
this.setRotation(this.Ring_B3, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ring_B4 = new ModelRenderer((ModelBase)this, 0, 49)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 6);
|
||||
(this.Ring_B4 = new ModelRenderer((ModelBase) this, 0, 49)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 6);
|
||||
this.Ring_B4.setRotationPoint(-4.0f, 15.0f, -3.0f);
|
||||
this.Ring_B4.setTextureSize(64, 64);
|
||||
this.Ring_B4.mirror = true;
|
||||
this.setRotation(this.Ring_B4, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ring_C1 = new ModelRenderer((ModelBase)this, 0, 56)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
(this.Ring_C1 = new ModelRenderer((ModelBase) this, 0, 56)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
this.Ring_C1.setRotationPoint(-2.0f, 12.0f, -2.0f);
|
||||
this.Ring_C1.setTextureSize(64, 64);
|
||||
this.Ring_C1.mirror = true;
|
||||
this.setRotation(this.Ring_C1, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ring_C2 = new ModelRenderer((ModelBase)this, 0, 56)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
(this.Ring_C2 = new ModelRenderer((ModelBase) this, 0, 56)).addBox(0.0f, 0.0f, 0.0f, 4, 1, 1);
|
||||
this.Ring_C2.setRotationPoint(-2.0f, 12.0f, 1.0f);
|
||||
this.Ring_C2.setTextureSize(64, 64);
|
||||
this.Ring_C2.mirror = true;
|
||||
this.setRotation(this.Ring_C2, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ring_C3 = new ModelRenderer((ModelBase)this, 0, 58)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 2);
|
||||
(this.Ring_C3 = new ModelRenderer((ModelBase) this, 0, 58)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 2);
|
||||
this.Ring_C3.setRotationPoint(1.0f, 12.0f, -1.0f);
|
||||
this.Ring_C3.setTextureSize(64, 64);
|
||||
this.Ring_C3.mirror = true;
|
||||
this.setRotation(this.Ring_C3, 0.0f, 0.0f, 0.0f);
|
||||
(this.Ring_C4 = new ModelRenderer((ModelBase)this, 0, 58)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 2);
|
||||
(this.Ring_C4 = new ModelRenderer((ModelBase) this, 0, 58)).addBox(0.0f, 0.0f, 0.0f, 1, 1, 2);
|
||||
this.Ring_C4.setRotationPoint(-2.0f, 12.0f, -1.0f);
|
||||
this.Ring_C4.setTextureSize(64, 64);
|
||||
this.Ring_C4.mirror = true;
|
||||
this.setRotation(this.Ring_C4, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void render(final Entity entity, final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
|
||||
public void render(
|
||||
final Entity entity,
|
||||
final float f,
|
||||
final float f1,
|
||||
final float f2,
|
||||
final float f3,
|
||||
final float f4,
|
||||
final float f5) {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
this.setRotationAngles(f, f1, f2, f3, f4, f5);
|
||||
this.Base.render(f5);
|
||||
@@ -118,14 +124,15 @@ public class ModelVortexAttenuator extends ModelBase
|
||||
this.Ring_C3.render(f5);
|
||||
this.Ring_C4.render(f5);
|
||||
}
|
||||
|
||||
|
||||
private void setRotation(final ModelRenderer model, final float x, final float y, final float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void setRotationAngles(final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, (Entity)null);
|
||||
|
||||
public void setRotationAngles(
|
||||
final float f, final float f1, final float f2, final float f3, final float f4, final float f5) {
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, (Entity) null);
|
||||
}
|
||||
}
|
||||
+25
-25
@@ -1,38 +1,40 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import thaumcraft.common.config.ConfigBlocks;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulJar;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
||||
import net.minecraft.entity.EntityList;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulJar;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.item.Item;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.client.IItemRenderer;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.common.config.ConfigBlocks;
|
||||
|
||||
public class ItemJarTHRenderer implements IItemRenderer
|
||||
{
|
||||
public class ItemJarTHRenderer implements IItemRenderer {
|
||||
static String tx3;
|
||||
|
||||
|
||||
public boolean handleRenderType(final ItemStack item, final IItemRenderer.ItemRenderType type) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean shouldUseRenderHelper(final IItemRenderer.ItemRenderType type, final ItemStack item, final IItemRenderer.ItemRendererHelper helper) {
|
||||
|
||||
public boolean shouldUseRenderHelper(
|
||||
final IItemRenderer.ItemRenderType type,
|
||||
final ItemStack item,
|
||||
final IItemRenderer.ItemRendererHelper helper) {
|
||||
return helper != IItemRenderer.ItemRendererHelper.EQUIPPED_BLOCK;
|
||||
}
|
||||
|
||||
|
||||
public void renderItem(final IItemRenderer.ItemRenderType type, final ItemStack item, final Object... data) {
|
||||
if (item.getItem() == Item.getItemFromBlock(ThaumicHorizons.blockJar)) {
|
||||
final float short1 = 240.0f;
|
||||
@@ -40,8 +42,7 @@ public class ItemJarTHRenderer implements IItemRenderer
|
||||
GL11.glTranslated(0.5, 0.0, 0.5);
|
||||
if (type == IItemRenderer.ItemRenderType.ENTITY) {
|
||||
GL11.glTranslatef(-0.5f, -0.25f, -0.5f);
|
||||
}
|
||||
else if (type == IItemRenderer.ItemRenderType.EQUIPPED && data[1] instanceof EntityPlayer) {
|
||||
} else if (type == IItemRenderer.ItemRenderType.EQUIPPED && data[1] instanceof EntityPlayer) {
|
||||
GL11.glTranslatef(0.0f, 0.0f, -0.5f);
|
||||
}
|
||||
if (item.hasTagCompound() && item.stackTagCompound.getBoolean("isSoul")) {
|
||||
@@ -55,21 +56,20 @@ public class ItemJarTHRenderer implements IItemRenderer
|
||||
GL11.glTranslated(0.0, 0.4, 0.0);
|
||||
GL11.glEnable(3042);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
UtilsFX.renderAnimatedQuad(0.3f, 0.9f, 16, (int)(nt / 40000000L % 16L), 0.0f, 16777215);
|
||||
UtilsFX.renderAnimatedQuad(0.3f, 0.9f, 16, (int) (nt / 40000000L % 16L), 0.0f, 16777215);
|
||||
GL11.glDisable(3042);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glEnable(2884);
|
||||
GL11.glEnable(2929);
|
||||
GL11.glDisable(3042);
|
||||
}
|
||||
else if (item.hasTagCompound()) {
|
||||
} else if (item.hasTagCompound()) {
|
||||
final TileSoulJar th = new TileSoulJar();
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(-0.5f, 0.0f, -0.5f);
|
||||
final EntityLivingBase viewer = (EntityLivingBase)Minecraft.getMinecraft().thePlayer;
|
||||
final EntityLivingBase viewer = (EntityLivingBase) Minecraft.getMinecraft().thePlayer;
|
||||
th.entity = EntityList.createEntityFromNBT(item.getTagCompound(), viewer.worldObj);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity)th, 0.0, 0.0, 0.0, 0.0f);
|
||||
TileEntityRendererDispatcher.instance.renderTileEntityAt((TileEntity) th, 0.0, 0.0, 0.0, 0.0f);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
Minecraft.getMinecraft().entityRenderer.disableLightmap(0.0);
|
||||
GL11.glPopMatrix();
|
||||
@@ -80,14 +80,14 @@ public class ItemJarTHRenderer implements IItemRenderer
|
||||
GL11.glBlendFunc(770, 771);
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
|
||||
final RenderBlocks rb = (RenderBlocks)data[0];
|
||||
final RenderBlocks rb = (RenderBlocks) data[0];
|
||||
rb.useInventoryTint = true;
|
||||
rb.renderBlockAsItem(ConfigBlocks.blockJar, 0, 1.0f);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glDisable(3042);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
ItemJarTHRenderer.tx3 = "textures/misc/soul.png";
|
||||
}
|
||||
|
||||
+18
-18
@@ -1,49 +1,49 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileBloodInfuser;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelSyringe;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelBloodInfuser;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelSyringe;
|
||||
import com.kentington.thaumichorizons.common.ThaumicHorizons;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileBloodInfuser;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class TileBloodInfuserRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileBloodInfuserRender extends TileEntitySpecialRenderer {
|
||||
static String tx1;
|
||||
private ModelBloodInfuser base;
|
||||
static String tx2;
|
||||
private ModelSyringe syringe;
|
||||
|
||||
|
||||
public TileBloodInfuserRender() {
|
||||
this.base = new ModelBloodInfuser();
|
||||
this.syringe = new ModelSyringe();
|
||||
}
|
||||
|
||||
|
||||
public void renderTileEntityAt(final TileEntity te, final double x, final double y, final double z, final float f) {
|
||||
final TileBloodInfuser tco = (TileBloodInfuser)te;
|
||||
final TileBloodInfuser tco = (TileBloodInfuser) te;
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)x + 0.5f, (float)y + 1.5f, (float)z + 0.5f);
|
||||
GL11.glTranslatef((float) x + 0.5f, (float) y + 1.5f, (float) z + 0.5f);
|
||||
GL11.glRotatef(180.0f, 1.0f, 0.0f, 0.0f);
|
||||
UtilsFX.bindTexture("thaumichorizons", TileBloodInfuserRender.tx1);
|
||||
this.base.render(null, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0625f);
|
||||
GL11.glPopMatrix();
|
||||
if (tco.hasBlood()) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)x + 1.90625f, (float)y + 0.75f, (float)z + 0.46875f);
|
||||
GL11.glTranslatef((float) x + 1.90625f, (float) y + 0.75f, (float) z + 0.46875f);
|
||||
GL11.glRotatef(90.0f, 0.0f, 0.0f, 1.0f);
|
||||
UtilsFX.bindTexture("thaumichorizons", TileBloodInfuserRender.tx2);
|
||||
this.syringe.render(null, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0625f, new ItemStack(ThaumicHorizons.itemSyringeHuman));
|
||||
this.syringe.render(
|
||||
null, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0625f, new ItemStack(ThaumicHorizons.itemSyringeHuman));
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
TileBloodInfuserRender.tx1 = "textures/models/bloodinfuser.png";
|
||||
TileBloodInfuserRender.tx2 = "textures/models/syringe.png";
|
||||
|
||||
+27
-24
@@ -1,45 +1,50 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileCloud;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import java.util.Random;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class TileCloudRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileCloudRender extends TileEntitySpecialRenderer {
|
||||
private Minecraft mc;
|
||||
Random random;
|
||||
private int rendererUpdateCount;
|
||||
private static final ResourceLocation locationRainPng;
|
||||
private static final ResourceLocation locationEmberPng;
|
||||
private static final ResourceLocation locationSnowPng;
|
||||
|
||||
|
||||
public TileCloudRender() {
|
||||
this.mc = Minecraft.getMinecraft();
|
||||
this.random = new Random();
|
||||
}
|
||||
|
||||
public void renderTileEntityAt(final TileEntity tile, final double x, final double y, final double z, final float partial) {
|
||||
|
||||
public void renderTileEntityAt(
|
||||
final TileEntity tile, final double x, final double y, final double z, final float partial) {
|
||||
if (TileCloud.raining) {
|
||||
this.renderRainSnowToo((TileCloud)tile, x, y, z, partial);
|
||||
this.renderRainSnowToo((TileCloud) tile, x, y, z, partial);
|
||||
++this.rendererUpdateCount;
|
||||
}
|
||||
}
|
||||
|
||||
public void renderRainSnowToo(final TileCloud tco, final double p_147500_2_, final double p_147500_4_, final double p_147500_6_, final float p_147500_8_) {
|
||||
|
||||
public void renderRainSnowToo(
|
||||
final TileCloud tco,
|
||||
final double p_147500_2_,
|
||||
final double p_147500_4_,
|
||||
final double p_147500_6_,
|
||||
final float p_147500_8_) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)p_147500_2_ + 0.5f, (float)p_147500_4_ + 1.5f, (float)p_147500_6_ + 0.5f);
|
||||
GL11.glTranslatef((float) p_147500_2_ + 0.5f, (float) p_147500_4_ + 1.5f, (float) p_147500_6_ + 0.5f);
|
||||
GL11.glRotatef(180.0f, 1.0f, 0.0f, 0.0f);
|
||||
GL11.glPopMatrix();
|
||||
if (tco.getWorldObj() == null) {
|
||||
@@ -52,11 +57,9 @@ public class TileCloudRender extends TileEntitySpecialRenderer
|
||||
final BiomeGenBase biomegenbase = tco.getWorldObj().getBiomeGenForCoords(tco.xCoord, tco.zCoord);
|
||||
if (tco.md == 1) {
|
||||
this.bindTexture(TileCloudRender.locationEmberPng);
|
||||
}
|
||||
else if (biomegenbase.getFloatTemperature(tco.xCoord, tco.yCoord, tco.zCoord) >= 0.15) {
|
||||
} else if (biomegenbase.getFloatTemperature(tco.xCoord, tco.yCoord, tco.zCoord) >= 0.15) {
|
||||
this.bindTexture(TileCloudRender.locationRainPng);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.bindTexture(TileCloudRender.locationSnowPng);
|
||||
}
|
||||
GL11.glTexParameterf(3553, 10242, 10497.0f);
|
||||
@@ -117,7 +120,7 @@ public class TileCloudRender extends TileEntitySpecialRenderer
|
||||
final double d9 = 1.0;
|
||||
final double d10 = 1.0;
|
||||
final double d11 = 1.0;
|
||||
final double d12 = (tco.howManyDown != -1) ? (tco.howManyDown - 1) : ((double)(256.0f * f1));
|
||||
final double d12 = (tco.howManyDown != -1) ? (tco.howManyDown - 1) : ((double) (256.0f * f1));
|
||||
final double d13 = 0.0;
|
||||
final double d14 = 1.0;
|
||||
final double d15 = -1.0f + f3;
|
||||
@@ -144,7 +147,7 @@ public class TileCloudRender extends TileEntitySpecialRenderer
|
||||
GL11.glDepthMask(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
locationRainPng = new ResourceLocation("thaumichorizons", "textures/environment/rain.png");
|
||||
locationEmberPng = new ResourceLocation("thaumichorizons", "textures/environment/firerain.png");
|
||||
|
||||
+42
-23
@@ -1,43 +1,52 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import thaumcraft.client.fx.ParticleEngine;
|
||||
import com.kentington.thaumichorizons.client.fx.FXEssentiaTrail;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileEssentiaDynamo;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.client.model.AdvancedModelLoader;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelQuarterBlock;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.IModelCustom;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileEssentiaDynamo;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.particle.EntityFX;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.AdvancedModelLoader;
|
||||
import net.minecraftforge.client.model.IModelCustom;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.fx.ParticleEngine;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class TileEssentiaDynamoRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileEssentiaDynamoRender extends TileEntitySpecialRenderer {
|
||||
private IModelCustom model;
|
||||
private static final ResourceLocation SCANNER;
|
||||
static String tx1;
|
||||
static String tx2;
|
||||
static String tx3;
|
||||
private ModelQuarterBlock base;
|
||||
|
||||
|
||||
public TileEssentiaDynamoRender() {
|
||||
this.model = AdvancedModelLoader.loadModel(TileEssentiaDynamoRender.SCANNER);
|
||||
this.base = new ModelQuarterBlock();
|
||||
}
|
||||
|
||||
|
||||
public void renderTileEntityAt(final TileEntity te, final double x, final double y, final double z, final float f) {
|
||||
final TileEssentiaDynamo tco = (TileEssentiaDynamo)te;
|
||||
final TileEssentiaDynamo tco = (TileEssentiaDynamo) te;
|
||||
if (tco.essentia != null && tco.ticksProvided > 0) {
|
||||
final FXEssentiaTrail fb = new FXEssentiaTrail(tco.getWorldObj(), tco.xCoord + 0.5, tco.yCoord, tco.zCoord + 0.5, tco.xCoord + 0.5, tco.yCoord + 0.5, tco.zCoord + 0.5, Minecraft.getMinecraft().thePlayer.ticksExisted, tco.essentia.getColor(), 0.3f);
|
||||
final FXEssentiaTrail fb = new FXEssentiaTrail(
|
||||
tco.getWorldObj(),
|
||||
tco.xCoord + 0.5,
|
||||
tco.yCoord,
|
||||
tco.zCoord + 0.5,
|
||||
tco.xCoord + 0.5,
|
||||
tco.yCoord + 0.5,
|
||||
tco.zCoord + 0.5,
|
||||
Minecraft.getMinecraft().thePlayer.ticksExisted,
|
||||
tco.essentia.getColor(),
|
||||
0.3f);
|
||||
fb.noClip = true;
|
||||
ParticleEngine.instance.addEffect(tco.getWorldObj(), (EntityFX)fb);
|
||||
ParticleEngine.instance.addEffect(tco.getWorldObj(), (EntityFX) fb);
|
||||
}
|
||||
if (tco.rise >= 0.3f && tco.ticksProvided > 0) {
|
||||
GL11.glPushMatrix();
|
||||
@@ -47,14 +56,24 @@ public class TileEssentiaDynamoRender extends TileEntitySpecialRenderer
|
||||
final long nt = System.nanoTime();
|
||||
UtilsFX.bindTexture(TileEssentiaDynamoRender.tx3);
|
||||
final int frames = UtilsFX.getTextureAnimationSize(TileEssentiaDynamoRender.tx3);
|
||||
final int i = (int)((nt / 40000000L + x) % frames);
|
||||
UtilsFX.renderFacingQuad(tco.xCoord + 0.5, (double)(tco.yCoord + 0.5f), tco.zCoord + 0.5, 0.0f, 0.2f, 0.9f, frames, i, f, tco.essentia.getColor());
|
||||
final int i = (int) ((nt / 40000000L + x) % frames);
|
||||
UtilsFX.renderFacingQuad(
|
||||
tco.xCoord + 0.5,
|
||||
(double) (tco.yCoord + 0.5f),
|
||||
tco.zCoord + 0.5,
|
||||
0.0f,
|
||||
0.2f,
|
||||
0.9f,
|
||||
frames,
|
||||
i,
|
||||
f,
|
||||
tco.essentia.getColor());
|
||||
GL11.glDisable(3042);
|
||||
GL11.glAlphaFunc(516, 0.1f);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)x, (float)y, (float)z);
|
||||
GL11.glTranslatef((float) x, (float) y, (float) z);
|
||||
UtilsFX.bindTexture("thaumichorizons", TileEssentiaDynamoRender.tx2);
|
||||
this.base.render();
|
||||
GL11.glTranslatef(0.5f, 0.2f + tco.rise, 0.5f);
|
||||
@@ -68,7 +87,7 @@ public class TileEssentiaDynamoRender extends TileEntitySpecialRenderer
|
||||
this.model.renderAll();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
SCANNER = new ResourceLocation("thaumcraft", "textures/models/scanner.obj");
|
||||
TileEssentiaDynamoRender.tx1 = "textures/models/thaumiumring.png";
|
||||
|
||||
+92
-46
@@ -1,45 +1,48 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.entity.Entity;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import java.util.Random;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import java.awt.Color;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSyntheticNode;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import thaumcraft.client.renderers.models.ModelCrystal;
|
||||
import java.awt.Color;
|
||||
import java.util.Random;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.util.Vec3;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.client.renderers.models.ModelCrystal;
|
||||
|
||||
public class TileEtherealShardRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileEtherealShardRender extends TileEntitySpecialRenderer {
|
||||
private ModelCrystal model;
|
||||
static String tx1;
|
||||
static String tx2;
|
||||
|
||||
|
||||
public TileEtherealShardRender() {
|
||||
this.model = new ModelCrystal();
|
||||
}
|
||||
|
||||
|
||||
public void renderTileEntityAt(final TileEntity te, final double x, final double y, final double z, final float f) {
|
||||
GL11.glPushMatrix();
|
||||
final TileSyntheticNode tco = (TileSyntheticNode)te;
|
||||
final TileSyntheticNode tco = (TileSyntheticNode) te;
|
||||
long red = 255;
|
||||
long green = 255;
|
||||
long blue = 255;
|
||||
long numPoints = 0;
|
||||
long numPointsFilled = 0;
|
||||
if (tco != null && tco.getAspectsBase() != null && tco.getAspects() != null && tco.getAspects().size() > 0 && tco.getAspectsBase().size() > 0) {
|
||||
if (tco != null
|
||||
&& tco.getAspectsBase() != null
|
||||
&& tco.getAspects() != null
|
||||
&& tco.getAspects().size() > 0
|
||||
&& tco.getAspectsBase().size() > 0) {
|
||||
for (final Aspect asp : tco.getAspectsBase().getAspects()) {
|
||||
final long amt = tco.getAspectsBase().getAmount(asp);
|
||||
final Color col = new Color(asp.getColor());
|
||||
@@ -52,13 +55,13 @@ public class TileEtherealShardRender extends TileEntitySpecialRenderer
|
||||
red /= numPoints + 1;
|
||||
green /= numPoints + 1;
|
||||
blue /= numPoints + 1;
|
||||
red = Math.min(255,Math.max(red, 0));
|
||||
green = Math.min(255,Math.max(green, 0));
|
||||
blue = Math.min(255,Math.max(blue, 0));
|
||||
red = Math.min(255, Math.max(red, 0));
|
||||
green = Math.min(255, Math.max(green, 0));
|
||||
blue = Math.min(255, Math.max(blue, 0));
|
||||
}
|
||||
|
||||
try {
|
||||
final Color col2 = new Color((int)red, (int)green, (int)blue);
|
||||
final Color col2 = new Color((int) red, (int) green, (int) blue);
|
||||
UtilsFX.bindTexture("textures/models/crystal.png");
|
||||
final Random rand = new Random(tco.getBlockMetadata() + tco.xCoord + tco.yCoord * tco.zCoord);
|
||||
this.drawCrystal(0, (float) x, (float) y, (float) z, tco.rotation, 0.0f, rand, col2.getRGB(), 1.1f);
|
||||
@@ -66,7 +69,12 @@ public class TileEtherealShardRender extends TileEntitySpecialRenderer
|
||||
UtilsFX.bindTexture(TileEtherealShardRender.tx2);
|
||||
final int frames = 32;
|
||||
final int i = (int) ((nt / 40000000L + x) % frames);
|
||||
if (tco != null && tco.getAspectsBase() != null && tco.getAspects() != null && tco.getAspectsBase().size() > 0 && tco.getAspects().getAspects()[0] != null && tco.getAspectsBase().getAspects()[0] != null) {
|
||||
if (tco != null
|
||||
&& tco.getAspectsBase() != null
|
||||
&& tco.getAspects() != null
|
||||
&& tco.getAspectsBase().size() > 0
|
||||
&& tco.getAspects().getAspects()[0] != null
|
||||
&& tco.getAspectsBase().getAspects()[0] != null) {
|
||||
final double offset = 6.283185307179586 / tco.getAspectsBase().size();
|
||||
int which = 0;
|
||||
GL11.glAlphaFunc(516, 0.003921569f);
|
||||
@@ -81,7 +89,18 @@ public class TileEtherealShardRender extends TileEntitySpecialRenderer
|
||||
GL11.glBlendFunc(770, 771);
|
||||
final double radian = Math.toRadians(tco.rotation);
|
||||
final double dist = 0.4 + 0.1 * Math.cos(radian);
|
||||
UtilsFX.renderFacingStrip(tco.xCoord + 0.5 + dist * Math.sin(2.0 * radian + offset * which), tco.yCoord + 0.64 + 0.10000000149011612 * Math.sin(Math.toRadians(tco.rotation)), tco.zCoord + 0.5 + dist * Math.cos(2.0 * radian + offset * which), 0.0f, 0.1f + 0.005f * tco.getAspects().getAmount(asp2), 0.9f, frames, 1, (int) tco.rotation % frames, f, colo.getRGB());
|
||||
UtilsFX.renderFacingStrip(
|
||||
tco.xCoord + 0.5 + dist * Math.sin(2.0 * radian + offset * which),
|
||||
tco.yCoord + 0.64 + 0.10000000149011612 * Math.sin(Math.toRadians(tco.rotation)),
|
||||
tco.zCoord + 0.5 + dist * Math.cos(2.0 * radian + offset * which),
|
||||
0.0f,
|
||||
0.1f + 0.005f * tco.getAspects().getAmount(asp2),
|
||||
0.9f,
|
||||
frames,
|
||||
1,
|
||||
(int) tco.rotation % frames,
|
||||
f,
|
||||
colo.getRGB());
|
||||
GL11.glDisable(3042);
|
||||
GL11.glPopMatrix();
|
||||
++which;
|
||||
@@ -104,33 +123,57 @@ public class TileEtherealShardRender extends TileEntitySpecialRenderer
|
||||
f2 = MathHelper.sin(iiud / 10.0f) * 10.0f;
|
||||
}
|
||||
final Vec3 vec3 = Vec3.createVectorHelper(-0.1, -0.1, 0.5);
|
||||
vec3.rotateAroundX(-(drainEntity.prevRotationPitch + (drainEntity.rotationPitch - drainEntity.prevRotationPitch) * f) * 3.141593f / 180.0f);
|
||||
vec3.rotateAroundY(-(drainEntity.prevRotationYaw + (drainEntity.rotationYaw - drainEntity.prevRotationYaw) * f) * 3.141593f / 180.0f);
|
||||
vec3.rotateAroundX(-(drainEntity.prevRotationPitch
|
||||
+ (drainEntity.rotationPitch - drainEntity.prevRotationPitch) * f)
|
||||
* 3.141593f
|
||||
/ 180.0f);
|
||||
vec3.rotateAroundY(
|
||||
-(drainEntity.prevRotationYaw + (drainEntity.rotationYaw - drainEntity.prevRotationYaw) * f)
|
||||
* 3.141593f
|
||||
/ 180.0f);
|
||||
vec3.rotateAroundY(-f2 * 0.01f);
|
||||
vec3.rotateAroundX(-f2 * 0.015f);
|
||||
final double d3 = drainEntity.prevPosX + (drainEntity.posX - drainEntity.prevPosX) * f + vec3.xCoord;
|
||||
final double d4 = drainEntity.prevPosY + (drainEntity.posY - drainEntity.prevPosY) * f + vec3.yCoord;
|
||||
final double d5 = drainEntity.prevPosZ + (drainEntity.posZ - drainEntity.prevPosZ) * f + vec3.zCoord;
|
||||
final double d6 = (drainEntity == Minecraft.getMinecraft().thePlayer) ? 0.0 : drainEntity.getEyeHeight();
|
||||
UtilsFX.drawFloatyLine(d3, d4 + d6, d5, drainCollision.blockX + 0.5, drainCollision.blockY + 0.5, drainCollision.blockZ + 0.5, f, tco.color.getRGB(), "textures/misc/wispy.png", -0.02f, Math.min(iiud, 10) / 10.0f);
|
||||
final double d6 =
|
||||
(drainEntity == Minecraft.getMinecraft().thePlayer) ? 0.0 : drainEntity.getEyeHeight();
|
||||
UtilsFX.drawFloatyLine(
|
||||
d3,
|
||||
d4 + d6,
|
||||
d5,
|
||||
drainCollision.blockX + 0.5,
|
||||
drainCollision.blockY + 0.5,
|
||||
drainCollision.blockZ + 0.5,
|
||||
f,
|
||||
tco.color.getRGB(),
|
||||
"textures/misc/wispy.png",
|
||||
-0.02f,
|
||||
Math.min(iiud, 10) / 10.0f);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
GL11.glDisable(3042);
|
||||
GL11.glAlphaFunc(516, 0.1f);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
} catch (Exception e) {
|
||||
System.out.println(e.getMessage());
|
||||
}
|
||||
finally
|
||||
{
|
||||
} finally {
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
}
|
||||
|
||||
private void drawCrystal(final int ori, final float x, final float y, final float z, final float a1, final float a2, final Random rand, final int color, final float size) {
|
||||
final EntityPlayer p = (EntityPlayer)Minecraft.getMinecraft().thePlayer;
|
||||
final float shade = MathHelper.sin((p.ticksExisted + rand.nextInt(10)) / (5.0f + rand.nextFloat())) * 0.075f + 0.925f;
|
||||
|
||||
private void drawCrystal(
|
||||
final int ori,
|
||||
final float x,
|
||||
final float y,
|
||||
final float z,
|
||||
final float a1,
|
||||
final float a2,
|
||||
final Random rand,
|
||||
final int color,
|
||||
final float size) {
|
||||
final EntityPlayer p = (EntityPlayer) Minecraft.getMinecraft().thePlayer;
|
||||
final float shade =
|
||||
MathHelper.sin((p.ticksExisted + rand.nextInt(10)) / (5.0f + rand.nextFloat())) * 0.075f + 0.925f;
|
||||
final Color c = new Color(color);
|
||||
final float r = c.getRed() / 220.0f;
|
||||
final float g = c.getGreen() / 220.0f;
|
||||
@@ -140,11 +183,14 @@ public class TileEtherealShardRender extends TileEntitySpecialRenderer
|
||||
GL11.glEnable(3042);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
GL11.glTranslatef(x + 0.5f, (float)(y - 0.15f + 0.10000000149011612 * Math.sin(Math.toRadians(a1))), z + 0.5f);
|
||||
GL11.glTranslatef(x + 0.5f, (float) (y - 0.15f + 0.10000000149011612 * Math.sin(Math.toRadians(a1))), z + 0.5f);
|
||||
GL11.glRotatef(a1, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glRotatef(a2, 1.0f, 0.0f, 0.0f);
|
||||
GL11.glScalef((0.15f + rand.nextFloat() * 0.075f) * size, (0.5f + rand.nextFloat() * 0.1f) * size, (0.15f + rand.nextFloat() * 0.05f) * size);
|
||||
final int var19 = (int)(210.0f * shade);
|
||||
GL11.glScalef(
|
||||
(0.15f + rand.nextFloat() * 0.075f) * size,
|
||||
(0.5f + rand.nextFloat() * 0.1f) * size,
|
||||
(0.15f + rand.nextFloat() * 0.05f) * size);
|
||||
final int var19 = (int) (210.0f * shade);
|
||||
final int var20 = var19 % 65536;
|
||||
final int var21 = var19 / 65536;
|
||||
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, var20 / 1.0f, var21 / 1.0f);
|
||||
@@ -156,7 +202,7 @@ public class TileEtherealShardRender extends TileEntitySpecialRenderer
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
TileEtherealShardRender.tx1 = "textures/items/lightningringv.png";
|
||||
TileEtherealShardRender.tx2 = "textures/misc/nodes.png";
|
||||
|
||||
+18
-18
@@ -1,42 +1,42 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileInspiratron;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelInspiratron;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileInspiratron;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.client.renderers.models.ModelBrain;
|
||||
import thaumcraft.client.renderers.models.ModelJar;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
|
||||
public class TileInspiratronRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileInspiratronRender extends TileEntitySpecialRenderer {
|
||||
private ModelJar model;
|
||||
private ModelBrain brain;
|
||||
private ModelInspiratron inspiratron;
|
||||
static String tx1;
|
||||
|
||||
|
||||
public TileInspiratronRender() {
|
||||
this.model = new ModelJar();
|
||||
this.brain = new ModelBrain();
|
||||
this.inspiratron = new ModelInspiratron();
|
||||
}
|
||||
|
||||
public void renderTileEntityAt(final TileEntity tile, final double x, final double y, final double z, final float f) {
|
||||
|
||||
public void renderTileEntityAt(
|
||||
final TileEntity tile, final double x, final double y, final double z, final float f) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glDisable(2884);
|
||||
GL11.glTranslatef((float)x + 0.5f, (float)y, (float)z + 0.5f);
|
||||
GL11.glTranslatef((float) x + 0.5f, (float) y, (float) z + 0.5f);
|
||||
GL11.glRotatef(180.0f, 1.0f, 0.0f, 0.0f);
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef(0.0f, -0.125f, 0.0f);
|
||||
this.renderBrain((TileInspiratron)tile, x, y, z, f);
|
||||
this.renderBrain((TileInspiratron) tile, x, y, z, f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glEnable(3042);
|
||||
@@ -46,7 +46,7 @@ public class TileInspiratronRender extends TileEntitySpecialRenderer
|
||||
this.inspiratron.render(null, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0625f);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
public void renderBrain(final TileInspiratron te, final double x, final double y, final double z, final float f) {
|
||||
final float bob = MathHelper.sin(Minecraft.getMinecraft().thePlayer.ticksExisted / 14.0f) * 0.03f + 0.03f;
|
||||
GL11.glPushMatrix();
|
||||
@@ -66,7 +66,7 @@ public class TileInspiratronRender extends TileEntitySpecialRenderer
|
||||
UtilsFX.bindTexture("thaumichorizons", "textures/models/jarbrine.png");
|
||||
this.model.renderBrine();
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
TileInspiratronRender.tx1 = "textures/models/inspiratron.png";
|
||||
}
|
||||
|
||||
+27
-17
@@ -1,35 +1,35 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulJar;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import thaumcraft.client.renderers.models.ModelJar;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.client.renderers.models.ModelJar;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class TileJarTHRenderer extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileJarTHRenderer extends TileEntitySpecialRenderer {
|
||||
private ModelJar model;
|
||||
static String tx3;
|
||||
|
||||
|
||||
public TileJarTHRenderer() {
|
||||
this.model = new ModelJar();
|
||||
}
|
||||
|
||||
public void renderTileEntityAt(final TileEntity tile, final double x, final double y, final double z, final float f) {
|
||||
|
||||
public void renderTileEntityAt(
|
||||
final TileEntity tile, final double x, final double y, final double z, final float f) {
|
||||
if (!(tile instanceof TileSoulJar)) {
|
||||
return;
|
||||
}
|
||||
final TileSoulJar th = (TileSoulJar)tile;
|
||||
final TileSoulJar th = (TileSoulJar) tile;
|
||||
if (th.jarTag != null && th.jarTag.getBoolean("isSoul")) {
|
||||
final long nt = System.nanoTime();
|
||||
UtilsFX.bindTexture("thaumichorizons", TileJarTHRenderer.tx3);
|
||||
@@ -40,7 +40,17 @@ public class TileJarTHRenderer extends TileEntitySpecialRenderer
|
||||
GL11.glPushMatrix();
|
||||
GL11.glEnable(3042);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
UtilsFX.renderFacingQuad(tile.xCoord + 0.5, tile.yCoord + 0.4, tile.zCoord + 0.5, 0.0f, 0.1f, 0.9f, 16, (int)(nt / 40000000L % 16L), f, 16777215);
|
||||
UtilsFX.renderFacingQuad(
|
||||
tile.xCoord + 0.5,
|
||||
tile.yCoord + 0.4,
|
||||
tile.zCoord + 0.5,
|
||||
0.0f,
|
||||
0.1f,
|
||||
0.9f,
|
||||
16,
|
||||
(int) (nt / 40000000L % 16L),
|
||||
f,
|
||||
16777215);
|
||||
GL11.glDisable(3042);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glEnable(2884);
|
||||
@@ -50,7 +60,7 @@ public class TileJarTHRenderer extends TileEntitySpecialRenderer
|
||||
}
|
||||
GL11.glPushMatrix();
|
||||
GL11.glDisable(2884);
|
||||
GL11.glTranslatef((float)x + 0.5f, (float)y + 0.01f, (float)z + 0.5f);
|
||||
GL11.glTranslatef((float) x + 0.5f, (float) y + 0.01f, (float) z + 0.5f);
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
this.bindTexture(th.getTexture());
|
||||
if (th.entity != null) {
|
||||
@@ -66,7 +76,7 @@ public class TileJarTHRenderer extends TileEntitySpecialRenderer
|
||||
GL11.glEnable(2884);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
TileJarTHRenderer.tx3 = "textures/misc/soul.png";
|
||||
}
|
||||
|
||||
+21
-23
@@ -1,20 +1,19 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileNodeMonitor;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.client.model.AdvancedModelLoader;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.IModelCustom;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.AdvancedModelLoader;
|
||||
import net.minecraftforge.client.model.IModelCustom;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class TileNodeMonitorRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileNodeMonitorRender extends TileEntitySpecialRenderer {
|
||||
private IModelCustom model;
|
||||
private IModelCustom modelScreen;
|
||||
private static final ResourceLocation SCANNER;
|
||||
@@ -22,51 +21,51 @@ public class TileNodeMonitorRender extends TileEntitySpecialRenderer
|
||||
static String tx1;
|
||||
static String tx2;
|
||||
static String tx3;
|
||||
|
||||
|
||||
public TileNodeMonitorRender() {
|
||||
this.model = AdvancedModelLoader.loadModel(TileNodeMonitorRender.SCANNER);
|
||||
this.modelScreen = AdvancedModelLoader.loadModel(TileNodeMonitorRender.SCANNERSCREEN);
|
||||
}
|
||||
|
||||
|
||||
public void renderTileEntityAt(final TileEntity te, final double x, final double y, final double z, final float f) {
|
||||
final TileNodeMonitor tco = (TileNodeMonitor)te;
|
||||
final TileNodeMonitor tco = (TileNodeMonitor) te;
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)x + 0.5f, (float)(y + 0.5), (float)z + 0.5f);
|
||||
GL11.glTranslatef((float) x + 0.5f, (float) (y + 0.5), (float) z + 0.5f);
|
||||
GL11.glScalef(0.4f, 0.4f, 0.4f);
|
||||
switch (tco.direction) {
|
||||
case 1: {
|
||||
GL11.glTranslatef(0.0f, -0.8f, 0.0f);
|
||||
GL11.glRotatef((float)tco.rotation, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glRotatef((float) tco.rotation, 0.0f, 1.0f, 0.0f);
|
||||
break;
|
||||
}
|
||||
case 0: {
|
||||
GL11.glTranslatef(0.0f, 0.8f, 0.0f);
|
||||
GL11.glRotatef(180.0f, 1.0f, 0.0f, 0.0f);
|
||||
GL11.glRotatef((float)tco.rotation, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glRotatef((float) tco.rotation, 0.0f, 1.0f, 0.0f);
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
GL11.glTranslatef(0.0f, 0.0f, 0.8f);
|
||||
GL11.glRotatef(-90.0f, 1.0f, 0.0f, 0.0f);
|
||||
GL11.glRotatef((float)tco.rotation, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glRotatef((float) tco.rotation, 0.0f, 1.0f, 0.0f);
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
GL11.glTranslatef(0.0f, 0.0f, -0.8f);
|
||||
GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
|
||||
GL11.glRotatef((float)tco.rotation, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glRotatef((float) tco.rotation, 0.0f, 1.0f, 0.0f);
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
GL11.glTranslatef(0.8f, 0.0f, 0.0f);
|
||||
GL11.glRotatef(90.0f, 0.0f, 0.0f, 1.0f);
|
||||
GL11.glRotatef((float)tco.rotation, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glRotatef((float) tco.rotation, 0.0f, 1.0f, 0.0f);
|
||||
break;
|
||||
}
|
||||
case 5: {
|
||||
GL11.glTranslatef(-0.8f, 0.0f, 0.0f);
|
||||
GL11.glRotatef(-90.0f, 0.0f, 0.0f, 1.0f);
|
||||
GL11.glRotatef((float)tco.rotation, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glRotatef((float) tco.rotation, 0.0f, 1.0f, 0.0f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -78,14 +77,13 @@ public class TileNodeMonitorRender extends TileEntitySpecialRenderer
|
||||
GL11.glBlendFunc(770, 771);
|
||||
if (tco.switchy) {
|
||||
UtilsFX.bindTexture("thaumichorizons", TileNodeMonitorRender.tx3);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
UtilsFX.bindTexture("thaumichorizons", TileNodeMonitorRender.tx2);
|
||||
}
|
||||
this.modelScreen.renderAll();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
SCANNER = new ResourceLocation("thaumcraft", "textures/models/scanner.obj");
|
||||
SCANNERSCREEN = new ResourceLocation("thaumichorizons", "textures/models/hexagon.obj");
|
||||
|
||||
+29
-26
@@ -1,36 +1,35 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import net.minecraft.util.Vec3;
|
||||
import com.kentington.thaumichorizons.common.tiles.TilePortalTH;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.ActiveRenderInfo;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import com.kentington.thaumichorizons.common.tiles.TilePortalTH;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.util.Vec3;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class TilePortalTHRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TilePortalTHRender extends TileEntitySpecialRenderer {
|
||||
public static final ResourceLocation portaltex;
|
||||
|
||||
|
||||
public void renderTileEntityAt(final TileEntity te, final double x, final double y, final double z, final float f) {
|
||||
if (te.getWorldObj() != null) {
|
||||
this.renderPortal((TilePortalTH)te, x, y, z, f);
|
||||
this.renderPortal((TilePortalTH) te, x, y, z, f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void renderPortal(final TilePortalTH te, final double x, final double y, final double z, final float f) {
|
||||
final long nt = System.nanoTime();
|
||||
final long time = nt / 50000000L;
|
||||
final int c = (int)Math.min(30.0f, te.opencount + f);
|
||||
final int e = (int)Math.min(5.0f, te.opencount + f);
|
||||
final int c = (int) Math.min(30.0f, te.opencount + f);
|
||||
final int e = (int) Math.min(5.0f, te.opencount + f);
|
||||
final float scale = e / 5.0f;
|
||||
final float scaley = c / 30.0f;
|
||||
UtilsFX.bindTexture(TilePortalTHRender.portaltex);
|
||||
@@ -46,7 +45,7 @@ public class TilePortalTHRender extends TileEntitySpecialRenderer
|
||||
final float arYZ = ActiveRenderInfo.rotationYZ;
|
||||
final float arXY = ActiveRenderInfo.rotationXY;
|
||||
final float arXZ = ActiveRenderInfo.rotationXZ;
|
||||
final EntityPlayer player = (EntityPlayer)Minecraft.getMinecraft().renderViewEntity;
|
||||
final EntityPlayer player = (EntityPlayer) Minecraft.getMinecraft().renderViewEntity;
|
||||
final double iPX = player.prevPosX + (player.posX - player.prevPosX) * f;
|
||||
final double iPY = player.prevPosY + (player.posY - player.prevPosY) * f;
|
||||
final double iPZ = player.prevPosZ + (player.posZ - player.prevPosZ) * f;
|
||||
@@ -73,27 +72,31 @@ public class TilePortalTHRender extends TileEntitySpecialRenderer
|
||||
final double px = x + 0.5;
|
||||
final double py = y + 0.5;
|
||||
final double pz = z + 0.5;
|
||||
final Vec3 v1 = Vec3.createVectorHelper((double)(-arX - arYZ), (double)(-arXZ), (double)(-arZ - arXY));
|
||||
final Vec3 v2 = Vec3.createVectorHelper((double)(-arX + arYZ), (double)arXZ, (double)(-arZ + arXY));
|
||||
final Vec3 v3 = Vec3.createVectorHelper((double)(arX + arYZ), (double)arXZ, (double)(arZ + arXY));
|
||||
final Vec3 v4 = Vec3.createVectorHelper((double)(arX - arYZ), (double)(-arXZ), (double)(arZ - arXY));
|
||||
final int frame = (int)time % 16;
|
||||
final Vec3 v1 = Vec3.createVectorHelper((double) (-arX - arYZ), (double) (-arXZ), (double) (-arZ - arXY));
|
||||
final Vec3 v2 = Vec3.createVectorHelper((double) (-arX + arYZ), (double) arXZ, (double) (-arZ + arXY));
|
||||
final Vec3 v3 = Vec3.createVectorHelper((double) (arX + arYZ), (double) arXZ, (double) (arZ + arXY));
|
||||
final Vec3 v4 = Vec3.createVectorHelper((double) (arX - arYZ), (double) (-arXZ), (double) (arZ - arXY));
|
||||
final int frame = (int) time % 16;
|
||||
final float f2 = frame / 16.0f;
|
||||
final float f3 = f2 + 0.0625f;
|
||||
final float f4 = 0.0f;
|
||||
final float f5 = 1.0f;
|
||||
tessellator.setNormal(0.0f, 0.0f, -1.0f);
|
||||
tessellator.addVertexWithUV(px + v1.xCoord * scale, py + v1.yCoord * scaley, pz + v1.zCoord * scale, (double)f2, (double)f5);
|
||||
tessellator.addVertexWithUV(px + v2.xCoord * scale, py + v2.yCoord * scaley, pz + v2.zCoord * scale, (double)f3, (double)f5);
|
||||
tessellator.addVertexWithUV(px + v3.xCoord * scale, py + v3.yCoord * scaley, pz + v3.zCoord * scale, (double)f3, (double)f4);
|
||||
tessellator.addVertexWithUV(px + v4.xCoord * scale, py + v4.yCoord * scaley, pz + v4.zCoord * scale, (double)f2, (double)f4);
|
||||
tessellator.addVertexWithUV(
|
||||
px + v1.xCoord * scale, py + v1.yCoord * scaley, pz + v1.zCoord * scale, (double) f2, (double) f5);
|
||||
tessellator.addVertexWithUV(
|
||||
px + v2.xCoord * scale, py + v2.yCoord * scaley, pz + v2.zCoord * scale, (double) f3, (double) f5);
|
||||
tessellator.addVertexWithUV(
|
||||
px + v3.xCoord * scale, py + v3.yCoord * scaley, pz + v3.zCoord * scale, (double) f3, (double) f4);
|
||||
tessellator.addVertexWithUV(
|
||||
px + v4.xCoord * scale, py + v4.yCoord * scaley, pz + v4.zCoord * scale, (double) f2, (double) f4);
|
||||
tessellator.draw();
|
||||
}
|
||||
GL11.glDisable(3042);
|
||||
GL11.glDepthMask(true);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
portaltex = new ResourceLocation("thaumichorizons", "textures/misc/vortex.png");
|
||||
}
|
||||
|
||||
+42
-21
@@ -1,59 +1,80 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
import thaumcraft.common.tiles.TileNode;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileRecombinator;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelRecombinator;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileRecombinator;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.common.Thaumcraft;
|
||||
import thaumcraft.common.tiles.TileNode;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class TileRecombinatorRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileRecombinatorRender extends TileEntitySpecialRenderer {
|
||||
static String tx1;
|
||||
static String tx2;
|
||||
private ModelRecombinator base;
|
||||
|
||||
|
||||
public TileRecombinatorRender() {
|
||||
this.base = new ModelRecombinator();
|
||||
}
|
||||
|
||||
|
||||
public void renderTileEntityAt(final TileEntity te, final double x, final double y, final double z, final float f) {
|
||||
final TileRecombinator tco = (TileRecombinator)te;
|
||||
final TileRecombinator tco = (TileRecombinator) te;
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)x + 0.5f, (float)y - 0.5f, (float)z + 0.5f);
|
||||
GL11.glTranslatef((float) x + 0.5f, (float) y - 0.5f, (float) z + 0.5f);
|
||||
UtilsFX.bindTexture("thaumichorizons", TileRecombinatorRender.tx1);
|
||||
final float sin = (float)Math.sin(tco.count / 8.0f);
|
||||
final float sin = (float) Math.sin(tco.count / 8.0f);
|
||||
this.base.render(null, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0625f, sin * 2.0f);
|
||||
if (tco.activated) {
|
||||
final long nt = System.nanoTime();
|
||||
final int frames = UtilsFX.getTextureAnimationSize(TileRecombinatorRender.tx2);
|
||||
final int i = (int)((nt / 40000000L + x) % frames);
|
||||
final int i = (int) ((nt / 40000000L + x) % frames);
|
||||
UtilsFX.bindTexture("thaumcraft", TileRecombinatorRender.tx2);
|
||||
GL11.glEnable(3042);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
GL11.glScalef(1.0f, 1.0f, 1.0f);
|
||||
GL11.glPushMatrix();
|
||||
UtilsFX.renderFacingQuad(tco.xCoord + 0.5, tco.yCoord + 1.5 + 0.2 * sin, tco.zCoord + 0.5, 0.0f, 1.5f, 0.9f, frames, i, f, 16777215);
|
||||
UtilsFX.renderFacingQuad(
|
||||
tco.xCoord + 0.5,
|
||||
tco.yCoord + 1.5 + 0.2 * sin,
|
||||
tco.zCoord + 0.5,
|
||||
0.0f,
|
||||
1.5f,
|
||||
0.9f,
|
||||
frames,
|
||||
i,
|
||||
f,
|
||||
16777215);
|
||||
GL11.glPopMatrix();
|
||||
if (te.getWorldObj().getTileEntity(te.xCoord, te.yCoord - 1, te.zCoord) instanceof TileNode) {
|
||||
Thaumcraft.proxy.beam((World)Minecraft.getMinecraft().theWorld, te.xCoord + 0.5, te.yCoord + 0.2, te.zCoord + 0.5, te.xCoord + 0.5, te.yCoord - 0.5, te.zCoord + 0.5, 1, 16777215, false, 0.1f, 3);
|
||||
Thaumcraft.proxy.beam(
|
||||
(World) Minecraft.getMinecraft().theWorld,
|
||||
te.xCoord + 0.5,
|
||||
te.yCoord + 0.2,
|
||||
te.zCoord + 0.5,
|
||||
te.xCoord + 0.5,
|
||||
te.yCoord - 0.5,
|
||||
te.zCoord + 0.5,
|
||||
1,
|
||||
16777215,
|
||||
false,
|
||||
0.1f,
|
||||
3);
|
||||
}
|
||||
GL11.glDisable(3042);
|
||||
}
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
TileRecombinatorRender.tx1 = "textures/models/recombinator.png";
|
||||
TileRecombinatorRender.tx2 = "textures/items/lightningringv.png";
|
||||
|
||||
+12
-13
@@ -1,37 +1,36 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSlot;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelReceptacle;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSlot;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class TileSlotRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileSlotRender extends TileEntitySpecialRenderer {
|
||||
static String tx1;
|
||||
private ModelReceptacle base;
|
||||
|
||||
|
||||
public TileSlotRender() {
|
||||
this.base = new ModelReceptacle();
|
||||
}
|
||||
|
||||
|
||||
public void renderTileEntityAt(final TileEntity te, final double x, final double y, final double z, final float f) {
|
||||
final TileSlot tco = (TileSlot)te;
|
||||
final TileSlot tco = (TileSlot) te;
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)x + 0.5f, (float)y - 0.5f, (float)z + 0.5f);
|
||||
GL11.glTranslatef((float) x + 0.5f, (float) y - 0.5f, (float) z + 0.5f);
|
||||
UtilsFX.bindTexture("thaumichorizons", TileSlotRender.tx1);
|
||||
this.base.render(null, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0625f, tco.hasKeystone, tco.pocketID);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
TileSlotRender.tx1 = "textures/models/receptacle.png";
|
||||
}
|
||||
|
||||
+22
-18
@@ -1,30 +1,34 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelSoulBeacon;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulBeacon;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulBeacon;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelSoulBeacon;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class TileSoulBeaconRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileSoulBeaconRender extends TileEntitySpecialRenderer {
|
||||
static String tx1;
|
||||
private ModelSoulBeacon base;
|
||||
private static final ResourceLocation field_147523_b;
|
||||
private static final String __OBFID = "CL_00000962";
|
||||
|
||||
public void renderTileEntityAt(final TileSoulBeacon tco, final double p_147500_2_, final double p_147500_4_, final double p_147500_6_, final float p_147500_8_) {
|
||||
|
||||
public void renderTileEntityAt(
|
||||
final TileSoulBeacon tco,
|
||||
final double p_147500_2_,
|
||||
final double p_147500_4_,
|
||||
final double p_147500_6_,
|
||||
final float p_147500_8_) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)p_147500_2_ + 0.5f, (float)p_147500_4_ + 1.5f, (float)p_147500_6_ + 0.5f);
|
||||
GL11.glTranslatef((float) p_147500_2_ + 0.5f, (float) p_147500_4_ + 1.5f, (float) p_147500_6_ + 0.5f);
|
||||
GL11.glRotatef(180.0f, 1.0f, 0.0f, 0.0f);
|
||||
UtilsFX.bindTexture("thaumichorizons", TileSoulBeaconRender.tx1);
|
||||
this.base.render(null, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0625f);
|
||||
@@ -121,15 +125,15 @@ public class TileSoulBeaconRender extends TileEntitySpecialRenderer
|
||||
GL11.glDepthMask(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public TileSoulBeaconRender() {
|
||||
this.base = new ModelSoulBeacon();
|
||||
}
|
||||
|
||||
|
||||
public void renderTileEntityAt(final TileEntity te, final double x, final double y, final double z, final float f) {
|
||||
this.renderTileEntityAt((TileSoulBeacon)te, x, y, z, f);
|
||||
this.renderTileEntityAt((TileSoulBeacon) te, x, y, z, f);
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
TileSoulBeaconRender.tx1 = "textures/models/soulbeacon.png";
|
||||
field_147523_b = new ResourceLocation("textures/entity/beacon_beam.png");
|
||||
|
||||
+22
-14
@@ -1,35 +1,43 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulExtractor;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelSoulSieve;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulExtractor;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class TileSoulSieveRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileSoulSieveRender extends TileEntitySpecialRenderer {
|
||||
static String tx1;
|
||||
private ModelSoulSieve model;
|
||||
|
||||
|
||||
public TileSoulSieveRender() {
|
||||
this.model = new ModelSoulSieve();
|
||||
}
|
||||
|
||||
|
||||
public void renderTileEntityAt(final TileEntity te, final double x, final double y, final double z, final float f) {
|
||||
final TileSoulExtractor tco = (TileSoulExtractor)te;
|
||||
final TileSoulExtractor tco = (TileSoulExtractor) te;
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)x + 0.5f, (float)y + 1.5f, (float)z + 0.5f);
|
||||
GL11.glTranslatef((float) x + 0.5f, (float) y + 1.5f, (float) z + 0.5f);
|
||||
GL11.glRotatef(180.0f, 1.0f, 0.0f, 0.0f);
|
||||
UtilsFX.bindTexture("thaumichorizons", TileSoulSieveRender.tx1);
|
||||
this.model.render(null, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0625f, 0.15625f * (float)(Math.cos(Math.toRadians(tco.sieveMotion)) - 1.0), tco.ticksLeft);
|
||||
this.model.render(
|
||||
null,
|
||||
0.0f,
|
||||
0.0f,
|
||||
0.0f,
|
||||
0.0f,
|
||||
0.0f,
|
||||
0.0625f,
|
||||
0.15625f * (float) (Math.cos(Math.toRadians(tco.sieveMotion)) - 1.0),
|
||||
tco.ticksLeft);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
TileSoulSieveRender.tx1 = "textures/models/soulsieve.png";
|
||||
}
|
||||
|
||||
+77
-27
@@ -1,41 +1,41 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulforge;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelSoulforge;
|
||||
import thaumcraft.client.renderers.models.ModelBrain;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSoulforge;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.client.renderers.models.ModelBrain;
|
||||
|
||||
public class TileSoulforgeRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileSoulforgeRender extends TileEntitySpecialRenderer {
|
||||
private ModelBrain brain;
|
||||
private ModelSoulforge forge;
|
||||
static String tx1;
|
||||
static String tx2;
|
||||
static String tx3;
|
||||
|
||||
|
||||
public TileSoulforgeRender() {
|
||||
this.brain = new ModelBrain();
|
||||
this.forge = new ModelSoulforge();
|
||||
}
|
||||
|
||||
public void renderTileEntityAt(final TileEntity tile, final double x, final double y, final double z, final float f) {
|
||||
|
||||
public void renderTileEntityAt(
|
||||
final TileEntity tile, final double x, final double y, final double z, final float f) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glDisable(2884);
|
||||
GL11.glTranslatef((float)x + 0.5f, (float)y, (float)z + 0.5f);
|
||||
GL11.glTranslatef((float) x + 0.5f, (float) y, (float) z + 0.5f);
|
||||
GL11.glRotatef(180.0f, 1.0f, 0.0f, 0.0f);
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef(0.0f, -0.25f, 0.0f);
|
||||
GL11.glEnable(3042);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
this.renderBrains((TileSoulforge)tile, x, y, z, f);
|
||||
this.renderBrains((TileSoulforge) tile, x, y, z, f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glTranslatef(0.0f, -1.5f, 0.0f);
|
||||
@@ -43,42 +43,92 @@ public class TileSoulforgeRender extends TileEntitySpecialRenderer
|
||||
this.forge.render(null, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0625f);
|
||||
GL11.glPopMatrix();
|
||||
final long nt = System.nanoTime();
|
||||
if (((TileSoulforge)tile).forging > 0) {
|
||||
if (((TileSoulforge) tile).forging > 0) {
|
||||
final int frames = UtilsFX.getTextureAnimationSize(TileSoulforgeRender.tx2);
|
||||
final int i = (int)((nt / 40000000L + x) % frames);
|
||||
final int i = (int) ((nt / 40000000L + x) % frames);
|
||||
UtilsFX.bindTexture("thaumcraft", TileSoulforgeRender.tx2);
|
||||
GL11.glEnable(3042);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
GL11.glScalef(1.0f, 1.0f, 1.0f);
|
||||
GL11.glPushMatrix();
|
||||
UtilsFX.renderFacingQuad(tile.xCoord + 0.025, tile.yCoord + 0.75, tile.zCoord + 0.025, 0.0f, 0.2f, 0.9f, frames, i, f, 16777215);
|
||||
UtilsFX.renderFacingQuad(
|
||||
tile.xCoord + 0.025,
|
||||
tile.yCoord + 0.75,
|
||||
tile.zCoord + 0.025,
|
||||
0.0f,
|
||||
0.2f,
|
||||
0.9f,
|
||||
frames,
|
||||
i,
|
||||
f,
|
||||
16777215);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glPushMatrix();
|
||||
UtilsFX.renderFacingQuad(tile.xCoord + 0.975, tile.yCoord + 0.75, tile.zCoord + 0.025, 0.0f, 0.2f, 0.9f, frames, i, f, 16777215);
|
||||
UtilsFX.renderFacingQuad(
|
||||
tile.xCoord + 0.975,
|
||||
tile.yCoord + 0.75,
|
||||
tile.zCoord + 0.025,
|
||||
0.0f,
|
||||
0.2f,
|
||||
0.9f,
|
||||
frames,
|
||||
i,
|
||||
f,
|
||||
16777215);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glPushMatrix();
|
||||
UtilsFX.renderFacingQuad(tile.xCoord + 0.975, tile.yCoord + 0.75, tile.zCoord + 0.975, 0.0f, 0.2f, 0.9f, frames, i, f, 16777215);
|
||||
UtilsFX.renderFacingQuad(
|
||||
tile.xCoord + 0.975,
|
||||
tile.yCoord + 0.75,
|
||||
tile.zCoord + 0.975,
|
||||
0.0f,
|
||||
0.2f,
|
||||
0.9f,
|
||||
frames,
|
||||
i,
|
||||
f,
|
||||
16777215);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glPushMatrix();
|
||||
UtilsFX.renderFacingQuad(tile.xCoord + 0.025, tile.yCoord + 0.75, tile.zCoord + 0.975, 0.0f, 0.2f, 0.9f, frames, i, f, 16777215);
|
||||
UtilsFX.renderFacingQuad(
|
||||
tile.xCoord + 0.025,
|
||||
tile.yCoord + 0.75,
|
||||
tile.zCoord + 0.975,
|
||||
0.0f,
|
||||
0.2f,
|
||||
0.9f,
|
||||
frames,
|
||||
i,
|
||||
f,
|
||||
16777215);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glDisable(3042);
|
||||
}
|
||||
if (((TileSoulforge)tile).souls > 0) {
|
||||
final double offset = 6.283185307179586 / ((TileSoulforge)tile).souls;
|
||||
if (((TileSoulforge) tile).souls > 0) {
|
||||
final double offset = 6.283185307179586 / ((TileSoulforge) tile).souls;
|
||||
final int frames = 16;
|
||||
final double radian = Math.toRadians((int)(nt / 40000000L % 360L));
|
||||
final double radian = Math.toRadians((int) (nt / 40000000L % 360L));
|
||||
final double dist = 0.1 + 0.1 * Math.cos(radian);
|
||||
UtilsFX.bindTexture("thaumichorizons", TileSoulforgeRender.tx3);
|
||||
GL11.glEnable(3042);
|
||||
GL11.glAlphaFunc(516, 0.003921569f);
|
||||
GL11.glDisable(2929);
|
||||
GL11.glDisable(2884);
|
||||
for (int which = 0; which < ((TileSoulforge)tile).souls; ++which) {
|
||||
for (int which = 0; which < ((TileSoulforge) tile).souls; ++which) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glEnable(3042);
|
||||
GL11.glBlendFunc(770, 771);
|
||||
UtilsFX.renderFacingQuad(tile.xCoord + 0.5 + dist * Math.sin(2.0 * radian + offset * which), tile.yCoord + 0.85, tile.zCoord + 0.5 + dist * Math.cos(2.0 * radian + offset * which), 0.0f, 0.1f, 0.9f, frames, (int)(nt / 40000000L % frames), f, 16777215);
|
||||
UtilsFX.renderFacingQuad(
|
||||
tile.xCoord + 0.5 + dist * Math.sin(2.0 * radian + offset * which),
|
||||
tile.yCoord + 0.85,
|
||||
tile.zCoord + 0.5 + dist * Math.cos(2.0 * radian + offset * which),
|
||||
0.0f,
|
||||
0.1f,
|
||||
0.9f,
|
||||
frames,
|
||||
(int) (nt / 40000000L % frames),
|
||||
f,
|
||||
16777215);
|
||||
GL11.glDisable(3042);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
@@ -87,7 +137,7 @@ public class TileSoulforgeRender extends TileEntitySpecialRenderer
|
||||
GL11.glDisable(3042);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void renderBrains(final TileSoulforge te, final double x, final double y, final double z, final float f) {
|
||||
GL11.glPushMatrix();
|
||||
if (te != null) {
|
||||
@@ -119,7 +169,7 @@ public class TileSoulforgeRender extends TileEntitySpecialRenderer
|
||||
UtilsFX.bindTexture("thaumichorizons", "textures/models/jarbrine2.png");
|
||||
this.forge.renderBrine();
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
TileSoulforgeRender.tx1 = "textures/models/soulforge.png";
|
||||
TileSoulforgeRender.tx2 = "textures/items/lightningringv.png";
|
||||
|
||||
+16
-19
@@ -1,34 +1,33 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSpike;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.client.model.AdvancedModelLoader;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.IModelCustom;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.AdvancedModelLoader;
|
||||
import net.minecraftforge.client.model.IModelCustom;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class TileSpikeRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileSpikeRender extends TileEntitySpecialRenderer {
|
||||
private IModelCustom model;
|
||||
private static final ResourceLocation SPIKE;
|
||||
static String tx1;
|
||||
static String tx2;
|
||||
static String tx3;
|
||||
|
||||
|
||||
public TileSpikeRender() {
|
||||
this.model = AdvancedModelLoader.loadModel(TileSpikeRender.SPIKE);
|
||||
}
|
||||
|
||||
|
||||
public void renderTileEntityAt(final TileEntity te, final double x, final double y, final double z, final float f) {
|
||||
final TileSpike tco = (TileSpike)te;
|
||||
final TileSpike tco = (TileSpike) te;
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)x + 0.5f, (float)(y + 0.5), (float)z + 0.5f);
|
||||
GL11.glTranslatef((float) x + 0.5f, (float) (y + 0.5), (float) z + 0.5f);
|
||||
GL11.glScalef(0.35f, 0.35f, 0.35f);
|
||||
switch (tco.direction) {
|
||||
case 1: {
|
||||
@@ -63,17 +62,15 @@ public class TileSpikeRender extends TileEntitySpecialRenderer
|
||||
}
|
||||
if (tco.spikeType == 0) {
|
||||
UtilsFX.bindTexture("thaumichorizons", TileSpikeRender.tx1);
|
||||
}
|
||||
else if (tco.spikeType == 1) {
|
||||
} else if (tco.spikeType == 1) {
|
||||
UtilsFX.bindTexture("thaumichorizons", TileSpikeRender.tx2);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
UtilsFX.bindTexture("thaumichorizons", TileSpikeRender.tx3);
|
||||
}
|
||||
this.model.renderAll();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
SPIKE = new ResourceLocation("thaumichorizons", "textures/models/spike.obj");
|
||||
TileSpikeRender.tx1 = "textures/models/metalspike.png";
|
||||
|
||||
+51
-41
@@ -1,59 +1,61 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileTransductionAmplifier;
|
||||
import net.minecraftforge.client.model.AdvancedModelLoader;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.IModelCustom;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraftforge.client.model.AdvancedModelLoader;
|
||||
import net.minecraftforge.client.model.IModelCustom;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class TileTransductionAmplifierRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileTransductionAmplifierRender extends TileEntitySpecialRenderer {
|
||||
private IModelCustom model;
|
||||
private static final ResourceLocation MODEL;
|
||||
|
||||
|
||||
public TileTransductionAmplifierRender() {
|
||||
this.model = AdvancedModelLoader.loadModel(TileTransductionAmplifierRender.MODEL);
|
||||
}
|
||||
|
||||
public void renderTileEntityAt(final TileTransductionAmplifier tile, final double par2, final double par4, final double par6, final float par8) {
|
||||
|
||||
public void renderTileEntityAt(
|
||||
final TileTransductionAmplifier tile,
|
||||
final double par2,
|
||||
final double par4,
|
||||
final double par6,
|
||||
final float par8) {
|
||||
int bright = 20;
|
||||
GL11.glPushMatrix();
|
||||
if (tile.getWorldObj() != null) {
|
||||
bright = tile.getBlockType().getMixedBrightnessForBlock((IBlockAccess)tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord);
|
||||
tile.direction = (byte)tile.getBlockMetadata();
|
||||
bright = tile.getBlockType()
|
||||
.getMixedBrightnessForBlock(
|
||||
(IBlockAccess) tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord);
|
||||
tile.direction = (byte) tile.getBlockMetadata();
|
||||
if (tile.direction == 3) {
|
||||
GL11.glTranslatef((float)par2 + 0.5f, (float)par4 + 0.5f, (float)par6 + 1.0f);
|
||||
GL11.glTranslatef((float) par2 + 0.5f, (float) par4 + 0.5f, (float) par6 + 1.0f);
|
||||
GL11.glRotatef(180.0f, 0.0f, 1.0f, 0.0f);
|
||||
}
|
||||
else if (tile.direction == 4) {
|
||||
GL11.glTranslatef((float)par2, (float)par4 + 0.5f, (float)par6 + 0.5f);
|
||||
} else if (tile.direction == 4) {
|
||||
GL11.glTranslatef((float) par2, (float) par4 + 0.5f, (float) par6 + 0.5f);
|
||||
GL11.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||
}
|
||||
else if (tile.direction == 5) {
|
||||
GL11.glTranslatef((float)par2 + 1.0f, (float)par4 + 0.5f, (float)par6 + 0.5f);
|
||||
} else if (tile.direction == 5) {
|
||||
GL11.glTranslatef((float) par2 + 1.0f, (float) par4 + 0.5f, (float) par6 + 0.5f);
|
||||
GL11.glRotatef(270.0f, 0.0f, 1.0f, 0.0f);
|
||||
}
|
||||
else if (tile.direction == 2) {
|
||||
GL11.glTranslatef((float)par2 + 0.5f, (float)par4 + 0.5f, (float)par6);
|
||||
} else if (tile.direction == 2) {
|
||||
GL11.glTranslatef((float) par2 + 0.5f, (float) par4 + 0.5f, (float) par6);
|
||||
GL11.glRotatef(0.0f, 0.0f, 1.0f, 0.0f);
|
||||
}
|
||||
}
|
||||
else {
|
||||
GL11.glTranslatef((float)par2 + 0.75f, (float)par4 + 0.25f, (float)par6);
|
||||
} else {
|
||||
GL11.glTranslatef((float) par2 + 0.75f, (float) par4 + 0.25f, (float) par6);
|
||||
}
|
||||
UtilsFX.bindTexture("textures/models/node_converter.png");
|
||||
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
@@ -61,8 +63,9 @@ public class TileTransductionAmplifierRender extends TileEntitySpecialRenderer
|
||||
this.model.renderPart("lock");
|
||||
GL11.glColor4f(0.8f, 0.8f, 0.0f, 1.0f);
|
||||
if (tile.getWorldObj() != null) {
|
||||
final float scale = MathHelper.sin(Minecraft.getMinecraft().renderViewEntity.ticksExisted / 3.0f) * 0.1f + 0.9f;
|
||||
final int j = 50 + (int)(170.0f * (v * 2.5f * scale));
|
||||
final float scale =
|
||||
MathHelper.sin(Minecraft.getMinecraft().renderViewEntity.ticksExisted / 3.0f) * 0.1f + 0.9f;
|
||||
final int j = 50 + (int) (170.0f * (v * 2.5f * scale));
|
||||
final int k = j % 65536;
|
||||
final int l = j / 65536;
|
||||
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, k / 1.0f, l / 1.0f);
|
||||
@@ -78,15 +81,17 @@ public class TileTransductionAmplifierRender extends TileEntitySpecialRenderer
|
||||
final int l = j / 65536;
|
||||
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, k / 1.0f, l / 1.0f);
|
||||
}
|
||||
GL11.glRotatef((float)(90 * a), 0.0f, 0.0f, 1.0f);
|
||||
GL11.glRotatef((float) (90 * a), 0.0f, 0.0f, 1.0f);
|
||||
GL11.glRotatef(45.0f, 0.0f, 1.0f, 0.0f);
|
||||
GL11.glTranslatef(0.0f, 0.0f, v);
|
||||
UtilsFX.bindTexture("textures/models/node_converter.png");
|
||||
this.model.renderPart("piston");
|
||||
GL11.glColor4f(0.8f, 0.8f, 0.0f, 1.0f);
|
||||
if (tile.getWorldObj() != null) {
|
||||
final float scale2 = MathHelper.sin((Minecraft.getMinecraft().renderViewEntity.ticksExisted + a * 5) / 3.0f) * 0.1f + 0.9f;
|
||||
final int i = 50 + (int)(170.0f * (v * 2.5f * scale2));
|
||||
final float scale2 =
|
||||
MathHelper.sin((Minecraft.getMinecraft().renderViewEntity.ticksExisted + a * 5) / 3.0f) * 0.1f
|
||||
+ 0.9f;
|
||||
final int i = 50 + (int) (170.0f * (v * 2.5f * scale2));
|
||||
final int m = i % 65536;
|
||||
final int l2 = i / 65536;
|
||||
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, m / 1.0f, l2 / 1.0f);
|
||||
@@ -98,11 +103,16 @@ public class TileTransductionAmplifierRender extends TileEntitySpecialRenderer
|
||||
}
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public void renderTileEntityAt(final TileEntity par1TileEntity, final double par2, final double par4, final double par6, final float par8) {
|
||||
this.renderTileEntityAt((TileTransductionAmplifier)par1TileEntity, par2, par4, par6, par8);
|
||||
|
||||
public void renderTileEntityAt(
|
||||
final TileEntity par1TileEntity,
|
||||
final double par2,
|
||||
final double par4,
|
||||
final double par6,
|
||||
final float par8) {
|
||||
this.renderTileEntityAt((TileTransductionAmplifier) par1TileEntity, par2, par4, par6, par8);
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
MODEL = new ResourceLocation("thaumcraft", "textures/models/node_stabilizer.obj");
|
||||
}
|
||||
|
||||
+68
-41
@@ -1,41 +1,41 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVat;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import thaumcraft.codechicken.lib.math.MathHelper;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import com.kentington.thaumichorizons.common.tiles.TileVatMatrix;
|
||||
import java.util.Random;
|
||||
import net.minecraft.client.renderer.RenderHelper;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import thaumcraft.client.renderers.models.ModelCube;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import java.util.Random;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.client.renderer.RenderHelper;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import thaumcraft.client.renderers.models.ModelCube;
|
||||
import thaumcraft.codechicken.lib.math.MathHelper;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class TileVatMatrixRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileVatMatrixRender extends TileEntitySpecialRenderer {
|
||||
private ModelCube model;
|
||||
private ModelCube model_over;
|
||||
int type;
|
||||
|
||||
|
||||
public TileVatMatrixRender(final int type) {
|
||||
this.model = new ModelCube(0);
|
||||
this.model_over = new ModelCube(32);
|
||||
this.type = 0;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
private void drawHalo(final TileEntity is, final double x, final double y, final double z, final float par8, final int count) {
|
||||
|
||||
private void drawHalo(
|
||||
final TileEntity is, final double x, final double y, final double z, final float par8, final int count) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslated(x + 0.5, y + 0.5, z + 0.5);
|
||||
final int q = FMLClientHandler.instance().getClient().gameSettings.fancyGraphics ? 20 : 10;
|
||||
@@ -65,13 +65,13 @@ public class TileVatMatrixRender extends TileEntitySpecialRenderer
|
||||
float f4 = random.nextFloat() * 2.0f + 1.0f + f3 * 2.0f;
|
||||
fa /= 20.0f / (Math.min(count, 50) / 50.0f);
|
||||
f4 /= 20.0f / (Math.min(count, 50) / 50.0f);
|
||||
tessellator.setColorRGBA_I(16777215, (int)(255.0f * (1.0f - f3)));
|
||||
tessellator.setColorRGBA_I(16777215, (int) (255.0f * (1.0f - f3)));
|
||||
tessellator.addVertex(0.0, 0.0, 0.0);
|
||||
tessellator.setColorRGBA_I(13369599, 0);
|
||||
tessellator.addVertex(-0.866 * f4, (double)fa, (double)(-0.5f * f4));
|
||||
tessellator.addVertex(0.866 * f4, (double)fa, (double)(-0.5f * f4));
|
||||
tessellator.addVertex(0.0, (double)fa, (double)(1.0f * f4));
|
||||
tessellator.addVertex(-0.866 * f4, (double)fa, (double)(-0.5f * f4));
|
||||
tessellator.addVertex(-0.866 * f4, (double) fa, (double) (-0.5f * f4));
|
||||
tessellator.addVertex(0.866 * f4, (double) fa, (double) (-0.5f * f4));
|
||||
tessellator.addVertex(0.0, (double) fa, (double) (1.0f * f4));
|
||||
tessellator.addVertex(-0.866 * f4, (double) fa, (double) (-0.5f * f4));
|
||||
tessellator.draw();
|
||||
}
|
||||
GL11.glPopMatrix();
|
||||
@@ -86,12 +86,13 @@ public class TileVatMatrixRender extends TileEntitySpecialRenderer
|
||||
GL11.glBlendFunc(770, 771);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public void renderInfusionMatrix(final TileVatMatrix tile, final double par2, final double par4, final double par6, final float par8) {
|
||||
|
||||
public void renderInfusionMatrix(
|
||||
final TileVatMatrix tile, final double par2, final double par4, final double par6, final float par8) {
|
||||
final TileVat vat = tile.getVat();
|
||||
GL11.glPushMatrix();
|
||||
UtilsFX.bindTexture("textures/models/infuser.png");
|
||||
GL11.glTranslatef((float)par2 + 0.5f, (float)par4 + 0.5f, (float)par6 + 0.5f);
|
||||
GL11.glTranslatef((float) par2 + 0.5f, (float) par4 + 0.5f, (float) par6 + 0.5f);
|
||||
final float ticks = Minecraft.getMinecraft().renderViewEntity.ticksExisted + par8;
|
||||
float instability = 0.0f;
|
||||
float startUp = 0.0f;
|
||||
@@ -114,22 +115,31 @@ public class TileVatMatrixRender extends TileEntitySpecialRenderer
|
||||
for (int a = 0; a < 2; ++a) {
|
||||
for (int b4 = 0; b4 < 2; ++b4) {
|
||||
for (int c = 0; c < 2; ++c) {
|
||||
b1 = (float)(MathHelper.sin((double)((ticks + a * 10) / (15.0f - instability / 2.0f))) * 0.009999999776482582 * startUp * instability);
|
||||
b2 = (float)(MathHelper.sin((double)((ticks + b4 * 10) / (14.0f - instability / 2.0f))) * 0.009999999776482582 * startUp * instability);
|
||||
b3 = (float)(MathHelper.sin((double)((ticks + c * 10) / (13.0f - instability / 2.0f))) * 0.009999999776482582 * startUp * instability);
|
||||
b1 = (float) (MathHelper.sin((double) ((ticks + a * 10) / (15.0f - instability / 2.0f)))
|
||||
* 0.009999999776482582
|
||||
* startUp
|
||||
* instability);
|
||||
b2 = (float) (MathHelper.sin((double) ((ticks + b4 * 10) / (14.0f - instability / 2.0f)))
|
||||
* 0.009999999776482582
|
||||
* startUp
|
||||
* instability);
|
||||
b3 = (float) (MathHelper.sin((double) ((ticks + c * 10) / (13.0f - instability / 2.0f)))
|
||||
* 0.009999999776482582
|
||||
* startUp
|
||||
* instability);
|
||||
aa = ((a == 0) ? -1 : 1);
|
||||
bb = ((b4 == 0) ? -1 : 1);
|
||||
cc = ((c == 0) ? -1 : 1);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef(b1 + aa * 0.25f, b2 + bb * 0.25f, b3 + cc * 0.25f);
|
||||
if (a > 0) {
|
||||
GL11.glRotatef(90.0f, (float)a, 0.0f, 0.0f);
|
||||
GL11.glRotatef(90.0f, (float) a, 0.0f, 0.0f);
|
||||
}
|
||||
if (b4 > 0) {
|
||||
GL11.glRotatef(90.0f, 0.0f, (float)b4, 0.0f);
|
||||
GL11.glRotatef(90.0f, 0.0f, (float) b4, 0.0f);
|
||||
}
|
||||
if (c > 0) {
|
||||
GL11.glRotatef(90.0f, 0.0f, 0.0f, (float)c);
|
||||
GL11.glRotatef(90.0f, 0.0f, 0.0f, (float) c);
|
||||
}
|
||||
GL11.glScaled(0.45, 0.45, 0.45);
|
||||
this.model.render();
|
||||
@@ -144,29 +154,41 @@ public class TileVatMatrixRender extends TileEntitySpecialRenderer
|
||||
for (int a = 0; a < 2; ++a) {
|
||||
for (int b4 = 0; b4 < 2; ++b4) {
|
||||
for (int c = 0; c < 2; ++c) {
|
||||
b1 = (float)(MathHelper.sin((double)((ticks + a * 10) / (15.0f - instability / 2.0f))) * 0.009999999776482582 * startUp * instability);
|
||||
b2 = (float)(MathHelper.sin((double)((ticks + b4 * 10) / (14.0f - instability / 2.0f))) * 0.009999999776482582 * startUp * instability);
|
||||
b3 = (float)(MathHelper.sin((double)((ticks + c * 10) / (13.0f - instability / 2.0f))) * 0.009999999776482582 * startUp * instability);
|
||||
b1 = (float) (MathHelper.sin((double) ((ticks + a * 10) / (15.0f - instability / 2.0f)))
|
||||
* 0.009999999776482582
|
||||
* startUp
|
||||
* instability);
|
||||
b2 = (float) (MathHelper.sin((double) ((ticks + b4 * 10) / (14.0f - instability / 2.0f)))
|
||||
* 0.009999999776482582
|
||||
* startUp
|
||||
* instability);
|
||||
b3 = (float) (MathHelper.sin((double) ((ticks + c * 10) / (13.0f - instability / 2.0f)))
|
||||
* 0.009999999776482582
|
||||
* startUp
|
||||
* instability);
|
||||
aa = ((a == 0) ? -1 : 1);
|
||||
bb = ((b4 == 0) ? -1 : 1);
|
||||
cc = ((c == 0) ? -1 : 1);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef(b1 + aa * 0.25f, b2 + bb * 0.25f, b3 + cc * 0.25f);
|
||||
if (a > 0) {
|
||||
GL11.glRotatef(90.0f, (float)a, 0.0f, 0.0f);
|
||||
GL11.glRotatef(90.0f, (float) a, 0.0f, 0.0f);
|
||||
}
|
||||
if (b4 > 0) {
|
||||
GL11.glRotatef(90.0f, 0.0f, (float)b4, 0.0f);
|
||||
GL11.glRotatef(90.0f, 0.0f, (float) b4, 0.0f);
|
||||
}
|
||||
if (c > 0) {
|
||||
GL11.glRotatef(90.0f, 0.0f, 0.0f, (float)c);
|
||||
GL11.glRotatef(90.0f, 0.0f, 0.0f, (float) c);
|
||||
}
|
||||
GL11.glScaled(0.45, 0.45, 0.45);
|
||||
final int j = 15728880;
|
||||
final int k = j % 65536;
|
||||
final int l = j / 65536;
|
||||
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, k / 1.0f, l / 1.0f);
|
||||
GL11.glColor4f(0.8f, 0.1f, 1.0f, (float)((MathHelper.sin((double)((ticks + a * 2 + b4 * 3 + c * 4) / 4.0f)) * 0.10000000149011612 + 0.20000000298023224) * startUp));
|
||||
GL11.glColor4f(0.8f, 0.1f, 1.0f, (float)
|
||||
((MathHelper.sin((double) ((ticks + a * 2 + b4 * 3 + c * 4) / 4.0f)) * 0.10000000149011612
|
||||
+ 0.20000000298023224)
|
||||
* startUp));
|
||||
this.model_over.render();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
@@ -180,8 +202,13 @@ public class TileVatMatrixRender extends TileEntitySpecialRenderer
|
||||
this.drawHalo(vat, par2, par4, par6, par8, vat.craftCount);
|
||||
}
|
||||
}
|
||||
|
||||
public void renderTileEntityAt(final TileEntity par1TileEntity, final double par2, final double par4, final double par6, final float par8) {
|
||||
this.renderInfusionMatrix((TileVatMatrix)par1TileEntity, par2, par4, par6, par8);
|
||||
|
||||
public void renderTileEntityAt(
|
||||
final TileEntity par1TileEntity,
|
||||
final double par2,
|
||||
final double par4,
|
||||
final double par6,
|
||||
final float par8) {
|
||||
this.renderInfusionMatrix((TileVatMatrix) par1TileEntity, par2, par4, par6, par8);
|
||||
}
|
||||
}
|
||||
+10
-11
@@ -1,33 +1,32 @@
|
||||
//
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
//
|
||||
|
||||
package com.kentington.thaumichorizons.client.renderer.tile;
|
||||
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import com.kentington.thaumichorizons.client.renderer.model.ModelVat;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
|
||||
public class TileVatRender extends TileEntitySpecialRenderer
|
||||
{
|
||||
public class TileVatRender extends TileEntitySpecialRenderer {
|
||||
private static ModelVat model;
|
||||
private String tx1;
|
||||
|
||||
|
||||
public TileVatRender() {
|
||||
this.tx1 = "textures/models/vat.png";
|
||||
}
|
||||
|
||||
|
||||
public void renderTileEntityAt(final TileEntity te, final double x, final double y, final double z, final float f) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)x + 0.5f, (float)y - 0.5f, (float)z + 0.5f);
|
||||
GL11.glTranslatef((float) x + 0.5f, (float) y - 0.5f, (float) z + 0.5f);
|
||||
UtilsFX.bindTexture("thaumichorizons", this.tx1);
|
||||
TileVatRender.model.render(null, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0625f);
|
||||
GL11.glEnable(32826);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
TileVatRender.model = new ModelVat();
|
||||
}
|
||||
|
||||
Loaded 100 of 328 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user