Compare commits

...
62 Commits
Author SHA1 Message Date
Martin Robertz 84dc4a5460 Merge pull request #38 from GTNewHorizons/Alastors-patch-1
Alastors patch 1
2023-01-20 22:56:46 +01:00
BlueWeabo 9440ad7740 correct fix 2023-01-20 21:07:16 +02:00
Martin Robertz 4217002a50 BS+SA 2023-01-19 19:07:53 +01:00
Alastors 6bc61c3a9c Fix the duplication glitch 2023-01-17 19:51:44 -05:00
Martin Robertz 1f7eb8e3a1 update BS+SA 2022-12-28 00:01:29 +01:00
Jason Mitchell dff17c8bf8 Create LICENSE.txt 2022-12-27 10:25:17 -08:00
Martin Robertz 8851295180 Merge pull request #37 from pulsemageadvocate/noRecursiveCallDetect
Remove getStackTrace
2022-10-25 16:30:53 +02:00
pulsemageadvocate 39ad037d16 Remove getStackTrace 2022-10-23 11:42:57 +09:00
Martin Robertz aa1aa0359c Merge pull request #36 from ChromicRedBrick/Remove-duplicate-key
Delete duplicate key
2022-10-04 16:56:04 +02:00
ChromicRedBrickandKiwi 755f2bb17a Delete duplicate key
Co-Authored-By: Kiwi <42833050+Kiwi233@users.noreply.github.com>
2022-10-04 20:28:01 +08:00
Martin Robertz d9597ddd0f Merge pull request #35 from Kiwi233/master
Update zh_CN.lang
2022-09-24 23:25:43 +02:00
[Kiwi233] 1a63684bbd Update zh_CN.lang 2022-09-24 23:14:42 +08:00
Martin Robertz db842d3ffa Merge pull request #34 from GTNewHorizons/fix-pocket-plane-coords
Fix the planar vortex shifting when saved+reloaded
2022-09-24 12:24:58 +02:00
Raven Szewczyk 15e170a428 Fix the planar vortex shifting when saved+reloaded 2022-09-24 08:48:23 +01:00
Raven Szewczyk 6bf31c6be3 spotlessApply 2022-09-24 08:13:43 +01:00
Raven Szewczyk 19b7503018 Update buildscript 2022-09-24 08:13:09 +01:00
Martin Robertz 10424ef688 Merge pull request #33 from pulsemageadvocate/configurableTumor
Make Warped Tumor configurable.
2022-07-18 20:24:46 +07:00
pulsemageadvocate 687e15968e Make Warped Tumor configurable. 2022-07-18 15:37:24 +09:00
Jason Mitchell d77f960cd8 [ci skip] Migrate github actions to GTNH-Actions-Workflows 2022-07-16 10:51:36 -07:00
Martin Robertz ae5790d836 Merge pull request #30 from GTNewHorizons/MuXiu1997-patch-1
Fix wrong key
2022-06-01 18:51:39 +02:00
MuXiu1997andKiwi 3e27a6ecca Fix wrong key
Co-authored-by: Kiwi <42833050+Kiwi233@users.noreply.github.com>
2022-05-31 17:51:34 +08:00
Martin Robertz ebe4279799 Merge pull request #29 from GTNewHorizons/maven
maven publication
2022-02-09 18:20:04 +01:00
bombcar aa7e3736a0 maven publication 2022-02-09 11:08:25 -06:00
Martin Robertz 1f61ef15e3 Merge pull request #28 from GTNewHorizons/feature/ethereal-shard-fix
Actually fix ethereal shard rendering
2022-02-05 11:29:07 +01:00
repo_alt 943ae13bc0 Actually fix ethereal shard rendering 2022-01-31 13:02:48 +03:00
Johann Bernhardt 48d1b9f0c6 Merge pull request #27 from GTNewHorizons/migrate-build-script
Migrate to unified build script
2022-01-15 17:20:08 +01:00
Johann Bernhardt e89a4a53ba Remove unused repository 2022-01-15 17:13:42 +01:00
Johann Bernhardt 5d777104d5 Migrate to unified build script 2022-01-15 17:10:47 +01:00
Martin Robertz 2cf251b539 Merge pull request #26 from Savallator/master
Fix for very large Ethereal shard nodes
2022-01-13 09:40:07 +01:00
Moritz Grothe 84d7860d3c making longs 2022-01-12 02:03:45 +01:00
Moritz Grothe 9838790974 dirty fix of color overflow 2022-01-11 23:59:31 +01:00
Martin Robertz 6161f3a1c4 Merge pull request #25 from pulsemageadvocate/fixTumor
fix tumor
2022-01-09 14:06:11 +01:00
pulsemageadvocate 1173060c64 fix tumor 2022-01-09 17:43:30 +09:00
Martin Robertz b48ae835bd Merge pull request #24 from bombcar/master
remove broken unicode, replace with EnumChatFormatting;
2021-11-29 23:02:56 +01:00
Tom Dickson 7f874b0646 Revert "remove extra + """
This reverts commit 32efd39fee.
2021-11-23 12:13:07 -06:00
Tom Dickson 32efd39fee remove extra + "" 2021-11-22 07:34:00 -06:00
Tom Dickson 0ecb1d2c51 Merge branch 'master' of https://github.com/bombcar/ThaumicHorizons 2021-11-22 07:23:47 -06:00
Tom Dickson d16d00d911 Remove unicode errors, fix chat handling 2021-11-22 07:23:44 -06:00
bombcar 92a0865a4d Merge branch 'GTNewHorizons:master' into master 2021-11-21 11:34:43 -06:00
Tom Dickson e609874d2d Ignore filesystem junk 2021-11-21 08:08:47 -06:00
Martin Robertz 4bf23df25b Merge pull request #23 from bombcar/master
Set build to use stable-2021-11-20
2021-11-21 15:04:38 +01:00
Tom Dickson f0adb5d09a Set build to use stable-2021-11-20 2021-11-21 08:00:08 -06:00
Martin Robertz 35182626f7 Merge pull request #22 from GTNewHorizons/Warp-Tumour-Fix
Probably fixed shitty handling of Warp Tumours.
2021-11-21 11:58:53 +01:00
Alkalus 8c9d1ece5d Probably fixed shitty handling of Warp Tumours. 2021-11-17 10:15:13 +00:00
DreamMasterXXL 206f8a33f5 bump version 2021-08-13 19:29:18 +02:00
Martin Robertz 5d7edb5d5c Merge pull request #21 from pulsemageadvocate/patchToggleInvisibility
Patch toggle invisibility
2021-08-13 19:14:16 +02:00
pulsemageadvocate 0f8a7f0be3 fix entering Exit Portal cause player infusions to be lost 2021-08-03 13:20:44 +09:00
pulsemageadvocate 41855e0c7a patch to toggle chameleon skin and spider climb 2021-06-07 22:42:04 +09:00
DreamMasterXXL a62e675bc5 bump version 2021-05-16 12:57:58 +02:00
DreamMasterXXL f306f4b23f fix derp 2021-05-01 10:43:34 +02:00
DreamMasterXXL 275789f75e update builscript 2021-05-01 10:42:56 +02:00
Martin Robertz c403d90a1f Merge pull request #20 from Reystlin/patch-1
Create ru_RU.lang
2021-05-01 10:30:44 +02:00
Reystlin 203f19f1d6 Create ru_RU.lang 2021-05-01 08:36:23 +07:00
DreamMasterXXL 62db3abe63 bump version 2021-02-26 07:32:58 +01:00
KiloJoel ea9a5fa857 avoided running code on the client that can produce an NPE (#19)
* avoided running code on the client that can produce an NPE

* changed to early exit
2021-02-22 13:09:48 +01:00
Martin Robertz 8d122d3ba8 Merge pull request #18 from KiloJoel/oldPlaneNewPortalFix
Old plane new portal fix
2021-02-07 11:16:34 +01:00
KiloJoel 1600812b71 fixed outofbounds from creating portal for a plane created in old version 2021-02-07 01:58:01 +00:00
KiloJoel c0717e993d added IC2 lib 2021-02-07 01:55:13 +00:00
Martin Robertz 0806af3ad0 Merge pull request #17 from KiloJoel/teleportDimFix
Added dim to portal values
2021-01-18 19:39:42 +01:00
KiloJoel df54e81c14 removed old switch and corrected order in new 2021-01-18 18:29:28 +00:00
KiloJoel d981421721 took repeated code out of switch 2021-01-18 17:49:34 +00:00
KiloJoel 3f54a201c7 added dim to portal values 2021-01-17 23:44:13 +00:00
353 changed files with 20852 additions and 11102 deletions

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
* text eol=lf
*.[jJ][aA][rR] binary
*.[pP][nN][gG] binary
*.[jJ][pP][gG] binary
*.[jJ][pP][eE][gG] binary
*.[gG][iI][fF] binary
*.[tT][iI][fF] binary
*.[tT][iI][fF][fF] binary
*.[iI][cC][oO] binary
*.[sS][vV][gG] text
*.[eE][pP][sS] binary
*.[xX][cC][fF] binary
*.[kK][aA][rR] binary
*.[mM]4[aA] binary
*.[mM][iI][dD] binary
*.[mM][iI][dD][iI] binary
*.[mM][pP]3 binary
*.[oO][gG][gG] binary
*.[rR][aA] binary
*.7[zZ] binary
*.[gG][zZ] binary
*.[tT][aA][rR] binary
*.[tT][gG][zZ] binary
*.[zZ][iI][pP] binary
*.[tT][cC][nN] binary
*.[sS][oO] binary
*.[dD][lL][lL] binary
*.[dD][yY][lL][iI][bB] binary
*.[pP][sS][dD] binary
*.[pP][aA][tT][cC][hH] -text
*.[bB][aA][tT] text eol=crlf
*.[cC][mM][dD] text eol=crlf
*.[pP][sS]1 text eol=crlf
*[aA][uU][tT][oO][gG][eE][nN][eE][rR][aA][tT][eE][dD]* binary
+27
View File
@@ -0,0 +1,27 @@
if [[ -d "run/crash-reports" ]]; then
echo "Crash reports detected:"
cat $directory/*
exit 1
fi
if grep --quiet "Fatal errors were detected" server.log; then
echo "Fatal errors detected:"
cat server.log
exit 1
fi
if grep --quiet "The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED" server.log; then
echo "Server force stopped:"
cat server.log
exit 1
fi
if grep --quiet 'Done .+ For help, type "help" or "?"' server.log; then
echo "Server didn't finish startup:"
cat server.log
exit 1
fi
echo "No crash reports detected"
exit 0
+13
View File
@@ -0,0 +1,13 @@
name: Build and test
on:
pull_request:
branches: [ master, main ]
push:
branches: [ master, main ]
jobs:
build-and-test:
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/build-and-test.yml@master
secrets: inherit
+14
View File
@@ -0,0 +1,14 @@
name: Release tagged build
on:
push:
tags: [ '*' ]
permissions:
contents: write
jobs:
release-tags:
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/release-tags.yml@master
secrets: inherit
+30 -7
View File
@@ -1,8 +1,31 @@
.gradle/
eclipse/
out/
.idea/
*.iws
*.ipr
.gradle
.settings
/.idea/
/run/
/build/
/eclipse/
.classpath
.project
/bin/
/config/
/crash-reports/
/logs/
options.txt
/saves/
usernamecache.json
banned-ips.json
banned-players.json
eula.txt
ops.json
server.properties
servers.dat
usercache.json
whitelist.json
/out/
*.iml
*.bat
*.ipr
*.iws
src/main/resources/mixins.*.json
*.bat
*.DS_Store
!gradlew.bat
+3
View File
@@ -0,0 +1,3 @@
# Any Github changes require admin approval
/.github/** @GTNewHorizons/admin
+10
View File
@@ -0,0 +1,10 @@
License per https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/2361575-thaumic-horizons-v1-1-9-thaumcraft-4-addon
Thaumic Horizons' conditions of use in modpacks are based on Thaumcraft's own:
1. Your mod pack must link to this forum post.
2. You cannot directly profit off of the mod pack - although streaming videos are fine and even encouraged.
3. You cannot claim ownership of the mod or any of its elements.
4. Please let me know when you add Thaumic Horizons to any publicly-available mod pack.
5. I reserve the right to alter, remove, or add any conditions for good reasons or on a random whim.
+1082 -42
View File
File diff suppressed because it is too large. Load diff
+9
View File
@@ -0,0 +1,9 @@
// Add your dependencies here
dependencies {
compile('com.github.GTNewHorizons:Baubles:1.0.1.14:dev')
compile('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.41.50:dev') {transitive = false}
}
+64
View File
@@ -0,0 +1,64 @@
modName = ThaumicHorizons
# This is a case-sensitive string to identify your mod. Convention is to use lower case.
modId = ThaumicHorizons
modGroup = com.kentington.thaumichorizons
# WHY is there no version field?
# The build script relies on git to provide a version via tags. It is super easy and will enable you to always know the
# code base or your binary. Check out this tutorial: https://blog.mattclemente.com/2017/10/13/versioning-with-git-tags/
# Will update your build.gradle automatically whenever an update is available
autoUpdateBuildScript = false
minecraftVersion = 1.7.10
forgeVersion = 10.13.4.1614
# Select a username for testing your mod with breakpoints. You may leave this empty for a random username each time you
# restart Minecraft in development. Choose this dependent on your mod:
# Do you need consistent player progressing (for example Thaumcraft)? -> Select a name
# Do you need to test how your custom blocks interacts with a player that is not the owner? -> leave name empty
developmentEnvironmentUserName = Developer
# Define a source file of your project with:
# public static final String VERSION = "GRADLETOKEN_VERSION";
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
# version in @Mod([...], version = VERSION, [...])
# Leave these properties empty to skip individual token replacements
replaceGradleTokenInFile = ThaumicHorizons.java
gradleTokenModId =
gradleTokenModName =
gradleTokenVersion = GRADLETOKEN_VERSION
gradleTokenGroupName =
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
# leave this property empty.
# Example value: apiPackage = api + modGroup = com.myname.mymodid -> com.myname.mymodid.api
apiPackage =
# Specify the configuration file for Forge's access transformers here. It must be placed into /src/main/resources/META-INF/
# Example value: mymodid_at.cfg
accessTransformersFile =
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
usesMixins = false
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
mixinPlugin =
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
mixinsPackage =
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
# This parameter is for legacy compatibility only
# Example value: coreModClass = asm.FMLPlugin + modGroup = com.myname.mymodid -> com.myname.mymodid.asm.FMLPlugin
coreModClass =
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
containsMixinsAndOrCoreModOnly = false
# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated in your jar. It is your
# responsibility check the licence and request permission for distribution, if required.
usesShadowedDependencies = false
# Optional parameter to customize the produced artifacts. Use this to preserver artifact naming when migrating older
# projects. New projects should not use this parameter.
#customArchiveBaseName =
Binary file not shown.
+1 -1
View File
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-bin.zip
Vendored
+19 -3
View File
@@ -1,5 +1,21 @@
#!/usr/bin/env sh
#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
##
## Gradle start up script for UN*X
@@ -28,7 +44,7 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
@@ -109,8 +125,8 @@ if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
Vendored
+17 -1
View File
@@ -1,3 +1,19 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
+2
View File
@@ -0,0 +1,2 @@
before_install:
- ./gradlew setupCIWorkspace
Binary file not shown.
Binary file not shown.
Binary file not shown.
+20
View File
@@ -0,0 +1,20 @@
// Add any additional repositories for your dependencies here
repositories {
maven {
name 'GTNH Maven'
url 'http://jenkins.usrv.eu:8081/nexus/content/groups/public/'
allowInsecureProtocol
}
maven {
name 'ic2'
url 'https://maven.ic2.player.to/'
metadataSources {
mavenPom()
artifact()
}
}
maven {
url 'https://jitpack.io'
}
}
+10
View File
@@ -0,0 +1,10 @@
plugins {
id 'com.diffplug.blowdryerSetup' version '1.6.0'
}
apply plugin: 'com.diffplug.blowdryerSetup'
blowdryerSetup {
github('GTNewHorizons/ExampleMod1.7.10', 'tag', '0.1.5')
//devLocal '.' // Use this when testing config updates locally
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
@@ -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_);
}
}
@@ -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");
}
@@ -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");
}
@@ -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");
}
@@ -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();
}
@@ -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_);
}
}
@@ -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_);
}
}
@@ -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;
}
}
@@ -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;
}
@@ -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);
@@ -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();
}
@@ -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_);
}
}
@@ -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");
}
@@ -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");
}
@@ -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");
}
@@ -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;
}
@@ -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();
}
@@ -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");
}
@@ -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;
}
@@ -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;
}
@@ -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");
@@ -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;
}
@@ -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();
}
@@ -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");
@@ -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");
}
@@ -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>();
@@ -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();
}
}
@@ -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();
}
}
@@ -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);
@@ -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;
@@ -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;
}
}
@@ -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;
@@ -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);
}
@@ -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;
}
}
@@ -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;
@@ -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;
@@ -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);
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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);
}
}
@@ -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;
@@ -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);
}
@@ -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;
Loaded 100 of 353 files, more files were not shown because too many files have changed in this diff. Show more