This commit is contained in:
Pulxes-9244 committed 2022-04-22 13:21:09 +03:00
1 parent 6bf887e1dd
commit 3e8b68cc5b
818 files changed
+54643 -64147

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -39,4 +39,4 @@ Note: Recompile with -Xlint:unchecked for details.
BUILD SUCCESSFUL
Total time: 18.652 secs
Total time: 12.734 secs
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+27 -9
View File
@@ -12,7 +12,7 @@ ab.flower.aspecolus.name=Aspecolus
ab.flower.pureGladiolus.name=Pure Gladiolus
ab.flower.ardentAzarcissus.name=Ardent Azarcissus
tile.advancedSpreader.name=Natural Mana Spreader
tile.ABPlate.name=Advanced Agglomeration Plate
tile.ABPlate.name=Forge of Nidavellir
tile.lebethronWood.0.name=Lebethron Wood
tile.lebethronWood.1.name=Lebethron Wood Planks
tile.lebethronWood.2.name=Mossy Lebethron Wood Planks
@@ -76,13 +76,15 @@ item.ab.pattern9.name=Thaumim - Crafting Pattern #9
item.sprawlRod.name=Rod of Sprawl
item.autoPocketWardrobe.name=Nimble Cube
item.talismanHiddenRiches.name=Key to Hidden Wealth
item.hornPlenty.name=Horn of Plenty
item.sphereNavigation.name=Sphere of Navigation
//MISC
ab.nebulaHelm.mask=A natural look is included
botania.category.forgotten=Connecting with the past
ab.nei.alphirine=Ancient Alphirine
ab.nei.advancedPlate=Advanced aggl. plate
ab.nei.advancedPlate=Forge of Nidavellir
ab.manaCrystalCube.hud=Amount of mana in the network
ab.manaCharger.wandHud=Mana Charger
ab.manaContainer.0.hud=Mana Container
@@ -103,6 +105,9 @@ ab.gameBoard.misc.0.mult=%s wins the game
ab.gameBoard.misc.1.mult=Game ends in a draw
ab.gameBoard.misc.2.mult=%s wins the game
ab.gameBoard.misc.notPlayer=The game ends, the second player is missing
ab.nebulaRod.notTeleporting=Portal could not find the right place to move
ab.nebulaRod.notTeleportingEvent=Something prevents the portal from transporting you to your chosen location
ab.sphereNavigation.founded=Found
//ACHIEVEMENT
@@ -114,6 +119,10 @@ achievement.ab:relicPocketArmor=A fake appearance
achievement.ab:relicPocketArmor.desc=Be rewarded with Nimble Cube for your heroic deeds
achievement.ab:relicItemChest=Access to personal wealth
achievement.ab:relicItemChest.desc=Be rewarded with Key to Hidden Wealth for your heroic deeds
achievement.ab:relicHornPlenty=Good hunting call
achievement.ab:relicHornPlenty.desc=Be rewarded with Horn of Plenty for your heroic deeds
achievement.ab:relicSphereNavigation=X-Ray? Or a great relic?
achievement.ab:relicSphereNavigation.desc=Be rewarded with Sphere of Navigation for your heroic deeds
//LEXICON
@@ -127,14 +136,15 @@ botania.entry.ancientAlphirine=Ancient Alphirine
botania.tagline.ancientAlphirine=Turn the world upside down, and shake out the interesting stuff!
botania.page.ancientAlphirine0=The ancient Alphyrin is the keeper of all technology and knowledge! Wherever it is placed, it will penetrate the soil and learn everything that happened on it. <br>Chances are, you were wondering how the Elves manage the Earth's resources, and what their value is <br>Toss him your Lexicon for Alphyrin to share his knowledge!
botania.page.ancientAlphirine1=The study of history and technology is not all that Alphyrin can do! He is able to find analogues, abandoned near him, of resources from the past.<br>As soon as he discovers an analog, he will immediately start trying to recreate it, through a small portal, but it requires a certain number of attempts - the number depends on the difficulty of recreating the resource.
botania.page.ancientAlphirine2=Opening of the portal by the Ancient Alphirine
botania.page.ancientAlphirine.petalCraft=The wisest flower, by the way
botania.page.ancientAlphirine.alphirineCraft=DO NOT BREATHE IN!
botania.entry.advancedPlate=Advanced. aggl. plate
botania.entry.advancedPlate=Forge of Nidavellir
botania.tagline.advancedPlate=Created from the drawings of dwarves from Nidavellir
botania.page.advancedPlate0=The Advanced agglomeration plate is a plate for sintering materials into one piece, at the expense of mana, created by the Dwarves' drawings.<br>One of the main changes, compared to the last version of the plate, is the creation of new resources, in addition to terrastal, and another equally important one is the increased operating experience.
botania.page.advancedPlate0=Forge of Nidavellir - a really powerful Dwarf invention for fusing different materials into one whole, the main thing is to know the proportions!<br>This forge was given to the Elves, that is, it came to our land at the time of "Destruction," but... Not for long - it was soon destroyed.
botania.page.advancedPlate.craft=The Engineering Revolution
botania.page.advancedPlate.structure=A.A.plate
botania.page.advancedPlate.structure=Forge of Nidavellir
botania.page.advancedPlate.abCraft0=Creating everyone's favorite terrastal
botania.page.advancedPlate.abCraft1=Burn My Star...
@@ -153,9 +163,9 @@ botania.page.lebethronSpreader.craft=You can't have too much mana
botania.entry.mithrill=Mithrill
botania.tagline.mithrill=Mighty and indestructible metal!
botania.page.mithrill0=Mithrill - stands out for its strength among other metals, or rather its lack of it, as it can not get any damage. <br>The process of creating it is not the easiest, because it requires a very large amount of mana.
botania.page.mithrill0=Mithrill - stands out for its strength among other metals, or rather its lack of it, as it can not get any damage. <br>Such unique properties are the result of a successful proportion of Gaia Spirit and Terrasteel, with the addition of Manasteel, to balance the energy within the alloy.
botania.page.mithrill.abCraft=Where's all my mana!?
botania.page.mithrill1=The Material Destroyer is a harsh tool, capable of breaking any block in a short period of time. Its speed is so high that it was necessary to create a *Fuse* in it - that is, to turn it off/on.
botania.page.mithrill1=The Material Destroyer - a harsh tool based on a global catastrophe in the past. <br>He is perfectly capable of breaking any block almost instantly. His speed is so high that it was necessary to create a *Fuse* in him - that is, to turn him off/on.
botania.page.mithrill.craft=Break this world
botania.entry.manaContainer=Mana Container's
@@ -191,7 +201,7 @@ botania.page.manaFlower.alphirineCraft=Beautiful flower
botania.entry.mithrillSword=Blade of Space
botania.tagline.mithrillSword=Weapons capable of making jerks and doing damage
botania.page.mithrillSword0=Blade of Space is a magical weapon that requires mana to improve its abilities as well as its damage.
botania.page.mithrillSword0=Blade of Space - is an ordinary melee weapon, but as soon as you pour mana into it, it is immediately endowed with unusual magical properties. For example: Dash or Starburst <br>Note: When using the Spatial leap, the Block is unavailable for a while.
botania.page.mithrillSword.craft=Cut them all up!!!
botania.entry.dictarius=Dictarius
@@ -269,7 +279,7 @@ botania.page.gameBoard.craft=Shall we play for mana? How's that?
botania.entry.fateBoard=Fate Playing Board
botania.tagline.fateBoard=1 cube - 6 relics, makes sense. 2 cubes...
botania.page.fateBoard0=Fate Playing Board - a kind of fun, just like a normal Playing Board, but - the game requires a few Destiny Cubes.<br>As you know - by rolling the Fate Cube you can get a relic associated with that number.<br>Consequently, 2 cubes will yield up to 12 relics. [Currently up to 9, with 3 more in development]
botania.page.fateBoard0=Fate Playing Board - a kind of fun, just like a normal Playing Board, but - the game requires a few Destiny Cubes.<br>As you know - by rolling the Fate Cube you can get a relic associated with that number.<br>Consequently, 2 cubes will yield up to 12 relics. [Currently up to 11, with 1 more in development]
botania.page.fateBoard.alphirineCraft=Shall we play relics?
botania.entry.richesKey=Key to Hidden Wealth
@@ -290,4 +300,12 @@ botania.tagline.azartFlower=Don't worry, you won't be left without a home...
botania.page.azartFlower0=Ardent Azarcissus - The flower is a gambler, one of the representatives of the passive flora, to make a long story short.<br>In fact, he can make up to 8 moves at a time on the Game Board, trying to beat the board itself. If he wins, he gives mana, the amount of which depends on the difference between the sums of the numbers on the Game Board.
botania.page.azartFlower.petalCraft=Just give him the will, and he'll give you mana.
botania.entry.sphereNavigation=Sphere of Navigation
botania.tagline.sphereNavigation=It will show you and show you the way anywhere!
botania.page.sphereNavigation0=The Sphere of Navigation - is a relic with the unique property of finding a pointed through blocks and marking the location! <br>For such a pleasure it is required to pay mana, and not a small amount in the long run.
botania.entry.hornPlenty=Horn of Plenty
botania.tagline.hornPlenty=Double booty - what could be better?
botania.page.hornPlenty0=The Horn of Plenty is a relic of one of the Ases associated with hunting!<br>Use the horn to charge it, charging requires some mana. After filling with mystical powers, go hunting, each time the victim dies at your hand, there is a chance to get additional drop from this creature.
+29 -12
View File
@@ -12,7 +12,7 @@ ab.flower.aspecolus.name=Аспеколус
ab.flower.pureGladiolus.name=Чистый Гладиулос
ab.flower.ardentAzarcissus.name=Пылкий Азарцисс
tile.advancedSpreader.name=Природный распространитель маны
tile.ABPlate.name=Улучшенная агломерационная плита
tile.ABPlate.name=Кузня из Нидавеллира
tile.lebethronWood.0.name=Древесина Лебертона
tile.lebethronWood.1.name=Доски из древесины Лебертона
tile.lebethronWood.2.name=Замшелые доски из древесины Лебертона
@@ -64,7 +64,7 @@ item.botania:nebulaBoots.name=Туманные ботинки
item.freyrSlingshot.name=Рогатка Фрейра
item.nebulaRod.name=Жезл туманности
item.ab.pattern0.name=Таум - Заполнитель сборщика
item.ab.pattern1.name=Таум - Сетка крафта #1
item.ab.pattern1.name=Таум - Сетка крафта #1
item.ab.pattern2.name=Таум - Сетка крафта #2
item.ab.pattern3.name=Таум - Сетка крафта #3
item.ab.pattern4.name=Таум - Сетка крафта #4
@@ -76,13 +76,15 @@ item.ab.pattern9.name=Таум - Сетка крафта #9
item.sprawlRod.name=Жезл разрастания
item.autoPocketWardrobe.name=Куб Проворства
item.talismanHiddenRiches.name=Ключ от Скрытых Богатств
item.hornPlenty.name=Рог изобилия
item.sphereNavigation.name=Шар навигации
//MISC
ab.nebulaHelm.mask=Естественный облик включен
botania.category.forgotten=Связь с прошлым
ab.nei.alphirine=Древний альфирин
ab.nei.advancedPlate=Улучшенная аглом. плита
ab.nei.advancedPlate=Кузня из Нидавеллира
ab.manaCrystalCube.hud=Количество маны в сети
ab.manaCharger.wandHud=Зарядник маны
ab.manaContainer.0.hud=Контейнер маны
@@ -103,6 +105,9 @@ ab.gameBoard.misc.0.mult=%s побеждает в игре
ab.gameBoard.misc.1.mult=Игра завершается ничьей
ab.gameBoard.misc.2.mult=%s побеждает в игре
ab.gameBoard.misc.notPlayer=Игра завершается, отсутствует второй игрок
ab.nebulaRod.notTeleporting=Портал не смог найти подходящее место для перемещения
ab.nebulaRod.notTeleportingEvent=Что-то препятствует порталу переместить вас в выбранное место
ab.sphereNavigation.founded=Найдено:
//ACHIEVEMENT
@@ -114,6 +119,10 @@ achievement.ab:relicPocketArmor=Фальшивый облик
achievement.ab:relicPocketArmor.desc=Будьте вознаграждены Кубом Проворства за героический подвиг
achievement.ab:relicItemChest=Доступ к личному богатсву
achievement.ab:relicItemChest.desc=Будьте вознаграждены Ключом от Скрытых Богатств за героический подвиг
achievement.ab:relicHornPlenty=Зов удачной охоты
achievement.ab:relicHornPlenty.desc=Будьте вознаграждены Рогом Изобилия за героический подвиг
achievement.ab:relicSphereNavigation=X-Ray? Или отличная реликвия?
achievement.ab:relicSphereNavigation.desc=Будьте вознаграждены Шаром Навигации за героический подвиг
//LEXICON
@@ -128,14 +137,15 @@ botania.entry.ancientAlphirine=Древний Альфирин
botania.tagline.ancientAlphirine=Переверни мир, и вытряхни из него интересные вещи!
botania.page.ancientAlphirine0=Древний Альфирин - хранитель всех технологий и знаний! Куда бы его не разместили, он проникнет в почву, и узнает всё что на ней происходило. <br>Скорее всего, вам было интересно узнать, как Эльфы распоряжаются ресурсами Земли, и в чем их ценность <br>Бросьте ему свою Лексику, чтобы Альфирин поделился своими знанями!
botania.page.ancientAlphirine1=Изучение истории и технологий далеко не всё, что может Альфирин! Он способен находить аналоги, брошенных около него, ресурсов из прошлого. <br>Как только он обнаружит аналог, то сразу начнет пытаться воссоздать его, через небольшой портал, но для этого требуется определенное число попыток - количество зависит от сложности воссоздания ресурса.
botania.page.ancientAlphirine2=Открытие портала Древним Альфирином
botania.page.ancientAlphirine.petalCraft=Самый мудрый цветок, между прочим
botania.page.ancientAlphirine.alphirineCraft=НЕ ВДЫХАТЬ!
botania.entry.advancedPlate=Улучшенная аглом. плита
botania.entry.advancedPlate=Кузня из Нидавеллира
botania.tagline.advancedPlate=Создано по чертежам гномов с Нидавеллира
botania.page.advancedPlate0=Улучшенная агломерационная плита - это плита для спекания материалов в одно целое, за счет маны, созданная по чертежам Гномов.<br>Одно из главных изменений, по сравнению с прошлой версией плиты, является - создание новых ресурсов, кроме террастали, и ещё одно не менее важное - повышенный опыт эксплуатации.
botania.page.advancedPlate0=Кузня из Нидавеллира - по настоящему мощное изобретение Гномов для слияния различных материалов в одно целое, главное знать пропорции!<br>Данная кузня досталась Эльфам, то есть оказалась на нашей земле, во времена "Разрушения", Но... совсем ненадолго - её вскоре уничтожили.
botania.page.advancedPlate.craft=Инженерная революция
botania.page.advancedPlate.structure=У.А. плита
botania.page.advancedPlate.structure=Кузня из Нидавеллира
botania.page.advancedPlate.abCraft0=Создание всеми любимой террастали
botania.page.advancedPlate.abCraft1=Гори моя звездочка...
@@ -153,10 +163,10 @@ botania.page.lebethronSpreader0=Природный распространите
botania.page.lebethronSpreader.craft=Маны много не бывает
botania.entry.mithrill=Мифрилл
botania.tagline.mithrill=Слоймай этот мир, но котиков не трогай!!!!
botania.page.mithrill0=Мифрилл - выделяется своей прочностью среди других металлов, точнее ее отсутствием, так как он не может получить какие-либо повреждения. <br>Процесс его создания не из самых легких, ведь он требует весьма большое количество маны.
botania.tagline.mithrill=Сломай этот мир, но котиков не трогай!!!!
botania.page.mithrill0=Мифрилл - выделяется своей прочностью среди других металлов, точнее ее отсутствием, так как он не может получить какие-либо повреждения. <br>Такие уникальные свойства являются результатом удачной пропорции Духа Гайи и Террастали, с добавлением Манастали, для баланса энергии внутри сплава.
botania.page.mithrill.abCraft=А где вся моя мана!??
botania.page.mithrill1=Материальный Разрушитель - суровый инструмент, способный ломать любые блоки за краткий промежуток времени. Его скорость настолька высока, что было необходимо создать в нем *Предохранитель* - то есть выключать/включать его.
botania.page.mithrill1=Материальный Разрушитель - суровый инструмент, созданный по мотивам глобальной катастрофы в прошлом. <br>Он отлично способен ломать любые блоки практически моментально. Его скорость настолько высока, что было необходимо создать в нем *Предохранитель* - то есть выключать/включать его.
botania.page.mithrill.craft=Могучий и не сокрушимый металл!
botania.entry.manaContainer=Мана контейнеры
@@ -192,7 +202,7 @@ botania.page.manaFlower.alphirineCraft=Красивый цветочек
botania.entry.mithrillSword=Клинок пространства
botania.tagline.mithrillSword=Оружие, способное делать рывки, и наносить ущерб
botania.page.mithrillSword0=Клинок пространства - это обычное оружие ближнего боя, но стоит лишь влить в него ману - Оно сразу наделяется необычными магическими свойствами. Например: Рывок или Звездная Вспышка <br>Примечание: При использовании звездной вспышки, некоторое время недоступен Блок
botania.page.mithrillSword0=Клинок пространства - это обычное оружие ближнего боя, но стоит лишь влить в него ману - Оно сразу наделяется необычными магическими свойствами. Например: Рывок или Звездная Вспышка <br>Примечание: При использовании пространственного рывка, некоторое время недоступен Блок
botania.page.mithrillSword.craft=Порежь их всех!!!
botania.entry.dictarius=Диктариус
@@ -207,7 +217,7 @@ botania.page.aspecolus.petalCraft=Мини - психолог
botania.entry.nebula=Туманность
botania.tagline.nebula=Связь с космосом
botania.page.nebula0=Фрагмент туманности - это материал наполненный частью силы космоса. Это позволяет создавать неземные по мощностью инструменты и оружие.
botania.page.nebula0=Фрагмент туманности - это материал наполненный частью силы космоса. Это позволяет создавать неземные по мощности инструменты и оружие.
botania.page.nebula.abCraft=Чем больше сила, тем больше ответсвенность
botania.entry.nebulaBlaze=Удар Небулы
@@ -270,7 +280,7 @@ botania.page.gameBoard.craft=Поиграем на ману? Как тебе т
botania.entry.fateBoard=Игральная Доска Судьбы
botania.tagline.fateBoard=1 кубик - 6 реликвий, вполне логично. 2 кубика...
botania.page.fateBoard0=Игральная Доска Судьбы - своего рода развлечение, как и обычная Игральная Доска, но - партия требует несколько Кубиков Судьбы.<br>Как известно - бросая Кубик Судьбы можно получить реликвию, связанную с этим числом.<br>Следовательно, 2 кубика позволят получить до 12 реликвий. [В данный момент до 9, ещё 3 в разработке]
botania.page.fateBoard0=Игральная Доска Судьбы - своего рода развлечение, как и обычная Игральная Доска, но - партия требует несколько Кубиков Судьбы.<br>Как известно - бросая Кубик Судьбы можно получить реликвию, связанную с этим числом.<br>Следовательно, 2 кубика позволят получить до 12 реликвий. [В данный момент до 11, ещё 1 в разработке]
botania.page.fateBoard.alphirineCraft=Поиграем на реликвии?
botania.entry.richesKey=Ключ от Скрытых Богатств
@@ -291,5 +301,12 @@ botania.tagline.azartFlower=Не бойтесь, без дома не остан
botania.page.azartFlower0=Пылкий Азарцисс - цветок - игроман, один из представителей пассивной флоры - это если в кратце.<br>На деле, он может совершать до 8 ходов одновременно на Игровой Доске, пытаясь обыграть саму доску. В случае победы, он дает ману, количество которой зависит от разницы между суммами чисел на Игровой доске.
botania.page.azartFlower.petalCraft=Просто дай ему волю, а он тебе ману
botania.entry.sphereNavigation=Шар Навигации
botania.tagline.sphereNavigation=Укажет и покажет путь куда угодно!
botania.page.sphereNavigation0=Шар Навигации - реликвия обладающая уникальным свойством - находить указанный сквозь блоки и помечать местоположение! <br>За такое удовольствие требуется платить маной, и не малым количеством в долгосрочной перспективе.
botania.entry.hornPlenty=Рог изобилия
botania.tagline.hornPlenty=Двойная добыча - что может быть лучше?
botania.page.hornPlenty0=Рог Изобилия - реликвия одного из Асов, связанного с охотой!<br>Используйте рог, чтобы его зарядить, зарядка требует немного маны. После наполнения мистическими силами, отправляйтесь на охоту, каждый раз когда жертва умирает от вашей руки, появляется шанс получить дополнительный дроп с этого существа.
+9
View File
@@ -0,0 +1,9 @@
{
"boardCube": { "category": "block", "sounds":["boardCube"] },
"nebulaBlaze": { "category": "player", "sounds":["nebulaBlaze"] },
"bladeSpace": { "category": "player", "sounds":["bladeSpace"] },
"nebulaRod": { "category": "player", "sounds":["nebulaRod"] },
"hornPlentyUsing": { "category": "player", "sounds":["hornPlentyUsing"] },
"freyrSlingshot": { "category": "player", "sounds":["freyrSlingshot"] },
"lokiCubeArmor": { "category": "player", "sounds":["lokiCubeArmor"] }
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

+1 -1
View File
@@ -3,7 +3,7 @@
"modid": "AdvancedBotany",
"name": "Advanced Botany",
"description": "An addon to Botania that adds what the developers think is essential content",
"version": "1.2.3.1",
"version": "1.3.0",
"mcversion": "1.7.10",
"logoFile": "assets/ab/textures/logo.png",
"url": "Botania: http://www.botaniamod.net",
File diff suppressed because it is too large. Load diff
+4675 -11260
View File
File diff suppressed because it is too large. Load diff
@@ -1,126 +0,0 @@
package ab.common.item.equipment;
import java.awt.Color;
import ab.client.core.ClientHelper;
import ab.common.core.handler.ConfigABHandler;
import ab.common.item.ItemMod;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.init.Blocks;
import net.minecraft.item.EnumAction;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ChunkCoordinates;
import net.minecraft.util.MathHelper;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;
import vazkii.botania.api.mana.IManaUsingItem;
import vazkii.botania.api.mana.ManaItemHandler;
import vazkii.botania.common.Botania;
import vazkii.botania.common.core.helper.Vector3;
public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
public ItemNebulaRod() {
super("nebulaRod");
this.setMaxStackSize(1);
this.setNoRepair();
this.setMaxDamage(100);
}
public boolean usesMana(ItemStack stack) {
return true;
}
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
if(stack.getItemDamage() == 0)
player.setItemInUse(stack, getMaxItemUseDuration(stack));
return stack;
}
public EnumAction getItemUseAction(ItemStack par1ItemStack) {
return EnumAction.bow;
}
public void onUpdate(ItemStack stack, World world, Entity player, int par4, boolean par5) {
if(!world.isRemote && player instanceof EntityPlayer && player.ticksExisted % ConfigABHandler.nebulaWandCooldownTick == 0 && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)player, 140, true))
stack.setItemDamage(stack.getItemDamage() - 1);
}
public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
time = this.getMaxItemUseDuration(stack) - time;
boolean isFinish = time > 80;
if(time > 110 && !p.isSneaking()) {
if(!p.capabilities.isCreativeMode)
stack.setItemDamage(100);
p.stopUsingItem();
if(!p.worldObj.isRemote) {
Vec3 vec3 = p.getLook(1.0F).normalize();
MathHelper.floor_double(time);
int limitXZ = ConfigABHandler.limitXZCoords;
int posX = MathHelper.floor_double(p.posX + vec3.xCoord * 256);
int posY = MathHelper.floor_double(p.posY);
int posZ = MathHelper.floor_double(p.posZ + vec3.zCoord * 256);
ChunkCoordinates chunkcoordinates = new ChunkCoordinates(Math.min(Math.max(posX, -(limitXZ - 1)), limitXZ - 1), posY, Math.min(Math.max(posZ, -(limitXZ - 1)), limitXZ - 1));
int topY = getTopBlock(p.worldObj, posX, posZ);
chunkcoordinates.posY = topY == -1 ? posY : topY;
((EntityPlayerMP)p).playerNetServerHandler.setPlayerLocation(chunkcoordinates.posX + 0.5D, chunkcoordinates.posY + 1.6D, chunkcoordinates.posZ + 0.5D, p.rotationYaw, p.rotationPitch);
}
}
if(p.worldObj.isRemote) {
int ticks = Math.min(100, time);
int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
double tickIncrement = 360.0D / totalSpiritCount;
int speed = 8;
double wticks = (ticks * speed) - tickIncrement;
double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
Vec3 look = p.getLookVec();
float yawOffset = Minecraft.getMinecraft().thePlayer.getDisplayName() == p.getDisplayName() ? 0.0f : 1.62f;
Vector3 l = new Vector3(look.xCoord, look.yCoord + yawOffset, look.zCoord);
Vector3 player = Vector3.fromEntity(p).add(0.0f, 0.0f, 0.0f);
Vector3 v3 = new Vector3();
for(int i = 0; i < totalSpiritCount; i++) {
float size = Math.max(0.215f, ticks / 100.0f);
v3.set(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
v3.add(l.multiply(1.0f)).add(player);
wticks += tickIncrement;
int color = p.worldObj.rand.nextBoolean() ? 0x931fec : 0x4b1682;
float hsb[] = Color.RGBtoHSB(color & 255, color >> 8 & 255, color >> 16 & 255, null);
int color1 = Color.HSBtoRGB(hsb[0], hsb[1], ticks / 100.0f);
float[] colorsfx = { (color1 & 255) / 255.0f, (color1 >> 8 & 255) / 255.0f, (color1 >> 16 & 255) / 255.0f };
float motionSpeed = 0.25f * Math.min(1.0f, (time - 80) / 30.0f);
Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], 0.3F * size, isFinish ? (float)(look.xCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.yCoord * -1) * motionSpeed : 0.0f, isFinish ? (float)(look.zCoord * -1) * motionSpeed : 0.0f, 0.3F);
Botania.proxy.wispFX(p.worldObj, v3.x, v3.y, v3.z, colorsfx[0], colorsfx[1], colorsfx[2], (float)(Math.random() * 0.1F + 0.05F) * size, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, (float)(Math.random() - 0.5D) * 0.05F, 0.4F);
}
}
}
public int getMaxItemUseDuration(ItemStack par1ItemStack) {
return 72000;
}
public boolean isFull3D() {
return true;
}
public int getTopBlock(World world, int posX, int posZ) {
Chunk chunk = world.getChunkFromBlockCoords(posX, posZ);
int x = posX;
int z = posZ;
int k = chunk.getTopFilledSegment();
posX &= 15;
for(posZ &= 15; k > 0; --k) {
Block block = chunk.getBlock(posX, k, posZ);
if(!block.isAir(world, x, k, z) && block != Blocks.bedrock && block.isAir(world, x, k + 1, z) && block.isAir(world, x, k + 2, z))
return k + 1;
}
return -1;
}
}
@@ -1,243 +0,0 @@
package ab.client.core;
import java.awt.Color;
import java.nio.FloatBuffer;
import java.util.Random;
import org.lwjgl.opengl.GL11;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.ActiveRenderInfo;
import net.minecraft.client.renderer.GLAllocation;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import vazkii.botania.client.core.handler.ClientTickHandler;
import vazkii.botania.client.core.handler.HUDHandler;
import vazkii.botania.common.block.ModBlocks;
import vazkii.botania.common.core.helper.Vector3;
public class ClientHelper {
public static final ResourceLocation miscHuds = new ResourceLocation("ab:textures/misc/miscHuds.png");
private static final ResourceLocation field_147529_c = new ResourceLocation("textures/environment/end_sky.png");
private static final ResourceLocation field_147526_d = new ResourceLocation("textures/entity/end_portal.png");
private static final Random field_147527_e = new Random(31100L);
public static Minecraft mc = Minecraft.getMinecraft();
private static FloatBuffer field_147528_b = GLAllocation.createDirectFloatBuffer(16);
public static void renderCosmicBackground() {
// GL11.glDisable(GL11.GL_LIGHTING);
field_147527_e.setSeed(31100L);
float f4 = 0.24F;
for (int i = 0; i < 16; i++) {
GL11.glPushMatrix();
float f5 = (16 - i);
float f6 = 0.0625F;
float f7 = 1.0F / (f5 + 1.0F);
if (i == 0) {
mc.renderEngine.bindTexture(field_147529_c);
f7 = 0.1F;
f5 = 65.0F;
f6 = 0.125F;
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
}
if (i == 1) {
mc.renderEngine.bindTexture(field_147526_d);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_ONE, GL11.GL_ONE);
f6 = 0.5F;
}
GL11.glTranslatef(0.0f, 1.5f, 0.0f);
GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
GL11.glTexGeni(GL11.GL_R, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR);
GL11.glTexGeni(GL11.GL_Q, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_EYE_LINEAR);
GL11.glTexGen(GL11.GL_S, GL11.GL_OBJECT_PLANE, func_147525_a(1.0F, 0.0F, 0.0F, 0.0F));
GL11.glTexGen(GL11.GL_T, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 1.0F, 0.0F));
GL11.glTexGen(GL11.GL_R, GL11.GL_OBJECT_PLANE, func_147525_a(0.0F, 0.0F, 0.0F, 1.0F));
GL11.glTexGen(GL11.GL_Q, GL11.GL_EYE_PLANE, func_147525_a(0.0F, 1.0F, 0.0F, 0.0F));
GL11.glEnable(GL11.GL_TEXTURE_GEN_S);
GL11.glEnable(GL11.GL_TEXTURE_GEN_T);
GL11.glEnable(GL11.GL_TEXTURE_GEN_R);
GL11.glEnable(GL11.GL_TEXTURE_GEN_Q);
GL11.glPopMatrix();
GL11.glMatrixMode(GL11.GL_TEXTURE);
GL11.glPushMatrix();
GL11.glLoadIdentity();
GL11.glTranslatef(0.0F, (float)(Minecraft.getSystemTime() % 20000L) / 20000.0F, 0.0F);
GL11.glScalef(f6, f6, f6);
GL11.glTranslatef(0.5F, 0.5F, 0.0F);
GL11.glRotatef((i * i * 4321 + i * 9) * 2.0F, 0.0F, 0.0F, 1.0F);
GL11.glTranslatef(-0.5F, -0.5F, 0.0F);
Tessellator tessellator = Tessellator.instance;
tessellator.startDrawingQuads();
Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
float f11 = color.getRed() / 255.0F;
float f12 = color.getGreen() / 255.0F;
float f13 = color.getBlue() / 255.0F;
tessellator.setBrightness(180);
tessellator.setColorRGBA_F(f11 * f7, f12 * f7, f13 * f7, 1.0F);
tessellator.addVertex(0.0D, f4, 0.0D);
tessellator.addVertex(0.0D, f4, 1.0D);
tessellator.addVertex(1.0D, f4, 1.0D);
tessellator.addVertex(1.0D, f4, 0.0D);
tessellator.draw();
GL11.glPopMatrix();
GL11.glMatrixMode(GL11.GL_MODELVIEW);
}
GL11.glDisable(GL11.GL_BLEND);
GL11.glDisable(GL11.GL_TEXTURE_GEN_S);
GL11.glDisable(GL11.GL_TEXTURE_GEN_T);
GL11.glDisable(GL11.GL_TEXTURE_GEN_R);
GL11.glDisable(GL11.GL_TEXTURE_GEN_Q);
}
private static FloatBuffer func_147525_a(float p_147525_1_, float p_147525_2_, float p_147525_3_, float p_147525_4_) {
field_147528_b.clear();
field_147528_b.put(p_147525_1_).put(p_147525_2_).put(p_147525_3_).put(p_147525_4_);
field_147528_b.flip();
return field_147528_b;
}
public static void drawArrow(int x, int y, boolean side) {
mc.renderEngine.bindTexture(miscHuds);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 10, side ? 0 : 22, 38);
}
public static void drawChanceBar(int x, int y, int chance) {
mc.renderEngine.bindTexture(miscHuds);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0f);
vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x, y, 0.0F, 0, 0, 57, 6);
int chancePercentage = Math.max(0, (int)((chance / 100.f) * 55.0D));
vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, 55, 4);
Color color = new Color(Color.HSBtoRGB((chance) / 360.0f, ((float)Math.sin((ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2D) + 1.0F) * 0.3F + 0.4F, 1.0f));
GL11.glColor4ub((byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue(), (byte)255);
vazkii.botania.client.core.helper.RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0.0F, 0, 6, Math.min(55, chancePercentage), 4);
}
public static void renderPoolManaBar(int x, int y, int color, float alpha, int mana) {
Minecraft mc = Minecraft.getMinecraft();
int poolCount = (int)Math.floor(mana / 1000000.0D);
if(poolCount < 0)
poolCount = 0;
int onePoolMana = mana - (poolCount * 1000000);
String strPool = poolCount + "x";
int xc = x - mc.fontRenderer.getStringWidth(strPool) / 2;
int yc = y;
GL11.glPushMatrix();
GL11.glTranslatef(xc + 42.0f, yc + 5.0f, 0.0f);
RenderHelper.enableGUIStandardItemLighting();
RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
RenderHelper.disableStandardItemLighting();
GL11.glTranslatef(18.0f, 5.0f, 300.0f);
mc.fontRenderer.drawString(strPool, 0, 0, color);
GL11.glPopMatrix();
if((poolCount * 1000000) == mana)
onePoolMana = poolCount * 1000000;
HUDHandler.renderManaBar(x, y, color, alpha, onePoolMana, 1000000);
}
public static void drawPoolManaHUD(ScaledResolution res, String name, int mana, int maxMana, int color) {
Minecraft mc = Minecraft.getMinecraft();
int poolCount = (int)Math.floor(mana / 1000000.0D);
int maxPoolCount = (int)Math.floor(maxMana / 1000000.0D);
if(poolCount < 0)
poolCount = 0;
if(maxPoolCount < 0)
maxPoolCount = 0;
int onePoolMana = mana - (poolCount * 1000000);
String strPool = poolCount + "x / " + maxPoolCount + "x";
int xc = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(strPool) / 2 - 3;
int yc = res.getScaledHeight() / 2;
GL11.glPushMatrix();
GL11.glTranslatef(xc - 6.0f, yc + 30.0f, 0.0f);
RenderHelper.enableGUIStandardItemLighting();
RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModBlocks.pool), 0, 0);
RenderHelper.disableStandardItemLighting();
GL11.glTranslatef(18.0f, 4.5f, 300.0f);
mc.fontRenderer.drawStringWithShadow(strPool, 0, 0, color);
GL11.glPopMatrix();
if((poolCount * 1000000) == mana)
onePoolMana = poolCount * 1000000;
HUDHandler.drawSimpleManaHUD(color, onePoolMana, 1000000, name, res);
}
public static void setLightmapTextureCoords() {
int light = 15728880;
int lightmapX = light % 65536;
int lightmapY = light / 65536;
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
}
public static Vector3 setRotation(float angel, float vX, float vY, float vZ, Vector3 v3) {
Vector3 rVec = new Vector3(vX, vY, vZ);
Vector3 rVec1 = v3.copy().normalize();
double rAngel = Math.toRadians(angel) * 0.5f;
double sin = Math.sin(rAngel);
double x = rVec.x * sin;
double y = rVec.y * sin;
double z = rVec.z * sin;
rAngel = Math.cos(rAngel);
double d = -x * rVec1.x - y * rVec1.y - z * rVec1.z;
double d1 = rAngel * rVec1.x + y * rVec1.z - z * rVec1.y;
double d2 = rAngel * rVec1.y - x * rVec1.z + z * rVec1.x;
double d3 = rAngel * rVec1.z + x * rVec1.y - y * rVec1.x;
v3.x = d1 * rAngel - d * x - d2 * z + d3 * y;
v3.y = d2 * rAngel - d * y + d1 * z - d3 * x;
v3.z = d3 * rAngel - d * z - d1 * y + d2 * x;
return v3;
}
public static Color getCorporeaRuneColor(int posX, int posY, int posZ, int meta) {
double time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
time += (new Random((posX ^ posY ^ posZ))).nextInt(360);
float sin = (float)(Math.sin(time / 20.0f) * 0.15f) - 0.15f;
int color = 0;
switch(meta) {
case 0:
color = Color.HSBtoRGB(0.0f, 0.0f, 0.54f + (sin / 1.2f));
break;
case 1:
color = Color.HSBtoRGB(0.688f, 0.93f, 0.96f + sin - 0.15f);
break;
case 2:
color = Color.HSBtoRGB(0.983f, 0.99f, 1.0f + sin - 0.15f);
break;
case 3:
color = Color.HSBtoRGB(0.319f, 0.92f, 0.95f + sin - 0.15f);
break;
case 4:
color = Color.HSBtoRGB(0.536f, 0.53f, 0.92f + sin - 0.15f);
break;
}
return new Color(color);
}
public static void renderIcon(IIcon icon, int light) {
Tessellator tessellator = Tessellator.instance;
float f = icon.getMinU();
float f1 = icon.getMaxU();
float f2 = icon.getMinV();
float f3 = icon.getMaxV();
float f4 = 1.0F;
float f5 = 0.5F;
float f6 = 0.25F;
tessellator.startDrawingQuads();
tessellator.setNormal(0.0F, 1.0F, 0.0F);
tessellator.addVertexWithUV((0.0F - f5), (0.0F - f6), 0.0D, f, f3);
tessellator.addVertexWithUV((f4 - f5), (0.0F - f6), 0.0D, f1, f3);
tessellator.addVertexWithUV((f4 - f5), (f4 - f6), 0.0D, f1, f2);
tessellator.addVertexWithUV((0.0F - f5), (f4 - f6), 0.0D, f, f2);
tessellator.draw();
}
}
@@ -10,7 +10,7 @@ import ab.api.recipe.RecipeAdvancedPlate;
import ab.api.recipe.RecipeAncientAlphirine;
import ab.api.recipe.lexicon.AdvancedPlateCraftPage;
import ab.api.recipe.lexicon.AlphirineCraftPage;
import ab.common.block.tile.TileAgglomerationPlate;
import ab.common.block.tile.TileNidavellirForge;
import ab.common.block.tile.TileLebethronCore;
import ab.common.block.tile.TileMagicCraftCrate;
import ab.common.core.handler.ConfigABHandler;
@@ -35,11 +35,13 @@ import vazkii.botania.api.recipe.RecipePetals;
import vazkii.botania.common.Botania;
import vazkii.botania.common.block.ModBlocks;
import vazkii.botania.common.block.ModFluffBlocks;
import vazkii.botania.common.core.handler.ConfigHandler;
import vazkii.botania.common.item.ModItems;
import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
import vazkii.botania.common.lexicon.BLexiconCategory;
import vazkii.botania.common.lexicon.BLexiconEntry;
import vazkii.botania.common.lexicon.RLexiconEntry;
import vazkii.botania.common.lexicon.page.PageImage;
import vazkii.botania.common.lexicon.page.PageText;
public class RecipeListAB {
@@ -62,6 +64,7 @@ public class RecipeListAB {
public static RecipePetals dictariusRecipe;
public static RecipePetals aspecolusRecipe;
public static RecipePetals pureGladRecipe;
public static RecipePetals azartFlowerRecipe;
public static LexiconEntry advandedAgglomerationPlate;
public static LexiconEntry ancientAlphirine;
@@ -92,6 +95,7 @@ public class RecipeListAB {
public static LexiconEntry richesKey;
public static LexiconEntry cubeWardrobe;
public static LexiconEntry sprawlRod;
public static LexiconEntry azartFlower;
public static KnowledgeType forgotten;
@@ -114,12 +118,12 @@ public class RecipeListAB {
ancientAlphirine = new BLexiconEntry("ancientAlphirine", categoryForgotten);
alphirineRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ancientAlphirine"), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.rune, 1, 4), new ItemStack(ModItems.rune, 1, 5), new ItemStack(ModItems.rune, 1, 6), new ItemStack(ModItems.rune, 1, 7), new ItemStack(ModItems.petal, 1, 1), new ItemStack(ModItems.petal, 1, 4));
ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
ancientAlphirine.setPriority().setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), new PageImage("2", "ab:textures/misc/ancientAlphirine.png"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
if(ConfigABHandler.hasAbPlate) {
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " ", "MPM", "BRB", Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { " P ", "MFM", "BRB", Character.valueOf('F'), new ItemStack(Blocks.anvil), Character.valueOf('M'), new ItemStack(ModBlocks.storage), Character.valueOf('P'), new ItemStack(ModBlocks.terraPlate), Character.valueOf('B'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
advandedAgglomerationPlate = new BLexiconEntry("advancedPlate", categoryForgotten);
advandedAgglomerationPlate.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), BotaniaAPI.internalHandler.multiblockPage(".structure", TileAgglomerationPlate.makeMultiblockSet()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
advandedAgglomerationPlate.setPriority().setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] {new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()), new AdvancedPlateCraftPage(advandedAgglomerationPlate, terrasteelRecipe.getOutput(), ".abCraft0"), new AdvancedPlateCraftPage(advandedAgglomerationPlate, manaStarRecipe.getOutput(), ".abCraft1") }).setIcon(new ItemStack(BlockListAB.blockABPlate));
}
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABSpreader), new Object[] { "WMW", "PSP", "WMW", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('S'), new ItemStack(ModBlocks.spreader, 1, 3), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron, 1, 4)});
@@ -227,20 +231,24 @@ public class RecipeListAB {
fateBoard = new BLexiconEntry("fateBoard", categoryForgotten);
fateBoard.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(fateBoard, fateBoardRecipe.getOutput(), ".alphirineCraft")});
freyrSlingshot = new RLexiconEntry("freyrSlingshot", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicSlingshot);
freyrSlingshot.setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1")});
richesKey = new RLexiconEntry("richesKey", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicItemChest);
richesKey.setLexiconPages(new LexiconPage[] { new PageText("0")});
cubeWardrobe = new RLexiconEntry("cubeWardrobe", BotaniaAPI.categoryAlfhomancy, AchievementRegister.relicPocketArmor);
cubeWardrobe.setLexiconPages(new LexiconPage[] { new PageText("0")});
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemSprawlRod), new Object[] { " SC", " WS", "W ", Character.valueOf('S'), new ItemStack(ModItems.grassSeeds, 1, 32767), Character.valueOf('C'), new ItemStack(BlockListAB.blockLebethron, 1, 4), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
sprawlRod = new BLexiconEntry("sprawlRod", categoryForgotten);
sprawlRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
azartFlowerRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("ardentAzarcissus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 11), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.manaResource, 1, 5));
azartFlower = new BLexiconEntry("azartFlower", BotaniaAPI.categoryGenerationFlowers);
azartFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", azartFlowerRecipe)});
if(Botania.thaumcraftLoaded)
thaumcraft();
@@ -256,23 +264,27 @@ public class RecipeListAB {
aspecolusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("aspecolus"), new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 1), new ItemStack(ModItems.rune), new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.petal, 1, 10), new ItemStack(ModItems.petal, 1, 13));
aspecolus.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", aspecolusRecipe) }).setIcon(ItemBlockSpecialFlower.ofType("aspecolus"));
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemNebulaHelmReveal), new Object[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ConfigItems.itemGoggles)});
List<IRecipe> recipes = new ArrayList<IRecipe>();
for(int i = 1; i < 10; i++) {
boolean[][] patterns = ItemCraftingPattern.getPattern(i);
List<String> str = new ArrayList<String>();
for(int j = 0; j < patterns.length; j++) {
String str1 = "";
for(int k = 0; k < patterns[j].length; k++)
str1 += patterns[j][k] ? "T" : "H";
str.add(str1);
}
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
recipes.add(getLastRecipe());
if(ConfigABHandler.hasAutoThaum) {
List<IRecipe> recipes = new ArrayList<IRecipe>();
for(int i = 1; i < 10; i++) {
boolean[][] patterns = ItemCraftingPattern.getPattern(i);
List<String> str = new ArrayList<String>();
for(int j = 0; j < patterns.length; j++) {
String str1 = "";
for(int k = 0; k < patterns[j].length; k++)
str1 += patterns[j][k] ? "T" : "H";
str.add(str1);
}
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 1, i), new Object[] { str.get(0), str.get(1), str.get(2), Character.valueOf('T'), new ItemStack(ItemListAB.itemCraftingPattern), Character.valueOf('H'), new ItemStack(ConfigItems.itemNugget, 1, 6)});
recipes.add(getLastRecipe());
}
IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
}
IRecipe crate = GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockMagicCraftCrate), new Object[] { "TST", "WCW", "W W", Character.valueOf('W'), new ItemStack(ConfigBlocks.blockMagicalLog), Character.valueOf('S'), new ItemStack(ConfigItems.itemResource, 1, 14), Character.valueOf('T'), new ItemStack(ConfigItems.itemResource, 1, 7), Character.valueOf('C'), new ItemStack(ModBlocks.openCrate, 1, 1)});
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemCraftingPattern, 48), new Object[] { new ItemStack(Blocks.crafting_table), new ItemStack(ModBlocks.livingrock), new ItemStack(ConfigItems.itemResource, 1, 14)});
thaumAutoCraft = new BLexiconEntry("thaumAutoCraft", BotaniaAPI.categoryDevices);
thaumAutoCraft.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", crate) , BotaniaAPI.internalHandler.craftingRecipePage(".craft0", getLastRecipe()), BotaniaAPI.internalHandler.craftingRecipesPage(".craft1", recipes)});
pureGladRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("pureGladiolus"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.rune, 1, 8), new ItemStack(ModItems.petal, 1, 8), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 14), new ItemStack(ModItems.petal, 1, 5), new ItemStack(ModItems.petal, 1, 13), new ItemStack(ModItems.petal, 1, 11));
gladious = new BLexiconEntry("gladious", BotaniaAPI.categoryFunctionalFlowers);
@@ -1,95 +0,0 @@
package ab.common.core.handler;
import java.io.File;
import ab.AdvancedBotany;
import cpw.mods.fml.client.event.ConfigChangedEvent;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.entity.passive.EntitySheep;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.common.config.Property;
public class ConfigABHandler {
public static Configuration config;
public static boolean useManaChargerAnimation = true;
public static int maxContainerMana = 64000000;
public static double protectionFactorNebula = 1.0f;
public static double damageFactorSpaceSword = 1.0f;
public static int nebulaWandCooldownTick = 18;
public static boolean hasManaCharger = true;
public static boolean hasAbPlate = true;
public static int spreaderMaxMana = 128000;
public static int spreaderBurstMana = 32000;
public static String[] lockEntityListToHide = new String[] {};
public static void loadConfig(File configFile) {
config = new Configuration(configFile);
config.load();
load();
FMLCommonHandler.instance().bus().register(new ChangeListener());
}
public static void load() {
String desc = "Maximum mana capacity for Mana Container (Diluted Mana Container will receive an eighth of the set value)";
maxContainerMana = loadPropInt("Mana Container capacity", desc, maxContainerMana);
desc = "Activating the charging animation for the Mana Charger";
useManaChargerAnimation = loadPropBool("Mana Charger lighting", desc, useManaChargerAnimation);
desc = "Protection factor for nebula armour";
protectionFactorNebula = loadPropDouble("Nebula Armor Protection Factor", desc, protectionFactorNebula);
desc = "Damage factor for Space Blade";
damageFactorSpaceSword = loadPropDouble("Space Sword Damage Factor", desc, damageFactorSpaceSword);
desc = "The number of ticks needed to restore 1 unit of the Rod of Nebula strength.";
nebulaWandCooldownTick = loadPropInt("Rod of Nebula Cooldown", desc, nebulaWandCooldownTick);
desc = "Switching the Mana Charger on or off in the game";
hasManaCharger = loadPropBool("Enable Mana Charger", desc, hasManaCharger);
desc = "Enables or disables Advanced Agglomeration Plate in the game. When switched off, you need to set up recipes, for resources";
hasAbPlate = loadPropBool("Enable Adv. Agg. Plate", desc, hasAbPlate);
desc = "Maximum amount of mana held in a mana spreader";
spreaderMaxMana = loadPropInt("Spreader Max Mana", desc, spreaderMaxMana);
desc = "Amount of Mana in a Mana Burst";
spreaderBurstMana = loadPropInt("Spreader Burst Mana", desc, spreaderBurstMana);
desc = "To block a creature, type it's class name";
lockEntityListToHide = loadPropString("Blocked creatures for double drop", desc, lockEntityListToHide);
if(config.hasChanged())
config.save();
}
public static void loadPostInit() {
if(config.hasChanged())
config.save();
}
public static String[] loadPropString(String propName, String desc, String[] default_) {
Property prop = config.get("general", propName, default_);
prop.comment = desc;
return prop.getStringList();
}
public static boolean loadPropBool(String propName, String desc, boolean default_) {
Property prop = config.get("general", propName, default_);
prop.comment = desc;
return prop.getBoolean(default_);
}
public static int loadPropInt(String propName, String desc, int default_) {
Property prop = config.get("general", propName, default_);
prop.comment = desc;
return prop.getInt(default_);
}
public static double loadPropDouble(String propName, String desc, double default_) {
Property prop = config.get("general", propName, default_);
prop.comment = desc;
return prop.getDouble(default_);
}
public static class ChangeListener {
@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs) {
if(eventArgs.modID.equals(AdvancedBotany.modid))
ConfigABHandler.load();
}
}
}
@@ -1,96 +0,0 @@
package ab.client.render.tile;
import java.util.Random;
import org.lwjgl.opengl.GL11;
import ab.client.model.ModelDiceFate;
import ab.common.block.tile.TileGameBoard;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import vazkii.botania.client.core.handler.ClientTickHandler;
public class RenderTileGameBoard extends TileEntitySpecialRenderer {
private static final ModelDiceFate model = new ModelDiceFate();
private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/gameDice.png");
private static final ResourceLocation textureEnemy = new ResourceLocation("ab:textures/model/gameDice_enemy.png");
public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
if(tile != null)
time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
TileGameBoard board = (TileGameBoard)tile;
GL11.glEnable(3042);
GL11.glEnable(32826);
GL11.glBlendFunc(770, 771);
GL11.glPushMatrix();
GL11.glTranslated(x + 0.5f, y, z + 0.5f);
GL11.glRotatef(90.0f - RenderManager.instance.playerViewY, 0.0f, 1.0f, 0.0f);
for(int i = 0; i < board.slotChance.length; i++) {
if(board.slotChance[i] == 0)
continue;
time += i * 83.256f;
GL11.glPushMatrix();
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
float posX = 0.0f;
float posZ = 0.0f;
float dropAnim = (1.0f - (Math.min(100.0f, (board.clientTick[i] * board.clientTick[i] * 1.25f) + ticks) / 100.0f));
dropAnim = Math.min(1.0f, Math.max(dropAnim, 0));
float alpha = (float)Math.cos(dropAnim);
GL11.glColor4f(1.0F, 1.0F, 1.0F, alpha);
switch(i) {
case 0:
posX = 0.16f + 0.08f * dropAnim;
posZ = 0.16f + 0.08f * dropAnim;
break;
case 1:
posX = -0.16f - 0.08f * dropAnim;
posZ = 0.16f + 0.08f * dropAnim;
break;
case 2:
posX = 0.16f + 0.08f * dropAnim;
posZ = -0.16f - 0.08f * dropAnim;
break;
case 3:
posX = -0.16f - 0.08f * dropAnim;
posZ = -0.16f - 0.08f * dropAnim;
break;
}
GL11.glTranslated(posX, 0.02f + Math.sin(time / 12.0D) / 48.0D + (0.28f * dropAnim), posZ);
GL11.glScalef(0.25f, 0.25f, 0.25f);
Minecraft.getMinecraft().renderEngine.bindTexture(i > 1 ? textureEnemy : texture);
float dropAngel = 70.0f * dropAnim;
switch(board.slotChance[i]) {
case 1:
model.render(180.0f + dropAngel, 0.0f + dropAngel, 0.0f);
break;
case 2:
model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
break;
case 3:
model.render(90.0f + dropAngel, 0.0f + dropAngel, 0.0f);
break;
case 4:
model.render(270.0f + dropAngel, 0.0f + dropAngel, 0.0f);
break;
case 5:
model.render(0.0f + dropAngel, 0.0f + dropAngel, 270.0f);
break;
case 6:
model.render(0.0f + dropAngel, 0.0f + dropAngel, 90.0f);
break;
default:
model.render(0.0f + dropAngel, 0.0f + dropAngel, 0.0f);
break;
}
GL11.glPopMatrix();
}
GL11.glPopMatrix();
GL11.glEnable(32826);
GL11.glDisable(3042);
}
}
@@ -1,14 +1,19 @@
package ab.common.block.subtile;
import ab.common.block.tile.TileGameBoard;
import ab.common.lib.register.RecipeListAB;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import vazkii.botania.api.lexicon.LexiconEntry;
import vazkii.botania.api.subtile.SubTileGenerating;
import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
public class SubTileArdentAzarcissus extends SubTileGenerating {
public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
public static final ItemStack flowerStack = ItemBlockSpecialFlower.ofType("ardentAzarcissus");
int cooldown;
int workMana = 320;
@@ -35,6 +40,7 @@ public class SubTileArdentAzarcissus extends SubTileGenerating {
if(tile != null && tile instanceof TileGameBoard) {
TileGameBoard board = (TileGameBoard)tile;
if(board.isSingleGame) {
board.changeCustomStack(flowerStack);
if(!board.hasGame()) {
board.setPlayer(playerName, true);
cooldown = 120;
@@ -69,6 +75,10 @@ public class SubTileArdentAzarcissus extends SubTileGenerating {
return 0xdf3596;
}
public LexiconEntry getEntry() {
return RecipeListAB.azartFlower;
}
public void writeToPacketNBT(NBTTagCompound cmp) {
super.writeToPacketNBT(cmp);
cmp.setInteger("cooldown", this.cooldown);
@@ -1,68 +0,0 @@
package ab.common.block.subtile;
import ab.common.block.tile.TileGameBoard;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import vazkii.botania.api.subtile.SubTileGenerating;
public class SubTileArdentAzarcissus extends SubTileGenerating {
public static final String playerName = "ArdentAzarcissus#21sda2gaj91*21df#111sfq3jrns@#";
int cooldown;
int workMana = 400;
public void onUpdate() {
super.onUpdate();
World world = this.supertile.getWorldObj();
int posX = this.supertile.xCoord;
int posY = this.supertile.yCoord;
int posZ = this.supertile.zCoord;
if(world.isRemote)
return;
if(cooldown > 0) {
cooldown--;
return;
}
for(int i = -1; i <= 1; i++)
for(int f = 0; f < 2; f++)
for(int j = -1; j <= 1; j++) {
int x = posX + i;
int y = posY + f;
int z = posZ + j;
TileEntity tile = world.getTileEntity(x, y, z);
if(tile != null && tile instanceof TileGameBoard) {
TileGameBoard board = (TileGameBoard)tile;
if(board.isSingleGame) {
if(!board.hasGame()) {
board.setPlayer(playerName, true);
cooldown = 100;
} else {
if(!board.playersName[0].equals(playerName))
board.playersName[0] = playerName;
board.dropDice(playerName);
cooldown = 100;
}
}
}
}
}
public int getMaxMana() {
return 15000;
}
public int getColor() {
return 0xd2cdb2;
}
public void writeToPacketNBT(NBTTagCompound cmp) {
super.writeToPacketNBT(cmp);
cmp.setInteger("cooldown", this.cooldown);
}
public void readFromPacketNBT(NBTTagCompound cmp) {
super.readFromPacketNBT(cmp);
this.cooldown = cmp.getInteger("cooldown");
}
}
@@ -1,84 +0,0 @@
package ab.client.core.handler;
import java.awt.Color;
import org.lwjgl.opengl.GL11;
import ab.client.core.ClientHelper;
import ab.common.item.equipment.armor.ItemNebulaArmor;
import ab.common.item.equipment.armor.ItemNebulaHelm;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.ItemRenderer;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.client.event.RenderPlayerEvent;
import vazkii.botania.api.item.IPhantomInkable;
import vazkii.botania.client.core.handler.ClientTickHandler;
public class PlayerRendererHandler {
@SubscribeEvent
public void onPlayerRender(RenderPlayerEvent.Specials.Pre event) {
EntityPlayer player = event.entityPlayer;
ItemStack item = player.getCurrentArmor(3);
if(item != null && item.getItem() instanceof ItemNebulaHelm) {
Item helm = player.getCurrentArmor(3).getItem();
boolean hasPhantomInk = helm instanceof IPhantomInkable && ((IPhantomInkable)helm).hasPhantomInk(item);
if(!hasPhantomInk && ((ItemNebulaHelm)helm).enableCosmicFace(item)) {
float angelX = event.renderer.modelBipedMain.bipedHead.rotateAngleX * 180.0F / (float)Math.PI;
float angelY = event.renderer.modelBipedMain.bipedHead.rotateAngleY * 180.0F / (float)Math.PI;
GL11.glPushMatrix();
if(player.isSneaking())
GL11.glTranslatef(event.renderer.modelBipedMain.bipedHead.rotationPointX * 0.0625f, event.renderer.modelBipedMain.bipedHead.rotationPointY * 0.0625f, 0.0f);
GL11.glRotatef(angelY, 0.0F, 1.0F, 0.0F);
GL11.glRotatef(angelX, 1.0F, 0.0F, 0.0F);
renderCosmicFace();
GL11.glPopMatrix();
}
}
}
private void renderCosmicFace() {
double worldTime = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
GL11.glPushMatrix();
GL11.glEnable(GL11.GL_TEXTURE_2D);
GL11.glDisable(2884);
GL11.glPushMatrix();
GL11.glScalef(0.5f, 0.4f, 0.4f);
GL11.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
GL11.glTranslatef(-0.5f, -0.8675f, 0.0f);
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
ClientHelper.renderCosmicBackground();
GL11.glPopMatrix();
int light = 15728880;
int lightmapX = light % 65536;
int lightmapY = light / 65536;
GL11.glEnable(3042);
GL11.glBlendFunc(770, 771);
// OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightmapX, lightmapY);
(Minecraft.getMinecraft()).renderEngine.bindTexture(TextureMap.locationItemsTexture);
GL11.glTranslatef(-0.2F, -0.35F, -0.25F);
GL11.glScalef(0.4f, 0.4f, 0.4f);
float f = ItemNebulaArmor.nebulaEyes.getMinU();
float f1 = ItemNebulaArmor.nebulaEyes.getMaxU();
float f2 = ItemNebulaArmor.nebulaEyes.getMinV();
float f3 = ItemNebulaArmor.nebulaEyes.getMaxV();
Color color = Color.getHSBColor((float)Minecraft.getSystemTime() / 20.0F % 360.0F / 360.0F, 1.0F, 1.0F);
float r = color.getRed() / 510.0F;
float g = color.getGreen() / 510.0F;
float b = color.getBlue() / 510.0F;
GL11.glColor4f(0.5f + r, 0.5f + g, 0.5f + b, 0.685f + (float)Math.sin(worldTime / 50.0D) * 0.175F);
ItemRenderer.renderItemIn2D(Tessellator.instance, f1, f2, f, f3, ItemNebulaArmor.nebulaEyes.getIconWidth(), ItemNebulaArmor.nebulaEyes.getIconHeight(), 0.03125F);
GL11.glDisable(3042);
GL11.glEnable(2884);
GL11.glEnable(32826);
GL11.glPopMatrix();
}
}
Loaded 100 of 818 files, more files were not shown because too many files have changed in this diff. Show more