Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
379 commits
Select commit Hold shift + click to select a range
4c462e5
gives the user a stat boost when holding the staff
FavouriteDragon Sep 1, 2018
6fee3eb
fixed the staff being damaged when it shouldn't
FavouriteDragon Sep 1, 2018
980d2c3
power rating stuff and image compression+cleanup
FavouriteDragon Sep 1, 2018
f1432c5
updated tab textures! thanks, mnesikos!
FavouriteDragon Sep 1, 2018
058aeb0
updated chi regen and potion effects!
FavouriteDragon Sep 1, 2018
ad9c57f
code cleanup
FavouriteDragon Sep 1, 2018
da035ec
gui options! code cleanup! power rating stuff!
FavouriteDragon Sep 1, 2018
eeaab82
hopefully fixed an analytics crash and some other bugs
FavouriteDragon Sep 1, 2018
c4ea905
messages for cooldown stuff
FavouriteDragon Sep 2, 2018
1d99177
too many bug fixes ( check description)
FavouriteDragon Sep 2, 2018
6d59969
added stone slabs as bendable
FavouriteDragon Sep 2, 2018
5c9c2d9
size reduction and texture variants for earthspike
FavouriteDragon Sep 2, 2018
aaa0df5
finished texture compression
FavouriteDragon Sep 2, 2018
251eb41
texture compression and removal
FavouriteDragon Sep 2, 2018
b1909b2
cooldown stuff for all buff abilities
FavouriteDragon Sep 2, 2018
84b9716
adjusted air burst particle count and paths
FavouriteDragon Sep 2, 2018
4a8f08e
changed logo and fixed air burst lang
FavouriteDragon Sep 2, 2018
c4991c4
fixed air burst particle count
FavouriteDragon Sep 2, 2018
3748cd8
inferno punch particles; fixed crashes for fire devour
FavouriteDragon Sep 3, 2018
8baf3b3
particles; power rating logic
FavouriteDragon Sep 4, 2018
2344646
fixed texture glitches and finalized inferno punch particles
FavouriteDragon Sep 5, 2018
b6cfe1c
started fixing tick handlers and fixed some advancements
FavouriteDragon Sep 5, 2018
4d4da8c
almost done with finishing the new tick handler system
FavouriteDragon Sep 6, 2018
37bdbb5
almost done with tickhandlers
FavouriteDragon Sep 7, 2018
c00830a
DONE WOHOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
FavouriteDragon Sep 7, 2018
fc5372f
knockback fixes for water cannon, some crash fixes
FavouriteDragon Sep 8, 2018
2b20c87
fixed gold not working as a trade item; fixed rebound velocity for wa…
FavouriteDragon Sep 8, 2018
756f3c8
fixed rendering and projectile deflection
FavouriteDragon Sep 8, 2018
49c17cd
getting a new cloudburst texture
FavouriteDragon Sep 8, 2018
8e403c0
better cloudburst texture
FavouriteDragon Sep 8, 2018
3e02347
found out why it was crashing...
FavouriteDragon Sep 8, 2018
c3482a0
rendering stuff and trying to fix that super annoying tickhandler crash
FavouriteDragon Sep 9, 2018
96c3025
updating forge version
FavouriteDragon Sep 9, 2018
c46c830
removed debugging
FavouriteDragon Sep 9, 2018
d6f182a
added some extra methods and updated the air burst icon
FavouriteDragon Sep 9, 2018
8c3bbb1
gave up on name tags rendering correctly; ai for staffs, stuff for me
FavouriteDragon Sep 9, 2018
ce12173
oof- help please
FavouriteDragon Sep 9, 2018
2e2f52c
help
FavouriteDragon Sep 9, 2018
e76a235
Fix a possible crash cause
mahtaran Sep 15, 2018
88eefba
Nobody is perfect
mahtaran Sep 15, 2018
5498051
Nobody is perfect part 2
mahtaran Sep 15, 2018
282bc45
Nobody is perfect part 3
mahtaran Sep 15, 2018
a4487a7
FD/TickHandlerExperiments merge (#88)
FavouriteDragon Sep 15, 2018
b66a405
uh modern tickhandler system
FavouriteDragon Sep 15, 2018
3ea06aa
lots of bison qol changes (size, whistle, e.t.c)
FavouriteDragon Sep 16, 2018
6f74fed
ride positioning
FavouriteDragon Sep 17, 2018
1f8164b
fixed dimensions, size, rider offset
FavouriteDragon Sep 18, 2018
d8443eb
fixed scaling for bison models and bending icons
FavouriteDragon Sep 18, 2018
4fc44b9
better gui for cycling
FavouriteDragon Sep 18, 2018
8b3df0b
improved gui
FavouriteDragon Sep 18, 2018
df51d71
Update this with the newer version from the `dev` branch
mahtaran Sep 18, 2018
27eb651
And remove this
mahtaran Sep 18, 2018
2c3c98c
And fix dis
mahtaran Sep 18, 2018
22e58a7
This command is unnecessary now
mahtaran Sep 18, 2018
addbea1
Fix this again
mahtaran Sep 18, 2018
75af996
Fix this again
mahtaran Sep 18, 2018
a24ab5b
And fix this again
mahtaran Sep 18, 2018
adcf3e3
Update EntitySkyBison.java
mahtaran Sep 18, 2018
675fc2f
Fix this
mahtaran Sep 18, 2018
f39ba6b
Should probably add this
mahtaran Sep 18, 2018
368ee10
uh I'm confused as to why this is a commit
FavouriteDragon Sep 19, 2018
b5c6c56
recipes for firebending, npc stuff
FavouriteDragon Sep 19, 2018
5ce96e6
got shockwave mostly done and earthbending recipe
FavouriteDragon Sep 22, 2018
22ca286
fixed some scroll stuff
FavouriteDragon Sep 22, 2018
41330f1
way better shockwave stuff
FavouriteDragon Sep 22, 2018
8e417ce
finally got it mostly working
FavouriteDragon Sep 22, 2018
a0adfdd
slowly refactoring smash handlers and air burst to use the new system
FavouriteDragon Sep 22, 2018
2867ac6
created a fire shockwave since particles can't be set ;-;
FavouriteDragon Sep 22, 2018
e397572
oof why is this so hard
FavouriteDragon Sep 22, 2018
ea5f3fe
i now have ingenious particle spawning
FavouriteDragon Sep 22, 2018
2f0cb27
FINALLY GOT A GOOD SYSTEM THAT'LL BE EFFICIENT HELL YEAH
FavouriteDragon Sep 22, 2018
71f682e
REFACTORING REEEEEE and import cleanup
FavouriteDragon Sep 22, 2018
30306bf
ok did refactoring for almost everything with the new system
FavouriteDragon Sep 23, 2018
80ef66d
did final refactoring with new shockwave system
FavouriteDragon Sep 23, 2018
091de42
almost done with shockwave, just some particle adjustments left
FavouriteDragon Sep 23, 2018
0d4510a
added a much needed method to PerformanceScore
FavouriteDragon Sep 23, 2018
c121942
refactoring, optimisation, airburst levels
FavouriteDragon Sep 23, 2018
16c9a71
ok about to head to bed- just testing something
FavouriteDragon Sep 23, 2018
de50ca5
import statement cleanup+particle stuff
FavouriteDragon Sep 23, 2018
0e77c7f
so many unused import statements xD
FavouriteDragon Sep 23, 2018
d66790f
particle stuff and import statement cleanup
FavouriteDragon Sep 23, 2018
4db1c45
quick extra curly brace messing up stuff
FavouriteDragon Sep 23, 2018
f374b39
fixed some performance stuff
FavouriteDragon Sep 23, 2018
b1af3ed
air burst knockback adjustments
FavouriteDragon Sep 23, 2018
42cfebb
fixed a future crash and xp gain
FavouriteDragon Sep 23, 2018
85fe93f
Now caches the usernames, should fix some things
mahtaran Sep 23, 2018
7238cb9
Added PlayerData debugging
mahtaran Sep 23, 2018
cb17f99
Welp
mahtaran Sep 23, 2018
8623ff4
Let the REEEEEEing begin
mahtaran Sep 23, 2018
81cbedd
particles for air jump
FavouriteDragon Sep 23, 2018
3a8c7b2
MOAR DEBUGGING
mahtaran Sep 23, 2018
e9959bd
fixed particles for air jump
FavouriteDragon Sep 23, 2018
06ef377
Because stuff
FavouriteDragon Sep 23, 2018
84d0227
Whoopsie daisy
mahtaran Sep 23, 2018
653c467
fixed mahtaran's debugging
FavouriteDragon Sep 23, 2018
db2b36a
MOAR DEBUGGING
mahtaran Sep 23, 2018
5264a3c
better air jump particles
FavouriteDragon Sep 23, 2018
bbb1d39
You know the drill
mahtaran Sep 23, 2018
6dee1f1
Debugging, merge conflicts, air jump stuff
FavouriteDragon Sep 23, 2018
b820edf
Make IDs no longer dynamic
mahtaran Sep 23, 2018
dfd3dd4
cleanup code
FavouriteDragon Sep 23, 2018
319d4d3
Update AirParticleSpawner.java
mahtaran Sep 23, 2018
4928d5e
Update FireParticleSpawner.java
mahtaran Sep 23, 2018
5ac7eb5
Update FlamethrowerUpdateTick.java
mahtaran Sep 23, 2018
afc7432
Update AirParticleSpawner.java
mahtaran Sep 23, 2018
05010ab
Update AirParticleSpawner.java
mahtaran Sep 23, 2018
ae201a0
Update FlamethrowerUpdateTick.java
mahtaran Sep 23, 2018
6ff054f
Update FireParticleSpawner.java
mahtaran Sep 23, 2018
c793c6f
Update WaterSkateHandler.java
mahtaran Sep 23, 2018
a5d2add
Now let's speed this up
mahtaran Sep 23, 2018
b95b6b8
TADAAAA
mahtaran Sep 23, 2018
8d2ab31
required imports and a tiny mistake from mahtaran
FavouriteDragon Sep 23, 2018
546ae0b
MOAR
mahtaran Sep 23, 2018
b2a7b73
uh the new system broke air and fire jump
FavouriteDragon Sep 23, 2018
2055046
level stuff for airbenders
FavouriteDragon Sep 24, 2018
6943d78
Fix error
mahtaran Sep 24, 2018
f79a2f7
earthspike scaling, damage, and fixing spawning on air
FavouriteDragon Sep 25, 2018
9051a17
i is confuzzled (also fixed maths)
FavouriteDragon Sep 25, 2018
b327ded
added fire resistance for firebenders
FavouriteDragon Sep 25, 2018
96bc2d2
fixed a crash, debugging
FavouriteDragon Sep 25, 2018
0335c50
this explosion is hella beautiful; shockwave improvements
FavouriteDragon Sep 25, 2018
3efa2a9
getting an amazing shockwave
FavouriteDragon Sep 25, 2018
ba01610
adjusted particle amount for INCINERATE
FavouriteDragon Sep 25, 2018
b31b9aa
collision and damage improvements for airblade and inferno punch
FavouriteDragon Sep 26, 2018
54080af
EARTHSPIKE SIZE VARIATION LET'S GOOOO
FavouriteDragon Sep 26, 2018
13ac109
fixed numerous death bugs, improved sizing
FavouriteDragon Sep 26, 2018
b8cb4e2
adjusted sizing and death
FavouriteDragon Sep 26, 2018
36d2955
fixed an extra earthspike spawning
FavouriteDragon Sep 26, 2018
36a52f1
removed some debugging
FavouriteDragon Sep 26, 2018
cc0c31f
debugging, positioning, collision
FavouriteDragon Sep 26, 2018
b236dec
fixed knockback, damage, xp scaling, and the handler not being remove…
FavouriteDragon Sep 27, 2018
7c2f6b7
fixed tick handler spawning, formatting, imports, knockback
FavouriteDragon Sep 27, 2018
60db9c6
bug fixing, formatting, element categorizing
FavouriteDragon Sep 27, 2018
bf2d4aa
Mnes/bison (#89)
Mnesikos Sep 28, 2018
6810058
added a reminder for earthspike
FavouriteDragon Sep 28, 2018
ba7c5e4
fixed some sitting offset
FavouriteDragon Sep 28, 2018
2762679
significantly increased the number of biomes sky bison spawn in
FavouriteDragon Sep 28, 2018
4df4caa
added some sitting chat messages
FavouriteDragon Sep 29, 2018
48ea720
fixed up some collision and bender stuff
FavouriteDragon Sep 29, 2018
aba6e04
ability scaling depending on age for bison
FavouriteDragon Sep 29, 2018
3c3b0c2
ability ai depends on age
FavouriteDragon Sep 29, 2018
985cd04
adjusted ai and some firebending stuff
FavouriteDragon Sep 29, 2018
fd7c038
fixed some potential collision bugs
FavouriteDragon Sep 29, 2018
3a3641c
updated a bunch of collisions and made some methods public
FavouriteDragon Sep 29, 2018
edcd0ca
fixed some collision and adjusted some damage
FavouriteDragon Sep 29, 2018
d027f11
collision, hitbox, and damage fixes
FavouriteDragon Sep 30, 2018
f83ba96
so fire resistance makes you resistant to avatar fire attacks
FavouriteDragon Sep 30, 2018
4ace6a9
fixed some damage source and language translations
FavouriteDragon Sep 30, 2018
ca3ebe4
Reminders and hopefully made fire abilities work on firebenders again
FavouriteDragon Sep 30, 2018
7867905
made the fire resistance only active during daytime
FavouriteDragon Sep 30, 2018
5e8f50e
FD Is not going to like this
mahtaran Oct 1, 2018
e19c4bc
I failed at this
FavouriteDragon Oct 2, 2018
de31ecb
HELP
FavouriteDragon Oct 2, 2018
86c5527
DEBUGGING
FavouriteDragon Oct 2, 2018
f8ad003
ME
mahtaran Oct 2, 2018
752e296
OhShitArcaneScrewedUpAgain.png
mahtaran Oct 2, 2018
3b099b8
Massive changes once again
mahtaran Oct 2, 2018
1ca47bc
Ordered it to fix a crash
mahtaran Oct 2, 2018
be525d0
removed most of the obvious debugging
FavouriteDragon Oct 2, 2018
16c0183
WOHOOO WE DID IT
FavouriteDragon Oct 2, 2018
a232e75
hopefully fixed an error
FavouriteDragon Oct 2, 2018
97bc320
adjusted particle amount and some other stuff
FavouriteDragon Oct 2, 2018
36bfef1
particles for air burst
FavouriteDragon Oct 2, 2018
683b0de
hopefully reduced some lag and fixed some errors
FavouriteDragon Oct 2, 2018
9fe5678
fixed a bison npe
FavouriteDragon Oct 2, 2018
2ac9fbb
formatting
FavouriteDragon Oct 2, 2018
c1edf17
halp
FavouriteDragon Oct 3, 2018
253aa24
removed some debugging
FavouriteDragon Oct 3, 2018
4c5b319
set up dev environment server and particle settings
FavouriteDragon Oct 3, 2018
02cebc9
debugging
FavouriteDragon Oct 4, 2018
3105f3b
AHHHH this is annoying
FavouriteDragon Oct 4, 2018
3fe1c4c
halp
FavouriteDragon Oct 5, 2018
a94f1c2
particle speed adjustments
FavouriteDragon Oct 5, 2018
b4c0185
commented out unused config stuff
FavouriteDragon Oct 5, 2018
27b774f
airburst cleanup, removed unused config usage
FavouriteDragon Oct 5, 2018
69b213e
adjusted particles for inferno punch INCINERATE
FavouriteDragon Oct 5, 2018
d13ae11
Debugging
mahtaran Oct 5, 2018
0d4d966
documentation adjustments
FavouriteDragon Oct 5, 2018
ab3ae01
Possible fix
mahtaran Oct 5, 2018
97dfd6e
i think I fixed it?
FavouriteDragon Oct 5, 2018
56fac6e
ok actually probably fixed it (code now does what luka wanted)
FavouriteDragon Oct 5, 2018
f14b0c2
FIXED THE ERROR+REMOVED DEBUGGINGGGGG
FavouriteDragon Oct 5, 2018
9a8115d
miscellaneous bug fixes and debugging removal
FavouriteDragon Oct 5, 2018
ef3039e
bug fixes for shockwave, speed increase for explosive pillar
FavouriteDragon Oct 5, 2018
aead080
bug fixing, particle adjustments, started entity air slash
FavouriteDragon Oct 5, 2018
af34cf7
miscellaneous shockwave and particle tweaks
FavouriteDragon Oct 5, 2018
b4bfbdb
fixed some death glitches
FavouriteDragon Oct 5, 2018
572f663
fixed some water skate glitches
FavouriteDragon Oct 6, 2018
8a9f7a1
Improved particles for lightning spear+fixed a bug for particles
FavouriteDragon Oct 6, 2018
23af1cb
better knokback and particles for lightning spear
FavouriteDragon Oct 6, 2018
19ea316
tried adjusting collision for cloudburst and lightningspear
FavouriteDragon Oct 6, 2018
d7148ac
got rid of some debugging, element categorization
FavouriteDragon Oct 7, 2018
a4e871e
Added some debugging for weird behaviour
mahtaran Oct 7, 2018
7e73dd5
more damage sources+translations
FavouriteDragon Oct 10, 2018
08f075e
collision and damage cleanup
FavouriteDragon Oct 10, 2018
d44f825
fixed some ability path errors and buffed air burst's damage
FavouriteDragon Oct 11, 2018
cde75e0
uh what github is confused(air burst damage)
FavouriteDragon Oct 11, 2018
ae5a43b
added some info for cloudburst, adjusted lang file
FavouriteDragon Oct 11, 2018
98d7724
fixed some plants not being bendable
FavouriteDragon Oct 11, 2018
af2dac9
fixed combo damage not working properly, added some lang file info on…
FavouriteDragon Oct 11, 2018
51f4300
more info for water arc
FavouriteDragon Oct 11, 2018
b11d69a
hopefully fixed skating on lava, more config utilities
FavouriteDragon Oct 11, 2018
9299f30
massively improve water cannon raytrace
FavouriteDragon Oct 11, 2018
a4b1415
HECKIN COOL PARTICLES+better raytrace
FavouriteDragon Oct 12, 2018
fc74155
earthspike damage scaling for hardness, particles for water cannon
FavouriteDragon Oct 12, 2018
998e391
particle adjustments and formatting
FavouriteDragon Oct 12, 2018
ad03c9a
fixed a crash on servers
FavouriteDragon Oct 12, 2018
6189e49
commented out entityairslash for now
FavouriteDragon Oct 12, 2018
5cb5ac9
commented out some debugging for now
FavouriteDragon Oct 12, 2018
eabfa3c
fire resistance passive
FavouriteDragon Oct 12, 2018
9d561a6
lots of code cleanup
FavouriteDragon Oct 12, 2018
cc29593
even more code cleanup, formatting
FavouriteDragon Oct 12, 2018
5938c7a
code cleanup
FavouriteDragon Oct 12, 2018
0deeda1
particles for lightning arc
FavouriteDragon Oct 12, 2018
c8d2b50
updated particles for water cannon (aesthetics+reduced lag)
FavouriteDragon Oct 12, 2018
2bd90b5
fixed particles, sizing, collision, e.t.c for water cannon
FavouriteDragon Oct 12, 2018
d1dd5ba
config for water cannon particles
FavouriteDragon Oct 12, 2018
7443ae4
adjusted some speed for fireball
FavouriteDragon Oct 12, 2018
c51d5c9
some speed adjustments+code cleanup
FavouriteDragon Oct 12, 2018
c9b9cac
working on reducing air bubble glitchines+getting rid of crashes
FavouriteDragon Oct 12, 2018
d245318
upgraded velocity and air bubble glitchiness
FavouriteDragon Oct 12, 2018
aabc9dc
fixed knockback and adjusted hovering
FavouriteDragon Oct 12, 2018
a72ca19
adjusted some particles for water cannon and lightning arc
FavouriteDragon Oct 12, 2018
cd1a46f
increased performance max+min
FavouriteDragon Oct 12, 2018
219a5e6
help xD
FavouriteDragon Oct 12, 2018
ccb52d7
fixed a cleanse bug
FavouriteDragon Oct 13, 2018
558a96f
tried and failed to redo wave
FavouriteDragon Oct 13, 2018
2bde962
hopefully fixed a bunch of render issues, code cleanup
FavouriteDragon Oct 13, 2018
182eb37
nerfed floating block's damage
FavouriteDragon Oct 13, 2018
db601d8
hopefully fixed some water cannon render issues
FavouriteDragon Oct 13, 2018
a0499a4
adjusted inferno punch particles and fixed some lang file stuff
FavouriteDragon Oct 13, 2018
db3083c
ok finished lightning arc's explosion- it'll only happen upon collidi…
FavouriteDragon Oct 13, 2018
55a3553
adjusted earthspike's performance amount
FavouriteDragon Oct 13, 2018
efe012a
the wall lang file no longer lies
FavouriteDragon Oct 13, 2018
8d3e1f6
fixed cloudburst damage and reduced air bubble glitchiness
FavouriteDragon Oct 13, 2018
4506364
fixed fire jump and inferno punch glitches, lang file
FavouriteDragon Oct 13, 2018
8675f65
fixed fire arc boomerang not working properly
FavouriteDragon Oct 14, 2018
8ab7754
Mnes/Mobs (#93)
Mnesikos Oct 14, 2018
aa19e5e
added a config list for what water arc can break
FavouriteDragon Oct 14, 2018
ccafd97
fixed numerous summoning crashes
FavouriteDragon Oct 14, 2018
1a5f21e
fixed some collision with lightning arc
FavouriteDragon Oct 14, 2018
6900694
adjusted the fire resistance passive so you have to have a high power…
FavouriteDragon Oct 14, 2018
af22de1
fixed mobs falling throuhg the world, changed "large thunderbolts", r…
FavouriteDragon Oct 14, 2018
a843047
adjusted air blade's position
FavouriteDragon Oct 14, 2018
9ee8ef0
fixed a collision error with fire arc
FavouriteDragon Oct 14, 2018
67dfd4c
fixed knockback amounts for entityshockwave
FavouriteDragon Oct 14, 2018
20aa7d6
miscellaneous knockback adjustments and improvements
FavouriteDragon Oct 15, 2018
e4a063e
knockback height adjustments
FavouriteDragon Oct 15, 2018
78e2bb6
adjusted some knockback height
FavouriteDragon Oct 15, 2018
7c1074b
oof
FavouriteDragon Oct 20, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,24 @@ buildscript {
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
classpath "com.github.jengelman.gradle.plugins:shadow:1.2.3"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.2"
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.4"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2"
}
}
plugins {
id "org.sonarqube" version "2.2"
id "org.sonarqube" version "2.6.2"
}

apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'com.github.johnrengelman.shadow'

// Needs this for IntelliJ to recognize assets folder
idea {
module {
inheritOutputDirs = true
}
}

ext.configFile = file('build.properties')
ext.config = parseConfig(configFile)

Expand All @@ -34,6 +41,7 @@ sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

dependencies {
//todo:Update dependencies
compile files("libs/joml/joml-1.8.1.jar")
compile files("libs/yaml/snakeyaml-1.16.jar");
}
Expand Down
4 changes: 2 additions & 2 deletions build.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version=a5.4
version=a5.9
mappings=snapshot_20171003
forge=1.12.2-14.23.4.2712
forge=1.12.2-14.23.4.2751
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Aug 02 12:46:21 PDT 2018
#Sun Sep 23 20:07:31 CEST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
28 changes: 17 additions & 11 deletions src/main/java/com/crowsofwar/avatar/AvatarMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.crowsofwar.avatar.common.*;
import com.crowsofwar.avatar.common.analytics.AvatarAnalytics;
import com.crowsofwar.avatar.common.bending.Abilities;
import com.crowsofwar.avatar.common.bending.BendingAi;
import com.crowsofwar.avatar.common.bending.lightning.AbilityLightningRaze;
import com.crowsofwar.avatar.common.bending.BendingStyles;
import com.crowsofwar.avatar.common.bending.air.*;
Expand Down Expand Up @@ -69,6 +70,7 @@
import net.minecraftforge.fml.common.registry.EntityRegistry;
import net.minecraftforge.fml.relauncher.Side;

import static com.crowsofwar.avatar.common.config.ConfigMobs.MOBS_CONFIG;
import static com.crowsofwar.avatar.common.config.ConfigStats.STATS_CONFIG;
import static net.minecraft.init.Biomes.*;
import static net.minecraftforge.fml.common.registry.EntityRegistry.registerEgg;
Expand Down Expand Up @@ -221,10 +223,10 @@ public void init(FMLInitializationEvent e) {
registerEntity(EntityFireball.class, "Fireball");
registerEntity(EntityAirblade.class, "Airblade");
registerEntity(EntityAirBubble.class, "AirBubble");
registerEntity(EntityFirebender.class, "Firebender", 0xffffff, 0xffffff);
registerEntity(EntityAirbender.class, "Airbender", 0xffffff, 0xffffff);
registerEntity(EntitySkyBison.class, "SkyBison", 0xffffff, 0xffffff);
registerEntity(EntityOtterPenguin.class, "OtterPenguin", 0xffffff, 0xffffff);
registerEntity(EntityFirebender.class, "Firebender", 0xB0171F, 0xFFFF00);
registerEntity(EntityAirbender.class, "Airbender", 0xffffff,0xDDA0DD);
registerEntity(EntitySkyBison.class, "SkyBison", 0xffffff, 0x8B5A00);
registerEntity(EntityOtterPenguin.class, "OtterPenguin", 0xffffff, 0x104E8B);
registerEntity(AvatarEntityItem.class, "Item");
registerEntity(EntityIceShield.class, "iceshield");
registerEntity(EntityIceShard.class, "iceshard");
Expand All @@ -240,18 +242,22 @@ public void init(FMLInitializationEvent e) {
registerEntity(EntitySandstorm.class, "Sandstorm");
registerEntity(EntityExplosionSpawner.class, "ExplosionSpawner");
registerEntity(EntityBoulder.class, "Boulder");
registerEntity(EntityLightningSpawner.class, "LightningSpawnerr");
registerEntity(EntityLightningSpawner.class, "LightningSpawner");
registerEntity(EntityShockwave.class, "Shockwave");

EntityRegistry.addSpawn(EntitySkyBison.class, 5, 3, 6, EnumCreatureType.CREATURE, //
EXTREME_HILLS, MUTATED_SAVANNA);
EntityRegistry.addSpawn(EntityOtterPenguin.class, 4, 5, 9, EnumCreatureType.CREATURE, //
EntityRegistry.addSpawn(EntitySkyBison.class, 5, 1, 3, EnumCreatureType.CREATURE, //
SAVANNA_PLATEAU, EXTREME_HILLS, BIRCH_FOREST_HILLS, TAIGA_HILLS, ICE_MOUNTAINS, REDWOOD_TAIGA_HILLS, MUTATED_EXTREME_HILLS,
MUTATED_EXTREME_HILLS_WITH_TREES, EXTREME_HILLS_WITH_TREES, EXTREME_HILLS_EDGE);
EntityRegistry.addSpawn(EntityOtterPenguin.class, 10, 3, 6, EnumCreatureType.CREATURE, //
COLD_BEACH, ICE_PLAINS, ICE_MOUNTAINS, MUTATED_ICE_FLATS);
EntityRegistry.addSpawn(EntityOstrichHorse.class, 5, 3, 6, EnumCreatureType.CREATURE, //
EntityRegistry.addSpawn(EntityOstrichHorse.class, 5, 1, 3, EnumCreatureType.CREATURE, //
DESERT, DESERT_HILLS, SAVANNA, SAVANNA_PLATEAU, PLAINS);

// Second loading required since other mods blocks might not be
// Second loading required since other mods blocks and items might not be
// registered
STATS_CONFIG.loadBlocks();
MOBS_CONFIG.loadLists();
ConfigMobs.load();

proxy.init();

Expand All @@ -273,7 +279,7 @@ private <MSG extends AvatarPacket<MSG>> void registerPacket(Class<MSG> packet, S

private void registerEntity(Class<? extends Entity> entity, String name) {
EntityRegistry.registerModEntity(new ResourceLocation("avatarmod", name), entity, name,
nextEntityID++, this, 128, 3, true);
nextEntityID++, this, 256, 3, true);
}

private void registerEntity(Class<? extends Entity> entity, String name, int primary, int secondary) {
Expand Down
97 changes: 35 additions & 62 deletions src/main/java/com/crowsofwar/avatar/client/AvatarClientProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,54 +17,41 @@

package com.crowsofwar.avatar.client;

import com.crowsofwar.avatar.AvatarInfo;
import com.crowsofwar.avatar.AvatarLog;
import com.crowsofwar.avatar.AvatarLog.WarningType;
import com.crowsofwar.avatar.AvatarMod;
import com.crowsofwar.avatar.client.gui.AnalyticsWarningGui;
import com.crowsofwar.avatar.client.gui.AvatarUiRenderer;
import com.crowsofwar.avatar.client.gui.GuiBisonChest;
import com.crowsofwar.avatar.client.gui.PreviewWarningGui;
import com.crowsofwar.avatar.client.gui.skills.GetBendingGui;
import com.crowsofwar.avatar.client.gui.skills.SkillsGui;
import com.crowsofwar.avatar.client.particles.AvatarParticleAir;
import com.crowsofwar.avatar.client.particles.AvatarParticleFlames;
import com.crowsofwar.avatar.client.render.*;
import com.crowsofwar.avatar.client.render.iceprison.RenderIcePrison;
import com.crowsofwar.avatar.common.AvatarCommonProxy;
import com.crowsofwar.avatar.common.AvatarParticles;
import com.crowsofwar.avatar.common.controls.IControlsHandler;
import com.crowsofwar.avatar.common.controls.KeybindingWrapper;
import com.crowsofwar.avatar.common.data.AvatarPlayerData;
import com.crowsofwar.avatar.common.entity.*;
import com.crowsofwar.avatar.common.entity.mob.*;
import com.crowsofwar.avatar.common.gui.AvatarGui;
import com.crowsofwar.avatar.common.gui.AvatarGuiHandler;
import com.crowsofwar.avatar.common.network.IPacketHandler;
import com.crowsofwar.avatar.common.network.packets.PacketSRequestData;
import com.crowsofwar.avatar.common.particle.ClientParticleSpawner;
import com.crowsofwar.gorecore.data.PlayerDataFetcher;
import com.crowsofwar.gorecore.data.PlayerDataFetcherClient;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiMainMenu;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.*;
import net.minecraft.client.multiplayer.PlayerControllerMP;
import net.minecraft.client.particle.ParticleManager;
import net.minecraft.client.settings.KeyBinding;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.IThreadListener;
import net.minecraft.world.World;

import net.minecraftforge.client.event.GuiOpenEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.client.FMLClientHandler;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.fml.relauncher.*;

import com.crowsofwar.avatar.*;
import com.crowsofwar.avatar.AvatarLog.WarningType;
import com.crowsofwar.avatar.client.gui.*;
import com.crowsofwar.avatar.client.gui.skills.*;
import com.crowsofwar.avatar.client.particles.*;
import com.crowsofwar.avatar.client.render.*;
import com.crowsofwar.avatar.client.render.iceprison.RenderIcePrison;
import com.crowsofwar.avatar.common.*;
import com.crowsofwar.avatar.common.controls.*;
import com.crowsofwar.avatar.common.data.AvatarPlayerData;
import com.crowsofwar.avatar.common.entity.*;
import com.crowsofwar.avatar.common.entity.mob.*;
import com.crowsofwar.avatar.common.gui.*;
import com.crowsofwar.avatar.common.network.IPacketHandler;
import com.crowsofwar.avatar.common.network.packets.PacketSRequestData;
import com.crowsofwar.avatar.common.particle.ClientParticleSpawner;
import com.crowsofwar.gorecore.data.*;

import java.lang.reflect.Field;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

import static com.crowsofwar.avatar.common.config.ConfigAnalytics.ANALYTICS_CONFIG;
import static com.crowsofwar.avatar.common.config.ConfigClient.CLIENT_CONFIG;
Expand All @@ -78,7 +65,7 @@ public class AvatarClientProxy implements AvatarCommonProxy {
private ClientInput inputHandler;
private PlayerDataFetcher<AvatarPlayerData> clientFetcher;
private boolean displayedMainMenu;
private List<KeyBinding> allKeybindings;
private Map<String, KeyBinding> allKeybindings;

@Override
public void preInit() {
Expand Down Expand Up @@ -106,8 +93,7 @@ public void preInit() {
registerEntityRenderingHandler(EntityWaterArc.class, RenderWaterArc::new);
registerEntityRenderingHandler(EntityAirGust.class, RenderAirGust::new);
registerEntityRenderingHandler(EntityRavine.class, RenderRavine::new);
registerEntityRenderingHandler(EntityFlames.class,
rm -> new RenderFlames(rm, new ClientParticleSpawner()));
registerEntityRenderingHandler(EntityFlames.class, rm -> new RenderFlames(rm, new ClientParticleSpawner()));
registerEntityRenderingHandler(EntityWave.class, RenderWave::new);
registerEntityRenderingHandler(EntityWaterBubble.class, RenderWaterBubble::new);
registerEntityRenderingHandler(EntityWallSegment.class, RenderWallSegment::new);
Expand All @@ -132,14 +118,11 @@ public void preInit() {
registerEntityRenderingHandler(EntityExplosionSpawner.class, RenderNothing::new);
registerEntityRenderingHandler(EntityLightningSpawner.class, RenderLightningSpawner::new);
registerEntityRenderingHandler(EntityAvatarLightning.class, RenderAvatarLightning::new);
registerEntityRenderingHandler(EntityShockwave.class, RenderNothing::new);


registerEntityRenderingHandler(EntityAirbender.class,
rm -> new RenderHumanBender(rm, "airbender", 7));
registerEntityRenderingHandler(EntityFirebender.class,
rm -> new RenderHumanBender(rm, "firebender", 1));
registerEntityRenderingHandler(EntityWaterbender.class,
rm -> new RenderHumanBender(rm, "waterbender", 1));
registerEntityRenderingHandler(EntityAirbender.class, rm -> new RenderHumanBender(rm, "airbender", 7));
registerEntityRenderingHandler(EntityFirebender.class, rm -> new RenderHumanBender(rm, "firebender", 1));
//registerEntityRenderingHandler(EntityWaterbender.class, rm -> new RenderHumanBender(rm, "waterbender", 1));

}

Expand Down Expand Up @@ -167,9 +150,10 @@ public void init() {
ParticleManager pm = mc.effectRenderer;

if (CLIENT_CONFIG.useCustomParticles) {
pm.registerParticle(AvatarParticles.getParticleFlames().getParticleID(),
AvatarParticleFlames::new);
pm.registerParticle(AvatarParticles.getParticleFlames().getParticleID(), AvatarParticleFlames::new);
pm.registerParticle(AvatarParticles.getParticleAir().getParticleID(), AvatarParticleAir::new);
pm.registerParticle(AvatarParticles.getParticleRestore().getParticleID(), AvatarParticleRestore::new);
pm.registerParticle(AvatarParticles.getParticleElectricity().getParticleID(), AvatarParticleElectricity::new);
}

}
Expand All @@ -189,8 +173,7 @@ public AvatarGui createClientGui(int id, EntityPlayer player, World world, int x
return new GuiBisonChest(player.inventory, bison);

} else {
AvatarLog.warn(WarningType.WEIRD_PACKET, player.getName()
+ " tried to open skybison inventory, was not found. BisonId: " + bisonId);
AvatarLog.warn(WarningType.WEIRD_PACKET, player.getName() + " tried to open skybison inventory, was not found. BisonId: " + bisonId);
}
}
if (id == AvatarGuiHandler.GUI_ID_GET_BENDING) {
Expand Down Expand Up @@ -235,19 +218,11 @@ public void onMainMenu(GuiOpenEvent e) {

@Override
public KeybindingWrapper createKeybindWrapper(String keybindName) {

if (allKeybindings == null) {
initAllKeybindings();
}

KeyBinding kb = null;
for (KeyBinding candidate : allKeybindings) {
if (candidate.getKeyDescription().equals(keybindName)) {
kb = candidate;
break;
}
}

KeyBinding kb = allKeybindings.get(keybindName);
return kb == null ? new KeybindingWrapper() : new ClientKeybindWrapper(kb);

}
Expand All @@ -266,18 +241,16 @@ public boolean isOptifinePresent() {
* Finds all keybindings list via reflection. Performance-wise this is ok
* since only supposed to be called once, after keybindings are registered
*/
@SuppressWarnings("unchecked")
private void initAllKeybindings() {
try {

Field field = KeyBinding.class.getDeclaredFields()[0];
field.setAccessible(true);
Map<String, KeyBinding> kbMap = (Map<String, KeyBinding>) field.get(null);
this.allKeybindings = kbMap.entrySet().stream().map(Map.Entry::getValue).collect(Collectors.toList());
allKeybindings = (Map<String, KeyBinding>) field.get(null);

} catch (Exception ex) {
AvatarLog.error(
"Could not load all keybindings list by using reflection. Will probably have serious problems",
ex);
AvatarLog.error("Could not load all keybindings list by using reflection. Will probably have serious problems", ex);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public static void register() {
register(AvatarItems.itemWaterPouch, i);
}
register(AvatarItems.itemBisonWhistle);
register(AvatarItems.airbenderStaff);
for (int i = 0; i <= 3; i++) {
register(AvatarItems.itemBisonArmor, i);
register(AvatarItems.itemBisonSaddle, i);
Expand Down
Loading