1.7.10 - 1.3.1.2
1.12.2 - alpha
No files matched your search
@@ -31,10 +31,12 @@ public class EntityProjectileSpaceBurst extends EntityThrowable {
|
||||
|
||||
public EntityProjectileSpaceBurst(World world) {
|
||||
super(world);
|
||||
setSize(0.0F, 0.0F);
|
||||
}
|
||||
|
||||
public EntityProjectileSpaceBurst(EntityLivingBase thrower) {
|
||||
super(thrower.world, thrower);
|
||||
setSize(0.0F, 0.0F);
|
||||
}
|
||||
|
||||
protected void entityInit() {
|
||||
|
||||
@@ -100,9 +100,9 @@ public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
|
||||
ClientSoundHandler.playSound(p, SoundEvents.BLOCK_PORTAL_AMBIENT, SoundCategory.PLAYERS, 1.2F, 1.0F, 40);
|
||||
boolean isFinish = time > 80;
|
||||
int ticks = Math.min(100, time);
|
||||
int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 26);
|
||||
int totalSpiritCount = (int)Math.max(3, ticks / 100.0f * 18);
|
||||
double tickIncrement = 360.0D / totalSpiritCount;
|
||||
int speed = 9;
|
||||
int speed = 8;
|
||||
double wticks = (ticks * speed) - tickIncrement;
|
||||
double r = Math.sin((ticks) / 100.0D) * Math.max(0.75f, 1.4D * ticks / 100.0f);
|
||||
Vec3d look = p.getLookVec();
|
||||
@@ -111,7 +111,7 @@ public class ItemNebulaRod extends ItemMod implements IManaUsingItem {
|
||||
Vector3 player = Vector3.fromEntity(p);
|
||||
for(int i = 0; i < totalSpiritCount; i++) {
|
||||
float size = Math.max(0.215f, ticks / 100.0f);
|
||||
Vector3 v3 = new Vector3(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.6f);
|
||||
Vector3 v3 = new Vector3(Math.sin(wticks * Math.PI / 180.0D) / 1.825f * r, Math.cos(wticks * Math.PI / 180.0D) * r, 0.8f);
|
||||
v3 = ClientHelper.setRotation(p.rotationPitch, 1.0f, 0.0f, 0.0f, v3);
|
||||
v3 = ClientHelper.setRotation(-p.rotationYaw, 0.0f, 1.0f, 0.0f, v3);
|
||||
v3 = v3.add(l.multiply(1.0f)).add(player);
|
||||
|
||||
@@ -5,7 +5,10 @@ import javax.annotation.Nonnull;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.client.util.ITooltipFlag;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
@@ -22,17 +25,21 @@ import net.minecraft.item.ItemSword;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ActionResult;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.EnumActionResult;
|
||||
import net.minecraft.util.EnumHand;
|
||||
import net.minecraft.util.NonNullList;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.SoundCategory;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
import net.minecraft.util.math.MathHelper;
|
||||
import net.minecraft.util.math.Vec3d;
|
||||
import net.minecraft.util.text.TextFormatting;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.client.model.ModelLoader;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
|
||||
import net.minecraftforge.fml.common.FMLCommonHandler;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
@@ -63,7 +70,26 @@ public class ItemSpaceBlade extends ItemSword implements IModelRegister, IRankIt
|
||||
this.setRegistryName(new ResourceLocation("ab", LibItemNames.SPACE_BLADE));
|
||||
this.setUnlocalizedName(LibItemNames.SPACE_BLADE);
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
// this.addPropertyOverride(new ResourceLocation("ab", "enabled"), (itemStack, world, entityLivingBase) -> isEnabledMode(itemStack) ? 1.0F : 0.0F);
|
||||
this.addPropertyOverride(new ResourceLocation("ab", "enabled"), (stack, world, entity) -> isEnabledMode(stack) ? 1.0F : 0.0F);
|
||||
}
|
||||
|
||||
public boolean hitEntity(ItemStack stack, EntityLivingBase entity, @Nonnull EntityLivingBase attacker) {
|
||||
if(!attacker.world.isRemote && entity != null && attacker instanceof EntityPlayer) {
|
||||
if(getLevel(stack) >= 3 && isEnabledMode(stack)) {
|
||||
float size = getLevel(stack) >= 4 ? (getLevel(stack) >= 5 ? 3.5f : 2.5f) : 1.5f;
|
||||
AxisAlignedBB axis = (new AxisAlignedBB(entity.posX - size, entity.posY - 1.7F, entity.posZ - size, entity.posX + size, entity.posY + 1.7F, entity.posZ + size));
|
||||
List<EntityLivingBase> entities = entity.world.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getName().equals(attacker.getName()) || (FMLCommonHandler.instance().getMinecraftServerInstance() != null && !FMLCommonHandler.instance().getMinecraftServerInstance().isPVPEnabled())))
|
||||
continue;
|
||||
else if(living.hurtTime == 0) {
|
||||
float damage = getSwordDamage(stack);
|
||||
living.attackEntityFrom(DamageSource.causePlayerDamage((EntityPlayer)attacker), damage);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.hitEntity(stack, entity, attacker);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@@ -115,6 +141,26 @@ public class ItemSpaceBlade extends ItemSword implements IModelRegister, IRankIt
|
||||
NetworkHandler.sendPacketToSpaceBurst();
|
||||
}
|
||||
|
||||
public int getEntityLifespan(ItemStack itemStack, World world) {
|
||||
return Integer.MAX_VALUE;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation(ItemStack stack, World world, List<String> list, ITooltipFlag flags) {
|
||||
String rank = I18n.format("botania.rank" + getLevel(stack), new Object[0]);
|
||||
String rankFormat = I18n.format("botaniamisc.toolRank", new Object[] { rank });
|
||||
list.add(rankFormat.replaceAll("&", "\u00A7"));
|
||||
if(getMana(stack) == Integer.MAX_VALUE)
|
||||
list.add(TextFormatting.DARK_AQUA + I18n.format("abmisc.spaceBlade.maximumMana", new Object[0]));
|
||||
if(GuiScreen.isShiftKeyDown()) {
|
||||
int level = getLevel(stack);
|
||||
list.add((level >= 1 ? TextFormatting.GREEN : "") + I18n.format("abmisc.spaceBlade.bladeInfo.0", new Object[0]));
|
||||
list.add((level >= 2 ? TextFormatting.GREEN : "") + I18n.format("abmisc.spaceBlade.bladeInfo.1", new Object[0]));
|
||||
list.add((level >= 3 ? TextFormatting.GREEN : "") + I18n.format("abmisc.spaceBlade.bladeInfo.LEVEL".replaceAll("LEVEL", Integer.toString(level < 3 ? 2 : level - 1)), new Object[0]));
|
||||
} else
|
||||
list.add(I18n.format("botaniamisc.shiftinfo", new Object[0]).replaceAll("&", "\u00A7"));
|
||||
}
|
||||
|
||||
public static boolean spaceBurstAttack(EntityPlayer player) {
|
||||
if(!player.world.isRemote && !player.getHeldItemMainhand().isEmpty() && player.getHeldItemMainhand().getItem() == ItemListAB.itemSpaceBlade && player.getCooledAttackStrength(0.0F) == 1.0F && ManaItemHandler.requestManaExactForTool(player.getHeldItemMainhand(), player, 120, true)) {
|
||||
EntityProjectileSpaceBurst spaceBurst = new EntityProjectileSpaceBurst(player);
|
||||
@@ -186,6 +232,10 @@ public class ItemSpaceBlade extends ItemSword implements IModelRegister, IRankIt
|
||||
return ItemNBTHelper.getBoolean(stack, "isEnabledMode", false);
|
||||
}
|
||||
|
||||
private void changeEnableMode(ItemStack stack) {
|
||||
ItemNBTHelper.setBoolean(stack, "isEnabledMode", !isEnabledMode(stack));
|
||||
}
|
||||
|
||||
public int[] getLevels() {
|
||||
return ItemSpaceBlade.RANK_LEVELS;
|
||||
}
|
||||
@@ -249,4 +299,12 @@ public class ItemSpaceBlade extends ItemSword implements IModelRegister, IRankIt
|
||||
public boolean usesMana(ItemStack stack) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean showDurabilityBar(ItemStack stack) {
|
||||
return getRechargeTick(stack) != 0;
|
||||
}
|
||||
|
||||
public double getDurabilityForDisplay(ItemStack stack) {
|
||||
return (float)getRechargeTick(stack) / (float)MAX_RECHARGE_TICK;
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,13 @@
|
||||
{
|
||||
"parent": "minecraft:item/handheld",
|
||||
"textures":
|
||||
{
|
||||
"layer0": "ab:items/space_blade_0",
|
||||
"textures": {
|
||||
"layer0": "ab:items/space_blade",
|
||||
"layer1": "ab:items/space_blade_overlay"
|
||||
}
|
||||
},
|
||||
"overrides": [{
|
||||
"predicate": {
|
||||
"ab:enabled": 1
|
||||
},
|
||||
"model": "ab:item/space_blade_enabled"
|
||||
}]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"parent": "minecraft:item/handheld",
|
||||
"textures": {
|
||||
"layer0": "ab:items/space_blade_enabled",
|
||||
"layer1": "ab:items/space_blade_overlay"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
@@ -21,7 +21,7 @@ Note: Some input files use unchecked or unsafe operations.
|
||||
Note: Recompile with -Xlint:unchecked for details.
|
||||
1 warning
|
||||
|
||||
:processResources UP-TO-DATE
|
||||
:processResources
|
||||
:classes
|
||||
:jar
|
||||
:compileTestJava UP-TO-DATE
|
||||
@@ -39,4 +39,4 @@ Note: Recompile with -Xlint:unchecked for details.
|
||||
|
||||
BUILD SUCCESSFUL
|
||||
|
||||
Total time: 15.048 secs
|
||||
Total time: 10.463 secs
|
||||
@@ -1,4 +1,4 @@
|
||||
//Russian translate
|
||||
//English translate
|
||||
|
||||
//Tab
|
||||
|
||||
@@ -53,7 +53,7 @@ item.mithrillManaRing.name=Mithrill Mana Ring
|
||||
item.nebulaManaRing.name=Nebula Mana Ring
|
||||
item.terraHoe.name=Terrahoe
|
||||
item.manaFlower.name=Mana Flower
|
||||
item.blackHalo.name=Black Hole Talisman Halo
|
||||
item.blackHalo.name=Black Hole Box
|
||||
item.nebulaBlaze.name=Nebula Blaze
|
||||
item.antigravityCharm.name=Sphere of Attraction
|
||||
item.botania:nebulaHelm.name=Nebula Helmet
|
||||
@@ -80,6 +80,14 @@ item.hornPlenty.name=Horn of Plenty
|
||||
item.sphereNavigation.name=Sphere of Navigation
|
||||
item.itemAquaSword.name=Blade of Sea
|
||||
|
||||
//FLOWER LORE
|
||||
|
||||
ab.flower.ancientAlphirine.reference=Knows when you first got the Lexicon
|
||||
ab.flower.dictarius.reference=It's like he has no tongue, but he's chatty...
|
||||
ab.flower.aspecolus.reference=Everything tends to start...
|
||||
ab.flower.pureGladiolus.reference=The outcome of unsuccessful node creation
|
||||
ab.flower.ardentAzarcissus.reference=He once lost his honor
|
||||
|
||||
//MISC
|
||||
|
||||
ab.nebulaHelm.mask=A natural look is included
|
||||
@@ -109,6 +117,8 @@ 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
|
||||
abmisc.fateBoard.info0=The opportunity to play on this board, he dreamed of
|
||||
abmisc.fateBoard.info1=every Elf, hoping to get a valuable prize...
|
||||
|
||||
//ACHIEVEMENT
|
||||
|
||||
@@ -174,9 +184,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>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.mithrill.abCraft=Gaia Spirit Ingot [Remake]
|
||||
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.page.mithrill.craft=The hip never breaks :(
|
||||
|
||||
botania.entry.manaContainer=Mana Container's
|
||||
botania.tagline.manaContainer=A mana depot for madmen
|
||||
@@ -189,8 +199,8 @@ botania.page.manaContainer.alphirineCraft=The speed of sound is you?
|
||||
|
||||
botania.entry.manaCrystalCube=Mana Crystal Cube
|
||||
botania.tagline.manaCrystalCube=Every nerd's personal mana manager
|
||||
botania.page.manaCrystalCube0=It's not always convenient to run around and check every mana cube, wondering how much there is in the end. That's what the Crystal Mana Cube was designed and created for! <br>It shows the mana of all pools or other accumulators that have a spark.
|
||||
botania.page.manaCrystalCube.craft=Where's the spark?
|
||||
botania.page.manaCrystalCube0=It's not always convenient to run around and check every mana cube, wondering how much there is in the end. That's what the Crystal Mana Cube was designed and created for! <br>It shows the mana of all pools or other accumulators that have a spark, while the cube itself does not need it.
|
||||
botania.page.manaCrystalCube.craft=Magical arithmetic
|
||||
|
||||
botania.entry.terraHoe=Terrahoe
|
||||
botania.tagline.terraHoe=Self-help training for plants
|
||||
@@ -210,9 +220,10 @@ botania.page.manaFlower.craft=Economy is the best friend
|
||||
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 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.tagline.mithrillSword=Mobility in battle never hurts
|
||||
botania.page.mithrillSword0=Blade of Space - is a melee weapon that uses mana to communicate with the cosmic forces, the more mana in the blade, the stronger the connection. <br>The power of connection to cosmic forces is divided into Ranks, like Terra Shatterer. Each rank unlocks a new magical property for the Space Blade, more on the next page.
|
||||
botania.page.mithrillSword1=Description of the magical properties: <br>Starburst - a projectile filled with star power, released at the swing of the sword. <br>Spatial leap - a jerk in the direction of the player's gaze, performed by pressing the RCM<br>Note: The player cannot use a block, during blade reloads.
|
||||
botania.page.mithrillSword.craft=It'll look great in your hand!
|
||||
|
||||
botania.entry.dictarius=Dictarius
|
||||
botania.tagline.dictarius=Turns everything around in one word, be careful
|
||||
@@ -228,16 +239,16 @@ botania.page.aspecolus.petalCraft=Mini psychologist
|
||||
botania.entry.nebula=Nebula
|
||||
botania.tagline.nebula=The connection to the cosmos
|
||||
botania.page.nebula0=A nebula fragment is a material filled with part of the power of space. It allows you to create instruments and weapons that are unearthly in power.
|
||||
botania.page.nebula.abCraft=The greater the power, the greater the responsibility
|
||||
botania.page.nebula.abCraft=Ichor for Botania?
|
||||
|
||||
botania.entry.nebulaBlaze=Nebula Blaze
|
||||
botania.tagline.nebulaBlaze=The Foggy Mayhem
|
||||
botania.page.nebulaBlaze0=Nebula Blaze - is a magical weapon that is used when someone is really getting to you. Just point it at the target and fire the projectile! If you're not good at pointing, the projectile will help you a little!
|
||||
botania.page.nebulaBlaze.craft=Space strike?
|
||||
|
||||
botania.entry.blackHalo=Black Hole Talisman Halo
|
||||
botania.entry.blackHalo=Black Hole Box
|
||||
botania.tagline.blackHalo=The Lord of Black Holes
|
||||
botania.page.blackHalo0=Black Hole Talisman Halo - allows you to wear 12 black hole talismans in 1 slot! This allows you to comfortably go to the mine and not only.
|
||||
botania.page.blackHalo0=Black Hole Box - A handy invention for every advanced Elf to carry up to 12 Black Hole Talismans in 1 slot. <br>To put the Black Hole Talisman in the Black Hole Box - you need to have it in the Hotbar, and you need a given type of block in the Talisman.
|
||||
botania.page.blackHalo.craft=A stonemason's dream
|
||||
|
||||
botania.entry.antigravityCharm=Sphere of attraction
|
||||
@@ -254,7 +265,10 @@ botania.entry.nebulaArmor=Nebula Armor
|
||||
botania.tagline.nebulaArmor=Unbreakable Nerd outfit
|
||||
botania.page.nebulaArmor0=Nebula Armor is a powerful nerf gear created with Nebula Fragments and Terrastal armor. <br>Each piece of equipment has its own unique properties, which depend on the amount of mana, the less mana, the weaker the protective properties of the armor.
|
||||
botania.page.nebulaArmor1=Characteristics of each armor item: <br>Nebula Helmet - boosts health <br>Nebula Chestplate - allows the wearer to fly, and also has a throwback resistance <br>Nebula Leggings - increase jump height <br>Nebula Boots - accelerate the host
|
||||
botania.page.nebulaArmor.craft=Shall we fly?
|
||||
botania.page.nebulaArmor.craft0=Face of Space
|
||||
botania.page.nebulaArmor.craft1=Shall we fly?
|
||||
botania.page.nebulaArmor.craft2=Where are my pants?
|
||||
botania.page.nebulaArmor.craft3=Runner's slippers!
|
||||
|
||||
botania.entry.freyrSlingshot=Freyr Slingshot
|
||||
botania.tagline.freyrSlingshot=&mLust&0 Love and flowers
|
||||
@@ -262,9 +276,13 @@ botania.page.freyrSlingshot0=Freyr Slingshot - one of Pantheon's mythical items.
|
||||
botania.page.freyrSlingshot1=In addition, when a Tree is hit by Natural Flash, it is enveloped in an instant by a previously unknown vines!<br>1) Fertile Liana - speeds up the growth of the seeds underneath<br>2) The Glowing Fertile Liana is the counterpart of the Fertile Liana, but is also capable of generating gold nuggets!
|
||||
|
||||
botania.entry.engineerHopper=Engineer Hopper
|
||||
botania.tagline.engineerHopper=Hide not pretty mechanisms deep underground! Make it beautiful!
|
||||
botania.page.engineerHopper0=Engineer Hopper is a real boon to designer engineers! Use the forest staff to set up the transfer of items from point A to point B.<br>According to preliminary information from Alphirine - such funnels were used in many advanced worlds, such as Asgard and Nidavellir.
|
||||
botania.page.engineerHopper.alphirineCraft=Hopper &mthe future&0 the past
|
||||
botania.tagline.engineerHopper=Hide not beautiful mechanisms deep underground! Make it beautiful!
|
||||
botania.page.engineerHopper0=Engineer Hopper is a real boon for designers-engineers! Thanks to it - you can safely hide the mechanisms, from prying eyes, or just for aesthetic pleasure.<br>According to preliminary information from Alphirine - such funnels were used in many advanced worlds, such as Asgard and Nidavellir.
|
||||
botania.page.engineerHopper1=See the item descriptions on the following pages.
|
||||
botania.page.engineerHopper2=Point 1 - a place to specify the storage facility from which things will be taken for transportation. <br>Point 2 - A place to specify the vault where things will come in. <br>Point 3 - Wand of the Forest icon: shows where you can bind the vault.
|
||||
botania.page.engineerHopper3=Binding the vault to the Engineer Hopper: <br>Step 1 - SHIFT + RCM on the hopper. <br>Step 2 - SHIFT + RCM on the vault. <br>RCM on the hopper - changes the location to indicate a vault.
|
||||
botania.page.engineerHopper4=Note 1: Binding a vault to an Engineer Hopper takes the side of the vault that you selected when binding into account in the further operation of the hopper. <br>Note 2: The Engineer Hopper cannot pick up things that are above it as a normal Hopper does, due to a technical difference in design.
|
||||
botania.page.engineerHopper.alphirineCraft=Hopper of the &mfuture&0 past
|
||||
|
||||
botania.entry.nebulaRod=Rod of Nebula
|
||||
botania.tagline.nebulaRod=You're not afraid of portals, are you? Some people can't stand them, and ride the horse...
|
||||
@@ -313,7 +331,7 @@ botania.page.azartFlower.petalCraft=Just give him the will, and he'll give you m
|
||||
|
||||
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.page.sphereNavigation0=Sphere of Navigation is a relic with the unique property of finding the specified block, 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?
|
||||
|
||||
@@ -53,7 +53,7 @@ item.mithrillManaRing.name=Мифрилловое кольцо маны
|
||||
item.nebulaManaRing.name=Туманное кольцо маны
|
||||
item.terraHoe.name=Террамотыга
|
||||
item.manaFlower.name=Цветок маны
|
||||
item.blackHalo.name=Круговой талисман черной дыры
|
||||
item.blackHalo.name=Коробка Черной Дыры
|
||||
item.nebulaBlaze.name=Удар Небулы
|
||||
item.antigravityCharm.name=Сфера притяжения
|
||||
item.botania:nebulaHelm.name=Туманный шлем
|
||||
@@ -80,6 +80,14 @@ item.hornPlenty.name=Рог изобилия
|
||||
item.sphereNavigation.name=Шар навигации
|
||||
item.itemAquaSword.name=Клинок Моря
|
||||
|
||||
//FLOWER LORE
|
||||
|
||||
ab.flower.ancientAlphirine.reference=Знает когда ты впервые получил Лексикон
|
||||
ab.flower.dictarius.reference=Вроде без языка - а болтливый...
|
||||
ab.flower.aspecolus.reference=Все стремится к началу...
|
||||
ab.flower.pureGladiolus.reference=Исход неудачного создания узла
|
||||
ab.flower.ardentAzarcissus.reference=Однажды он проиграл свою честь
|
||||
|
||||
//MISC
|
||||
|
||||
ab.nebulaHelm.mask=Естественный облик включен
|
||||
@@ -109,6 +117,8 @@ ab.gameBoard.misc.notPlayer=Игра завершается, отсутству
|
||||
ab.nebulaRod.notTeleporting=Портал не смог найти подходящее место для перемещения
|
||||
ab.nebulaRod.notTeleportingEvent=Что-то препятствует порталу переместить вас в выбранное место
|
||||
ab.sphereNavigation.founded=Найдено:
|
||||
abmisc.fateBoard.info0=Об возможности сыграть на этой доске, мечтал
|
||||
abmisc.fateBoard.info1=каждый Эльф, в надежде получить ценный приз...
|
||||
|
||||
//ACHIEVEMENT
|
||||
|
||||
@@ -136,17 +146,15 @@ entity.AdvancedBotany.entitySeed=Снаряд разрастания
|
||||
|
||||
//LEXICON
|
||||
|
||||
ab.lexicon.structure=Структура
|
||||
|
||||
botania.knowledge.ab_forgotten=&9Забытые&7 знания
|
||||
|
||||
ab.name.alpherine.craft=Древний Альфирин
|
||||
|
||||
botania.entry.ancientAlphirine=Древний Альфирин
|
||||
botania.tagline.ancientAlphirine=Переверни мир, и вытряхни из него интересные вещи!
|
||||
botania.page.ancientAlphirine0=Древний Альфирин - хранитель всех технологий и знаний! Куда бы его не разместили, он проникнет в почву, и узнает всё что на ней происходило. <br>Скорее всего, вам было интересно узнать, как Эльфы распоряжаются ресурсами Земли, и в чем их ценность <br>Бросьте ему свою Лексику, чтобы Альфирин поделился своими знанями!
|
||||
botania.page.ancientAlphirine0=Древний Альфирин - хранитель всех технологий и знаний! Куда бы его не разместили, он проникнет в почву, и узнает всё что на ней происходило. <br>Скорее всего, вам было интересно узнать, как Эльфы распоряжаются ресурсами Земли, и в чем их ценность. <br>Бросьте ему свою Лексику, чтобы Альфирин поделился своими знанями!
|
||||
botania.page.ancientAlphirine1=Изучение истории и технологий далеко не всё, что может Альфирин! Он способен находить аналоги, брошенных около него, ресурсов из прошлого. <br>Как только он обнаружит аналог, то сразу начнет пытаться воссоздать его, через небольшой портал, но для этого требуется определенное число попыток - количество зависит от сложности воссоздания ресурса.
|
||||
botania.page.ancientAlphirine2=Открытие портала Древним Альфирином
|
||||
botania.page.ancientAlphirine2=Открытие портала Древним Альфирином.
|
||||
botania.page.ancientAlphirine.petalCraft=Самый мудрый цветок, между прочим
|
||||
botania.page.ancientAlphirine.alphirineCraft=НЕ ВДЫХАТЬ!
|
||||
|
||||
@@ -174,9 +182,9 @@ botania.page.lebethronSpreader.craft=Маны много не бывает
|
||||
botania.entry.mithrill=Мифрилл
|
||||
botania.tagline.mithrill=Сломай этот мир, но котиков не трогай!!!!
|
||||
botania.page.mithrill0=Мифрилл - выделяется своей прочностью среди других металлов, точнее ее отсутствием, так как он не может получить какие-либо повреждения. <br>Такие уникальные свойства являются результатом удачной пропорции Духа Гайи и Террастали, с добавлением Манастали, для баланса энергии внутри сплава.
|
||||
botania.page.mithrill.abCraft=А где вся моя мана!??
|
||||
botania.page.mithrill.abCraft=Слиток Духа Гайи [Remake]
|
||||
botania.page.mithrill1=Материальный Разрушитель - суровый инструмент, созданный по мотивам глобальной катастрофы в прошлом. <br>Он отлично способен ломать любые блоки практически моментально. Его скорость настолько высока, что было необходимо создать в нем *Предохранитель* - то есть выключать/включать его.
|
||||
botania.page.mithrill.craft=Могучий и не сокрушимый металл!
|
||||
botania.page.mithrill.craft=Бедрок так и не ломает :(
|
||||
|
||||
botania.entry.manaContainer=Мана контейнеры
|
||||
botania.tagline.manaContainer=Хранилище маны для безумцев
|
||||
@@ -189,8 +197,8 @@ botania.page.manaContainer.alphirineCraft=Скорость звука - это
|
||||
|
||||
botania.entry.manaCrystalCube=Кристаллический куб маны
|
||||
botania.tagline.manaCrystalCube=Личный менеджер маны каждого ботаника
|
||||
botania.page.manaCrystalCube0=Не всегда удобно бегать и сверять каждый накопитель маны, думая сколько в итоге имеется. Для этого и был спроектирован и создан - Кристаллический куб маны! <br>Он показывает ману всех бассейнов или иных накопителей, у которых имеется искра.
|
||||
botania.page.manaCrystalCube.craft=А где искра?
|
||||
botania.page.manaCrystalCube0=Не всегда удобно бегать и сверять каждый накопитель маны, думая сколько в итоге имеется. Для этого и был спроектирован и создан - Кристаллический куб маны! <br>Он показывает ману всех бассейнов или иных накопителей, у которых имеется искра, при этом самому кубу она не требуется.
|
||||
botania.page.manaCrystalCube.craft=Магическая арифметика
|
||||
|
||||
botania.entry.terraHoe=Террамотыга
|
||||
botania.tagline.terraHoe=Тренинг по самостоятельности для растений
|
||||
@@ -210,9 +218,10 @@ botania.page.manaFlower.craft=Экономия - лучший друг
|
||||
botania.page.manaFlower.alphirineCraft=Красивый цветочек
|
||||
|
||||
botania.entry.mithrillSword=Клинок пространства
|
||||
botania.tagline.mithrillSword=Оружие, способное делать рывки, и наносить ущерб
|
||||
botania.page.mithrillSword0=Клинок пространства - это обычное оружие ближнего боя, но стоит лишь влить в него ману - Оно сразу наделяется необычными магическими свойствами. Например: Рывок или Звездная Вспышка <br>Примечание: При использовании пространственного рывка, некоторое время недоступен Блок
|
||||
botania.page.mithrillSword.craft=Порежь их всех!!!
|
||||
botania.tagline.mithrillSword=Мобильность в бою никогда не помешает
|
||||
botania.page.mithrillSword0=Клинок пространства - это оружие ближнего боя, использующее ману для связи с космическими силами, чем больше маны в клинке, тем сильнее связь. <br>Мощность связи с космическими силами разделена на Ранги, как у Землекрушителя. Каждый ранг открывает новое магическое свойство для Клинка Пространства, подробнее на следующей странице.
|
||||
botania.page.mithrillSword1=Описание магических свойств: <br>Звездная вспышка - снаряд наполненный звездной силой, выпускаемый при взмахе мечем. <br>Пространственный скачок - рывок в сторону взгляда игрока, совершаемый при нажатии ПКМ <br>Примечание: Игрок не может использовать блок, во время перезарядки клинка.
|
||||
botania.page.mithrillSword.craft=Отлично будет смотреться в вашей руке!
|
||||
|
||||
botania.entry.dictarius=Диктариус
|
||||
botania.tagline.dictarius=Перевернет одним словом все вокруг, будьте осторожны
|
||||
@@ -235,9 +244,9 @@ botania.tagline.nebulaBlaze=Туманный беспредел
|
||||
botania.page.nebulaBlaze0=Удар Небулы - это магическое оружие, которое используется в случаях, когда вас кто-то сильно достает. Просто наведитесь на цель и выпустите снаряд! Если с наводкой у вас плохо, то снаряд вам слегка поможет!
|
||||
botania.page.nebulaBlaze.craft=Космическая вертуха?
|
||||
|
||||
botania.entry.blackHalo=Круговой тал. чер. дыры
|
||||
botania.entry.blackHalo=Коробка Черной Дыры
|
||||
botania.tagline.blackHalo=Властелин черных дыр
|
||||
botania.page.blackHalo0=Круговой талисман черной дыры - позволяет носить 12 талисманов черной дыры в 1 слоте! Это позволяет комфортно отправляться в шахту и не только.
|
||||
botania.page.blackHalo0=Коробка Черной Дыры - удобное изобретение для каждого продвинутого Эльфа, которое позволяет носить до 12 Талисманов Черной Дыры в 1 слоте. <br>Чтобы положить Талисман Черной Дыры в Коробку Черной Дыры - нужно иметь его в Хотбаре, а также необходим заданный тип блока в талисмане.
|
||||
botania.page.blackHalo.craft=Мечта каменщика
|
||||
|
||||
botania.entry.antigravityCharm=Сфера притяжения
|
||||
@@ -254,7 +263,10 @@ botania.entry.nebulaArmor=Броня туманности
|
||||
botania.tagline.nebulaArmor=Неубиваемое снаряжение Ботаника
|
||||
botania.page.nebulaArmor0=Броня туманности - это мощное снаряжение ботаника, созданное при помощи Фрагментов туманности и брони из Террастали. <br>Каждый элемент снаряжения имеет свои уникальные свойства, которые зависят от количества маны, чем меньше маны, тем слабее защитные свойства брони.
|
||||
botania.page.nebulaArmor1=Характеристика каждого элемента брони: <br>Туманный шлем - повышает здоровье <br>Туманная кираса - позволяет владельцу летать, а также имеет сопротивление к отбрасыванию <br>Туманные поножи - увеличивают высоту прыжка <br>Туманные ботинки - ускоряют носителя
|
||||
botania.page.nebulaArmor.craft=Полетаем?
|
||||
botania.page.nebulaArmor.craft0=Лицо космоса
|
||||
botania.page.nebulaArmor.craft1=Полетаем?
|
||||
botania.page.nebulaArmor.craft2=А где мои штаны?
|
||||
botania.page.nebulaArmor.craft3=Тапочки бегуна!
|
||||
|
||||
botania.entry.freyrSlingshot=Рогатка Фрейра
|
||||
botania.tagline.freyrSlingshot=&mПохоть&0 Любовь и цветочки
|
||||
@@ -263,7 +275,11 @@ botania.page.freyrSlingshot1=Помимо этого, при попадании
|
||||
|
||||
botania.entry.engineerHopper=Воронка инженера
|
||||
botania.tagline.engineerHopper=Срячь не красивые механизмы глубоко подземлю! Наведи красоту!
|
||||
botania.page.engineerHopper0=Воронка инженера - настоящая находка дизайнеров-инженеров! Используйте посох леса, чтобы настроить передачу предметов из точки A в точку B.<br>По предварительной информации от Альфирина - такие воронки использовались во многих продвинутых мирах, таких как Асгард и Нидавеллир.
|
||||
botania.page.engineerHopper0=Воронка инженера - настоящая находка дизайнеров-инженеров! Благодаря ей - вы можете спокойно прятать механизмы, от лишних глаз, или просто ради эстетического удовольствия.<br>По предварительной информации от Альфирина - такие воронки использовались во многих продвинутых мирах, таких как Асгард и Нидавеллир.
|
||||
botania.page.engineerHopper1=Смотрите описание пунктов на следующих страницах.
|
||||
botania.page.engineerHopper2=Пункт 1 - место для указания хранилища из которого будут браться вещи для транспортировки. <br>Пункт 2 - Место для указания хранилища в который будут поступать вещи. <br>Пункт 3 - Иконка Посоха Леса: показывает в какое место можно привязать хранилище.
|
||||
botania.page.engineerHopper3=Привязка хранилища к Воронке Инженера: <br>Шаг 1 - SHIFT + ПКМ по воронке. <br>Шаг 2 - SHIFT + ПКМ по хранилищу. <br>ПКМ по воронке - меняет место для указания хранилища.
|
||||
botania.page.engineerHopper4=Примечание 1: Привязывая хранилище к Воронке Инженера учитывается сторона хранилища, которую вы выбрали при привязке, в дальнейшей работе воронки. <br>Примечание 2: Воронка Инженера не может собирать вещи, которые находятся выше её, как это делает обычная Воронка, из-за технического различия в конструкции.
|
||||
botania.page.engineerHopper.alphirineCraft=Воронка &mбудущего&0 прошлого
|
||||
|
||||
botania.entry.nebulaRod=Жезл туманности
|
||||
@@ -290,7 +306,7 @@ botania.page.gameBoard.craft=Поиграем на ману? Как тебе т
|
||||
|
||||
botania.entry.fateBoard=Игральная Доска Судьбы
|
||||
botania.tagline.fateBoard=1 кубик - 6 реликвий, вполне логично. 2 кубика...
|
||||
botania.page.fateBoard0=Игральная Доска Судьбы - своего рода развлечение, как и обычная Игральная Доска, но - партия требует несколько Кубиков Судьбы.<br>Как известно - бросая Кубик Судьбы можно получить реликвию, связанную с этим числом.<br>Следовательно, 2 кубика позволят получить до 12 реликвий. [В данный момент до 11, ещё 1 в разработке]
|
||||
botania.page.fateBoard0=Игральная Доска Судьбы - своего рода развлечение, как и Игральная Доска, но - партия требует несколько Кубиков Судьбы.<br>Как известно - бросая Кубик Судьбы можно получить реликвию, связанную с этим числом.<br>Следовательно, 2 кубика позволят получить до 12 реликвий. [В данный момент до 11, ещё 1 в разработке]
|
||||
botania.page.fateBoard.alphirineCraft=Поиграем на реликвии?
|
||||
|
||||
botania.entry.richesKey=Ключ от Скрытых Богатств
|
||||
@@ -303,7 +319,7 @@ botania.page.cubeWardrobe0=Куб Проворства - одна из мифи
|
||||
|
||||
botania.entry.sprawlRod=Жезл Разрастания
|
||||
botania.tagline.sprawlRod=Тыкать семечки не вариант? Тыкни один раз - но со всей силы!
|
||||
botania.page.sprawlRod0=Жезл Разрастания - магический жезл, способный втыкать обычные луговые семена в землю при помощи маны, при этом площадь распространения в разы выше!<br>Гайд: Как все вокруг изменить до неузнаваемости - Создать максимально большой шар, запустить его в небо, ждать его падения, убежать с места проишествия!
|
||||
botania.page.sprawlRod0=Жезл Разрастания - магический жезл, способный втыкать луговые семена из вашего инвентаря в землю при помощи маны, при этом площадь распространения в разы выше!<br>Гайд: Как все вокруг изменить до неузнаваемости - Создать максимально большой шар, запустить его в небо, ждать его падения, убежать с места проишествия!
|
||||
botania.page.sprawlRod.craft=А как все назад вернуть...
|
||||
|
||||
botania.entry.azartFlower=Пылкий Азарцисс
|
||||
@@ -313,7 +329,7 @@ botania.page.azartFlower.petalCraft=Просто дай ему волю, а он
|
||||
|
||||
botania.entry.sphereNavigation=Шар Навигации
|
||||
botania.tagline.sphereNavigation=Укажет и покажет путь куда угодно!
|
||||
botania.page.sphereNavigation0=Шар Навигации - реликвия обладающая уникальным свойством - находить указанный сквозь блоки и помечать местоположение! <br>За такое удовольствие требуется платить маной, и не малым количеством в долгосрочной перспективе.
|
||||
botania.page.sphereNavigation0=Шар Навигации - реликвия обладающая уникальным свойством - находить указанный блок, сквозь блоки и помечать местоположение! <br>За такое удовольствие требуется платить маной, и немалым количеством в долгосрочной перспективе.
|
||||
|
||||
botania.entry.hornPlenty=Рог изобилия
|
||||
botania.tagline.hornPlenty=Двойная добыча - что может быть лучше?
|
||||
@@ -322,6 +338,6 @@ botania.page.hornPlenty0=Рог Изобилия - реликвия одного
|
||||
botania.entry.aquaSword=Клинок Моря
|
||||
botania.tagline.aquaSword=Отойди от меня! Я мокрый...
|
||||
botania.page.aquaSword0=Клинок моря - мистическое оружие ближнего боя, пропитанное силами морей! <br>Атака с помощью Клинка Моря сопрождается водным всплеском, и отталкивает всех вокруг в сторону, куда смотрит игрок<br>Блок же сопрождается водным щитом, который не дает подойти врагам к игроку.
|
||||
botania.page.aquaSword.craft=Медитация в полной тишине
|
||||
botania.page.aquaSword.craft=Разойдитесь!
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
"nebulaRod": { "category": "player", "sounds":["nebulaRod"] },
|
||||
"hornPlentyUsing": { "category": "player", "sounds":["hornPlentyUsing"] },
|
||||
"freyrSlingshot": { "category": "player", "sounds":["freyrSlingshot"] },
|
||||
"lokiCubeArmor": { "category": "player", "sounds":["lokiCubeArmor"] }
|
||||
"lokiCubeArmor": { "category": "player", "sounds":["lokiCubeArmor"] },
|
||||
"aquaSword": { "category": "player", "sounds":["aquaSword"] }
|
||||
}
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 123 KiB |
@@ -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.3.1.1",
|
||||
"version": "1.3.1.2",
|
||||
"mcversion": "1.7.10",
|
||||
"logoFile": "assets/ab/textures/logo.png",
|
||||
"url": "Botania: http://www.botaniamod.net",
|
||||
|
||||
@@ -7806,3 +7806,825 @@ This warning can be switched off on the Team > Git > Confirmations and Warnings
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-04-30 19:30:23.935
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
!SESSION 2022-05-01 11:46:26.953 -----------------------------------------------
|
||||
eclipse.buildId=4.22.0.I20211124-1800
|
||||
java.version=17.0.1
|
||||
java.vendor=Eclipse Adoptium
|
||||
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
|
||||
Framework arguments: -product org.eclipse.epp.package.java.product
|
||||
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
|
||||
|
||||
!ENTRY org.eclipse.jface 2 0 2022-05-01 11:46:34.531
|
||||
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
|
||||
!SUBENTRY 1 org.eclipse.jface 2 0 2022-05-01 11:46:34.531
|
||||
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
|
||||
Binding(CTRL+SHIFT+T,
|
||||
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
|
||||
Open a type in a Java editor,
|
||||
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6d80e411,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
Binding(CTRL+SHIFT+T,
|
||||
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
|
||||
,
|
||||
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@32caae19,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
!SUBENTRY 1 org.eclipse.jface 2 0 2022-05-01 11:46:34.531
|
||||
!MESSAGE A conflict occurred for ALT+SHIFT+R:
|
||||
Binding(ALT+SHIFT+R,
|
||||
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
|
||||
Rename the selected element,
|
||||
Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@60e67c06,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
Binding(ALT+SHIFT+R,
|
||||
ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
|
||||
Rename the selected item,
|
||||
Category(org.eclipse.ui.category.file,File,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2bc59ab7,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
|
||||
!ENTRY org.eclipse.egit.ui 2 0 2022-05-01 11:46:37.497
|
||||
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
|
||||
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
|
||||
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
|
||||
EGit might behave differently since they see different configuration options.
|
||||
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 11:46:53.595
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 13:28:24.095
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 13:33:25.396
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 14:02:43.261
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 14:42:08.285
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 17:36:15.332
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 17:38:20.115
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 17:42:43.899
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 17:45:29.892
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 17:49:52.167
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 17:51:13.492
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 17:52:22.590
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 18:01:55.080
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.debug.core 4 125 2022-05-01 18:01:55.523
|
||||
!MESSAGE Error logged from Debug Core:
|
||||
!STACK 1
|
||||
org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
... 9 more
|
||||
!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-05-01 18:01:55.523
|
||||
!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
!STACK 0
|
||||
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-01 18:06:42.593
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.debug.core 4 125 2022-05-02 15:26:38.069
|
||||
!MESSAGE Error logged from Debug Core:
|
||||
!STACK 1
|
||||
org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
... 17 more
|
||||
!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-05-02 15:26:38.069
|
||||
!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
!STACK 0
|
||||
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
|
||||
!ENTRY org.eclipse.debug.core 4 125 2022-05-02 15:26:38.070
|
||||
!MESSAGE Error logged from Debug Core:
|
||||
!STACK 1
|
||||
org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
... 9 more
|
||||
!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-05-02 15:26:38.070
|
||||
!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
!STACK 0
|
||||
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-02 15:26:43.373
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-02 15:30:39.252
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-02 15:49:31.216
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-02 15:58:39.082
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
!SESSION 2022-05-03 13:20:07.797 -----------------------------------------------
|
||||
eclipse.buildId=4.22.0.I20211124-1800
|
||||
java.version=17.0.1
|
||||
java.vendor=Eclipse Adoptium
|
||||
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
|
||||
Framework arguments: -product org.eclipse.epp.package.java.product
|
||||
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
|
||||
|
||||
!ENTRY org.eclipse.core.resources 2 10035 2022-05-03 13:20:15.703
|
||||
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
|
||||
|
||||
!ENTRY org.eclipse.jface 2 0 2022-05-03 13:20:22.336
|
||||
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
|
||||
!SUBENTRY 1 org.eclipse.jface 2 0 2022-05-03 13:20:22.336
|
||||
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
|
||||
Binding(CTRL+SHIFT+T,
|
||||
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
|
||||
Open a type in a Java editor,
|
||||
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@30e143ff,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
Binding(CTRL+SHIFT+T,
|
||||
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
|
||||
,
|
||||
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@452ec287,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
!SUBENTRY 1 org.eclipse.jface 2 0 2022-05-03 13:20:22.336
|
||||
!MESSAGE A conflict occurred for ALT+SHIFT+R:
|
||||
Binding(ALT+SHIFT+R,
|
||||
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
|
||||
Rename the selected element,
|
||||
Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@41404aa2,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
Binding(ALT+SHIFT+R,
|
||||
ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
|
||||
Rename the selected item,
|
||||
Category(org.eclipse.ui.category.file,File,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@b267745,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
|
||||
!ENTRY org.eclipse.egit.ui 2 0 2022-05-03 13:20:25.866
|
||||
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
|
||||
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
|
||||
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
|
||||
EGit might behave differently since they see different configuration options.
|
||||
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 13:20:32.344
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 15:19:48.020
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 15:22:32.611
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 15:24:23.004
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 15:38:31.666
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
!SESSION 2022-05-03 15:53:21.147 -----------------------------------------------
|
||||
eclipse.buildId=4.22.0.I20211124-1800
|
||||
java.version=17.0.1
|
||||
java.vendor=Eclipse Adoptium
|
||||
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
|
||||
Framework arguments: -product org.eclipse.epp.package.java.product
|
||||
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
|
||||
|
||||
!ENTRY org.eclipse.jface 2 0 2022-05-03 15:53:26.936
|
||||
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
|
||||
!SUBENTRY 1 org.eclipse.jface 2 0 2022-05-03 15:53:26.936
|
||||
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
|
||||
Binding(CTRL+SHIFT+T,
|
||||
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
|
||||
Open a type in a Java editor,
|
||||
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@f0c1ae1,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
Binding(CTRL+SHIFT+T,
|
||||
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
|
||||
,
|
||||
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@783dc0e7,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
!SUBENTRY 1 org.eclipse.jface 2 0 2022-05-03 15:53:26.936
|
||||
!MESSAGE A conflict occurred for ALT+SHIFT+R:
|
||||
Binding(ALT+SHIFT+R,
|
||||
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
|
||||
Rename the selected element,
|
||||
Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@361f26b4,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
Binding(ALT+SHIFT+R,
|
||||
ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
|
||||
Rename the selected item,
|
||||
Category(org.eclipse.ui.category.file,File,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d9ff1e2,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
|
||||
!ENTRY org.eclipse.egit.ui 2 0 2022-05-03 15:53:29.710
|
||||
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
|
||||
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
|
||||
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
|
||||
EGit might behave differently since they see different configuration options.
|
||||
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 15:53:35.793
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 15:55:02.535
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 17:09:31.230
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 17:18:00.286
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 17:40:06.926
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 17:48:13.047
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 17:51:00.068
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.debug.core 4 125 2022-05-03 17:55:19.317
|
||||
!MESSAGE Error logged from Debug Core:
|
||||
!STACK 1
|
||||
org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
... 17 more
|
||||
!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-05-03 17:55:19.318
|
||||
!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
!STACK 0
|
||||
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
|
||||
!ENTRY org.eclipse.debug.core 4 125 2022-05-03 17:55:19.319
|
||||
!MESSAGE Error logged from Debug Core:
|
||||
!STACK 1
|
||||
org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
... 9 more
|
||||
!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-05-03 17:55:19.319
|
||||
!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
!STACK 0
|
||||
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 17:55:26.980
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.debug.core 4 125 2022-05-03 17:57:44.019
|
||||
!MESSAGE Error logged from Debug Core:
|
||||
!STACK 1
|
||||
org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
... 17 more
|
||||
!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-05-03 17:57:44.019
|
||||
!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
!STACK 0
|
||||
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.clearSourceElements(AbstractSourceLookupDirector.java:652)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.updateDebugElement(AdvancedSourceLookupParticipant.java:215)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.cacheContainer(AdvancedSourceLookupParticipant.java:162)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.getSourceContainer(AdvancedSourceLookupParticipant.java:146)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:72)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
|
||||
!ENTRY org.eclipse.debug.core 4 125 2022-05-03 17:57:44.020
|
||||
!MESSAGE Error logged from Debug Core:
|
||||
!STACK 1
|
||||
org.eclipse.debug.core.DebugException: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.throwDebugException(JDIDebugElement.java:263)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.requestFailed(JDIDebugElement.java:202)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIDebugElement.targetRequestFailed(JDIDebugElement.java:182)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1585)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
Caused by: com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
... 9 more
|
||||
!SUBENTRY 1 org.eclipse.jdt.debug 4 5010 2022-05-03 17:57:44.021
|
||||
!MESSAGE com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred retrieving source path debug attribute.
|
||||
!STACK 0
|
||||
com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
|
||||
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:93)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:190)
|
||||
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:230)
|
||||
at org.eclipse.jdi.internal.MethodImpl.getLineTable(MethodImpl.java:163)
|
||||
at org.eclipse.jdi.internal.MethodImpl.javaStratumLineNumber(MethodImpl.java:224)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.lineInfos(ReferenceTypeImpl.java:1927)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.fileInfo(ReferenceTypeImpl.java:1896)
|
||||
at org.eclipse.jdi.internal.ReferenceTypeImpl.sourcePath(ReferenceTypeImpl.java:1953)
|
||||
at org.eclipse.jdi.internal.LocationImpl.sourcePath(LocationImpl.java:210)
|
||||
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getSourcePath(JDIStackFrame.java:1582)
|
||||
at org.eclipse.jdt.internal.launching.sourcelookup.advanced.JDIHelpers.getSourcePath(JDIHelpers.java:90)
|
||||
at org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookupParticipant.findSourceElements(AdvancedSourceLookupParticipant.java:78)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:138)
|
||||
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:473)
|
||||
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:714)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:336)
|
||||
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:703)
|
||||
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 17:57:46.395
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 18:01:11.358
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 18:07:15.106
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 18:08:34.771
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 18:12:58.308
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 18:14:42.524
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 18:16:28.724
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 18:16:50.069
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 18:17:28.920
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 18:17:44.970
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 18:18:16.606
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
|
||||
!ENTRY org.eclipse.jdt.debug 2 0 2022-05-03 18:28:54.941
|
||||
!MESSAGE Unable to find location of java.lang.Thread.setName() in debuggee JVM, for type java.lang.Thread
|
||||
!SESSION 2022-05-03 19:03:36.606 -----------------------------------------------
|
||||
eclipse.buildId=4.22.0.I20211124-1800
|
||||
java.version=17.0.1
|
||||
java.vendor=Eclipse Adoptium
|
||||
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
|
||||
Framework arguments: -product org.eclipse.epp.package.java.product
|
||||
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
|
||||
|
||||
!ENTRY org.eclipse.jface 2 0 2022-05-03 19:03:43.726
|
||||
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
|
||||
!SUBENTRY 1 org.eclipse.jface 2 0 2022-05-03 19:03:43.726
|
||||
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
|
||||
Binding(CTRL+SHIFT+T,
|
||||
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
|
||||
Open a type in a Java editor,
|
||||
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@783dc0e7,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
Binding(CTRL+SHIFT+T,
|
||||
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
|
||||
,
|
||||
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@361f26b4,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
!SUBENTRY 1 org.eclipse.jface 2 0 2022-05-03 19:03:43.726
|
||||
!MESSAGE A conflict occurred for ALT+SHIFT+R:
|
||||
Binding(ALT+SHIFT+R,
|
||||
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
|
||||
Rename the selected element,
|
||||
Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1d9ff1e2,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
Binding(ALT+SHIFT+R,
|
||||
ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
|
||||
Rename the selected item,
|
||||
Category(org.eclipse.ui.category.file,File,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@722b3ba2,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
|
||||
!ENTRY org.eclipse.egit.ui 2 0 2022-05-03 19:03:46.907
|
||||
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
|
||||
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
|
||||
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
|
||||
EGit might behave differently since they see different configuration options.
|
||||
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
|
||||
|
||||
!ENTRY org.eclipse.core.resources 2 10035 2022-05-03 19:04:24.691
|
||||
!MESSAGE The workspace will exit with unsaved changes in this session.
|
||||
!SESSION 2022-05-03 19:05:31.242 -----------------------------------------------
|
||||
eclipse.buildId=4.22.0.I20211124-1800
|
||||
java.version=17.0.1
|
||||
java.vendor=Eclipse Adoptium
|
||||
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU
|
||||
Framework arguments: -product org.eclipse.epp.package.java.product
|
||||
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
|
||||
|
||||
!ENTRY org.eclipse.core.resources 2 10035 2022-05-03 19:05:38.325
|
||||
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
|
||||
|
||||
!ENTRY org.eclipse.jface 2 0 2022-05-03 19:05:40.238
|
||||
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
|
||||
!SUBENTRY 1 org.eclipse.jface 2 0 2022-05-03 19:05:40.238
|
||||
!MESSAGE A conflict occurred for CTRL+SHIFT+T:
|
||||
Binding(CTRL+SHIFT+T,
|
||||
ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
|
||||
Open a type in a Java editor,
|
||||
Category(org.eclipse.ui.category.navigate,Navigate,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@59c08cf1,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
Binding(CTRL+SHIFT+T,
|
||||
ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
|
||||
,
|
||||
Category(org.eclipse.lsp4e.category,Language Servers,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@45f0038,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
!SUBENTRY 1 org.eclipse.jface 2 0 2022-05-03 19:05:40.238
|
||||
!MESSAGE A conflict occurred for ALT+SHIFT+R:
|
||||
Binding(ALT+SHIFT+R,
|
||||
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.rename.element,Rename - Refactoring ,
|
||||
Rename the selected element,
|
||||
Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@289a4b90,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
Binding(ALT+SHIFT+R,
|
||||
ParameterizedCommand(Command(org.eclipse.ui.edit.rename,Rename,
|
||||
Rename the selected item,
|
||||
Category(org.eclipse.ui.category.file,File,null,true),
|
||||
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@1a3c4b3e,
|
||||
,,true),null),
|
||||
org.eclipse.ui.defaultAcceleratorConfiguration,
|
||||
org.eclipse.ui.contexts.window,,,system)
|
||||
|
||||
!ENTRY org.eclipse.egit.ui 2 0 2022-05-03 19:05:43.246
|
||||
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
|
||||
user global configuration and to define the default location to store repositories: 'C:\Users\Pulxes'. If this is
|
||||
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
|
||||
EGit might behave differently since they see different configuration options.
|
||||
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
|
||||
@@ -0,0 +1,83 @@
|
||||
package ab.client.core.handler;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.audio.ISound;
|
||||
import net.minecraft.client.audio.PositionedSoundRecord;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class PlayerItemUsingSound {
|
||||
|
||||
public EntityPlayer player;
|
||||
public ISound sound;
|
||||
public int maxTick = 0;
|
||||
public int tick = 0;
|
||||
public boolean isDeadingSound = false;
|
||||
public boolean hasCheckUse;
|
||||
|
||||
public PlayerItemUsingSound(EntityPlayer player, ISound sound, int maxTick, boolean hasCheckUse) {
|
||||
this.player = player;
|
||||
this.sound = sound;
|
||||
this.maxTick = maxTick;
|
||||
this.hasCheckUse = hasCheckUse;
|
||||
}
|
||||
|
||||
public static class ClientSoundHandler {
|
||||
|
||||
public static Minecraft mc = Minecraft.getMinecraft();
|
||||
public static List<PlayerItemUsingSound> soundsList = new ArrayList<PlayerItemUsingSound>();
|
||||
|
||||
public static void playSound(EntityPlayer player, String name, float volume, float pitch, int maxTick, boolean hasCheckUse) {
|
||||
if(!soundsList.isEmpty())
|
||||
for(int i = 0; i < soundsList.size(); i++) {
|
||||
PlayerItemUsingSound playerSound = soundsList.get(i);
|
||||
if(playerSound.player.getCommandSenderName().equals(player.getCommandSenderName()) && mc.getSoundHandler().isSoundPlaying(playerSound.sound)) {
|
||||
if(playerSound.maxTick != 0 && playerSound.maxTick <= playerSound.tick && !playerSound.isDeadingSound) {
|
||||
playerSound.isDeadingSound = true;
|
||||
setSound(player, name, volume, pitch, maxTick, hasCheckUse);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
} else
|
||||
setSound(player, name, volume, pitch, maxTick, hasCheckUse);
|
||||
}
|
||||
else
|
||||
setSound(player, name, volume, pitch, maxTick, hasCheckUse);
|
||||
}
|
||||
|
||||
public static void playSound(EntityPlayer player, String name, float volume, float pitch, int maxTick) {
|
||||
playSound(player, name, volume, pitch, maxTick, true);
|
||||
}
|
||||
|
||||
public static void playSound(EntityPlayer player, String name, float volume, float pitch) {
|
||||
playSound(player, name, volume, pitch, 0);
|
||||
}
|
||||
|
||||
protected static void setSound(EntityPlayer player, String name, float volume, float pitch, int maxTick, boolean hasCheckUse) {
|
||||
PositionedSoundRecord posSound = new PositionedSoundRecord(new ResourceLocation(name), volume, pitch, (float)player.posX, (float)player.posY, (float)player.posZ);
|
||||
soundsList.add(new PlayerItemUsingSound(player, posSound, maxTick, hasCheckUse));
|
||||
mc.getSoundHandler().playSound(posSound);
|
||||
}
|
||||
|
||||
public static void tick() {
|
||||
if(!soundsList.isEmpty()) {
|
||||
for(int i = 0; i < soundsList.size(); i++) {
|
||||
PlayerItemUsingSound playerSound = soundsList.get(i);
|
||||
playerSound.tick++;
|
||||
if(!mc.getSoundHandler().isSoundPlaying(playerSound.sound)) {
|
||||
soundsList.remove(playerSound);
|
||||
continue;
|
||||
} else if(playerSound.hasCheckUse && !playerSound.player.isUsingItem()) {
|
||||
if(mc.getSoundHandler().isSoundPlaying(playerSound.sound))
|
||||
mc.getSoundHandler().stopSound(playerSound.sound);
|
||||
soundsList.remove(playerSound);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package ab.common.block.subtile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import vazkii.botania.api.subtile.signature.SubTileSignature;
|
||||
import vazkii.botania.common.block.BlockSpecialFlower;
|
||||
|
||||
public class ABSubTileSignature extends SubTileSignature {
|
||||
|
||||
String name;
|
||||
IIcon icon;
|
||||
|
||||
public ABSubTileSignature(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public void registerIcons(IIconRegister reg) {
|
||||
this.icon = reg.registerIcon("ab:flower_" + this.name);
|
||||
BlockSpecialFlower.icons.put(name, icon);
|
||||
}
|
||||
|
||||
public IIcon getIconForStack(ItemStack item) {
|
||||
return this.icon;
|
||||
}
|
||||
|
||||
public String getUnlocalizedNameForStack(ItemStack item) {
|
||||
return "ab.flower." + this.name;
|
||||
}
|
||||
|
||||
public String getUnlocalizedLoreTextForStack(ItemStack item) {
|
||||
return "tile.ab.flower." + this.name + ".lore";
|
||||
}
|
||||
|
||||
// public void addTooltip(ItemStack stack, EntityPlayer player, List<String> tooltip) {
|
||||
//
|
||||
// }
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
package ab.common.item.equipment;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
import ab.AdvancedBotany;
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
import ab.client.core.ClientHelper;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
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.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.ItemSword;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.helper.ItemNBTHelper;
|
||||
import vazkii.botania.common.core.helper.Vector3;
|
||||
|
||||
public class ItemAquaSword extends ItemSword {
|
||||
|
||||
public ItemAquaSword() {
|
||||
super(AdvancedBotanyAPI.mithrilToolMaterial);
|
||||
this.setCreativeTab(AdvancedBotany.tabAB);
|
||||
this.setUnlocalizedName("itemAquaSword");
|
||||
this.setTextureName("ab:itemAquaSword");
|
||||
}
|
||||
|
||||
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1.7f, 1.7f, 1.7f);
|
||||
List<EntityLivingBase> entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
double posX = entity.posX;
|
||||
double posY = entity.posY + entity.getEyeHeight();
|
||||
double posZ = entity.posZ;
|
||||
if(!player.worldObj.isRemote) {
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(player.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
else if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(player), AdvancedBotanyAPI.mithrilToolMaterial.getDamageVsEntity() / 2.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, player, 10, true);
|
||||
Vec3 vec3 = player.getLook(1.0F).normalize();
|
||||
living.motionX += vec3.xCoord * 1.35f;
|
||||
living.motionY += (vec3.yCoord / 1.8f);
|
||||
living.motionZ += vec3.zCoord * 1.35f;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false)) {
|
||||
for(int i = 0; i < 24; i++) {
|
||||
float mtX = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtY = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtZ = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
Botania.proxy.wispFX(player.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.17f + (float)(Math.random() * 0.3f), mtX, mtY, mtZ, 0.512f);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onLeftClickEntity(stack, player, entity);
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
|
||||
if(p.worldObj.isRemote) {
|
||||
if(!ManaItemHandler.requestManaExactForTool(stack, p, 15, false))
|
||||
return;
|
||||
time = (this.getMaxItemUseDuration(stack) - time) % 120 + 1;
|
||||
if(time > 50)
|
||||
time = 120 - time;
|
||||
float phase = time / 120.0f;
|
||||
int wispCount = 8;
|
||||
double tickIncrement = 360.0D / wispCount;
|
||||
int speed = 10;
|
||||
double wticks = (time * speed) - tickIncrement;
|
||||
double r = Math.sin(1.4f);
|
||||
for(int i = 0; i < wispCount; i++) {
|
||||
double posX = p.posX + Math.sin(wticks * Math.PI / 180.0D) * r;
|
||||
double posY = p.posY + (wticks * 0.001f) + 0.1f;
|
||||
double posZ = p.posZ + Math.cos(wticks * Math.PI / 180.0D) * r;
|
||||
Botania.proxy.wispFX(p.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.3F, 0.0f, -0.1f + (float)(Math.random() * 0.05f), 0.0f, 0.7F);
|
||||
wticks += tickIncrement;
|
||||
}
|
||||
} else {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(p.posX, p.posY, p.posZ, p.lastTickPosX, p.lastTickPosY, p.lastTickPosZ).expand(2.75f, 2.75f, 2.75f);
|
||||
List<EntityLivingBase> entities = p.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(p.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
double dist = living.getDistance(p.posX, p.posY, p.posZ) / 2.5f;
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, p, 15, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(p), 1.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, p, 15, true);
|
||||
if(dist <= 1.0D) {
|
||||
double d5 = living.posX - p.posX;
|
||||
double d7 = living.posZ - p.posZ;
|
||||
double d9 = (double)MathHelper.sqrt_double(d5 * d5 + d7 * d7);
|
||||
if (d9 != 0.0D) {
|
||||
d5 /= d9;
|
||||
d7 /= d9;
|
||||
living.motionX += d5 * 1.2f;
|
||||
living.motionZ += d7 * 1.2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package ab.api;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import ab.api.recipe.RecipeAdvancedPlate;
|
||||
import ab.api.recipe.RecipeAncientAlphirine;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.lib.register.ItemListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.Achievement;
|
||||
import net.minecraftforge.common.util.EnumHelper;
|
||||
import vazkii.botania.common.item.ModItems;
|
||||
|
||||
public class AdvancedBotanyAPI {
|
||||
|
||||
public static List<RecipeAdvancedPlate> advancedPlateRecipes = new ArrayList<RecipeAdvancedPlate>();
|
||||
public static List<RecipeAncientAlphirine> alphirineRecipes = new ArrayList<RecipeAncientAlphirine>();
|
||||
public static List<TerraFarmlandList> farmlandList = new ArrayList<TerraFarmlandList>();
|
||||
public static List<Achievement> achievements = new ArrayList<Achievement>();
|
||||
public static List<ItemStack> relicList = new ArrayList<ItemStack>();
|
||||
|
||||
public static Item.ToolMaterial mithrilToolMaterial = EnumHelper.addToolMaterial("MITHRIL", 7, -1, 8.0F, 4.0F, 24);
|
||||
public static ItemArmor.ArmorMaterial nebulaArmorMaterial = EnumHelper.addArmorMaterial("NEBULA", 0, new int[] { (int)(3 * ConfigABHandler.protectionFactorNebula), (int)(8 * ConfigABHandler.protectionFactorNebula), (int)(6 * ConfigABHandler.protectionFactorNebula), (int)(3 * ConfigABHandler.protectionFactorNebula) }, 26);
|
||||
public static ItemArmor.ArmorMaterial wildHundArmor = EnumHelper.addArmorMaterial("WILD_HUNT_MATERIAL", 34, new int[] { 7, 8, 3, 2 }, 26);
|
||||
|
||||
public static RecipeAdvancedPlate registerAdvancedPlateRecipe(ItemStack output, ItemStack input1, ItemStack input2, ItemStack input3, int mana, int color) {
|
||||
RecipeAdvancedPlate recipe = new RecipeAdvancedPlate(output, mana, color, input1, input2, input3);
|
||||
advancedPlateRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static RecipeAncientAlphirine registerAlphirineRecipe(ItemStack output, ItemStack input, int chance) {
|
||||
RecipeAncientAlphirine recipe = new RecipeAncientAlphirine(output, input, chance);
|
||||
alphirineRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static TerraFarmlandList registerFarmlandSeed(Block block, int meta) {
|
||||
TerraFarmlandList seed = new TerraFarmlandList(block, meta);
|
||||
farmlandList.add(seed);
|
||||
return seed;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
package ab.common.item.equipment;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
import ab.AdvancedBotany;
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
import ab.client.core.ClientHelper;
|
||||
import ab.client.core.handler.PlayerItemUsingSound.ClientSoundHandler;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
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.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.ItemSword;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.helper.ItemNBTHelper;
|
||||
import vazkii.botania.common.core.helper.Vector3;
|
||||
|
||||
public class ItemAquaSword extends ItemSword {
|
||||
|
||||
public ItemAquaSword() {
|
||||
super(AdvancedBotanyAPI.mithrilToolMaterial);
|
||||
this.setCreativeTab(AdvancedBotany.tabAB);
|
||||
this.setUnlocalizedName("itemAquaSword");
|
||||
this.setTextureName("ab:itemAquaSword");
|
||||
}
|
||||
|
||||
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1.7f, 1.7f, 1.7f);
|
||||
List<EntityLivingBase> entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
double posX = entity.posX;
|
||||
double posY = entity.posY + entity.getEyeHeight();
|
||||
double posZ = entity.posZ;
|
||||
if(!player.worldObj.isRemote) {
|
||||
boolean hasWaterSplash = false;
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(player.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
else if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(player), AdvancedBotanyAPI.mithrilToolMaterial.getDamageVsEntity() / 2.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, player, 10, true);
|
||||
if(!hasWaterSplash)
|
||||
hasWaterSplash = true;
|
||||
Vec3 vec3 = player.getLook(1.0F).normalize();
|
||||
living.motionX += vec3.xCoord * 1.35f;
|
||||
living.motionY += (vec3.yCoord / 1.8f);
|
||||
living.motionZ += vec3.zCoord * 1.35f;
|
||||
}
|
||||
}
|
||||
if(hasWaterSplash)
|
||||
player.worldObj.playSoundAtEntity(player, "ab:aquaSword", 1.2F, 1.2F);
|
||||
} else {
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false)) {
|
||||
for(int i = 0; i < 24; i++) {
|
||||
float mtX = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtY = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtZ = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
Botania.proxy.wispFX(player.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.17f + (float)(Math.random() * 0.3f), mtX, mtY, mtZ, 0.512f);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onLeftClickEntity(stack, player, entity);
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
|
||||
if(p.worldObj.isRemote) {
|
||||
if(!ManaItemHandler.requestManaExactForTool(stack, p, 15, false))
|
||||
return;
|
||||
ClientSoundHandler.playSound(p, "liquid.water", 0.8F, 1.7F, 16, false);
|
||||
time = (this.getMaxItemUseDuration(stack) - time) % 120 + 1;
|
||||
if(time > 50)
|
||||
time = 120 - time;
|
||||
float phase = time / 120.0f;
|
||||
int wispCount = 8;
|
||||
double tickIncrement = 360.0D / wispCount;
|
||||
int speed = 10;
|
||||
double wticks = (time * speed) - tickIncrement;
|
||||
double r = Math.sin(1.4f);
|
||||
for(int i = 0; i < wispCount; i++) {
|
||||
double posX = p.posX + Math.sin(wticks * Math.PI / 180.0D) * r;
|
||||
double posY = p.posY + (wticks * 0.001f) + 0.1f;
|
||||
double posZ = p.posZ + Math.cos(wticks * Math.PI / 180.0D) * r;
|
||||
Botania.proxy.wispFX(p.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.3F, 0.0f, -0.1f + (float)(Math.random() * 0.05f), 0.0f, 0.7F);
|
||||
wticks += tickIncrement;
|
||||
}
|
||||
} else {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(p.posX, p.posY, p.posZ, p.lastTickPosX, p.lastTickPosY, p.lastTickPosZ).expand(2.75f, 2.75f, 2.75f);
|
||||
List<EntityLivingBase> entities = p.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(p.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
double dist = living.getDistance(p.posX, p.posY, p.posZ) / 2.5f;
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, p, 15, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(p), 1.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, p, 15, true);
|
||||
if(dist <= 1.0D) {
|
||||
double d5 = living.posX - p.posX;
|
||||
double d7 = living.posZ - p.posZ;
|
||||
double d9 = (double)MathHelper.sqrt_double(d5 * d5 + d7 * d7);
|
||||
if (d9 != 0.0D) {
|
||||
d5 /= d9;
|
||||
d7 /= d9;
|
||||
living.motionX += d5 * 1.2f;
|
||||
living.motionZ += d7 * 1.2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
package ab.common.item.equipment;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
import ab.AdvancedBotany;
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
import ab.client.core.ClientHelper;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
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.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.ItemSword;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.helper.ItemNBTHelper;
|
||||
import vazkii.botania.common.core.helper.Vector3;
|
||||
|
||||
public class ItemAquaSword extends ItemSword {
|
||||
|
||||
public ItemAquaSword() {
|
||||
super(AdvancedBotanyAPI.mithrilToolMaterial);
|
||||
this.setCreativeTab(AdvancedBotany.tabAB);
|
||||
this.setUnlocalizedName("itemAquaSword");
|
||||
this.setTextureName("ab:itemAquaSword");
|
||||
}
|
||||
|
||||
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1.7f, 1.7f, 1.7f);
|
||||
List<EntityLivingBase> entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
double posX = entity.posX;
|
||||
double posY = entity.posY + entity.getEyeHeight();
|
||||
double posZ = entity.posZ;
|
||||
if(!player.worldObj.isRemote) {
|
||||
boolean hasWaterSplash = false;
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(player.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
else if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(player), AdvancedBotanyAPI.mithrilToolMaterial.getDamageVsEntity() / 2.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, player, 10, true);
|
||||
if(!hasWaterSplash)
|
||||
hasWaterSplash = true;
|
||||
Vec3 vec3 = player.getLook(1.0F).normalize();
|
||||
living.motionX += vec3.xCoord * 1.35f;
|
||||
living.motionY += (vec3.yCoord / 1.8f);
|
||||
living.motionZ += vec3.zCoord * 1.35f;
|
||||
}
|
||||
}
|
||||
if(hasWaterSplash)
|
||||
player.worldObj.playSoundAtEntity(player, "ab:aquaSword", 1.2F, 1.2F);
|
||||
} else {
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false)) {
|
||||
for(int i = 0; i < 24; i++) {
|
||||
float mtX = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtY = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtZ = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
Botania.proxy.wispFX(player.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.17f + (float)(Math.random() * 0.3f), mtX, mtY, mtZ, 0.512f);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onLeftClickEntity(stack, player, entity);
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
|
||||
if(p.worldObj.isRemote) {
|
||||
if(!ManaItemHandler.requestManaExactForTool(stack, p, 15, false))
|
||||
return;
|
||||
time = (this.getMaxItemUseDuration(stack) - time) % 120 + 1;
|
||||
if(time > 50)
|
||||
time = 120 - time;
|
||||
float phase = time / 120.0f;
|
||||
int wispCount = 8;
|
||||
double tickIncrement = 360.0D / wispCount;
|
||||
int speed = 10;
|
||||
double wticks = (time * speed) - tickIncrement;
|
||||
double r = Math.sin(1.4f);
|
||||
for(int i = 0; i < wispCount; i++) {
|
||||
double posX = p.posX + Math.sin(wticks * Math.PI / 180.0D) * r;
|
||||
double posY = p.posY + (wticks * 0.001f) + 0.1f;
|
||||
double posZ = p.posZ + Math.cos(wticks * Math.PI / 180.0D) * r;
|
||||
Botania.proxy.wispFX(p.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.3F, 0.0f, -0.1f + (float)(Math.random() * 0.05f), 0.0f, 0.7F);
|
||||
wticks += tickIncrement;
|
||||
}
|
||||
} else {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(p.posX, p.posY, p.posZ, p.lastTickPosX, p.lastTickPosY, p.lastTickPosZ).expand(2.75f, 2.75f, 2.75f);
|
||||
List<EntityLivingBase> entities = p.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(p.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
double dist = living.getDistance(p.posX, p.posY, p.posZ) / 2.5f;
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, p, 15, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(p), 1.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, p, 15, true);
|
||||
if(dist <= 1.0D) {
|
||||
double d5 = living.posX - p.posX;
|
||||
double d7 = living.posZ - p.posZ;
|
||||
double d9 = (double)MathHelper.sqrt_double(d5 * d5 + d7 * d7);
|
||||
if (d9 != 0.0D) {
|
||||
d5 /= d9;
|
||||
d7 /= d9;
|
||||
living.motionX += d5 * 1.2f;
|
||||
living.motionZ += d7 * 1.2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package ab;
|
||||
|
||||
import ab.common.core.proxy.CommonProxy;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.SidedProxy;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
@Mod (modid = AdvancedBotany.modid, name="Advanced Botany", version = AdvancedBotany.version, dependencies = "required-after:Botania", guiFactory = "ab.client.core.handler.GuiABFactory")
|
||||
public class AdvancedBotany {
|
||||
|
||||
public static final String modid = "AdvancedBotany";
|
||||
public static final String version = "1.3.2.2";
|
||||
|
||||
@Mod.Instance("AdvancedBotany")
|
||||
public static AdvancedBotany instance;
|
||||
|
||||
@SidedProxy(clientSide = "ab.client.core.proxy.ClientProxy", serverSide = "ab.common.core.proxy.CommonProxy")
|
||||
public static CommonProxy proxy;
|
||||
|
||||
@Mod.EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
proxy.preInit(event);
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void init(FMLInitializationEvent event) {
|
||||
proxy.init(event);
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
proxy.postInit(event);
|
||||
}
|
||||
|
||||
public static final CreativeTabs tabAB = new AdvancedBotanyTab("tabAB");
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
package ab.common.item.equipment;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
import ab.AdvancedBotany;
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
import ab.client.core.ClientHelper;
|
||||
import ab.client.core.handler.PlayerItemUsingSound.ClientSoundHandler;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
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.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.ItemSword;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.helper.ItemNBTHelper;
|
||||
import vazkii.botania.common.core.helper.Vector3;
|
||||
|
||||
public class ItemAquaSword extends ItemSword {
|
||||
|
||||
public ItemAquaSword() {
|
||||
super(AdvancedBotanyAPI.mithrilToolMaterial);
|
||||
this.setCreativeTab(AdvancedBotany.tabAB);
|
||||
this.setUnlocalizedName("itemAquaSword");
|
||||
this.setTextureName("ab:itemAquaSword");
|
||||
}
|
||||
|
||||
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1.7f, 1.7f, 1.7f);
|
||||
List<EntityLivingBase> entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
double posX = entity.posX;
|
||||
double posY = entity.posY + entity.getEyeHeight();
|
||||
double posZ = entity.posZ;
|
||||
if(!player.worldObj.isRemote) {
|
||||
boolean hasWaterSplash = false;
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(player.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
else if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(player), AdvancedBotanyAPI.mithrilToolMaterial.getDamageVsEntity() / 2.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, player, 10, true);
|
||||
if(!hasWaterSplash)
|
||||
hasWaterSplash = true;
|
||||
Vec3 vec3 = player.getLook(1.0F).normalize();
|
||||
living.motionX += vec3.xCoord * 1.35f;
|
||||
living.motionY += (vec3.yCoord / 1.8f);
|
||||
living.motionZ += vec3.zCoord * 1.35f;
|
||||
}
|
||||
}
|
||||
if(hasWaterSplash)
|
||||
player.worldObj.playSoundAtEntity(player, "ab:aquaSword", 1.2F, 1.2F);
|
||||
} else {
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false)) {
|
||||
for(int i = 0; i < 24; i++) {
|
||||
float mtX = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtY = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtZ = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
Botania.proxy.wispFX(player.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.17f + (float)(Math.random() * 0.3f), mtX, mtY, mtZ, 0.512f);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onLeftClickEntity(stack, player, entity);
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
|
||||
if(p.worldObj.isRemote) {
|
||||
if(!ManaItemHandler.requestManaExactForTool(stack, p, 15, false))
|
||||
return;
|
||||
ClientSoundHandler.playSound(p, "liquid.water", 0.5F, 2.6F);
|
||||
time = (this.getMaxItemUseDuration(stack) - time) % 120 + 1;
|
||||
if(time > 50)
|
||||
time = 120 - time;
|
||||
float phase = time / 120.0f;
|
||||
int wispCount = 8;
|
||||
double tickIncrement = 360.0D / wispCount;
|
||||
int speed = 10;
|
||||
double wticks = (time * speed) - tickIncrement;
|
||||
double r = Math.sin(1.4f);
|
||||
for(int i = 0; i < wispCount; i++) {
|
||||
double posX = p.posX + Math.sin(wticks * Math.PI / 180.0D) * r;
|
||||
double posY = p.posY + (wticks * 0.001f) + 0.1f;
|
||||
double posZ = p.posZ + Math.cos(wticks * Math.PI / 180.0D) * r;
|
||||
Botania.proxy.wispFX(p.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.3F, 0.0f, -0.1f + (float)(Math.random() * 0.05f), 0.0f, 0.7F);
|
||||
wticks += tickIncrement;
|
||||
}
|
||||
} else {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(p.posX, p.posY, p.posZ, p.lastTickPosX, p.lastTickPosY, p.lastTickPosZ).expand(2.75f, 2.75f, 2.75f);
|
||||
List<EntityLivingBase> entities = p.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(p.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
double dist = living.getDistance(p.posX, p.posY, p.posZ) / 2.5f;
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, p, 15, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(p), 1.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, p, 15, true);
|
||||
if(dist <= 1.0D) {
|
||||
double d5 = living.posX - p.posX;
|
||||
double d7 = living.posZ - p.posZ;
|
||||
double d9 = (double)MathHelper.sqrt_double(d5 * d5 + d7 * d7);
|
||||
if (d9 != 0.0D) {
|
||||
d5 /= d9;
|
||||
d7 /= d9;
|
||||
living.motionX += d5 * 1.2f;
|
||||
living.motionZ += d7 * 1.2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package ab.api;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import ab.api.recipe.RecipeAdvancedPlate;
|
||||
import ab.api.recipe.RecipeAncientAlphirine;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.lib.register.ItemListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.Achievement;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraftforge.common.util.EnumHelper;
|
||||
import vazkii.botania.common.item.ModItems;
|
||||
|
||||
public class AdvancedBotanyAPI {
|
||||
|
||||
public static List<RecipeAdvancedPlate> advancedPlateRecipes = new ArrayList<RecipeAdvancedPlate>();
|
||||
public static List<RecipeAncientAlphirine> alphirineRecipes = new ArrayList<RecipeAncientAlphirine>();
|
||||
public static List<TerraFarmlandList> farmlandList = new ArrayList<TerraFarmlandList>();
|
||||
public static List<Achievement> achievements = new ArrayList<Achievement>();
|
||||
public static List<ItemStack> relicList = new ArrayList<ItemStack>();
|
||||
|
||||
public static Item.ToolMaterial mithrilToolMaterial = EnumHelper.addToolMaterial("MITHRIL", 7, -1, 8.0F, 4.0F, 24);
|
||||
public static ItemArmor.ArmorMaterial nebulaArmorMaterial = EnumHelper.addArmorMaterial("NEBULA", 0, new int[] { (int)(3 * ConfigABHandler.protectionFactorNebula), (int)(8 * ConfigABHandler.protectionFactorNebula), (int)(6 * ConfigABHandler.protectionFactorNebula), (int)(3 * ConfigABHandler.protectionFactorNebula) }, 26);
|
||||
public static ItemArmor.ArmorMaterial wildHundArmor = EnumHelper.addArmorMaterial("WILD_HUNT_MATERIAL", 34, new int[] { 7, 8, 3, 2 }, 26);
|
||||
|
||||
public static EnumRarity rarityNebula = EnumHelper.addRarity("NEBULA", EnumChatFormatting.LIGHT_PURPLE, "Nebula");
|
||||
public static EnumRarity rarityWildHunt = EnumHelper.addRarity("WILD_HUNT", EnumChatFormatting.GRAY, "WildHunt");
|
||||
|
||||
public static RecipeAdvancedPlate registerAdvancedPlateRecipe(ItemStack output, ItemStack input1, ItemStack input2, ItemStack input3, int mana, int color) {
|
||||
RecipeAdvancedPlate recipe = new RecipeAdvancedPlate(output, mana, color, input1, input2, input3);
|
||||
advancedPlateRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static RecipeAncientAlphirine registerAlphirineRecipe(ItemStack output, ItemStack input, int chance) {
|
||||
RecipeAncientAlphirine recipe = new RecipeAncientAlphirine(output, input, chance);
|
||||
alphirineRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static TerraFarmlandList registerFarmlandSeed(Block block, int meta) {
|
||||
TerraFarmlandList seed = new TerraFarmlandList(block, meta);
|
||||
farmlandList.add(seed);
|
||||
return seed;
|
||||
}
|
||||
}
|
||||
@@ -1,108 +0,0 @@
|
||||
package ab.common.block.subtile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ab.common.lib.register.RecipeListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.api.subtile.SubTileGenerating;
|
||||
import vazkii.botania.common.block.tile.TileSpecialFlower;
|
||||
|
||||
public class SubTileDictarius extends SubTileGenerating {
|
||||
|
||||
private static final int workMana = 360;
|
||||
int cooldown;
|
||||
|
||||
public void onUpdate() {
|
||||
super.onUpdate();
|
||||
if(this.supertile.getWorldObj().isRemote)
|
||||
return;
|
||||
int posX = this.supertile.xCoord;
|
||||
int posY = this.supertile.yCoord;
|
||||
int posZ = this.supertile.zCoord;
|
||||
World world = this.supertile.getWorldObj();
|
||||
if(this.ticksExisted % 5 == 0)
|
||||
checkNearDictarius();
|
||||
if(cooldown == 0) {
|
||||
List<EntityLivingBase> livs = world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(posX, posY, posZ, (posX + 1), (posY + 1), (posZ + 1)).expand(2, 1, 2));
|
||||
int workMana = 0;
|
||||
if(!livs.isEmpty()) {
|
||||
for(int i = 0; i < Math.min(livs.size(), 16); i++) {
|
||||
EntityLivingBase liv = livs.get(i);
|
||||
if(liv instanceof EntityPlayer)
|
||||
workMana += SubTileDictarius.workMana;
|
||||
else if(liv instanceof EntityVillager)
|
||||
workMana += (int)(SubTileDictarius.workMana / 8);
|
||||
}
|
||||
}
|
||||
if(workMana > 0) {
|
||||
this.cooldown = 200;
|
||||
this.mana = Math.min(this.getMaxMana(), this.mana + workMana);
|
||||
sync();
|
||||
}
|
||||
}
|
||||
if(this.cooldown > 0)
|
||||
this.cooldown -= 1;
|
||||
}
|
||||
|
||||
public void checkNearDictarius() {
|
||||
int maxFlower = 64;
|
||||
int findedFlower = 0;
|
||||
for(int x = -2; x < 2; x++) {
|
||||
for(int y = -2; y < 2; y++) {
|
||||
for(int z = -2; z < 2; z++) {
|
||||
int posX = this.supertile.xCoord + x;
|
||||
int posY = this.supertile.yCoord + y;
|
||||
int posZ = this.supertile.zCoord + z;
|
||||
TileEntity tile = this.supertile.getWorldObj().getTileEntity(posX, posY, posZ);
|
||||
if(tile != null && tile instanceof TileSpecialFlower) {
|
||||
TileSpecialFlower tileFlower = (TileSpecialFlower)tile;
|
||||
if(tileFlower.subTileName.equals("dictarius")) {
|
||||
if(findedFlower >= maxFlower) {
|
||||
this.supertile.getWorldObj().playAuxSFX(2001, this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, Block.getIdFromBlock(this.supertile.getBlockType()));
|
||||
if(this.supertile.getWorldObj().getBlock(this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord).isSideSolid((IBlockAccess)this.supertile.getWorldObj(), this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord, ForgeDirection.UP))
|
||||
this.supertile.getWorldObj().setBlock(this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, (Block)Blocks.deadbush);
|
||||
else
|
||||
this.supertile.getWorldObj().setBlockToAir(this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord);
|
||||
return;
|
||||
}
|
||||
findedFlower++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int getMaxMana() {
|
||||
return 8000;
|
||||
}
|
||||
|
||||
public int getColor() {
|
||||
return 0xd2cdb2;
|
||||
}
|
||||
|
||||
public LexiconEntry getEntry() {
|
||||
return RecipeListAB.dictarius;
|
||||
}
|
||||
|
||||
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,108 +0,0 @@
|
||||
package ab.common.block.subtile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ab.common.lib.register.RecipeListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.api.subtile.SubTileGenerating;
|
||||
import vazkii.botania.common.block.tile.TileSpecialFlower;
|
||||
|
||||
public class SubTileDictarius extends SubTileGenerating {
|
||||
|
||||
private static final int workMana = 360;
|
||||
int cooldown;
|
||||
|
||||
public void onUpdate() {
|
||||
super.onUpdate();
|
||||
if(this.supertile.getWorldObj().isRemote)
|
||||
return;
|
||||
int posX = this.supertile.xCoord;
|
||||
int posY = this.supertile.yCoord;
|
||||
int posZ = this.supertile.zCoord;
|
||||
World world = this.supertile.getWorldObj();
|
||||
if(this.ticksExisted % 5 == 0)
|
||||
checkNearDictarius();
|
||||
if(cooldown == 0) {
|
||||
List<EntityLivingBase> livs = world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(posX, posY, posZ, (posX + 1), (posY + 1), (posZ + 1)).expand(2, 1, 2));
|
||||
int workMana = 0;
|
||||
if(!livs.isEmpty()) {
|
||||
for(int i = 0; i < Math.min(livs.size(), 16); i++) {
|
||||
EntityLivingBase liv = livs.get(i);
|
||||
if(liv instanceof EntityPlayer)
|
||||
workMana += SubTileDictarius.workMana;
|
||||
else if(liv instanceof EntityVillager)
|
||||
workMana += (int)(SubTileDictarius.workMana / 8);
|
||||
}
|
||||
}
|
||||
if(workMana > 0) {
|
||||
this.cooldown = 200;
|
||||
this.mana = Math.min(this.getMaxMana(), this.mana + workMana);
|
||||
sync();
|
||||
}
|
||||
}
|
||||
if(this.cooldown > 0)
|
||||
this.cooldown -= 1;
|
||||
}
|
||||
|
||||
public void checkNearDictarius() {
|
||||
int maxFlower = 64;
|
||||
int findedFlower = 0;
|
||||
for(int x = -4; x < 4; x++) {
|
||||
for(int y = -4; y < 4; y++) {
|
||||
for(int z = -4; z < 4; z++) {
|
||||
int posX = this.supertile.xCoord + x;
|
||||
int posY = this.supertile.yCoord + y;
|
||||
int posZ = this.supertile.zCoord + z;
|
||||
TileEntity tile = this.supertile.getWorldObj().getTileEntity(posX, posY, posZ);
|
||||
if(tile != null && tile instanceof TileSpecialFlower) {
|
||||
TileSpecialFlower tileFlower = (TileSpecialFlower)tile;
|
||||
if(tileFlower.subTileName.equals("dictarius")) {
|
||||
if(findedFlower >= maxFlower) {
|
||||
this.supertile.getWorldObj().playAuxSFX(2001, this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, Block.getIdFromBlock(this.supertile.getBlockType()));
|
||||
if(this.supertile.getWorldObj().getBlock(this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord).isSideSolid((IBlockAccess)this.supertile.getWorldObj(), this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord, ForgeDirection.UP))
|
||||
this.supertile.getWorldObj().setBlock(this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, (Block)Blocks.deadbush);
|
||||
else
|
||||
this.supertile.getWorldObj().setBlockToAir(this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord);
|
||||
return;
|
||||
}
|
||||
findedFlower++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int getMaxMana() {
|
||||
return 8000;
|
||||
}
|
||||
|
||||
public int getColor() {
|
||||
return 0xd2cdb2;
|
||||
}
|
||||
|
||||
public LexiconEntry getEntry() {
|
||||
return RecipeListAB.dictarius;
|
||||
}
|
||||
|
||||
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");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package ab.api;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import ab.api.recipe.RecipeAdvancedPlate;
|
||||
import ab.api.recipe.RecipeAncientAlphirine;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.lib.register.ItemListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.Achievement;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraftforge.common.util.EnumHelper;
|
||||
import vazkii.botania.common.item.ModItems;
|
||||
|
||||
public class AdvancedBotanyAPI {
|
||||
|
||||
public static List<RecipeAdvancedPlate> advancedPlateRecipes = new ArrayList<RecipeAdvancedPlate>();
|
||||
public static List<RecipeAncientAlphirine> alphirineRecipes = new ArrayList<RecipeAncientAlphirine>();
|
||||
public static List<TerraFarmlandList> farmlandList = new ArrayList<TerraFarmlandList>();
|
||||
public static List<Achievement> achievements = new ArrayList<Achievement>();
|
||||
public static List<ItemStack> relicList = new ArrayList<ItemStack>();
|
||||
|
||||
public static Item.ToolMaterial mithrilToolMaterial = EnumHelper.addToolMaterial("MITHRIL", 7, -1, 8.0F, 4.0F, 24);
|
||||
public static ItemArmor.ArmorMaterial nebulaArmorMaterial = EnumHelper.addArmorMaterial("NEBULA", 0, new int[] { (int)(3 * ConfigABHandler.protectionFactorNebula), (int)(8 * ConfigABHandler.protectionFactorNebula), (int)(6 * ConfigABHandler.protectionFactorNebula), (int)(3 * ConfigABHandler.protectionFactorNebula) }, 26);
|
||||
public static ItemArmor.ArmorMaterial wildHundArmor = EnumHelper.addArmorMaterial("WILD_HUNT_MATERIAL", 34, new int[] { 7, 8, 3, 2 }, 26);
|
||||
|
||||
public static EnumRarity rarityNebula = EnumHelper.addRarity("NEBULA", EnumChatFormatting.DARK_PURPLE, "Nebula");
|
||||
|
||||
public static RecipeAdvancedPlate registerAdvancedPlateRecipe(ItemStack output, ItemStack input1, ItemStack input2, ItemStack input3, int mana, int color) {
|
||||
RecipeAdvancedPlate recipe = new RecipeAdvancedPlate(output, mana, color, input1, input2, input3);
|
||||
advancedPlateRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static RecipeAncientAlphirine registerAlphirineRecipe(ItemStack output, ItemStack input, int chance) {
|
||||
RecipeAncientAlphirine recipe = new RecipeAncientAlphirine(output, input, chance);
|
||||
alphirineRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static TerraFarmlandList registerFarmlandSeed(Block block, int meta) {
|
||||
TerraFarmlandList seed = new TerraFarmlandList(block, meta);
|
||||
farmlandList.add(seed);
|
||||
return seed;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
package ab.common.item.equipment;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
import ab.AdvancedBotany;
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
import ab.client.core.ClientHelper;
|
||||
import ab.client.core.handler.PlayerItemUsingSound.ClientSoundHandler;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
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.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.ItemSword;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.helper.ItemNBTHelper;
|
||||
import vazkii.botania.common.core.helper.Vector3;
|
||||
|
||||
public class ItemAquaSword extends ItemSword {
|
||||
|
||||
public ItemAquaSword() {
|
||||
super(AdvancedBotanyAPI.mithrilToolMaterial);
|
||||
this.setCreativeTab(AdvancedBotany.tabAB);
|
||||
this.setUnlocalizedName("itemAquaSword");
|
||||
this.setTextureName("ab:itemAquaSword");
|
||||
}
|
||||
|
||||
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1.7f, 1.7f, 1.7f);
|
||||
List<EntityLivingBase> entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
double posX = entity.posX;
|
||||
double posY = entity.posY + entity.getEyeHeight();
|
||||
double posZ = entity.posZ;
|
||||
if(!player.worldObj.isRemote) {
|
||||
boolean hasWaterSplash = false;
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(player.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
else if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(player), AdvancedBotanyAPI.mithrilToolMaterial.getDamageVsEntity() / 2.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, player, 10, true);
|
||||
if(!hasWaterSplash)
|
||||
hasWaterSplash = true;
|
||||
Vec3 vec3 = player.getLook(1.0F).normalize();
|
||||
living.motionX += vec3.xCoord * 1.35f;
|
||||
living.motionY += (vec3.yCoord / 1.8f);
|
||||
living.motionZ += vec3.zCoord * 1.35f;
|
||||
}
|
||||
}
|
||||
if(hasWaterSplash)
|
||||
player.worldObj.playSoundAtEntity(player, "ab:aquaSword", 1.2F, 1.2F);
|
||||
} else {
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false)) {
|
||||
for(int i = 0; i < 24; i++) {
|
||||
float mtX = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtY = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtZ = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
Botania.proxy.wispFX(player.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.17f + (float)(Math.random() * 0.3f), mtX, mtY, mtZ, 0.512f);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onLeftClickEntity(stack, player, entity);
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
|
||||
if(p.worldObj.isRemote) {
|
||||
if(!ManaItemHandler.requestManaExactForTool(stack, p, 15, false))
|
||||
return;
|
||||
ClientSoundHandler.playSound(p, "random.fizz", 0.5F, 2.6F);
|
||||
time = (this.getMaxItemUseDuration(stack) - time) % 120 + 1;
|
||||
if(time > 50)
|
||||
time = 120 - time;
|
||||
float phase = time / 120.0f;
|
||||
int wispCount = 8;
|
||||
double tickIncrement = 360.0D / wispCount;
|
||||
int speed = 10;
|
||||
double wticks = (time * speed) - tickIncrement;
|
||||
double r = Math.sin(1.4f);
|
||||
for(int i = 0; i < wispCount; i++) {
|
||||
double posX = p.posX + Math.sin(wticks * Math.PI / 180.0D) * r;
|
||||
double posY = p.posY + (wticks * 0.001f) + 0.1f;
|
||||
double posZ = p.posZ + Math.cos(wticks * Math.PI / 180.0D) * r;
|
||||
Botania.proxy.wispFX(p.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.3F, 0.0f, -0.1f + (float)(Math.random() * 0.05f), 0.0f, 0.7F);
|
||||
wticks += tickIncrement;
|
||||
}
|
||||
} else {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(p.posX, p.posY, p.posZ, p.lastTickPosX, p.lastTickPosY, p.lastTickPosZ).expand(2.75f, 2.75f, 2.75f);
|
||||
List<EntityLivingBase> entities = p.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(p.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
double dist = living.getDistance(p.posX, p.posY, p.posZ) / 2.5f;
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, p, 15, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(p), 1.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, p, 15, true);
|
||||
if(dist <= 1.0D) {
|
||||
double d5 = living.posX - p.posX;
|
||||
double d7 = living.posZ - p.posZ;
|
||||
double d9 = (double)MathHelper.sqrt_double(d5 * d5 + d7 * d7);
|
||||
if (d9 != 0.0D) {
|
||||
d5 /= d9;
|
||||
d7 /= d9;
|
||||
living.motionX += d5 * 1.2f;
|
||||
living.motionZ += d7 * 1.2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,8 +2,10 @@ package ab.common.block.subtile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.lib.register.RecipeListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
@@ -20,7 +22,7 @@ import vazkii.botania.common.block.tile.TileSpecialFlower;
|
||||
|
||||
public class SubTileDictarius extends SubTileGenerating {
|
||||
|
||||
private static final int workMana = 360;
|
||||
private static final int workMana = 480;
|
||||
int cooldown;
|
||||
|
||||
public void onUpdate() {
|
||||
@@ -31,32 +33,37 @@ public class SubTileDictarius extends SubTileGenerating {
|
||||
int posY = this.supertile.yCoord;
|
||||
int posZ = this.supertile.zCoord;
|
||||
World world = this.supertile.getWorldObj();
|
||||
if(this.ticksExisted % 5 == 0)
|
||||
if(world.getTotalWorldTime() % 1200 == 0)
|
||||
checkNearDictarius();
|
||||
if(cooldown == 0) {
|
||||
if(this.mana < this.getMaxMana() && cooldown == 0) {
|
||||
List<EntityLivingBase> livs = world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(posX, posY, posZ, (posX + 1), (posY + 1), (posZ + 1)).expand(2, 1, 2));
|
||||
int workMana = 0;
|
||||
int villagers = 0;
|
||||
if(!livs.isEmpty()) {
|
||||
for(int i = 0; i < Math.min(livs.size(), 16); i++) {
|
||||
EntityLivingBase liv = livs.get(i);
|
||||
if(liv instanceof EntityPlayer)
|
||||
workMana += SubTileDictarius.workMana;
|
||||
else if(liv instanceof EntityVillager)
|
||||
workMana += (int)(SubTileDictarius.workMana / 8);
|
||||
workMana += SubTileDictarius.workMana;
|
||||
else if(!world.isRemote && liv instanceof EntityVillager) {
|
||||
workMana += (int)(SubTileDictarius.workMana / 6);
|
||||
if(villagers > 15 && world.rand.nextInt(100) <= 4)
|
||||
liv.setDead();
|
||||
villagers++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(workMana > 0) {
|
||||
else if(workMana > 0) {
|
||||
this.cooldown = 200;
|
||||
workMana *= Math.random();
|
||||
this.mana = Math.min(this.getMaxMana(), this.mana + workMana);
|
||||
sync();
|
||||
}
|
||||
}
|
||||
if(this.cooldown > 0)
|
||||
this.cooldown -= 1;
|
||||
if(cooldown > 0)
|
||||
cooldown -= 1;
|
||||
}
|
||||
|
||||
public void checkNearDictarius() {
|
||||
int maxFlower = 64;
|
||||
int findedFlower = 0;
|
||||
for(int z = -4; z < 4; z++) {
|
||||
for(int x = -4; x < 4; x++) {
|
||||
@@ -68,7 +75,7 @@ public class SubTileDictarius extends SubTileGenerating {
|
||||
if(tile != null && tile instanceof TileSpecialFlower) {
|
||||
TileSpecialFlower tileFlower = (TileSpecialFlower)tile;
|
||||
if(tileFlower.subTileName.equals("dictarius")) {
|
||||
if(findedFlower >= maxFlower) {
|
||||
if(findedFlower >= ConfigABHandler.maxDictariusCount) {
|
||||
this.supertile.getWorldObj().playAuxSFX(2001, this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, Block.getIdFromBlock(this.supertile.getBlockType()));
|
||||
if(this.supertile.getWorldObj().getBlock(this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord).isSideSolid((IBlockAccess)this.supertile.getWorldObj(), this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord, ForgeDirection.UP))
|
||||
this.supertile.getWorldObj().setBlock(this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, (Block)Blocks.deadbush);
|
||||
@@ -0,0 +1,163 @@
|
||||
package ab.common.item.equipment.armor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ab.AdvancedBotany;
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
import ab.client.model.armor.ModelArmorNebula;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.lib.register.ItemListAB;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.model.ModelBiped;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.ISpecialArmor;
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
import vazkii.botania.api.mana.IManaItem;
|
||||
import vazkii.botania.api.mana.IManaTooltipDisplay;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.core.helper.ItemNBTHelper;
|
||||
import vazkii.botania.common.item.equipment.armor.manasteel.ItemManasteelArmor;
|
||||
|
||||
public class ItemNebulaArmor extends ItemManasteelArmor implements IManaItem, IManaTooltipDisplay {
|
||||
|
||||
protected static final int MAX_MANA = 250000;
|
||||
private static final String TAG_MANA = "mana";
|
||||
|
||||
static ItemStack[] armorset;
|
||||
public static IIcon nebulaEyes;
|
||||
|
||||
public ItemNebulaArmor(int type, String name) {
|
||||
super(type, name, AdvancedBotanyAPI.nebulaArmorMaterial);
|
||||
this.setCreativeTab(AdvancedBotany.tabAB);
|
||||
this.setMaxDamage(1000);
|
||||
this.setNoRepair();
|
||||
}
|
||||
|
||||
public ISpecialArmor.ArmorProperties getProperties(EntityLivingBase player, ItemStack armor, DamageSource source, double damage, int slot) {
|
||||
return new ISpecialArmor.ArmorProperties(0, getArmorMaterial().getDamageReductionAmount(slot) * (0.03f + (0.0725D * (1.0f - (this.getDamage(armor) / 1000.0f)))), 2147483647);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public ModelBiped provideArmorModelForSlot(ItemStack stack, int slot) {
|
||||
this.models[slot] = new ModelArmorNebula(slot);
|
||||
return this.models[slot];
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister ir) {
|
||||
this.itemIcon = ir.registerIcon("ab:" + this.getUnlocalizedName().replaceAll("item\\.", ""));
|
||||
this.nebulaEyes = ir.registerIcon("ab:nebulaEyes");
|
||||
}
|
||||
|
||||
public String getArmorTextureAfterInk(ItemStack stack, int slot) {
|
||||
return "ab:textures/model/nebulaArmor.png";
|
||||
}
|
||||
|
||||
public ItemStack[] getArmorSetStacks() {
|
||||
if(armorset == null)
|
||||
armorset = new ItemStack[] { new ItemStack(ItemListAB.itemNebulaHelm), new ItemStack(ItemListAB.itemNebulaChest), new ItemStack(ItemListAB.itemNebulaLegs), new ItemStack(ItemListAB.itemNebulaBoots) };
|
||||
return armorset;
|
||||
}
|
||||
|
||||
public boolean hasArmorSetItem(EntityPlayer player, int i) {
|
||||
ItemStack stack = player.inventory.armorInventory[3 - i];
|
||||
if(stack == null)
|
||||
return false;
|
||||
switch (i) {
|
||||
case 0:
|
||||
return (stack.getItem() == ItemListAB.itemNebulaHelm || stack.getItem() == ItemListAB.itemNebulaHelmReveal);
|
||||
case 1:
|
||||
return (stack.getItem() == ItemListAB.itemNebulaChest);
|
||||
case 2:
|
||||
return (stack.getItem() == ItemListAB.itemNebulaLegs);
|
||||
case 3:
|
||||
return (stack.getItem() == ItemListAB.itemNebulaBoots);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void damageArmor(EntityLivingBase entity, ItemStack stack, DamageSource source, int damage, int slot) {
|
||||
int manaVal = Math.min(damage * 15, this.getMana(stack));
|
||||
if(entity instanceof EntityPlayer && !entity.worldObj.isRemote)
|
||||
if(!ManaItemHandler.requestManaExactForTool(stack, (EntityPlayer)entity, manaVal, true))
|
||||
this.addMana(stack, -manaVal);
|
||||
}
|
||||
|
||||
public void onArmorTick(World world, EntityPlayer player, ItemStack stack) {
|
||||
if(!world.isRemote && this.getMana(stack) != this.getMaxMana(stack) && ManaItemHandler.requestManaExactForTool(stack, player, 1000, true))
|
||||
this.addMana(stack, 1000);
|
||||
}
|
||||
|
||||
public void addArmorSetDescription(ItemStack stack, List<String> list) {
|
||||
addStringToTooltip(StatCollector.translateToLocal("ab.armorset.nebula.desc0"), list);
|
||||
addStringToTooltip(StatCollector.translateToLocal("botania.armorset.terrasteel.desc1"), list);
|
||||
addStringToTooltip(StatCollector.translateToLocal("botania.armorset.terrasteel.desc2"), list);
|
||||
}
|
||||
|
||||
public int getDamage(ItemStack stack) {
|
||||
float mana = getMana(stack);
|
||||
return 1000 - (int)(mana / getMaxMana(stack) * 1000.0F);
|
||||
}
|
||||
|
||||
public int getDisplayDamage(ItemStack stack) {
|
||||
return getDamage(stack);
|
||||
}
|
||||
|
||||
public static String playerStr(EntityPlayer player) {
|
||||
return player.getGameProfile().getName() + ":" + player.worldObj.isRemote;
|
||||
}
|
||||
|
||||
public String getArmorSetName() {
|
||||
return StatCollector.translateToLocal("ab.armorset.nebula.name");
|
||||
}
|
||||
|
||||
public float getManaFractionForDisplay(ItemStack stack) {
|
||||
return (float) getMana(stack) / (float) getMaxMana(stack);
|
||||
}
|
||||
|
||||
public static void setMana(ItemStack stack, int mana) {
|
||||
ItemNBTHelper.setInt(stack, TAG_MANA, mana);
|
||||
}
|
||||
|
||||
public void addMana(ItemStack stack, int mana) {
|
||||
setMana(stack, Math.min(getMana(stack) + mana, getMaxMana(stack)));
|
||||
stack.setItemDamage(getDamage(stack));
|
||||
}
|
||||
|
||||
public boolean canExportManaToItem(ItemStack stack, ItemStack stack1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canExportManaToPool(ItemStack arg0, TileEntity arg1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canReceiveManaFromItem(ItemStack arg0, ItemStack arg1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean canReceiveManaFromPool(ItemStack arg0, TileEntity arg1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public int getMana(ItemStack stack) {
|
||||
return ItemNBTHelper.getInt(stack, TAG_MANA, 0);
|
||||
}
|
||||
|
||||
public int getMaxMana(ItemStack arg0) {
|
||||
return MAX_MANA;
|
||||
}
|
||||
|
||||
public boolean isNoExport(ItemStack arg0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package ab.client.core.handler;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.audio.ISound;
|
||||
import net.minecraft.client.audio.PositionedSoundRecord;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class PlayerItemUsingSound {
|
||||
|
||||
public EntityPlayer player;
|
||||
public ISound sound;
|
||||
public int maxTick = 0;
|
||||
public int tick = 0;
|
||||
public boolean isDeadingSound = false;
|
||||
public boolean hasCheckUse;
|
||||
|
||||
public PlayerItemUsingSound(EntityPlayer player, ISound sound, int maxTick, boolean hasCheckUse) {
|
||||
this.player = player;
|
||||
this.sound = sound;
|
||||
this.maxTick = maxTick;
|
||||
this.hasCheckUse = hasCheckUse;
|
||||
}
|
||||
|
||||
public static class ClientSoundHandler {
|
||||
|
||||
public static Minecraft mc = Minecraft.getMinecraft();
|
||||
public static List<PlayerItemUsingSound> soundsList = new ArrayList<PlayerItemUsingSound>();
|
||||
|
||||
public static void playSound(EntityPlayer player, String name, float volume, float pitch, int maxTick, boolean hasCheckUse) {
|
||||
if(!soundsList.isEmpty())
|
||||
for(int i = 0; i < soundsList.size(); i++) {
|
||||
PlayerItemUsingSound playerSound = soundsList.get(i);
|
||||
System.out.println(playerSound.player.getCommandSenderName().equals(player.getCommandSenderName()) && mc.getSoundHandler().isSoundPlaying(playerSound.sound));
|
||||
if(playerSound.player.getCommandSenderName().equals(player.getCommandSenderName()) && mc.getSoundHandler().isSoundPlaying(playerSound.sound)) {
|
||||
if(playerSound.maxTick != 0 && playerSound.maxTick <= playerSound.tick && !playerSound.isDeadingSound) {
|
||||
playerSound.isDeadingSound = true;
|
||||
setSound(player, name, volume, pitch, maxTick, hasCheckUse);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
} else
|
||||
setSound(player, name, volume, pitch, maxTick, hasCheckUse);
|
||||
}
|
||||
else
|
||||
setSound(player, name, volume, pitch, maxTick, hasCheckUse);
|
||||
}
|
||||
|
||||
public static void playSound(EntityPlayer player, String name, float volume, float pitch, int maxTick) {
|
||||
playSound(player, name, volume, pitch, maxTick, true);
|
||||
}
|
||||
|
||||
public static void playSound(EntityPlayer player, String name, float volume, float pitch) {
|
||||
playSound(player, name, volume, pitch, 0);
|
||||
}
|
||||
|
||||
protected static void setSound(EntityPlayer player, String name, float volume, float pitch, int maxTick, boolean hasCheckUse) {
|
||||
PositionedSoundRecord posSound = new PositionedSoundRecord(new ResourceLocation(name), volume, pitch, (float)player.posX, (float)player.posY, (float)player.posZ);
|
||||
soundsList.add(new PlayerItemUsingSound(player, posSound, maxTick, hasCheckUse));
|
||||
mc.getSoundHandler().playSound(posSound);
|
||||
}
|
||||
|
||||
public static void tick() {
|
||||
if(!soundsList.isEmpty()) {
|
||||
int sounds = 0;
|
||||
for(int i = 0; i < soundsList.size(); i++) {
|
||||
sounds++;
|
||||
PlayerItemUsingSound playerSound = soundsList.get(i);
|
||||
playerSound.tick++;
|
||||
if(!mc.getSoundHandler().isSoundPlaying(playerSound.sound)) {
|
||||
soundsList.remove(playerSound);
|
||||
continue;
|
||||
} else if(playerSound.hasCheckUse && !playerSound.player.isUsingItem()) {
|
||||
if(mc.getSoundHandler().isSoundPlaying(playerSound.sound))
|
||||
mc.getSoundHandler().stopSound(playerSound.sound);
|
||||
soundsList.remove(playerSound);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
System.out.println("sounds: " + sounds);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package ab.api;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import ab.api.recipe.RecipeAdvancedPlate;
|
||||
import ab.api.recipe.RecipeAncientAlphirine;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.lib.register.ItemListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.Achievement;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraftforge.common.util.EnumHelper;
|
||||
import vazkii.botania.common.item.ModItems;
|
||||
|
||||
public class AdvancedBotanyAPI {
|
||||
|
||||
public static List<RecipeAdvancedPlate> advancedPlateRecipes = new ArrayList<RecipeAdvancedPlate>();
|
||||
public static List<RecipeAncientAlphirine> alphirineRecipes = new ArrayList<RecipeAncientAlphirine>();
|
||||
public static List<TerraFarmlandList> farmlandList = new ArrayList<TerraFarmlandList>();
|
||||
public static List<Achievement> achievements = new ArrayList<Achievement>();
|
||||
public static List<ItemStack> relicList = new ArrayList<ItemStack>();
|
||||
|
||||
public static Item.ToolMaterial mithrilToolMaterial = EnumHelper.addToolMaterial("MITHRIL", 7, -1, 8.0F, 4.0F, 24);
|
||||
public static ItemArmor.ArmorMaterial nebulaArmorMaterial = EnumHelper.addArmorMaterial("NEBULA", 0, new int[] { (int)(3 * ConfigABHandler.protectionFactorNebula), (int)(8 * ConfigABHandler.protectionFactorNebula), (int)(6 * ConfigABHandler.protectionFactorNebula), (int)(3 * ConfigABHandler.protectionFactorNebula) }, 26);
|
||||
public static ItemArmor.ArmorMaterial wildHundArmor = EnumHelper.addArmorMaterial("WILD_HUNT_MATERIAL", 34, new int[] { 7, 8, 3, 2 }, 26);
|
||||
|
||||
public static EnumRarity rarityNebula = EnumHelper.addRarity("NEBULA", EnumChatFormatting.LIGHT_PURPLE, "Nebula");
|
||||
|
||||
public static RecipeAdvancedPlate registerAdvancedPlateRecipe(ItemStack output, ItemStack input1, ItemStack input2, ItemStack input3, int mana, int color) {
|
||||
RecipeAdvancedPlate recipe = new RecipeAdvancedPlate(output, mana, color, input1, input2, input3);
|
||||
advancedPlateRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static RecipeAncientAlphirine registerAlphirineRecipe(ItemStack output, ItemStack input, int chance) {
|
||||
RecipeAncientAlphirine recipe = new RecipeAncientAlphirine(output, input, chance);
|
||||
alphirineRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static TerraFarmlandList registerFarmlandSeed(Block block, int meta) {
|
||||
TerraFarmlandList seed = new TerraFarmlandList(block, meta);
|
||||
farmlandList.add(seed);
|
||||
return seed;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package ab.client.core.handler;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.audio.ISound;
|
||||
import net.minecraft.client.audio.PositionedSoundRecord;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class PlayerItemUsingSound {
|
||||
|
||||
public EntityPlayer player;
|
||||
public ISound sound;
|
||||
public int maxTick = 0;
|
||||
public int tick = 0;
|
||||
public boolean isDeadingSound = false;
|
||||
public boolean hasCheckUse;
|
||||
|
||||
public PlayerItemUsingSound(EntityPlayer player, ISound sound, int maxTick, boolean hasCheckUse) {
|
||||
this.player = player;
|
||||
this.sound = sound;
|
||||
this.maxTick = maxTick;
|
||||
this.hasCheckUse = hasCheckUse;
|
||||
}
|
||||
|
||||
public static class ClientSoundHandler {
|
||||
|
||||
public static Minecraft mc = Minecraft.getMinecraft();
|
||||
public static List<PlayerItemUsingSound> soundsList = new ArrayList<PlayerItemUsingSound>();
|
||||
|
||||
public static void playSound(EntityPlayer player, String name, float volume, float pitch, int maxTick, boolean hasCheckUse) {
|
||||
if(!soundsList.isEmpty())
|
||||
for(int i = 0; i < soundsList.size(); i++) {
|
||||
PlayerItemUsingSound playerSound = soundsList.get(i);
|
||||
System.out.println(playerSound.player.getCommandSenderName().equals(player.getCommandSenderName()) + " " + mc.getSoundHandler().isSoundPlaying(playerSound.sound));
|
||||
if(playerSound.player.getCommandSenderName().equals(player.getCommandSenderName()) && mc.getSoundHandler().isSoundPlaying(playerSound.sound)) {
|
||||
if(playerSound.maxTick != 0 && playerSound.maxTick <= playerSound.tick && !playerSound.isDeadingSound) {
|
||||
playerSound.isDeadingSound = true;
|
||||
setSound(player, name, volume, pitch, maxTick, hasCheckUse);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
} else
|
||||
setSound(player, name, volume, pitch, maxTick, hasCheckUse);
|
||||
}
|
||||
else
|
||||
setSound(player, name, volume, pitch, maxTick, hasCheckUse);
|
||||
}
|
||||
|
||||
public static void playSound(EntityPlayer player, String name, float volume, float pitch, int maxTick) {
|
||||
playSound(player, name, volume, pitch, maxTick, true);
|
||||
}
|
||||
|
||||
public static void playSound(EntityPlayer player, String name, float volume, float pitch) {
|
||||
playSound(player, name, volume, pitch, 0);
|
||||
}
|
||||
|
||||
protected static void setSound(EntityPlayer player, String name, float volume, float pitch, int maxTick, boolean hasCheckUse) {
|
||||
PositionedSoundRecord posSound = new PositionedSoundRecord(new ResourceLocation(name), volume, pitch, (float)player.posX, (float)player.posY, (float)player.posZ);
|
||||
soundsList.add(new PlayerItemUsingSound(player, posSound, maxTick, hasCheckUse));
|
||||
mc.getSoundHandler().playSound(posSound);
|
||||
}
|
||||
|
||||
public static void tick() {
|
||||
if(!soundsList.isEmpty()) {
|
||||
int sounds = 0;
|
||||
for(int i = 0; i < soundsList.size(); i++) {
|
||||
sounds++;
|
||||
PlayerItemUsingSound playerSound = soundsList.get(i);
|
||||
playerSound.tick++;
|
||||
if(!mc.getSoundHandler().isSoundPlaying(playerSound.sound)) {
|
||||
soundsList.remove(playerSound);
|
||||
continue;
|
||||
} else if(playerSound.hasCheckUse && !playerSound.player.isUsingItem()) {
|
||||
if(mc.getSoundHandler().isSoundPlaying(playerSound.sound))
|
||||
mc.getSoundHandler().stopSound(playerSound.sound);
|
||||
soundsList.remove(playerSound);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
System.out.println("sounds: " + sounds);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,108 +0,0 @@
|
||||
package ab.common.block.subtile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ab.common.lib.register.RecipeListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.api.subtile.SubTileGenerating;
|
||||
import vazkii.botania.common.block.tile.TileSpecialFlower;
|
||||
|
||||
public class SubTileDictarius extends SubTileGenerating {
|
||||
|
||||
private static final int workMana = 320;
|
||||
int cooldown;
|
||||
|
||||
public void onUpdate() {
|
||||
super.onUpdate();
|
||||
if(this.supertile.getWorldObj().isRemote)
|
||||
return;
|
||||
int posX = this.supertile.xCoord;
|
||||
int posY = this.supertile.yCoord;
|
||||
int posZ = this.supertile.zCoord;
|
||||
World world = this.supertile.getWorldObj();
|
||||
if(this.ticksExisted % 100 == 0)
|
||||
checkNearDictarius();
|
||||
if(cooldown == 0) {
|
||||
List<EntityLivingBase> livs = world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(posX, posY, posZ, (posX + 1), (posY + 1), (posZ + 1)).expand(2, 1, 2));
|
||||
int workMana = 0;
|
||||
if(!livs.isEmpty()) {
|
||||
for(int i = 0; i < Math.min(livs.size(), 16); i++) {
|
||||
EntityLivingBase liv = livs.get(i);
|
||||
if(liv instanceof EntityPlayer)
|
||||
workMana += SubTileDictarius.workMana;
|
||||
else if(liv instanceof EntityVillager)
|
||||
workMana += (int)(SubTileDictarius.workMana / 8);
|
||||
}
|
||||
}
|
||||
if(workMana > 0) {
|
||||
this.cooldown = 200;
|
||||
this.mana = Math.min(this.getMaxMana(), this.mana + workMana);
|
||||
sync();
|
||||
}
|
||||
}
|
||||
if(this.cooldown > 0)
|
||||
this.cooldown -= 1;
|
||||
}
|
||||
|
||||
public void checkNearDictarius() {
|
||||
int maxFlower = 64;
|
||||
int findedFlower = 0;
|
||||
for(int x = -2; x < 2; x++) {
|
||||
for(int y = -2; y < 2; y++) {
|
||||
for(int z = -2; z < 2; z++) {
|
||||
int posX = this.supertile.xCoord + x;
|
||||
int posY = this.supertile.yCoord + y;
|
||||
int posZ = this.supertile.zCoord + z;
|
||||
TileEntity tile = this.supertile.getWorldObj().getTileEntity(posX, posY, posZ);
|
||||
if(tile != null && tile instanceof TileSpecialFlower) {
|
||||
TileSpecialFlower tileFlower = (TileSpecialFlower)tile;
|
||||
if(tileFlower.subTileName.equals("dictarius")) {
|
||||
if(findedFlower >= maxFlower) {
|
||||
this.supertile.getWorldObj().playAuxSFX(2001, this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, Block.getIdFromBlock(this.supertile.getBlockType()));
|
||||
if(this.supertile.getWorldObj().getBlock(this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord).isSideSolid((IBlockAccess)this.supertile.getWorldObj(), this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord, ForgeDirection.UP))
|
||||
this.supertile.getWorldObj().setBlock(this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, (Block)Blocks.deadbush);
|
||||
else
|
||||
this.supertile.getWorldObj().setBlockToAir(this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord);
|
||||
return;
|
||||
}
|
||||
findedFlower++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int getMaxMana() {
|
||||
return 8000;
|
||||
}
|
||||
|
||||
public int getColor() {
|
||||
return 0xd2cdb2;
|
||||
}
|
||||
|
||||
public LexiconEntry getEntry() {
|
||||
return RecipeListAB.dictarius;
|
||||
}
|
||||
|
||||
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,108 +0,0 @@
|
||||
package ab.common.block.subtile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ab.common.lib.register.RecipeListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.api.subtile.SubTileGenerating;
|
||||
import vazkii.botania.common.block.tile.TileSpecialFlower;
|
||||
|
||||
public class SubTileDictarius extends SubTileGenerating {
|
||||
|
||||
private static final int workMana = 360;
|
||||
int cooldown;
|
||||
|
||||
public void onUpdate() {
|
||||
super.onUpdate();
|
||||
if(this.supertile.getWorldObj().isRemote)
|
||||
return;
|
||||
int posX = this.supertile.xCoord;
|
||||
int posY = this.supertile.yCoord;
|
||||
int posZ = this.supertile.zCoord;
|
||||
World world = this.supertile.getWorldObj();
|
||||
if(this.ticksExisted % 120 == 0)
|
||||
checkNearDictarius();
|
||||
if(cooldown == 0) {
|
||||
List<EntityLivingBase> livs = world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(posX, posY, posZ, (posX + 1), (posY + 1), (posZ + 1)).expand(2, 1, 2));
|
||||
int workMana = 0;
|
||||
if(!livs.isEmpty()) {
|
||||
for(int i = 0; i < Math.min(livs.size(), 16); i++) {
|
||||
EntityLivingBase liv = livs.get(i);
|
||||
if(liv instanceof EntityPlayer)
|
||||
workMana += SubTileDictarius.workMana;
|
||||
else if(liv instanceof EntityVillager)
|
||||
workMana += (int)(SubTileDictarius.workMana / 8);
|
||||
}
|
||||
}
|
||||
if(workMana > 0) {
|
||||
this.cooldown = 200;
|
||||
this.mana = Math.min(this.getMaxMana(), this.mana + workMana);
|
||||
sync();
|
||||
}
|
||||
}
|
||||
if(this.cooldown > 0)
|
||||
this.cooldown -= 1;
|
||||
}
|
||||
|
||||
public void checkNearDictarius() {
|
||||
int maxFlower = 64;
|
||||
int findedFlower = 0;
|
||||
for(int x = -2; x < 2; x++) {
|
||||
for(int y = -2; y < 2; y++) {
|
||||
for(int z = -2; z < 2; z++) {
|
||||
int posX = this.supertile.xCoord + x;
|
||||
int posY = this.supertile.yCoord + y;
|
||||
int posZ = this.supertile.zCoord + z;
|
||||
TileEntity tile = this.supertile.getWorldObj().getTileEntity(posX, posY, posZ);
|
||||
if(tile != null && tile instanceof TileSpecialFlower) {
|
||||
TileSpecialFlower tileFlower = (TileSpecialFlower)tile;
|
||||
if(tileFlower.subTileName.equals("dictarius")) {
|
||||
if(findedFlower >= maxFlower) {
|
||||
this.supertile.getWorldObj().playAuxSFX(2001, this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, Block.getIdFromBlock(this.supertile.getBlockType()));
|
||||
if(this.supertile.getWorldObj().getBlock(this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord).isSideSolid((IBlockAccess)this.supertile.getWorldObj(), this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord, ForgeDirection.UP))
|
||||
this.supertile.getWorldObj().setBlock(this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, (Block)Blocks.deadbush);
|
||||
else
|
||||
this.supertile.getWorldObj().setBlockToAir(this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord);
|
||||
return;
|
||||
}
|
||||
findedFlower++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int getMaxMana() {
|
||||
return 8000;
|
||||
}
|
||||
|
||||
public int getColor() {
|
||||
return 0xd2cdb2;
|
||||
}
|
||||
|
||||
public LexiconEntry getEntry() {
|
||||
return RecipeListAB.dictarius;
|
||||
}
|
||||
|
||||
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");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package ab.common.lib.register;
|
||||
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.item.*;
|
||||
import ab.common.item.equipment.*;
|
||||
import ab.common.item.equipment.armor.ItemNebulaBoots;
|
||||
import ab.common.item.equipment.armor.ItemNebulaChest;
|
||||
import ab.common.item.equipment.armor.ItemNebulaHelm;
|
||||
import ab.common.item.equipment.armor.ItemNebulaHelmRevealing;
|
||||
import ab.common.item.equipment.armor.ItemNebulaLegs;
|
||||
import ab.common.item.equipment.armor.ItemWildHuntBoots;
|
||||
import ab.common.item.equipment.armor.ItemWildHuntChest;
|
||||
import ab.common.item.equipment.armor.ItemWildHuntHelm;
|
||||
import ab.common.item.equipment.armor.ItemWildHuntLegs;
|
||||
import ab.common.item.relic.ItemFreyrSlingshot;
|
||||
import ab.common.item.relic.ItemHornPlenty;
|
||||
import ab.common.item.relic.ItemPocketWardrobe;
|
||||
import ab.common.item.relic.ItemSphereNavigation;
|
||||
import ab.common.item.relic.ItemTalismanHiddenRiches;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.item.Item;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.handler.ConfigHandler;
|
||||
|
||||
public class ItemListAB {
|
||||
|
||||
public static Item itemABResource;
|
||||
public static Item itemMithrillRing;
|
||||
public static Item itemMihrillMultiTool;
|
||||
public static Item itemNebulaRing;
|
||||
public static Item itemAdvancedSpark;
|
||||
public static Item itemMithrillSword;
|
||||
public static Item itemTerraHoe;
|
||||
public static Item itemManaFlower;
|
||||
public static Item itemBlackHalo;
|
||||
public static Item itemNebulaBlaze;
|
||||
public static Item itemAntigravityCharm;
|
||||
public static Item itemNebulaHelm;
|
||||
public static Item itemNebulaHelmReveal;
|
||||
public static Item itemNebulaChest;
|
||||
public static Item itemNebulaLegs;
|
||||
public static Item itemNebulaBoots;
|
||||
public static Item itemFreyrSlingshot;
|
||||
public static Item itemNebulaRod;
|
||||
public static Item itemCraftingPattern;
|
||||
public static Item itemSprawlRod;
|
||||
public static Item itemPocketWardrobe;
|
||||
public static Item itemTalismanHiddenRiches;
|
||||
public static Item itemHornPlenty;
|
||||
public static Item itemSphereNavigation;
|
||||
public static Item itemAquaSword;
|
||||
public static Item itemWildHuntHelm;
|
||||
public static Item itemWildHuntChest;
|
||||
public static Item itemWildHuntLegs;
|
||||
public static Item itemWildHuntBoots;
|
||||
|
||||
public static void init() {
|
||||
ItemListAB.itemABResource = new ItemABResource();
|
||||
GameRegistry.registerItem(itemABResource, "itemABResource");
|
||||
ItemListAB.itemMithrillRing = new ItemMithrillRing("mithrillManaRing");
|
||||
GameRegistry.registerItem(itemMithrillRing, "itemMithrillRing");
|
||||
ItemListAB.itemNebulaRing = new ItemNebulaRing("nebulaManaRing");
|
||||
GameRegistry.registerItem(itemNebulaRing, "itemNebulaRing");
|
||||
ItemListAB.itemMihrillMultiTool = new ItemMithrillMultiTool();
|
||||
GameRegistry.registerItem(itemMihrillMultiTool, "itemMihrillMultiTool");
|
||||
ItemListAB.itemAdvancedSpark = new ItemAdvancedSpark();
|
||||
GameRegistry.registerItem(itemAdvancedSpark, "itemAdvancedSpark");
|
||||
ItemListAB.itemMithrillSword = new ItemSpaceBlade();
|
||||
GameRegistry.registerItem(itemMithrillSword, "itemMithrillSword");
|
||||
ItemListAB.itemTerraHoe = new ItemTerraHoe();
|
||||
GameRegistry.registerItem(itemTerraHoe, "itemTerraHoe");
|
||||
ItemListAB.itemManaFlower = new ItemManaFlower();
|
||||
GameRegistry.registerItem(itemManaFlower, "itemManaFlower");
|
||||
ItemListAB.itemBlackHalo = new ItemBlackHalo();
|
||||
GameRegistry.registerItem(itemBlackHalo, "itemBlackHalo");
|
||||
ItemListAB.itemNebulaBlaze = new ItemNebulaBlaze();
|
||||
GameRegistry.registerItem(itemNebulaBlaze, "itemNebulaBlaze");
|
||||
ItemListAB.itemAntigravityCharm = new ItemAntigravityCharm();
|
||||
GameRegistry.registerItem(itemAntigravityCharm, "itemAntigravityCharm");
|
||||
ItemListAB.itemNebulaRod = new ItemNebulaRod();
|
||||
GameRegistry.registerItem(itemNebulaRod, "itemNebulaRod");
|
||||
ItemListAB.itemSprawlRod = new ItemSprawlRod();
|
||||
GameRegistry.registerItem(itemSprawlRod, "itemSprawlRod");
|
||||
ItemListAB.itemAquaSword = new ItemAquaSword();
|
||||
GameRegistry.registerItem(itemAquaSword, "itemAquaSword");
|
||||
|
||||
ItemListAB.itemPocketWardrobe = new ItemPocketWardrobe();
|
||||
ItemListAB.itemTalismanHiddenRiches = new ItemTalismanHiddenRiches();
|
||||
ItemListAB.itemFreyrSlingshot = new ItemFreyrSlingshot();
|
||||
ItemListAB.itemHornPlenty = new ItemHornPlenty();
|
||||
ItemListAB.itemSphereNavigation = new ItemSphereNavigation();
|
||||
|
||||
// ItemListAB.itemWildHuntHelm = new ItemWildHuntHelm();
|
||||
// ItemListAB.itemWildHuntChest = new ItemWildHuntChest();
|
||||
// ItemListAB.itemWildHuntLegs = new ItemWildHuntLegs();
|
||||
// ItemListAB.itemWildHuntBoots = new ItemWildHuntBoots();
|
||||
|
||||
ItemListAB.itemNebulaHelm = new ItemNebulaHelm();
|
||||
ItemListAB.itemNebulaChest = new ItemNebulaChest();
|
||||
ItemListAB.itemNebulaLegs = new ItemNebulaLegs();
|
||||
ItemListAB.itemNebulaBoots = new ItemNebulaBoots();
|
||||
if(Botania.thaumcraftLoaded)
|
||||
thaumcraft();
|
||||
|
||||
}
|
||||
|
||||
public static void thaumcraft() {
|
||||
ItemListAB.itemNebulaHelmReveal = new ItemNebulaHelmRevealing();
|
||||
if(ConfigABHandler.hasAutoThaum) {
|
||||
ItemListAB.itemCraftingPattern = new ItemCraftingPattern();
|
||||
GameRegistry.registerItem(itemCraftingPattern, "itemCraftingPattern");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,327 @@
|
||||
package ab.common.lib.register;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
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.TileNidavellirForge;
|
||||
import ab.common.block.tile.TileLebethronCore;
|
||||
import ab.common.block.tile.TileMagicCraftCrate;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.item.ItemCraftingPattern;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.CraftingManager;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||
import thaumcraft.common.config.ConfigBlocks;
|
||||
import thaumcraft.common.config.ConfigItems;
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
import vazkii.botania.api.lexicon.KnowledgeType;
|
||||
import vazkii.botania.api.lexicon.LexiconCategory;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.api.lexicon.LexiconPage;
|
||||
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 {
|
||||
|
||||
public static LexiconCategory categoryForgotten;
|
||||
|
||||
public static RecipeAncientAlphirine lebethroneRecipe;
|
||||
public static RecipeAncientAlphirine forgottenLandRecipe;
|
||||
public static RecipeAncientAlphirine advancedSparkRecipe;
|
||||
public static RecipeAncientAlphirine manaFlowerRecipe;
|
||||
public static RecipeAncientAlphirine hopperRecipe;
|
||||
public static RecipeAncientAlphirine fateBoardRecipe;
|
||||
|
||||
public static RecipeAdvancedPlate manaStarRecipe;
|
||||
public static RecipeAdvancedPlate terrasteelRecipe;
|
||||
public static RecipeAdvancedPlate mithrillRecipe;
|
||||
public static RecipeAdvancedPlate nebulaRecipe;
|
||||
|
||||
public static RecipePetals alphirineRecipe;
|
||||
public static RecipePetals dictariusRecipe;
|
||||
public static RecipePetals aspecolusRecipe;
|
||||
public static RecipePetals pureGladRecipe;
|
||||
public static RecipePetals azartFlowerRecipe;
|
||||
|
||||
public static LexiconEntry advandedAgglomerationPlate;
|
||||
public static LexiconEntry ancientAlphirine;
|
||||
public static LexiconEntry lebethronWood;
|
||||
public static LexiconEntry lebethronSpreader;
|
||||
public static LexiconEntry mithrill;
|
||||
public static LexiconEntry manaContainer;
|
||||
public static LexiconEntry manaCrystalCube;
|
||||
public static LexiconEntry terraHoe;
|
||||
public static LexiconEntry manaRings;
|
||||
public static LexiconEntry manaFlower;
|
||||
public static LexiconEntry mithrillSword;
|
||||
public static LexiconEntry nebula;
|
||||
public static LexiconEntry blackHalo;
|
||||
public static LexiconEntry antigravityCharm;
|
||||
public static LexiconEntry nebulaBlaze;
|
||||
public static LexiconEntry aspecolus;
|
||||
public static LexiconEntry dictarius;
|
||||
public static LexiconEntry manaCharger;
|
||||
public static LexiconEntry nebulaArmor;
|
||||
public static LexiconEntry freyrSlingshot;
|
||||
public static LexiconEntry engineerHopper;
|
||||
public static LexiconEntry nebulaRod;
|
||||
public static LexiconEntry thaumAutoCraft;
|
||||
public static LexiconEntry gladious;
|
||||
public static LexiconEntry gameBoard;
|
||||
public static LexiconEntry fateBoard;
|
||||
public static LexiconEntry richesKey;
|
||||
public static LexiconEntry cubeWardrobe;
|
||||
public static LexiconEntry sphereNavigation;
|
||||
public static LexiconEntry hornPlenty;
|
||||
public static LexiconEntry sprawlRod;
|
||||
public static LexiconEntry azartFlower;
|
||||
public static LexiconEntry aquaSword;
|
||||
|
||||
public static KnowledgeType forgotten;
|
||||
|
||||
public static void init() {
|
||||
relicInit();
|
||||
|
||||
BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
|
||||
forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
|
||||
|
||||
lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
|
||||
forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
|
||||
advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
|
||||
manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
|
||||
hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
|
||||
fateBoardRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockBoardFate, 1, 1), new ItemStack(BlockListAB.blockBoardFate), 60);
|
||||
|
||||
mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 2500000, 0x25d6b7);
|
||||
terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
|
||||
manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
|
||||
nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 25000000, 0x8d16e0);
|
||||
|
||||
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"), new PageImage("2", "ab:textures/misc/ancientAlphirine.png"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { "MPM", " F ", "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.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)});
|
||||
lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
|
||||
lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
|
||||
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
|
||||
IRecipe leb1 = getLastRecipe();
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
|
||||
IRecipe leb2 = getLastRecipe();
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
|
||||
IRecipe leb3 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
|
||||
IRecipe leb4 = getLastRecipe();
|
||||
lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
|
||||
lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
|
||||
mithrill = new BLexiconEntry("mithrill", categoryForgotten);
|
||||
mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont1 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont2 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont3 = getLastRecipe();
|
||||
manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
|
||||
manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
|
||||
manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
|
||||
manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
|
||||
terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
|
||||
terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
|
||||
IRecipe ring1 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
|
||||
IRecipe ring2 = getLastRecipe();
|
||||
manaRings = new BLexiconEntry("manaRings", categoryForgotten);
|
||||
manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
|
||||
AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
|
||||
manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
|
||||
manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
|
||||
mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
|
||||
mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
|
||||
|
||||
dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
|
||||
dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
|
||||
dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
|
||||
|
||||
nebula = new BLexiconEntry("nebula", categoryForgotten);
|
||||
nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
|
||||
blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
|
||||
blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
|
||||
antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
|
||||
antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
|
||||
nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
|
||||
nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
if(ConfigABHandler.hasManaCharger) {
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
|
||||
manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
|
||||
manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
}
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
|
||||
IRecipe nHelm = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
|
||||
IRecipe nChest = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
|
||||
IRecipe nLegs = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
|
||||
IRecipe nBoots = getLastRecipe();
|
||||
nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
|
||||
nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft3", nBoots)});
|
||||
|
||||
engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
|
||||
engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageImage("1", "ab:textures/misc/engineerHopper.png"), new PageText("2"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
|
||||
nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
|
||||
nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockBoardFate), new Object[] { " ", "QDQ", "MPM", Character.valueOf('Q'), new ItemStack(ModFluffBlocks.manaQuartz), Character.valueOf('D'), new ItemStack(ModItems.manaResource, 1, 2), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('P'), new ItemStack(ModItems.manaResource, 1, 23)});
|
||||
gameBoard = new BLexiconEntry("gameBoard", BotaniaAPI.categoryMisc);
|
||||
gameBoard.setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
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")});
|
||||
|
||||
sphereNavigation = new RLexiconEntry("sphereNavigation", BotaniaAPI.categoryAlfhomancy, AchievementRegister.sphereNavigation);
|
||||
sphereNavigation.setLexiconPages(new LexiconPage[] { new PageText("0")});
|
||||
|
||||
hornPlenty = new RLexiconEntry("hornPlenty", BotaniaAPI.categoryAlfhomancy, AchievementRegister.hornPlenty);
|
||||
hornPlenty.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)});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAquaSword), new Object[] { " N", "RM ", "WR ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('R'), new ItemStack(ModItems.rune), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13)});
|
||||
aquaSword = new BLexiconEntry("aquaSword", categoryForgotten);
|
||||
aquaSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
if(Botania.thaumcraftLoaded)
|
||||
thaumcraft();
|
||||
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
|
||||
}
|
||||
|
||||
public static void thaumcraft() {
|
||||
aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
|
||||
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)});
|
||||
|
||||
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)});
|
||||
|
||||
}
|
||||
|
||||
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);
|
||||
gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
|
||||
}
|
||||
|
||||
public static void relicInit() {
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.infiniteFruit));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.kingKey));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.flugelEye));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.thorRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.odinRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.lokiRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemFreyrSlingshot));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemTalismanHiddenRiches));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemPocketWardrobe));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemSphereNavigation));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemHornPlenty));
|
||||
}
|
||||
|
||||
private static IRecipe getLastRecipe() {
|
||||
return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
|
||||
}
|
||||
|
||||
private static void addOreDictRecipe(ItemStack output, Object... recipe) {
|
||||
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
|
||||
}
|
||||
|
||||
private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
|
||||
CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
|
||||
}
|
||||
}
|
||||
@@ -2,8 +2,10 @@ package ab.common.block.subtile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.lib.register.RecipeListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
@@ -20,7 +22,7 @@ import vazkii.botania.common.block.tile.TileSpecialFlower;
|
||||
|
||||
public class SubTileDictarius extends SubTileGenerating {
|
||||
|
||||
private static final int workMana = 360;
|
||||
private static final int workMana = 480;
|
||||
int cooldown;
|
||||
|
||||
public void onUpdate() {
|
||||
@@ -31,22 +33,28 @@ public class SubTileDictarius extends SubTileGenerating {
|
||||
int posY = this.supertile.yCoord;
|
||||
int posZ = this.supertile.zCoord;
|
||||
World world = this.supertile.getWorldObj();
|
||||
if(this.ticksExisted % 1200 == 0)
|
||||
if(world.getTotalWorldTime() % 1200 == 0)
|
||||
checkNearDictarius();
|
||||
if(cooldown == 0) {
|
||||
if(this.mana != this.getMaxMana() && cooldown == 0) {
|
||||
List<EntityLivingBase> livs = world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(posX, posY, posZ, (posX + 1), (posY + 1), (posZ + 1)).expand(2, 1, 2));
|
||||
int workMana = 0;
|
||||
int villagers = 0;
|
||||
if(!livs.isEmpty()) {
|
||||
for(int i = 0; i < Math.min(livs.size(), 16); i++) {
|
||||
EntityLivingBase liv = livs.get(i);
|
||||
if(liv instanceof EntityPlayer)
|
||||
workMana += SubTileDictarius.workMana;
|
||||
else if(liv instanceof EntityVillager)
|
||||
workMana += (int)(SubTileDictarius.workMana / 8);
|
||||
workMana += SubTileDictarius.workMana;
|
||||
else if(!world.isRemote && liv instanceof EntityVillager) {
|
||||
workMana += (int)(SubTileDictarius.workMana / 6);
|
||||
if(villagers > 15 && world.rand.nextInt(100) <= 4)
|
||||
liv.setDead();
|
||||
villagers++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(workMana > 0) {
|
||||
else if(workMana > 0) {
|
||||
this.cooldown = 200;
|
||||
workMana *= Math.random();
|
||||
this.mana = Math.min(this.getMaxMana(), this.mana + workMana);
|
||||
sync();
|
||||
}
|
||||
@@ -56,7 +64,6 @@ public class SubTileDictarius extends SubTileGenerating {
|
||||
}
|
||||
|
||||
public void checkNearDictarius() {
|
||||
int maxFlower = 64;
|
||||
int findedFlower = 0;
|
||||
for(int z = -4; z < 4; z++) {
|
||||
for(int x = -4; x < 4; x++) {
|
||||
@@ -68,7 +75,7 @@ public class SubTileDictarius extends SubTileGenerating {
|
||||
if(tile != null && tile instanceof TileSpecialFlower) {
|
||||
TileSpecialFlower tileFlower = (TileSpecialFlower)tile;
|
||||
if(tileFlower.subTileName.equals("dictarius")) {
|
||||
if(findedFlower >= maxFlower) {
|
||||
if(findedFlower >= ConfigABHandler.maxDictariusCount) {
|
||||
this.supertile.getWorldObj().playAuxSFX(2001, this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, Block.getIdFromBlock(this.supertile.getBlockType()));
|
||||
if(this.supertile.getWorldObj().getBlock(this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord).isSideSolid((IBlockAccess)this.supertile.getWorldObj(), this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord, ForgeDirection.UP))
|
||||
this.supertile.getWorldObj().setBlock(this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, (Block)Blocks.deadbush);
|
||||
@@ -2,8 +2,10 @@ package ab.common.block.subtile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.lib.register.RecipeListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
@@ -20,7 +22,7 @@ import vazkii.botania.common.block.tile.TileSpecialFlower;
|
||||
|
||||
public class SubTileDictarius extends SubTileGenerating {
|
||||
|
||||
private static final int workMana = 360;
|
||||
private static final int workMana = 480;
|
||||
int cooldown;
|
||||
|
||||
public void onUpdate() {
|
||||
@@ -31,32 +33,36 @@ public class SubTileDictarius extends SubTileGenerating {
|
||||
int posY = this.supertile.yCoord;
|
||||
int posZ = this.supertile.zCoord;
|
||||
World world = this.supertile.getWorldObj();
|
||||
if(this.ticksExisted % 1200 == 0)
|
||||
if(world.getTotalWorldTime() % 1200 == 0)
|
||||
checkNearDictarius();
|
||||
if(cooldown == 0) {
|
||||
List<EntityLivingBase> livs = world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(posX, posY, posZ, (posX + 1), (posY + 1), (posZ + 1)).expand(2, 1, 2));
|
||||
int workMana = 0;
|
||||
int villagers = 0;
|
||||
if(!livs.isEmpty()) {
|
||||
for(int i = 0; i < Math.min(livs.size(), 16); i++) {
|
||||
EntityLivingBase liv = livs.get(i);
|
||||
if(liv instanceof EntityPlayer)
|
||||
workMana += SubTileDictarius.workMana;
|
||||
else if(liv instanceof EntityVillager)
|
||||
workMana += (int)(SubTileDictarius.workMana / 8);
|
||||
workMana += SubTileDictarius.workMana;
|
||||
else if(!world.isRemote && liv instanceof EntityVillager) {
|
||||
workMana += (int)(SubTileDictarius.workMana / 6);
|
||||
if(villagers > 15 && world.rand.nextInt(100) <= 4)
|
||||
liv.setDead();
|
||||
villagers++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(workMana > 0) {
|
||||
} else if(workMana > 0) {
|
||||
this.cooldown = 200;
|
||||
workMana *= Math.random();
|
||||
this.mana = Math.min(this.getMaxMana(), this.mana + workMana);
|
||||
sync();
|
||||
}
|
||||
}
|
||||
if(this.cooldown > 0)
|
||||
this.cooldown -= 1;
|
||||
if(cooldown > 0)
|
||||
cooldown -= 1;
|
||||
}
|
||||
|
||||
public void checkNearDictarius() {
|
||||
int maxFlower = 64;
|
||||
int findedFlower = 0;
|
||||
for(int z = -4; z < 4; z++) {
|
||||
for(int x = -4; x < 4; x++) {
|
||||
@@ -68,7 +74,7 @@ public class SubTileDictarius extends SubTileGenerating {
|
||||
if(tile != null && tile instanceof TileSpecialFlower) {
|
||||
TileSpecialFlower tileFlower = (TileSpecialFlower)tile;
|
||||
if(tileFlower.subTileName.equals("dictarius")) {
|
||||
if(findedFlower >= maxFlower) {
|
||||
if(findedFlower >= ConfigABHandler.maxDictariusCount) {
|
||||
this.supertile.getWorldObj().playAuxSFX(2001, this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, Block.getIdFromBlock(this.supertile.getBlockType()));
|
||||
if(this.supertile.getWorldObj().getBlock(this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord).isSideSolid((IBlockAccess)this.supertile.getWorldObj(), this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord, ForgeDirection.UP))
|
||||
this.supertile.getWorldObj().setBlock(this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, (Block)Blocks.deadbush);
|
||||
@@ -0,0 +1,327 @@
|
||||
package ab.common.lib.register;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
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.TileNidavellirForge;
|
||||
import ab.common.block.tile.TileLebethronCore;
|
||||
import ab.common.block.tile.TileMagicCraftCrate;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.item.ItemCraftingPattern;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.CraftingManager;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||
import thaumcraft.common.config.ConfigBlocks;
|
||||
import thaumcraft.common.config.ConfigItems;
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
import vazkii.botania.api.lexicon.KnowledgeType;
|
||||
import vazkii.botania.api.lexicon.LexiconCategory;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.api.lexicon.LexiconPage;
|
||||
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 {
|
||||
|
||||
public static LexiconCategory categoryForgotten;
|
||||
|
||||
public static RecipeAncientAlphirine lebethroneRecipe;
|
||||
public static RecipeAncientAlphirine forgottenLandRecipe;
|
||||
public static RecipeAncientAlphirine advancedSparkRecipe;
|
||||
public static RecipeAncientAlphirine manaFlowerRecipe;
|
||||
public static RecipeAncientAlphirine hopperRecipe;
|
||||
public static RecipeAncientAlphirine fateBoardRecipe;
|
||||
|
||||
public static RecipeAdvancedPlate manaStarRecipe;
|
||||
public static RecipeAdvancedPlate terrasteelRecipe;
|
||||
public static RecipeAdvancedPlate mithrillRecipe;
|
||||
public static RecipeAdvancedPlate nebulaRecipe;
|
||||
|
||||
public static RecipePetals alphirineRecipe;
|
||||
public static RecipePetals dictariusRecipe;
|
||||
public static RecipePetals aspecolusRecipe;
|
||||
public static RecipePetals pureGladRecipe;
|
||||
public static RecipePetals azartFlowerRecipe;
|
||||
|
||||
public static LexiconEntry advandedAgglomerationPlate;
|
||||
public static LexiconEntry ancientAlphirine;
|
||||
public static LexiconEntry lebethronWood;
|
||||
public static LexiconEntry lebethronSpreader;
|
||||
public static LexiconEntry mithrill;
|
||||
public static LexiconEntry manaContainer;
|
||||
public static LexiconEntry manaCrystalCube;
|
||||
public static LexiconEntry terraHoe;
|
||||
public static LexiconEntry manaRings;
|
||||
public static LexiconEntry manaFlower;
|
||||
public static LexiconEntry mithrillSword;
|
||||
public static LexiconEntry nebula;
|
||||
public static LexiconEntry blackHalo;
|
||||
public static LexiconEntry antigravityCharm;
|
||||
public static LexiconEntry nebulaBlaze;
|
||||
public static LexiconEntry aspecolus;
|
||||
public static LexiconEntry dictarius;
|
||||
public static LexiconEntry manaCharger;
|
||||
public static LexiconEntry nebulaArmor;
|
||||
public static LexiconEntry freyrSlingshot;
|
||||
public static LexiconEntry engineerHopper;
|
||||
public static LexiconEntry nebulaRod;
|
||||
public static LexiconEntry thaumAutoCraft;
|
||||
public static LexiconEntry gladious;
|
||||
public static LexiconEntry gameBoard;
|
||||
public static LexiconEntry fateBoard;
|
||||
public static LexiconEntry richesKey;
|
||||
public static LexiconEntry cubeWardrobe;
|
||||
public static LexiconEntry sphereNavigation;
|
||||
public static LexiconEntry hornPlenty;
|
||||
public static LexiconEntry sprawlRod;
|
||||
public static LexiconEntry azartFlower;
|
||||
public static LexiconEntry aquaSword;
|
||||
|
||||
public static KnowledgeType forgotten;
|
||||
|
||||
public static void init() {
|
||||
relicInit();
|
||||
|
||||
BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
|
||||
forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
|
||||
|
||||
lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
|
||||
forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
|
||||
advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
|
||||
manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
|
||||
hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
|
||||
fateBoardRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockBoardFate, 1, 1), new ItemStack(BlockListAB.blockBoardFate), 60);
|
||||
|
||||
mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 2500000, 0x25d6b7);
|
||||
terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
|
||||
manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
|
||||
nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 25000000, 0x8d16e0);
|
||||
|
||||
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"), new PageImage("2", "ab:textures/misc/ancientAlphirine.png"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { "MPM", " F ", "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.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)});
|
||||
lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
|
||||
lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
|
||||
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
|
||||
IRecipe leb1 = getLastRecipe();
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
|
||||
IRecipe leb2 = getLastRecipe();
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
|
||||
IRecipe leb3 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
|
||||
IRecipe leb4 = getLastRecipe();
|
||||
lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
|
||||
lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
|
||||
mithrill = new BLexiconEntry("mithrill", categoryForgotten);
|
||||
mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont1 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont2 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont3 = getLastRecipe();
|
||||
manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
|
||||
manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
|
||||
manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
|
||||
manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
|
||||
terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
|
||||
terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
|
||||
IRecipe ring1 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
|
||||
IRecipe ring2 = getLastRecipe();
|
||||
manaRings = new BLexiconEntry("manaRings", categoryForgotten);
|
||||
manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
|
||||
AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
|
||||
manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
|
||||
manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
|
||||
mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
|
||||
mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
|
||||
|
||||
dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
|
||||
dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
|
||||
dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
|
||||
|
||||
nebula = new BLexiconEntry("nebula", categoryForgotten);
|
||||
nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
|
||||
blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
|
||||
blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
|
||||
antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
|
||||
antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
|
||||
nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
|
||||
nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
if(ConfigABHandler.hasManaCharger) {
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
|
||||
manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
|
||||
manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
}
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
|
||||
IRecipe nHelm = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
|
||||
IRecipe nChest = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
|
||||
IRecipe nLegs = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
|
||||
IRecipe nBoots = getLastRecipe();
|
||||
nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
|
||||
nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft3", nBoots)});
|
||||
|
||||
engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
|
||||
engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageImage("1", "ab:textures/misc/engineerHopper.png"), new PageText("2"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
|
||||
nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
|
||||
nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockBoardFate), new Object[] { " ", "QDQ", "MPM", Character.valueOf('Q'), new ItemStack(ModFluffBlocks.manaQuartz), Character.valueOf('D'), new ItemStack(ModItems.manaResource, 1, 2), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('P'), new ItemStack(ModItems.manaResource, 1, 23)});
|
||||
gameBoard = new BLexiconEntry("gameBoard", BotaniaAPI.categoryMisc);
|
||||
gameBoard.setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
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")});
|
||||
|
||||
sphereNavigation = new RLexiconEntry("sphereNavigation", BotaniaAPI.categoryAlfhomancy, AchievementRegister.sphereNavigation);
|
||||
sphereNavigation.setLexiconPages(new LexiconPage[] { new PageText("0")});
|
||||
|
||||
hornPlenty = new RLexiconEntry("hornPlenty", BotaniaAPI.categoryAlfhomancy, AchievementRegister.hornPlenty);
|
||||
hornPlenty.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)});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAquaSword), new Object[] { " N", "RM ", "WR ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('R'), new ItemStack(ModItems.rune), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13)});
|
||||
aquaSword = new BLexiconEntry("aquaSword", categoryForgotten);
|
||||
aquaSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
if(Botania.thaumcraftLoaded)
|
||||
thaumcraft();
|
||||
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
|
||||
}
|
||||
|
||||
public static void thaumcraft() {
|
||||
aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
|
||||
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)});
|
||||
|
||||
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)});
|
||||
|
||||
}
|
||||
|
||||
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);
|
||||
gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
|
||||
}
|
||||
|
||||
public static void relicInit() {
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.infiniteFruit));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.kingKey));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.flugelEye));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.thorRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.odinRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.lokiRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemFreyrSlingshot));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemTalismanHiddenRiches));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemPocketWardrobe));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemSphereNavigation));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemHornPlenty));
|
||||
}
|
||||
|
||||
private static IRecipe getLastRecipe() {
|
||||
return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
|
||||
}
|
||||
|
||||
private static void addOreDictRecipe(ItemStack output, Object... recipe) {
|
||||
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
|
||||
}
|
||||
|
||||
private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
|
||||
CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
package ab.common.item.equipment;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
import ab.AdvancedBotany;
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
import ab.client.core.ClientHelper;
|
||||
import ab.client.core.handler.PlayerItemUsingSound.ClientSoundHandler;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
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.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.ItemSword;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.helper.ItemNBTHelper;
|
||||
import vazkii.botania.common.core.helper.Vector3;
|
||||
|
||||
public class ItemAquaSword extends ItemSword {
|
||||
|
||||
public ItemAquaSword() {
|
||||
super(AdvancedBotanyAPI.mithrilToolMaterial);
|
||||
this.setCreativeTab(AdvancedBotany.tabAB);
|
||||
this.setUnlocalizedName("itemAquaSword");
|
||||
this.setTextureName("ab:itemAquaSword");
|
||||
}
|
||||
|
||||
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1.7f, 1.7f, 1.7f);
|
||||
List<EntityLivingBase> entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
double posX = entity.posX;
|
||||
double posY = entity.posY + entity.getEyeHeight();
|
||||
double posZ = entity.posZ;
|
||||
if(!player.worldObj.isRemote) {
|
||||
boolean hasWaterSplash = false;
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(player.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
else if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(player), AdvancedBotanyAPI.mithrilToolMaterial.getDamageVsEntity() / 2.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, player, 10, true);
|
||||
if(!hasWaterSplash)
|
||||
hasWaterSplash = true;
|
||||
Vec3 vec3 = player.getLook(1.0F).normalize();
|
||||
living.motionX += vec3.xCoord * 1.35f;
|
||||
living.motionY += (vec3.yCoord / 1.8f);
|
||||
living.motionZ += vec3.zCoord * 1.35f;
|
||||
}
|
||||
}
|
||||
if(hasWaterSplash)
|
||||
player.worldObj.playSoundAtEntity(player, "ab:aquaSword", 1.2F, 1.2F);
|
||||
} else {
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false)) {
|
||||
for(int i = 0; i < 24; i++) {
|
||||
float mtX = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtY = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtZ = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
Botania.proxy.wispFX(player.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.17f + (float)(Math.random() * 0.3f), mtX, mtY, mtZ, 0.512f);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onLeftClickEntity(stack, player, entity);
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
|
||||
if(p.worldObj.isRemote) {
|
||||
if(!ManaItemHandler.requestManaExactForTool(stack, p, 15, false))
|
||||
return;
|
||||
ClientSoundHandler.playSound(p, "liquid.water", 0.5F, 1.6F, 10);
|
||||
time = (this.getMaxItemUseDuration(stack) - time) % 120 + 1;
|
||||
if(time > 50)
|
||||
time = 120 - time;
|
||||
float phase = time / 120.0f;
|
||||
int wispCount = 8;
|
||||
double tickIncrement = 360.0D / wispCount;
|
||||
int speed = 10;
|
||||
double wticks = (time * speed) - tickIncrement;
|
||||
double r = Math.sin(1.4f);
|
||||
for(int i = 0; i < wispCount; i++) {
|
||||
double posX = p.posX + Math.sin(wticks * Math.PI / 180.0D) * r;
|
||||
double posY = p.posY + (wticks * 0.001f) + 0.1f;
|
||||
double posZ = p.posZ + Math.cos(wticks * Math.PI / 180.0D) * r;
|
||||
Botania.proxy.wispFX(p.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.3F, 0.0f, -0.1f + (float)(Math.random() * 0.05f), 0.0f, 0.7F);
|
||||
wticks += tickIncrement;
|
||||
}
|
||||
} else {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(p.posX, p.posY, p.posZ, p.lastTickPosX, p.lastTickPosY, p.lastTickPosZ).expand(2.75f, 2.75f, 2.75f);
|
||||
List<EntityLivingBase> entities = p.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(p.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
double dist = living.getDistance(p.posX, p.posY, p.posZ) / 2.5f;
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, p, 15, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(p), 1.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, p, 15, true);
|
||||
if(dist <= 1.0D) {
|
||||
double d5 = living.posX - p.posX;
|
||||
double d7 = living.posZ - p.posZ;
|
||||
double d9 = (double)MathHelper.sqrt_double(d5 * d5 + d7 * d7);
|
||||
if (d9 != 0.0D) {
|
||||
d5 /= d9;
|
||||
d7 /= d9;
|
||||
living.motionX += d5 * 1.2f;
|
||||
living.motionZ += d7 * 1.2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package ab.common.lib.register;
|
||||
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.item.*;
|
||||
import ab.common.item.equipment.*;
|
||||
import ab.common.item.equipment.armor.ItemNebulaBoots;
|
||||
import ab.common.item.equipment.armor.ItemNebulaChest;
|
||||
import ab.common.item.equipment.armor.ItemNebulaHelm;
|
||||
import ab.common.item.equipment.armor.ItemNebulaHelmRevealing;
|
||||
import ab.common.item.equipment.armor.ItemNebulaLegs;
|
||||
import ab.common.item.equipment.armor.ItemWildHuntBoots;
|
||||
import ab.common.item.equipment.armor.ItemWildHuntChest;
|
||||
import ab.common.item.equipment.armor.ItemWildHuntHelm;
|
||||
import ab.common.item.equipment.armor.ItemWildHuntLegs;
|
||||
import ab.common.item.relic.ItemFreyrSlingshot;
|
||||
import ab.common.item.relic.ItemHornPlenty;
|
||||
import ab.common.item.relic.ItemPocketWardrobe;
|
||||
import ab.common.item.relic.ItemSphereNavigation;
|
||||
import ab.common.item.relic.ItemTalismanHiddenRiches;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.item.Item;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.handler.ConfigHandler;
|
||||
|
||||
public class ItemListAB {
|
||||
|
||||
public static Item itemABResource;
|
||||
public static Item itemMithrillRing;
|
||||
public static Item itemMihrillMultiTool;
|
||||
public static Item itemNebulaRing;
|
||||
public static Item itemAdvancedSpark;
|
||||
public static Item itemMithrillSword;
|
||||
public static Item itemTerraHoe;
|
||||
public static Item itemManaFlower;
|
||||
public static Item itemBlackHalo;
|
||||
public static Item itemNebulaBlaze;
|
||||
public static Item itemAntigravityCharm;
|
||||
public static Item itemNebulaHelm;
|
||||
public static Item itemNebulaHelmReveal;
|
||||
public static Item itemNebulaChest;
|
||||
public static Item itemNebulaLegs;
|
||||
public static Item itemNebulaBoots;
|
||||
public static Item itemFreyrSlingshot;
|
||||
public static Item itemNebulaRod;
|
||||
public static Item itemCraftingPattern;
|
||||
public static Item itemSprawlRod;
|
||||
public static Item itemPocketWardrobe;
|
||||
public static Item itemTalismanHiddenRiches;
|
||||
public static Item itemHornPlenty;
|
||||
public static Item itemSphereNavigation;
|
||||
public static Item itemAquaSword;
|
||||
public static Item itemWildHuntHelm;
|
||||
public static Item itemWildHuntChest;
|
||||
public static Item itemWildHuntLegs;
|
||||
public static Item itemWildHuntBoots;
|
||||
|
||||
public static void init() {
|
||||
ItemListAB.itemABResource = new ItemABResource();
|
||||
GameRegistry.registerItem(itemABResource, "itemABResource");
|
||||
ItemListAB.itemMithrillRing = new ItemMithrillRing("mithrillManaRing");
|
||||
GameRegistry.registerItem(itemMithrillRing, "itemMithrillRing");
|
||||
ItemListAB.itemNebulaRing = new ItemNebulaRing("nebulaManaRing");
|
||||
GameRegistry.registerItem(itemNebulaRing, "itemNebulaRing");
|
||||
ItemListAB.itemMihrillMultiTool = new ItemMithrillMultiTool();
|
||||
GameRegistry.registerItem(itemMihrillMultiTool, "itemMihrillMultiTool");
|
||||
ItemListAB.itemAdvancedSpark = new ItemAdvancedSpark();
|
||||
GameRegistry.registerItem(itemAdvancedSpark, "itemAdvancedSpark");
|
||||
ItemListAB.itemMithrillSword = new ItemSpaceBlade();
|
||||
GameRegistry.registerItem(itemMithrillSword, "itemMithrillSword");
|
||||
ItemListAB.itemTerraHoe = new ItemTerraHoe();
|
||||
GameRegistry.registerItem(itemTerraHoe, "itemTerraHoe");
|
||||
ItemListAB.itemManaFlower = new ItemManaFlower();
|
||||
GameRegistry.registerItem(itemManaFlower, "itemManaFlower");
|
||||
ItemListAB.itemBlackHalo = new ItemBlackHalo();
|
||||
GameRegistry.registerItem(itemBlackHalo, "itemBlackHalo");
|
||||
ItemListAB.itemNebulaBlaze = new ItemNebulaBlaze();
|
||||
GameRegistry.registerItem(itemNebulaBlaze, "itemNebulaBlaze");
|
||||
ItemListAB.itemAntigravityCharm = new ItemAntigravityCharm();
|
||||
GameRegistry.registerItem(itemAntigravityCharm, "itemAntigravityCharm");
|
||||
ItemListAB.itemNebulaRod = new ItemNebulaRod();
|
||||
GameRegistry.registerItem(itemNebulaRod, "itemNebulaRod");
|
||||
ItemListAB.itemSprawlRod = new ItemSprawlRod();
|
||||
GameRegistry.registerItem(itemSprawlRod, "itemSprawlRod");
|
||||
ItemListAB.itemAquaSword = new ItemAquaSword();
|
||||
GameRegistry.registerItem(itemAquaSword, "itemAquaSword");
|
||||
|
||||
ItemListAB.itemPocketWardrobe = new ItemPocketWardrobe();
|
||||
ItemListAB.itemTalismanHiddenRiches = new ItemTalismanHiddenRiches();
|
||||
ItemListAB.itemFreyrSlingshot = new ItemFreyrSlingshot();
|
||||
ItemListAB.itemHornPlenty = new ItemHornPlenty();
|
||||
ItemListAB.itemSphereNavigation = new ItemSphereNavigation();
|
||||
|
||||
ItemListAB.itemWildHuntHelm = new ItemWildHuntHelm();
|
||||
ItemListAB.itemWildHuntChest = new ItemWildHuntChest();
|
||||
ItemListAB.itemWildHuntLegs = new ItemWildHuntLegs();
|
||||
ItemListAB.itemWildHuntBoots = new ItemWildHuntBoots();
|
||||
|
||||
ItemListAB.itemNebulaHelm = new ItemNebulaHelm();
|
||||
ItemListAB.itemNebulaChest = new ItemNebulaChest();
|
||||
ItemListAB.itemNebulaLegs = new ItemNebulaLegs();
|
||||
ItemListAB.itemNebulaBoots = new ItemNebulaBoots();
|
||||
if(Botania.thaumcraftLoaded)
|
||||
thaumcraft();
|
||||
|
||||
}
|
||||
|
||||
public static void thaumcraft() {
|
||||
ItemListAB.itemNebulaHelmReveal = new ItemNebulaHelmRevealing();
|
||||
if(ConfigABHandler.hasAutoThaum) {
|
||||
ItemListAB.itemCraftingPattern = new ItemCraftingPattern();
|
||||
GameRegistry.registerItem(itemCraftingPattern, "itemCraftingPattern");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
package ab.common.item.equipment;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
import ab.AdvancedBotany;
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
import ab.client.core.ClientHelper;
|
||||
import ab.client.core.handler.PlayerItemUsingSound.ClientSoundHandler;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
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.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.ItemSword;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.helper.ItemNBTHelper;
|
||||
import vazkii.botania.common.core.helper.Vector3;
|
||||
|
||||
public class ItemAquaSword extends ItemSword {
|
||||
|
||||
public ItemAquaSword() {
|
||||
super(AdvancedBotanyAPI.mithrilToolMaterial);
|
||||
this.setCreativeTab(AdvancedBotany.tabAB);
|
||||
this.setUnlocalizedName("itemAquaSword");
|
||||
this.setTextureName("ab:itemAquaSword");
|
||||
}
|
||||
|
||||
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1.7f, 1.7f, 1.7f);
|
||||
List<EntityLivingBase> entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
double posX = entity.posX;
|
||||
double posY = entity.posY + entity.getEyeHeight();
|
||||
double posZ = entity.posZ;
|
||||
if(!player.worldObj.isRemote) {
|
||||
boolean hasWaterSplash = false;
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(player.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
else if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(player), AdvancedBotanyAPI.mithrilToolMaterial.getDamageVsEntity() / 2.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, player, 10, true);
|
||||
if(!hasWaterSplash)
|
||||
hasWaterSplash = true;
|
||||
Vec3 vec3 = player.getLook(1.0F).normalize();
|
||||
living.motionX += vec3.xCoord * 1.35f;
|
||||
living.motionY += (vec3.yCoord / 1.8f);
|
||||
living.motionZ += vec3.zCoord * 1.35f;
|
||||
}
|
||||
}
|
||||
if(hasWaterSplash)
|
||||
player.worldObj.playSoundAtEntity(player, "ab:aquaSword", 1.2F, 1.2F);
|
||||
} else {
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false)) {
|
||||
for(int i = 0; i < 24; i++) {
|
||||
float mtX = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtY = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtZ = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
Botania.proxy.wispFX(player.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.17f + (float)(Math.random() * 0.3f), mtX, mtY, mtZ, 0.512f);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onLeftClickEntity(stack, player, entity);
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
|
||||
if(p.worldObj.isRemote) {
|
||||
if(!ManaItemHandler.requestManaExactForTool(stack, p, 15, false))
|
||||
return;
|
||||
ClientSoundHandler.playSound(p, "random.fizz", 0.5F, 2.6F + (p.worldObj.rand.nextFloat() - p.worldObj.rand.nextFloat()) * 0.8F);
|
||||
time = (this.getMaxItemUseDuration(stack) - time) % 120 + 1;
|
||||
if(time > 50)
|
||||
time = 120 - time;
|
||||
float phase = time / 120.0f;
|
||||
int wispCount = 8;
|
||||
double tickIncrement = 360.0D / wispCount;
|
||||
int speed = 10;
|
||||
double wticks = (time * speed) - tickIncrement;
|
||||
double r = Math.sin(1.4f);
|
||||
for(int i = 0; i < wispCount; i++) {
|
||||
double posX = p.posX + Math.sin(wticks * Math.PI / 180.0D) * r;
|
||||
double posY = p.posY + (wticks * 0.001f) + 0.1f;
|
||||
double posZ = p.posZ + Math.cos(wticks * Math.PI / 180.0D) * r;
|
||||
Botania.proxy.wispFX(p.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.3F, 0.0f, -0.1f + (float)(Math.random() * 0.05f), 0.0f, 0.7F);
|
||||
wticks += tickIncrement;
|
||||
}
|
||||
} else {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(p.posX, p.posY, p.posZ, p.lastTickPosX, p.lastTickPosY, p.lastTickPosZ).expand(2.75f, 2.75f, 2.75f);
|
||||
List<EntityLivingBase> entities = p.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(p.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
double dist = living.getDistance(p.posX, p.posY, p.posZ) / 2.5f;
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, p, 15, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(p), 1.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, p, 15, true);
|
||||
if(dist <= 1.0D) {
|
||||
double d5 = living.posX - p.posX;
|
||||
double d7 = living.posZ - p.posZ;
|
||||
double d9 = (double)MathHelper.sqrt_double(d5 * d5 + d7 * d7);
|
||||
if (d9 != 0.0D) {
|
||||
d5 /= d9;
|
||||
d7 /= d9;
|
||||
living.motionX += d5 * 1.2f;
|
||||
living.motionZ += d7 * 1.2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,327 @@
|
||||
package ab.common.lib.register;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
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.TileNidavellirForge;
|
||||
import ab.common.block.tile.TileLebethronCore;
|
||||
import ab.common.block.tile.TileMagicCraftCrate;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.item.ItemCraftingPattern;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.CraftingManager;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||
import thaumcraft.common.config.ConfigBlocks;
|
||||
import thaumcraft.common.config.ConfigItems;
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
import vazkii.botania.api.lexicon.KnowledgeType;
|
||||
import vazkii.botania.api.lexicon.LexiconCategory;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.api.lexicon.LexiconPage;
|
||||
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 {
|
||||
|
||||
public static LexiconCategory categoryForgotten;
|
||||
|
||||
public static RecipeAncientAlphirine lebethroneRecipe;
|
||||
public static RecipeAncientAlphirine forgottenLandRecipe;
|
||||
public static RecipeAncientAlphirine advancedSparkRecipe;
|
||||
public static RecipeAncientAlphirine manaFlowerRecipe;
|
||||
public static RecipeAncientAlphirine hopperRecipe;
|
||||
public static RecipeAncientAlphirine fateBoardRecipe;
|
||||
|
||||
public static RecipeAdvancedPlate manaStarRecipe;
|
||||
public static RecipeAdvancedPlate terrasteelRecipe;
|
||||
public static RecipeAdvancedPlate mithrillRecipe;
|
||||
public static RecipeAdvancedPlate nebulaRecipe;
|
||||
|
||||
public static RecipePetals alphirineRecipe;
|
||||
public static RecipePetals dictariusRecipe;
|
||||
public static RecipePetals aspecolusRecipe;
|
||||
public static RecipePetals pureGladRecipe;
|
||||
public static RecipePetals azartFlowerRecipe;
|
||||
|
||||
public static LexiconEntry advandedAgglomerationPlate;
|
||||
public static LexiconEntry ancientAlphirine;
|
||||
public static LexiconEntry lebethronWood;
|
||||
public static LexiconEntry lebethronSpreader;
|
||||
public static LexiconEntry mithrill;
|
||||
public static LexiconEntry manaContainer;
|
||||
public static LexiconEntry manaCrystalCube;
|
||||
public static LexiconEntry terraHoe;
|
||||
public static LexiconEntry manaRings;
|
||||
public static LexiconEntry manaFlower;
|
||||
public static LexiconEntry mithrillSword;
|
||||
public static LexiconEntry nebula;
|
||||
public static LexiconEntry blackHalo;
|
||||
public static LexiconEntry antigravityCharm;
|
||||
public static LexiconEntry nebulaBlaze;
|
||||
public static LexiconEntry aspecolus;
|
||||
public static LexiconEntry dictarius;
|
||||
public static LexiconEntry manaCharger;
|
||||
public static LexiconEntry nebulaArmor;
|
||||
public static LexiconEntry freyrSlingshot;
|
||||
public static LexiconEntry engineerHopper;
|
||||
public static LexiconEntry nebulaRod;
|
||||
public static LexiconEntry thaumAutoCraft;
|
||||
public static LexiconEntry gladious;
|
||||
public static LexiconEntry gameBoard;
|
||||
public static LexiconEntry fateBoard;
|
||||
public static LexiconEntry richesKey;
|
||||
public static LexiconEntry cubeWardrobe;
|
||||
public static LexiconEntry sphereNavigation;
|
||||
public static LexiconEntry hornPlenty;
|
||||
public static LexiconEntry sprawlRod;
|
||||
public static LexiconEntry azartFlower;
|
||||
public static LexiconEntry aquaSword;
|
||||
|
||||
public static KnowledgeType forgotten;
|
||||
|
||||
public static void init() {
|
||||
relicInit();
|
||||
|
||||
BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
|
||||
forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
|
||||
|
||||
lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
|
||||
forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
|
||||
advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
|
||||
manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
|
||||
hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
|
||||
fateBoardRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockBoardFate, 1, 1), new ItemStack(BlockListAB.blockBoardFate), 60);
|
||||
|
||||
mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 2500000, 0x25d6b7);
|
||||
terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
|
||||
manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
|
||||
nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 25000000, 0x8d16e0);
|
||||
|
||||
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"), new PageImage("2", "ab:textures/misc/ancientAlphirine.png"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { "MPM", " F ", "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.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)});
|
||||
lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
|
||||
lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
|
||||
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
|
||||
IRecipe leb1 = getLastRecipe();
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
|
||||
IRecipe leb2 = getLastRecipe();
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
|
||||
IRecipe leb3 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
|
||||
IRecipe leb4 = getLastRecipe();
|
||||
lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
|
||||
lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
|
||||
mithrill = new BLexiconEntry("mithrill", categoryForgotten);
|
||||
mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont1 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont2 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont3 = getLastRecipe();
|
||||
manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
|
||||
manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
|
||||
manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
|
||||
manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
|
||||
terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
|
||||
terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
|
||||
IRecipe ring1 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
|
||||
IRecipe ring2 = getLastRecipe();
|
||||
manaRings = new BLexiconEntry("manaRings", categoryForgotten);
|
||||
manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
|
||||
AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
|
||||
manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
|
||||
manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
|
||||
mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
|
||||
mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
|
||||
|
||||
dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
|
||||
dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
|
||||
dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
|
||||
|
||||
nebula = new BLexiconEntry("nebula", categoryForgotten);
|
||||
nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
|
||||
blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
|
||||
blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
|
||||
antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
|
||||
antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
|
||||
nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
|
||||
nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
if(ConfigABHandler.hasManaCharger) {
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
|
||||
manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
|
||||
manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
}
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
|
||||
IRecipe nHelm = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
|
||||
IRecipe nChest = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
|
||||
IRecipe nLegs = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
|
||||
IRecipe nBoots = getLastRecipe();
|
||||
nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
|
||||
nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft3", nBoots)});
|
||||
|
||||
engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
|
||||
engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageImage("1", "ab:textures/misc/engineerHopper.png"), new PageText("2"), new PageText("3"), new PageText("4"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
|
||||
nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
|
||||
nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockBoardFate), new Object[] { " ", "QDQ", "MPM", Character.valueOf('Q'), new ItemStack(ModFluffBlocks.manaQuartz), Character.valueOf('D'), new ItemStack(ModItems.manaResource, 1, 2), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('P'), new ItemStack(ModItems.manaResource, 1, 23)});
|
||||
gameBoard = new BLexiconEntry("gameBoard", BotaniaAPI.categoryMisc);
|
||||
gameBoard.setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
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")});
|
||||
|
||||
sphereNavigation = new RLexiconEntry("sphereNavigation", BotaniaAPI.categoryAlfhomancy, AchievementRegister.sphereNavigation);
|
||||
sphereNavigation.setLexiconPages(new LexiconPage[] { new PageText("0")});
|
||||
|
||||
hornPlenty = new RLexiconEntry("hornPlenty", BotaniaAPI.categoryAlfhomancy, AchievementRegister.hornPlenty);
|
||||
hornPlenty.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)});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAquaSword), new Object[] { " N", "RM ", "WR ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('R'), new ItemStack(ModItems.rune), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13)});
|
||||
aquaSword = new BLexiconEntry("aquaSword", categoryForgotten);
|
||||
aquaSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
if(Botania.thaumcraftLoaded)
|
||||
thaumcraft();
|
||||
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
|
||||
}
|
||||
|
||||
public static void thaumcraft() {
|
||||
aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
|
||||
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)});
|
||||
|
||||
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)});
|
||||
|
||||
}
|
||||
|
||||
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);
|
||||
gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
|
||||
}
|
||||
|
||||
public static void relicInit() {
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.infiniteFruit));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.kingKey));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.flugelEye));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.thorRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.odinRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.lokiRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemFreyrSlingshot));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemTalismanHiddenRiches));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemPocketWardrobe));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemSphereNavigation));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemHornPlenty));
|
||||
}
|
||||
|
||||
private static IRecipe getLastRecipe() {
|
||||
return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
|
||||
}
|
||||
|
||||
private static void addOreDictRecipe(ItemStack output, Object... recipe) {
|
||||
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
|
||||
}
|
||||
|
||||
private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
|
||||
CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
|
||||
}
|
||||
}
|
||||
@@ -1,108 +0,0 @@
|
||||
package ab.common.block.subtile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ab.common.lib.register.RecipeListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.api.subtile.SubTileGenerating;
|
||||
import vazkii.botania.common.block.tile.TileSpecialFlower;
|
||||
|
||||
public class SubTileDictarius extends SubTileGenerating {
|
||||
|
||||
private static final int workMana = 360;
|
||||
int cooldown;
|
||||
|
||||
public void onUpdate() {
|
||||
super.onUpdate();
|
||||
if(this.supertile.getWorldObj().isRemote)
|
||||
return;
|
||||
int posX = this.supertile.xCoord;
|
||||
int posY = this.supertile.yCoord;
|
||||
int posZ = this.supertile.zCoord;
|
||||
World world = this.supertile.getWorldObj();
|
||||
if(this.ticksExisted % 5 == 0)
|
||||
checkNearDictarius();
|
||||
if(cooldown == 0) {
|
||||
List<EntityLivingBase> livs = world.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(posX, posY, posZ, (posX + 1), (posY + 1), (posZ + 1)).expand(2, 1, 2));
|
||||
int workMana = 0;
|
||||
if(!livs.isEmpty()) {
|
||||
for(int i = 0; i < Math.min(livs.size(), 16); i++) {
|
||||
EntityLivingBase liv = livs.get(i);
|
||||
if(liv instanceof EntityPlayer)
|
||||
workMana += SubTileDictarius.workMana;
|
||||
else if(liv instanceof EntityVillager)
|
||||
workMana += (int)(SubTileDictarius.workMana / 8);
|
||||
}
|
||||
}
|
||||
if(workMana > 0) {
|
||||
this.cooldown = 200;
|
||||
this.mana = Math.min(this.getMaxMana(), this.mana + workMana);
|
||||
sync();
|
||||
}
|
||||
}
|
||||
if(this.cooldown > 0)
|
||||
this.cooldown -= 1;
|
||||
}
|
||||
|
||||
public void checkNearDictarius() {
|
||||
int maxFlower = 64;
|
||||
int findedFlower = 0;
|
||||
for(int y = -4; y < 4; y++) {
|
||||
for(int x = -4; x < 4; x++) {
|
||||
for(int z = -4; z < 4; z++) {
|
||||
int posX = this.supertile.xCoord + x;
|
||||
int posY = this.supertile.yCoord + y;
|
||||
int posZ = this.supertile.zCoord + z;
|
||||
TileEntity tile = this.supertile.getWorldObj().getTileEntity(posX, posY, posZ);
|
||||
if(tile != null && tile instanceof TileSpecialFlower) {
|
||||
TileSpecialFlower tileFlower = (TileSpecialFlower)tile;
|
||||
if(tileFlower.subTileName.equals("dictarius")) {
|
||||
if(findedFlower >= maxFlower) {
|
||||
this.supertile.getWorldObj().playAuxSFX(2001, this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, Block.getIdFromBlock(this.supertile.getBlockType()));
|
||||
if(this.supertile.getWorldObj().getBlock(this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord).isSideSolid((IBlockAccess)this.supertile.getWorldObj(), this.supertile.xCoord, this.supertile.yCoord - 1, this.supertile.zCoord, ForgeDirection.UP))
|
||||
this.supertile.getWorldObj().setBlock(this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord, (Block)Blocks.deadbush);
|
||||
else
|
||||
this.supertile.getWorldObj().setBlockToAir(this.supertile.xCoord, this.supertile.yCoord, this.supertile.zCoord);
|
||||
return;
|
||||
}
|
||||
findedFlower++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int getMaxMana() {
|
||||
return 8000;
|
||||
}
|
||||
|
||||
public int getColor() {
|
||||
return 0xd2cdb2;
|
||||
}
|
||||
|
||||
public LexiconEntry getEntry() {
|
||||
return RecipeListAB.dictarius;
|
||||
}
|
||||
|
||||
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");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package ab.api;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import ab.api.recipe.RecipeAdvancedPlate;
|
||||
import ab.api.recipe.RecipeAncientAlphirine;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.lib.register.ItemListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.Achievement;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraftforge.common.util.EnumHelper;
|
||||
import vazkii.botania.common.item.ModItems;
|
||||
|
||||
public class AdvancedBotanyAPI {
|
||||
|
||||
public static List<RecipeAdvancedPlate> advancedPlateRecipes = new ArrayList<RecipeAdvancedPlate>();
|
||||
public static List<RecipeAncientAlphirine> alphirineRecipes = new ArrayList<RecipeAncientAlphirine>();
|
||||
public static List<TerraFarmlandList> farmlandList = new ArrayList<TerraFarmlandList>();
|
||||
public static List<Achievement> achievements = new ArrayList<Achievement>();
|
||||
public static List<ItemStack> relicList = new ArrayList<ItemStack>();
|
||||
|
||||
public static Item.ToolMaterial mithrilToolMaterial = EnumHelper.addToolMaterial("MITHRIL", 7, -1, 8.0F, 4.0F, 24);
|
||||
public static ItemArmor.ArmorMaterial nebulaArmorMaterial = EnumHelper.addArmorMaterial("NEBULA", 0, new int[] { (int)(3 * ConfigABHandler.protectionFactorNebula), (int)(8 * ConfigABHandler.protectionFactorNebula), (int)(6 * ConfigABHandler.protectionFactorNebula), (int)(3 * ConfigABHandler.protectionFactorNebula) }, 26);
|
||||
public static ItemArmor.ArmorMaterial wildHundArmor = EnumHelper.addArmorMaterial("WILD_HUNT_MATERIAL", 34, new int[] { 7, 8, 3, 2 }, 26);
|
||||
|
||||
public static EnumRarity rarityNebula = EnumHelper.addRarity("NEBULA", EnumChatFormatting.LIGHT_PURPLE, "Nebula");
|
||||
public static EnumRarity rarityWildHunt = EnumHelper.addRarity("WILD_HUNT", EnumChatFormatting.BLUE, "WildHunt");
|
||||
|
||||
public static RecipeAdvancedPlate registerAdvancedPlateRecipe(ItemStack output, ItemStack input1, ItemStack input2, ItemStack input3, int mana, int color) {
|
||||
RecipeAdvancedPlate recipe = new RecipeAdvancedPlate(output, mana, color, input1, input2, input3);
|
||||
advancedPlateRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static RecipeAncientAlphirine registerAlphirineRecipe(ItemStack output, ItemStack input, int chance) {
|
||||
RecipeAncientAlphirine recipe = new RecipeAncientAlphirine(output, input, chance);
|
||||
alphirineRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static TerraFarmlandList registerFarmlandSeed(Block block, int meta) {
|
||||
TerraFarmlandList seed = new TerraFarmlandList(block, meta);
|
||||
farmlandList.add(seed);
|
||||
return seed;
|
||||
}
|
||||
}
|
||||
@@ -1,101 +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 String[] lockWorldNameNebulaRod = new String[] {};
|
||||
public static int limitXZCoords = 30000000;
|
||||
|
||||
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);
|
||||
desc = "Limitation on X Z coordinates for teleportation, do not increase the default value";
|
||||
limitXZCoords = loadPropInt("Restriction on X Z coordinates for Rod of Nebula", desc, limitXZCoords);
|
||||
desc = "Enter the name of the World you want to add to the blacklist";
|
||||
lockWorldNameNebulaRod = loadPropString("Locking Worlds for Teleportation with Nebula Rod", desc, lockWorldNameNebulaRod);
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package ab.common.block.subtile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
import vazkii.botania.api.subtile.SubTileEntity;
|
||||
import vazkii.botania.api.subtile.SubTileFunctional;
|
||||
import vazkii.botania.api.subtile.SubTileGenerating;
|
||||
import vazkii.botania.api.subtile.signature.PassiveFlower;
|
||||
import vazkii.botania.api.subtile.signature.SubTileSignature;
|
||||
import vazkii.botania.common.block.BlockSpecialFlower;
|
||||
|
||||
public class ABSubTileSignature extends SubTileSignature {
|
||||
|
||||
String name;
|
||||
IIcon icon;
|
||||
|
||||
public ABSubTileSignature(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public void registerIcons(IIconRegister reg) {
|
||||
this.icon = reg.registerIcon("ab:flower_" + this.name);
|
||||
BlockSpecialFlower.icons.put(name, icon);
|
||||
}
|
||||
|
||||
public IIcon getIconForStack(ItemStack item) {
|
||||
return this.icon;
|
||||
}
|
||||
|
||||
public String getUnlocalizedNameForStack(ItemStack item) {
|
||||
return "ab.flower." + this.name;
|
||||
}
|
||||
|
||||
public String getUnlocalizedLoreTextForStack(ItemStack item) {
|
||||
return "tile.ab.flower." + this.name + ".lore";
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
Class<? extends SubTileEntity> clazz = BotaniaAPI.getSubTileMapping(this.name);
|
||||
if(clazz == null)
|
||||
return "uwotm8";
|
||||
if(clazz.getAnnotation(PassiveFlower.class) != null)
|
||||
return "botania.flowerType.passiveGenerating";
|
||||
if(SubTileGenerating.class.isAssignableFrom(clazz))
|
||||
return "botania.flowerType.generating";
|
||||
if(SubTileFunctional.class.isAssignableFrom(clazz))
|
||||
return "botania.flowerType.functional";
|
||||
return "botania.flowerType.misc";
|
||||
}
|
||||
|
||||
public void addTooltip(ItemStack stack, EntityPlayer player, List<String> tooltip) {
|
||||
tooltip.add(EnumChatFormatting.BLUE + StatCollector.translateToLocal(getType()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
package ab.common.item.equipment;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
import ab.AdvancedBotany;
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
import ab.client.core.ClientHelper;
|
||||
import ab.client.core.handler.PlayerItemUsingSound.ClientSoundHandler;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
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.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.ItemSword;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.helper.ItemNBTHelper;
|
||||
import vazkii.botania.common.core.helper.Vector3;
|
||||
|
||||
public class ItemAquaSword extends ItemSword {
|
||||
|
||||
public ItemAquaSword() {
|
||||
super(AdvancedBotanyAPI.mithrilToolMaterial);
|
||||
this.setCreativeTab(AdvancedBotany.tabAB);
|
||||
this.setUnlocalizedName("itemAquaSword");
|
||||
this.setTextureName("ab:itemAquaSword");
|
||||
}
|
||||
|
||||
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1.7f, 1.7f, 1.7f);
|
||||
List<EntityLivingBase> entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
double posX = entity.posX;
|
||||
double posY = entity.posY + entity.getEyeHeight();
|
||||
double posZ = entity.posZ;
|
||||
if(!player.worldObj.isRemote) {
|
||||
boolean hasWaterSplash = false;
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(player.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
else if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(player), AdvancedBotanyAPI.mithrilToolMaterial.getDamageVsEntity() / 2.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, player, 10, true);
|
||||
if(!hasWaterSplash)
|
||||
hasWaterSplash = true;
|
||||
Vec3 vec3 = player.getLook(1.0F).normalize();
|
||||
living.motionX += vec3.xCoord * 1.35f;
|
||||
living.motionY += (vec3.yCoord / 1.8f);
|
||||
living.motionZ += vec3.zCoord * 1.35f;
|
||||
}
|
||||
}
|
||||
if(hasWaterSplash)
|
||||
player.worldObj.playSoundAtEntity(player, "ab:aquaSword", 1.2F, 1.2F);
|
||||
} else {
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false)) {
|
||||
for(int i = 0; i < 24; i++) {
|
||||
float mtX = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtY = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtZ = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
Botania.proxy.wispFX(player.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.17f + (float)(Math.random() * 0.3f), mtX, mtY, mtZ, 0.512f);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onLeftClickEntity(stack, player, entity);
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
|
||||
if(p.worldObj.isRemote) {
|
||||
if(!ManaItemHandler.requestManaExactForTool(stack, p, 15, false))
|
||||
return;
|
||||
ClientSoundHandler.playSound(p, "liquid.water", 0.8F, 1.5F, 10, false);
|
||||
time = (this.getMaxItemUseDuration(stack) - time) % 120 + 1;
|
||||
if(time > 50)
|
||||
time = 120 - time;
|
||||
float phase = time / 120.0f;
|
||||
int wispCount = 8;
|
||||
double tickIncrement = 360.0D / wispCount;
|
||||
int speed = 10;
|
||||
double wticks = (time * speed) - tickIncrement;
|
||||
double r = Math.sin(1.4f);
|
||||
for(int i = 0; i < wispCount; i++) {
|
||||
double posX = p.posX + Math.sin(wticks * Math.PI / 180.0D) * r;
|
||||
double posY = p.posY + (wticks * 0.001f) + 0.1f;
|
||||
double posZ = p.posZ + Math.cos(wticks * Math.PI / 180.0D) * r;
|
||||
Botania.proxy.wispFX(p.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.3F, 0.0f, -0.1f + (float)(Math.random() * 0.05f), 0.0f, 0.7F);
|
||||
wticks += tickIncrement;
|
||||
}
|
||||
} else {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(p.posX, p.posY, p.posZ, p.lastTickPosX, p.lastTickPosY, p.lastTickPosZ).expand(2.75f, 2.75f, 2.75f);
|
||||
List<EntityLivingBase> entities = p.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(p.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
double dist = living.getDistance(p.posX, p.posY, p.posZ) / 2.5f;
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, p, 15, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(p), 1.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, p, 15, true);
|
||||
if(dist <= 1.0D) {
|
||||
double d5 = living.posX - p.posX;
|
||||
double d7 = living.posZ - p.posZ;
|
||||
double d9 = (double)MathHelper.sqrt_double(d5 * d5 + d7 * d7);
|
||||
if (d9 != 0.0D) {
|
||||
d5 /= d9;
|
||||
d7 /= d9;
|
||||
living.motionX += d5 * 1.2f;
|
||||
living.motionZ += d7 * 1.2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
package ab.common.item.equipment;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
import ab.AdvancedBotany;
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
import ab.client.core.ClientHelper;
|
||||
import ab.client.core.handler.PlayerItemUsingSound.ClientSoundHandler;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
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.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.ItemSword;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.helper.ItemNBTHelper;
|
||||
import vazkii.botania.common.core.helper.Vector3;
|
||||
|
||||
public class ItemAquaSword extends ItemSword {
|
||||
|
||||
public ItemAquaSword() {
|
||||
super(AdvancedBotanyAPI.mithrilToolMaterial);
|
||||
this.setCreativeTab(AdvancedBotany.tabAB);
|
||||
this.setUnlocalizedName("itemAquaSword");
|
||||
this.setTextureName("ab:itemAquaSword");
|
||||
}
|
||||
|
||||
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1.7f, 1.7f, 1.7f);
|
||||
List<EntityLivingBase> entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
double posX = entity.posX;
|
||||
double posY = entity.posY + entity.getEyeHeight();
|
||||
double posZ = entity.posZ;
|
||||
if(!player.worldObj.isRemote) {
|
||||
boolean hasWaterSplash = false;
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(player.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
else if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(player), AdvancedBotanyAPI.mithrilToolMaterial.getDamageVsEntity() / 2.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, player, 10, true);
|
||||
if(!hasWaterSplash)
|
||||
hasWaterSplash = true;
|
||||
Vec3 vec3 = player.getLook(1.0F).normalize();
|
||||
living.motionX += vec3.xCoord * 1.35f;
|
||||
living.motionY += (vec3.yCoord / 1.8f);
|
||||
living.motionZ += vec3.zCoord * 1.35f;
|
||||
}
|
||||
}
|
||||
if(hasWaterSplash)
|
||||
player.worldObj.playSoundAtEntity(player, "ab:aquaSword", 1.2F, 1.2F);
|
||||
} else {
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false)) {
|
||||
for(int i = 0; i < 24; i++) {
|
||||
float mtX = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtY = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtZ = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
Botania.proxy.wispFX(player.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.17f + (float)(Math.random() * 0.3f), mtX, mtY, mtZ, 0.512f);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onLeftClickEntity(stack, player, entity);
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
|
||||
if(p.worldObj.isRemote) {
|
||||
if(!ManaItemHandler.requestManaExactForTool(stack, p, 15, false))
|
||||
return;
|
||||
ClientSoundHandler.playSound(p, "liquid.water", 0.8F, 1.7F, 14, false);
|
||||
time = (this.getMaxItemUseDuration(stack) - time) % 120 + 1;
|
||||
if(time > 50)
|
||||
time = 120 - time;
|
||||
float phase = time / 120.0f;
|
||||
int wispCount = 8;
|
||||
double tickIncrement = 360.0D / wispCount;
|
||||
int speed = 10;
|
||||
double wticks = (time * speed) - tickIncrement;
|
||||
double r = Math.sin(1.4f);
|
||||
for(int i = 0; i < wispCount; i++) {
|
||||
double posX = p.posX + Math.sin(wticks * Math.PI / 180.0D) * r;
|
||||
double posY = p.posY + (wticks * 0.001f) + 0.1f;
|
||||
double posZ = p.posZ + Math.cos(wticks * Math.PI / 180.0D) * r;
|
||||
Botania.proxy.wispFX(p.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.3F, 0.0f, -0.1f + (float)(Math.random() * 0.05f), 0.0f, 0.7F);
|
||||
wticks += tickIncrement;
|
||||
}
|
||||
} else {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(p.posX, p.posY, p.posZ, p.lastTickPosX, p.lastTickPosY, p.lastTickPosZ).expand(2.75f, 2.75f, 2.75f);
|
||||
List<EntityLivingBase> entities = p.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(p.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
double dist = living.getDistance(p.posX, p.posY, p.posZ) / 2.5f;
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, p, 15, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(p), 1.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, p, 15, true);
|
||||
if(dist <= 1.0D) {
|
||||
double d5 = living.posX - p.posX;
|
||||
double d7 = living.posZ - p.posZ;
|
||||
double d9 = (double)MathHelper.sqrt_double(d5 * d5 + d7 * d7);
|
||||
if (d9 != 0.0D) {
|
||||
d5 /= d9;
|
||||
d7 /= d9;
|
||||
living.motionX += d5 * 1.2f;
|
||||
living.motionZ += d7 * 1.2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package ab.common.item.equipment.armor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ab.AdvancedBotany;
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
import ab.client.model.armor.ModelArmorWildHunt;
|
||||
import ab.common.lib.register.ItemListAB;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.model.ModelBiped;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import vazkii.botania.common.item.equipment.armor.manasteel.ItemManasteelArmor;
|
||||
|
||||
public class ItemWildHuntArmor extends ItemManasteelArmor {
|
||||
|
||||
static ItemStack[] armorset;
|
||||
|
||||
public ItemWildHuntArmor(int type, String name) {
|
||||
super(type, name, AdvancedBotanyAPI.wildHundArmor);
|
||||
this.setCreativeTab(AdvancedBotany.tabAB);
|
||||
}
|
||||
|
||||
public ItemStack[] getArmorSetStacks() {
|
||||
if(armorset == null)
|
||||
armorset = new ItemStack[] { new ItemStack(ItemListAB.itemWildHuntHelm), new ItemStack(ItemListAB.itemWildHuntChest), new ItemStack(ItemListAB.itemWildHuntLegs), new ItemStack(ItemListAB.itemWildHuntBoots) };
|
||||
return armorset;
|
||||
}
|
||||
|
||||
public boolean hasArmorSetItem(EntityPlayer player, int i) {
|
||||
ItemStack stack = player.inventory.armorInventory[3 - i];
|
||||
if(stack == null)
|
||||
return false;
|
||||
switch (i) {
|
||||
case 0:
|
||||
return (stack.getItem() == ItemListAB.itemWildHuntHelm);
|
||||
case 1:
|
||||
return (stack.getItem() == ItemListAB.itemWildHuntChest);
|
||||
case 2:
|
||||
return (stack.getItem() == ItemListAB.itemWildHuntLegs);
|
||||
case 3:
|
||||
return (stack.getItem() == ItemListAB.itemWildHuntBoots);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public ModelBiped provideArmorModelForSlot(ItemStack stack, int slot) {
|
||||
this.models[slot] = new ModelArmorWildHunt(slot);
|
||||
return this.models[slot];
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister ir) {
|
||||
this.itemIcon = ir.registerIcon("ab:" + this.getUnlocalizedName().replaceAll("item\\.", ""));
|
||||
}
|
||||
|
||||
public String getArmorTextureAfterInk(ItemStack stack, int slot) {
|
||||
return "ab:textures/model/wildHuntArmor.png";
|
||||
}
|
||||
|
||||
public void addArmorSetDescription(ItemStack stack, List<String> list) {
|
||||
addStringToTooltip(StatCollector.translateToLocal("ab.armorset.wildHunt.desc0"), list);
|
||||
addStringToTooltip(StatCollector.translateToLocal("ab.armorset.wildHunt.desc1"), list);
|
||||
addStringToTooltip(StatCollector.translateToLocal("ab.armorset.wildHunt.desc2"), list);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package ab.common.item.block;
|
||||
|
||||
public class ItemBlockBoard {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,327 @@
|
||||
package ab.common.lib.register;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
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.TileNidavellirForge;
|
||||
import ab.common.block.tile.TileLebethronCore;
|
||||
import ab.common.block.tile.TileMagicCraftCrate;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.item.ItemCraftingPattern;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.CraftingManager;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||
import thaumcraft.common.config.ConfigBlocks;
|
||||
import thaumcraft.common.config.ConfigItems;
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
import vazkii.botania.api.lexicon.KnowledgeType;
|
||||
import vazkii.botania.api.lexicon.LexiconCategory;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.api.lexicon.LexiconPage;
|
||||
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 {
|
||||
|
||||
public static LexiconCategory categoryForgotten;
|
||||
|
||||
public static RecipeAncientAlphirine lebethroneRecipe;
|
||||
public static RecipeAncientAlphirine forgottenLandRecipe;
|
||||
public static RecipeAncientAlphirine advancedSparkRecipe;
|
||||
public static RecipeAncientAlphirine manaFlowerRecipe;
|
||||
public static RecipeAncientAlphirine hopperRecipe;
|
||||
public static RecipeAncientAlphirine fateBoardRecipe;
|
||||
|
||||
public static RecipeAdvancedPlate manaStarRecipe;
|
||||
public static RecipeAdvancedPlate terrasteelRecipe;
|
||||
public static RecipeAdvancedPlate mithrillRecipe;
|
||||
public static RecipeAdvancedPlate nebulaRecipe;
|
||||
|
||||
public static RecipePetals alphirineRecipe;
|
||||
public static RecipePetals dictariusRecipe;
|
||||
public static RecipePetals aspecolusRecipe;
|
||||
public static RecipePetals pureGladRecipe;
|
||||
public static RecipePetals azartFlowerRecipe;
|
||||
|
||||
public static LexiconEntry advandedAgglomerationPlate;
|
||||
public static LexiconEntry ancientAlphirine;
|
||||
public static LexiconEntry lebethronWood;
|
||||
public static LexiconEntry lebethronSpreader;
|
||||
public static LexiconEntry mithrill;
|
||||
public static LexiconEntry manaContainer;
|
||||
public static LexiconEntry manaCrystalCube;
|
||||
public static LexiconEntry terraHoe;
|
||||
public static LexiconEntry manaRings;
|
||||
public static LexiconEntry manaFlower;
|
||||
public static LexiconEntry mithrillSword;
|
||||
public static LexiconEntry nebula;
|
||||
public static LexiconEntry blackHalo;
|
||||
public static LexiconEntry antigravityCharm;
|
||||
public static LexiconEntry nebulaBlaze;
|
||||
public static LexiconEntry aspecolus;
|
||||
public static LexiconEntry dictarius;
|
||||
public static LexiconEntry manaCharger;
|
||||
public static LexiconEntry nebulaArmor;
|
||||
public static LexiconEntry freyrSlingshot;
|
||||
public static LexiconEntry engineerHopper;
|
||||
public static LexiconEntry nebulaRod;
|
||||
public static LexiconEntry thaumAutoCraft;
|
||||
public static LexiconEntry gladious;
|
||||
public static LexiconEntry gameBoard;
|
||||
public static LexiconEntry fateBoard;
|
||||
public static LexiconEntry richesKey;
|
||||
public static LexiconEntry cubeWardrobe;
|
||||
public static LexiconEntry sphereNavigation;
|
||||
public static LexiconEntry hornPlenty;
|
||||
public static LexiconEntry sprawlRod;
|
||||
public static LexiconEntry azartFlower;
|
||||
public static LexiconEntry aquaSword;
|
||||
|
||||
public static KnowledgeType forgotten;
|
||||
|
||||
public static void init() {
|
||||
relicInit();
|
||||
|
||||
BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
|
||||
forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
|
||||
|
||||
lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
|
||||
forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
|
||||
advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
|
||||
manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
|
||||
hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
|
||||
fateBoardRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockBoardFate, 1, 1), new ItemStack(BlockListAB.blockBoardFate), 60);
|
||||
|
||||
mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 5000000, 0x25d6b7);
|
||||
terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
|
||||
manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
|
||||
nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 50000000, 0x8d16e0);
|
||||
|
||||
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"), new PageImage("2", "ab:textures/misc/ancientAlphirine.png"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { "MPM", " F ", "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.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)});
|
||||
lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
|
||||
lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
|
||||
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
|
||||
IRecipe leb1 = getLastRecipe();
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
|
||||
IRecipe leb2 = getLastRecipe();
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
|
||||
IRecipe leb3 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
|
||||
IRecipe leb4 = getLastRecipe();
|
||||
lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
|
||||
lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
|
||||
mithrill = new BLexiconEntry("mithrill", categoryForgotten);
|
||||
mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont1 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont2 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont3 = getLastRecipe();
|
||||
manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
|
||||
manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
|
||||
manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
|
||||
manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
|
||||
terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
|
||||
terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
|
||||
IRecipe ring1 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
|
||||
IRecipe ring2 = getLastRecipe();
|
||||
manaRings = new BLexiconEntry("manaRings", categoryForgotten);
|
||||
manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
|
||||
AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
|
||||
manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
|
||||
manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
|
||||
mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
|
||||
mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
|
||||
|
||||
dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
|
||||
dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
|
||||
dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
|
||||
|
||||
nebula = new BLexiconEntry("nebula", categoryForgotten);
|
||||
nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
|
||||
blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
|
||||
blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
|
||||
antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
|
||||
antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
|
||||
nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
|
||||
nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
if(ConfigABHandler.hasManaCharger) {
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
|
||||
manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
|
||||
manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
}
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
|
||||
IRecipe nHelm = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
|
||||
IRecipe nChest = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
|
||||
IRecipe nLegs = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
|
||||
IRecipe nBoots = getLastRecipe();
|
||||
nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
|
||||
nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft", nBoots)});
|
||||
|
||||
engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
|
||||
engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
|
||||
nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
|
||||
nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockBoardFate), new Object[] { " ", "QDQ", "MPM", Character.valueOf('Q'), new ItemStack(ModFluffBlocks.manaQuartz), Character.valueOf('D'), new ItemStack(ModItems.manaResource, 1, 2), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('P'), new ItemStack(ModItems.manaResource, 1, 23)});
|
||||
gameBoard = new BLexiconEntry("gameBoard", BotaniaAPI.categoryMisc);
|
||||
gameBoard.setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
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")});
|
||||
|
||||
sphereNavigation = new RLexiconEntry("sphereNavigation", BotaniaAPI.categoryAlfhomancy, AchievementRegister.sphereNavigation);
|
||||
sphereNavigation.setLexiconPages(new LexiconPage[] { new PageText("0")});
|
||||
|
||||
hornPlenty = new RLexiconEntry("hornPlenty", BotaniaAPI.categoryAlfhomancy, AchievementRegister.hornPlenty);
|
||||
hornPlenty.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)});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAquaSword), new Object[] { " N", "RM ", "WR ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('R'), new ItemStack(ModItems.rune), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13)});
|
||||
aquaSword = new BLexiconEntry("aquaSword", categoryForgotten);
|
||||
aquaSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
if(Botania.thaumcraftLoaded)
|
||||
thaumcraft();
|
||||
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
|
||||
}
|
||||
|
||||
public static void thaumcraft() {
|
||||
aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
|
||||
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)});
|
||||
|
||||
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)});
|
||||
|
||||
}
|
||||
|
||||
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);
|
||||
gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
|
||||
}
|
||||
|
||||
public static void relicInit() {
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.infiniteFruit));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.kingKey));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.flugelEye));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.thorRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.odinRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.lokiRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemFreyrSlingshot));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemTalismanHiddenRiches));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemPocketWardrobe));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemSphereNavigation));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemHornPlenty));
|
||||
}
|
||||
|
||||
private static IRecipe getLastRecipe() {
|
||||
return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
|
||||
}
|
||||
|
||||
private static void addOreDictRecipe(ItemStack output, Object... recipe) {
|
||||
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
|
||||
}
|
||||
|
||||
private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
|
||||
CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package ab;
|
||||
|
||||
import ab.common.core.proxy.CommonProxy;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.SidedProxy;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
@Mod (modid = AdvancedBotany.modid, name="Advanced Botany", version = AdvancedBotany.version, dependencies = "required-after:Botania", guiFactory = "ab.client.core.handler.GuiABFactory")
|
||||
public class AdvancedBotany {
|
||||
|
||||
public static final String modid = "AdvancedBotany";
|
||||
public static final String version = "1.3.1.1";
|
||||
|
||||
@Mod.Instance("AdvancedBotany")
|
||||
public static AdvancedBotany instance;
|
||||
|
||||
@SidedProxy(clientSide = "ab.client.core.proxy.ClientProxy", serverSide = "ab.common.core.proxy.CommonProxy")
|
||||
public static CommonProxy proxy;
|
||||
|
||||
@Mod.EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
proxy.preInit(event);
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void init(FMLInitializationEvent event) {
|
||||
proxy.init(event);
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
proxy.postInit(event);
|
||||
}
|
||||
|
||||
public static final CreativeTabs tabAB = new AdvancedBotanyTab("tabAB");
|
||||
}
|
||||
@@ -0,0 +1,327 @@
|
||||
package ab.common.lib.register;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
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.TileNidavellirForge;
|
||||
import ab.common.block.tile.TileLebethronCore;
|
||||
import ab.common.block.tile.TileMagicCraftCrate;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.item.ItemCraftingPattern;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.CraftingManager;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||
import thaumcraft.common.config.ConfigBlocks;
|
||||
import thaumcraft.common.config.ConfigItems;
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
import vazkii.botania.api.lexicon.KnowledgeType;
|
||||
import vazkii.botania.api.lexicon.LexiconCategory;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.api.lexicon.LexiconPage;
|
||||
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 {
|
||||
|
||||
public static LexiconCategory categoryForgotten;
|
||||
|
||||
public static RecipeAncientAlphirine lebethroneRecipe;
|
||||
public static RecipeAncientAlphirine forgottenLandRecipe;
|
||||
public static RecipeAncientAlphirine advancedSparkRecipe;
|
||||
public static RecipeAncientAlphirine manaFlowerRecipe;
|
||||
public static RecipeAncientAlphirine hopperRecipe;
|
||||
public static RecipeAncientAlphirine fateBoardRecipe;
|
||||
|
||||
public static RecipeAdvancedPlate manaStarRecipe;
|
||||
public static RecipeAdvancedPlate terrasteelRecipe;
|
||||
public static RecipeAdvancedPlate mithrillRecipe;
|
||||
public static RecipeAdvancedPlate nebulaRecipe;
|
||||
|
||||
public static RecipePetals alphirineRecipe;
|
||||
public static RecipePetals dictariusRecipe;
|
||||
public static RecipePetals aspecolusRecipe;
|
||||
public static RecipePetals pureGladRecipe;
|
||||
public static RecipePetals azartFlowerRecipe;
|
||||
|
||||
public static LexiconEntry advandedAgglomerationPlate;
|
||||
public static LexiconEntry ancientAlphirine;
|
||||
public static LexiconEntry lebethronWood;
|
||||
public static LexiconEntry lebethronSpreader;
|
||||
public static LexiconEntry mithrill;
|
||||
public static LexiconEntry manaContainer;
|
||||
public static LexiconEntry manaCrystalCube;
|
||||
public static LexiconEntry terraHoe;
|
||||
public static LexiconEntry manaRings;
|
||||
public static LexiconEntry manaFlower;
|
||||
public static LexiconEntry mithrillSword;
|
||||
public static LexiconEntry nebula;
|
||||
public static LexiconEntry blackHalo;
|
||||
public static LexiconEntry antigravityCharm;
|
||||
public static LexiconEntry nebulaBlaze;
|
||||
public static LexiconEntry aspecolus;
|
||||
public static LexiconEntry dictarius;
|
||||
public static LexiconEntry manaCharger;
|
||||
public static LexiconEntry nebulaArmor;
|
||||
public static LexiconEntry freyrSlingshot;
|
||||
public static LexiconEntry engineerHopper;
|
||||
public static LexiconEntry nebulaRod;
|
||||
public static LexiconEntry thaumAutoCraft;
|
||||
public static LexiconEntry gladious;
|
||||
public static LexiconEntry gameBoard;
|
||||
public static LexiconEntry fateBoard;
|
||||
public static LexiconEntry richesKey;
|
||||
public static LexiconEntry cubeWardrobe;
|
||||
public static LexiconEntry sphereNavigation;
|
||||
public static LexiconEntry hornPlenty;
|
||||
public static LexiconEntry sprawlRod;
|
||||
public static LexiconEntry azartFlower;
|
||||
public static LexiconEntry aquaSword;
|
||||
|
||||
public static KnowledgeType forgotten;
|
||||
|
||||
public static void init() {
|
||||
relicInit();
|
||||
|
||||
BotaniaAPI.addCategory(categoryForgotten = new BLexiconCategory("forgotten", 5));
|
||||
forgotten = BotaniaAPI.registerKnowledgeType("ab_forgotten", EnumChatFormatting.BLUE, false);
|
||||
|
||||
lebethroneRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockLebethron), new ItemStack(ModBlocks.dreamwood, 1, 0), 15);
|
||||
forgottenLandRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 3), new ItemStack(ModItems.manaResource, 1, 15), 75);
|
||||
advancedSparkRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemAdvancedSpark), new ItemStack(ModItems.spark), 11);
|
||||
manaFlowerRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModBlocks.flower, 1, 32767), 32);
|
||||
hopperRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockEngineerHopper), new ItemStack(Blocks.hopper), 23);
|
||||
fateBoardRecipe = AdvancedBotanyAPI.registerAlphirineRecipe(new ItemStack(BlockListAB.blockBoardFate, 1, 1), new ItemStack(BlockListAB.blockBoardFate), 60);
|
||||
|
||||
mithrillRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModBlocks.storage, 1, 0), new ItemStack(ModItems.manaResource, 1, 18), 2500000, 0x25d6b7);
|
||||
terrasteelRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ModItems.manaResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 0), new ItemStack(ModItems.manaResource, 1, 1), 500000, 0x29de20);
|
||||
manaStarRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 2), new ItemStack(ModItems.manaResource, 1, 23), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(Items.nether_star), 250000, 0x6bc9ec);
|
||||
nebulaRecipe = AdvancedBotanyAPI.registerAdvancedPlateRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 8), new ItemStack(ModBlocks.storage, 1, 4), new ItemStack(ItemListAB.itemABResource, 1, 1), 25000000, 0x8d16e0);
|
||||
|
||||
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"), new PageImage("2", "ab:textures/misc/ancientAlphirine.png"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", alphirineRecipe), new AlphirineCraftPage(ancientAlphirine, forgottenLandRecipe.getOutput(), ".alphirineCraft") }).setIcon(ItemBlockSpecialFlower.ofType("ancientAlphirine"));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABPlate), new Object[] { "MPM", " F ", "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.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)});
|
||||
lebethronSpreader = new BLexiconEntry("lebethronSpreader", categoryForgotten);
|
||||
lebethronSpreader.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockABSpreader));
|
||||
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 4, 1), new Object[] { new ItemStack(BlockListAB.blockLebethron)});
|
||||
IRecipe leb1 = getLastRecipe();
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 2), new Object[] { new ItemStack(BlockListAB.blockLebethron, 1, 1), new ItemStack(Items.wheat_seeds)});
|
||||
IRecipe leb2 = getLastRecipe();
|
||||
addShapelessOreDictRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 3), new Object[] { new ItemStack(BlockListAB.blockLebethron), new ItemStack(Items.glowstone_dust)});
|
||||
IRecipe leb3 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockLebethron, 1, 4), new Object[] { "4W5", "WPW", "6W7", Character.valueOf('P'), new ItemStack(ModBlocks.pylon, 1, 1), Character.valueOf('W'), new ItemStack(BlockListAB.blockLebethron), Character.valueOf('4'), new ItemStack(ModItems.rune, 1, 4), Character.valueOf('5'), new ItemStack(ModItems.rune, 1, 5), Character.valueOf('6'), new ItemStack(ModItems.rune, 1, 6), Character.valueOf('7'), new ItemStack(ModItems.rune, 1, 7)});
|
||||
IRecipe leb4 = getLastRecipe();
|
||||
lebethronWood = new BLexiconEntry("lebethronWood", categoryForgotten);
|
||||
lebethronWood.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(lebethronWood, lebethroneRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb1), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb2), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb3), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", leb4), new PageText("1"), BotaniaAPI.internalHandler.multiblockPage(".structure", TileLebethronCore.makeMultiblockSet()) }).setIcon(new ItemStack(BlockListAB.blockLebethron));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMihrillMultiTool), new Object[] { " MB", " FM", "F ", Character.valueOf('F'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('B'), new ItemStack(ModBlocks.livingwood), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource)});
|
||||
mithrill = new BLexiconEntry("mithrill", categoryForgotten);
|
||||
mithrill.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(mithrill, mithrillRecipe.getOutput(), ".abCraft"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMihrillMultiTool));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont1 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 1), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 2), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont2 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaContainer, 1, 2), new Object[] { "MGM", "LPL", "M3M", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ModBlocks.pool, 1, 3), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('3'), new ItemStack(ModItems.rune, 1, 3), Character.valueOf('G'), new ItemStack(ModItems.rune, 1, 15)});
|
||||
IRecipe cont3 = getLastRecipe();
|
||||
manaContainer = new BLexiconEntry("manaContainer", categoryForgotten);
|
||||
manaContainer.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", cont1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", cont2), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", cont3), new PageText("1"), new AlphirineCraftPage(manaContainer, advancedSparkRecipe.getOutput(), ".alphirineCraft") }).setIcon(new ItemStack(BlockListAB.blockManaContainer));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCrystalCube), new Object[] { "TST", "GWG", "DMD", Character.valueOf('D'), new ItemStack(ModBlocks.dreamwood), Character.valueOf('W'), new ItemStack(ModItems.twigWand, 1, 32767), Character.valueOf('G'), new ItemStack(ModBlocks.manaGlass), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('S'), new ItemStack(ModItems.spark)});
|
||||
manaCrystalCube = new BLexiconEntry("manaCrystalCube", BotaniaAPI.categoryMana);
|
||||
manaCrystalCube.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(BlockListAB.blockManaCrystalCube));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemTerraHoe), new Object[] { "TTL", "RW ", " W ", Character.valueOf('T'), new ItemStack(ModItems.manaResource, 1, 4), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 18), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 2)});
|
||||
terraHoe = new BLexiconEntry("terraHoe", BotaniaAPI.categoryTools);
|
||||
terraHoe.setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemTerraHoe));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('L'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('R'), new ItemStack(ModItems.manaRingGreater)});
|
||||
IRecipe ring1 = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRing), new Object[] { "LML", "MRM", "LML", Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('L'), new ItemStack(ModItems.manaResource, 1, 5), Character.valueOf('R'), new ItemStack(ItemListAB.itemMithrillRing)});
|
||||
IRecipe ring2 = getLastRecipe();
|
||||
manaRings = new BLexiconEntry("manaRings", categoryForgotten);
|
||||
manaRings.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[]{ new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", ring1), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", ring2)}).setIcon(new ItemStack(ItemListAB.itemMithrillRing));
|
||||
AdvancedBotanyAPI.registerFarmlandSeed(Blocks.nether_wart, 3);
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemManaFlower), new Object[] { " F ", " M ", " R ", Character.valueOf('F'), new ItemStack(ItemListAB.itemABResource, 1, 4), Character.valueOf('M'), new ItemStack(ModItems.manaBottle), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
|
||||
manaFlower = new BLexiconEntry("manaFlower", categoryForgotten);
|
||||
manaFlower.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AlphirineCraftPage(manaFlower, manaFlowerRecipe.getOutput(), ".alphirineCraft"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemManaFlower));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemMithrillSword), new Object[] { " M", "SM ", "WS ", Character.valueOf('S'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('T'), new ItemStack(ModItems.terraSword), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 3)});
|
||||
mithrillSword = new BLexiconEntry("mithrillSword", categoryForgotten);
|
||||
mithrillSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe()) }).setIcon(new ItemStack(ItemListAB.itemMithrillSword));
|
||||
|
||||
dictariusRecipe = BotaniaAPI.registerPetalRecipe(ItemBlockSpecialFlower.ofType("dictarius"), new ItemStack(ItemListAB.itemABResource, 1, 4), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.manaResource, 1, 5), new ItemStack(ModItems.rune, 1, 15), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 4), new ItemStack(ModItems.petal, 1, 1));
|
||||
dictarius = new BLexiconEntry("dictarius", BotaniaAPI.categoryGenerationFlowers);
|
||||
dictarius.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", dictariusRecipe)});
|
||||
|
||||
nebula = new BLexiconEntry("nebula", categoryForgotten);
|
||||
nebula.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new AdvancedPlateCraftPage(nebula, nebulaRecipe.getOutput(), ".abCraft")});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemBlackHalo), new Object[] { " E ", "DHD", " E ", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.autocraftingHalo), Character.valueOf('D'), new ItemStack(ModItems.blackHoleTalisman)});
|
||||
blackHalo = new BLexiconEntry("blackHalo", BotaniaAPI.categoryTools);
|
||||
blackHalo.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAntigravityCharm), new Object[] { " G ", "GDG", "ERE", Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('G'), new ItemStack(ModBlocks.elfGlass), Character.valueOf('D'), new ItemStack(ModBlocks.floatingFlower, 1, 32767), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 3)});
|
||||
antigravityCharm = new BLexiconEntry("antigravityCharm", BotaniaAPI.categoryTools);
|
||||
antigravityCharm.setKnowledgeType(BotaniaAPI.elvenKnowledge).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())}).setIcon(new ItemStack(ItemListAB.itemAntigravityCharm));
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBlaze), new Object[] { " N ", "MMN", "AMN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3), Character.valueOf('M'), new ItemStack(ModBlocks.storage)});
|
||||
nebulaBlaze = new BLexiconEntry("nebulaBlaze", categoryForgotten);
|
||||
nebulaBlaze.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
if(ConfigABHandler.hasManaCharger) {
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockManaCharger), new Object[] { "NLN", "MPM", " R ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('L'), new ItemStack(ModBlocks.livingrock), Character.valueOf('M'), new ItemStack(ModBlocks.bellows), Character.valueOf('P'), new ItemStack(ModBlocks.pylon), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8)});
|
||||
manaCharger = new BLexiconEntry("manaCharger", categoryForgotten);
|
||||
manaCharger.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
}
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaHelm), new Object[] { "RNR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelHelm), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8)});
|
||||
IRecipe nHelm = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaChest), new Object[] { "RTR", "NHN", "ENE", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelChest), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('T'), new ItemStack(ModItems.flightTiara, 1, 32767)});
|
||||
IRecipe nChest = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaLegs), new Object[] { "ENE", "RHR", "NAN", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelLegs), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('A'), new ItemStack(ItemListAB.itemABResource, 1, 3)});
|
||||
IRecipe nLegs = getLastRecipe();
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaBoots), new Object[] { "RBR", "NHN", " E ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 5), Character.valueOf('R'), new ItemStack(ModItems.manaResource, 1, 7), Character.valueOf('H'), new ItemStack(ModItems.terrasteelBoots), Character.valueOf('E'), new ItemStack(ModItems.manaResource, 1, 8), Character.valueOf('B'), new ItemStack(ModItems.speedUpBelt)});
|
||||
IRecipe nBoots = getLastRecipe();
|
||||
nebulaArmor = new BLexiconEntry("nebulaArmor", categoryForgotten);
|
||||
nebulaArmor.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageText("1"), BotaniaAPI.internalHandler.craftingRecipePage(".craft0", nHelm), BotaniaAPI.internalHandler.craftingRecipePage(".craft1", nChest), BotaniaAPI.internalHandler.craftingRecipePage(".craft2", nLegs), BotaniaAPI.internalHandler.craftingRecipePage(".craft3", nBoots)});
|
||||
|
||||
engineerHopper = new BLexiconEntry("engineerHopper", categoryForgotten);
|
||||
engineerHopper.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), new PageImage("1", "ab:textures/misc/engineerHopper.png"), new PageText("2"), new PageText("3"), new PageText("4"), new AlphirineCraftPage(engineerHopper, hopperRecipe.getOutput(), ".alphirineCraft")});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemNebulaRod), new Object[] { " WN", " RW", "W ", Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13), Character.valueOf('R'), new ItemStack(ModItems.rune, 1, 8), Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
|
||||
nebulaRod = new BLexiconEntry("nebulaRod", categoryForgotten);
|
||||
nebulaRod.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockBoardFate), new Object[] { " ", "QDQ", "MPM", Character.valueOf('Q'), new ItemStack(ModFluffBlocks.manaQuartz), Character.valueOf('D'), new ItemStack(ModItems.manaResource, 1, 2), Character.valueOf('M'), new ItemStack(ModItems.manaResource), Character.valueOf('P'), new ItemStack(ModItems.manaResource, 1, 23)});
|
||||
gameBoard = new BLexiconEntry("gameBoard", BotaniaAPI.categoryMisc);
|
||||
gameBoard.setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
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")});
|
||||
|
||||
sphereNavigation = new RLexiconEntry("sphereNavigation", BotaniaAPI.categoryAlfhomancy, AchievementRegister.sphereNavigation);
|
||||
sphereNavigation.setLexiconPages(new LexiconPage[] { new PageText("0")});
|
||||
|
||||
hornPlenty = new RLexiconEntry("hornPlenty", BotaniaAPI.categoryAlfhomancy, AchievementRegister.hornPlenty);
|
||||
hornPlenty.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)});
|
||||
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemAquaSword), new Object[] { " N", "RM ", "WR ", Character.valueOf('N'), new ItemStack(ItemListAB.itemABResource, 1, 1), Character.valueOf('M'), new ItemStack(ItemListAB.itemABResource), Character.valueOf('R'), new ItemStack(ModItems.rune), Character.valueOf('W'), new ItemStack(ModItems.manaResource, 1, 13)});
|
||||
aquaSword = new BLexiconEntry("aquaSword", categoryForgotten);
|
||||
aquaSword.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.craftingRecipePage(".craft", getLastRecipe())});
|
||||
|
||||
if(Botania.thaumcraftLoaded)
|
||||
thaumcraft();
|
||||
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 1), new Object[] { new ItemStack(ItemListAB.itemABResource)});
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 0), new Object[] { new ItemStack(BlockListAB.blockABStorage)});
|
||||
addShapelessOreDictRecipe(new ItemStack(ItemListAB.itemABResource, 9, 6), new Object[] { new ItemStack(ItemListAB.itemABResource, 1, 5)});
|
||||
GameRegistry.addShapedRecipe(new ItemStack(BlockListAB.blockABStorage), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource)});
|
||||
GameRegistry.addShapedRecipe(new ItemStack(ItemListAB.itemABResource, 1, 5), new Object[] { "III", "III", "III", Character.valueOf('I'), new ItemStack(ItemListAB.itemABResource, 1, 6)});
|
||||
}
|
||||
|
||||
public static void thaumcraft() {
|
||||
aspecolus = new BLexiconEntry("aspecolus", BotaniaAPI.categoryFunctionalFlowers);
|
||||
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)});
|
||||
|
||||
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)});
|
||||
|
||||
}
|
||||
|
||||
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);
|
||||
gladious.setKnowledgeType(forgotten).setLexiconPages(new LexiconPage[] { new PageText("0"), BotaniaAPI.internalHandler.petalRecipePage(".petalCraft", pureGladRecipe)});
|
||||
}
|
||||
|
||||
public static void relicInit() {
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.infiniteFruit));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.kingKey));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.flugelEye));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.thorRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.odinRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ModItems.lokiRing));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemFreyrSlingshot));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemTalismanHiddenRiches));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemPocketWardrobe));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemSphereNavigation));
|
||||
AdvancedBotanyAPI.relicList.add(new ItemStack(ItemListAB.itemHornPlenty));
|
||||
}
|
||||
|
||||
private static IRecipe getLastRecipe() {
|
||||
return (IRecipe)CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
|
||||
}
|
||||
|
||||
private static void addOreDictRecipe(ItemStack output, Object... recipe) {
|
||||
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(output, recipe));
|
||||
}
|
||||
|
||||
private static void addShapelessOreDictRecipe(ItemStack output, Object... recipe) {
|
||||
CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(output, recipe));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package ab.client.core.handler;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.audio.ISound;
|
||||
import net.minecraft.client.audio.PositionedSoundRecord;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class PlayerItemUsingSound {
|
||||
|
||||
public EntityPlayer player;
|
||||
public ISound sound;
|
||||
public int maxTick = 0;
|
||||
public int tick = 0;
|
||||
public boolean isDeadingSound = false;
|
||||
public boolean hasCheckUse;
|
||||
|
||||
public PlayerItemUsingSound(EntityPlayer player, ISound sound, int maxTick, boolean hasCheckUse) {
|
||||
this.player = player;
|
||||
this.sound = sound;
|
||||
this.maxTick = maxTick;
|
||||
this.hasCheckUse = hasCheckUse;
|
||||
}
|
||||
|
||||
public static class ClientSoundHandler {
|
||||
|
||||
public static Minecraft mc = Minecraft.getMinecraft();
|
||||
public static List<PlayerItemUsingSound> soundsList = new ArrayList<PlayerItemUsingSound>();
|
||||
|
||||
public static void playSound(EntityPlayer player, String name, float volume, float pitch, int maxTick, boolean hasCheckUse) {
|
||||
if(!soundsList.isEmpty())
|
||||
for(int i = 0; i < soundsList.size(); i++) {
|
||||
PlayerItemUsingSound playerSound = soundsList.get(i);
|
||||
if(playerSound.player.getCommandSenderName().equals(player.getCommandSenderName())) {
|
||||
if(playerSound.maxTick != 0 && playerSound.maxTick <= playerSound.tick && !playerSound.isDeadingSound) {
|
||||
playerSound.isDeadingSound = true;
|
||||
setSound(player, name, volume, pitch, maxTick, hasCheckUse);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
} else
|
||||
setSound(player, name, volume, pitch, maxTick, hasCheckUse);
|
||||
}
|
||||
else
|
||||
setSound(player, name, volume, pitch, maxTick, hasCheckUse);
|
||||
}
|
||||
|
||||
public static void playSound(EntityPlayer player, String name, float volume, float pitch, int maxTick) {
|
||||
playSound(player, name, volume, pitch, maxTick, true);
|
||||
}
|
||||
|
||||
public static void playSound(EntityPlayer player, String name, float volume, float pitch) {
|
||||
playSound(player, name, volume, pitch, 0);
|
||||
}
|
||||
|
||||
protected static void setSound(EntityPlayer player, String name, float volume, float pitch, int maxTick, boolean hasCheckUse) {
|
||||
PositionedSoundRecord posSound = new PositionedSoundRecord(new ResourceLocation(name), volume, pitch, (float)player.posX, (float)player.posY, (float)player.posZ);
|
||||
soundsList.add(new PlayerItemUsingSound(player, posSound, maxTick, hasCheckUse));
|
||||
mc.getSoundHandler().playSound(posSound);
|
||||
}
|
||||
|
||||
public static void tick() {
|
||||
if(!soundsList.isEmpty()) {
|
||||
int sounds = 0;
|
||||
for(int i = 0; i < soundsList.size(); i++) {
|
||||
sounds++;
|
||||
PlayerItemUsingSound playerSound = soundsList.get(i);
|
||||
playerSound.tick++;
|
||||
if(!mc.getSoundHandler().isSoundPlaying(playerSound.sound)) {
|
||||
soundsList.remove(playerSound);
|
||||
continue;
|
||||
} else if(playerSound.hasCheckUse && !playerSound.player.isUsingItem()) {
|
||||
if(mc.getSoundHandler().isSoundPlaying(playerSound.sound))
|
||||
mc.getSoundHandler().stopSound(playerSound.sound);
|
||||
soundsList.remove(playerSound);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
System.out.println("sounds: " + sounds);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package ab;
|
||||
|
||||
import ab.common.core.proxy.CommonProxy;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.SidedProxy;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
@Mod (modid = AdvancedBotany.modid, name="Advanced Botany", version = AdvancedBotany.version, dependencies = "required-after:Botania", guiFactory = "ab.client.core.handler.GuiABFactory")
|
||||
public class AdvancedBotany {
|
||||
|
||||
public static final String modid = "AdvancedBotany";
|
||||
public static final String version = "1.3.2.1";
|
||||
|
||||
@Mod.Instance("AdvancedBotany")
|
||||
public static AdvancedBotany instance;
|
||||
|
||||
@SidedProxy(clientSide = "ab.client.core.proxy.ClientProxy", serverSide = "ab.common.core.proxy.CommonProxy")
|
||||
public static CommonProxy proxy;
|
||||
|
||||
@Mod.EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
proxy.preInit(event);
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void init(FMLInitializationEvent event) {
|
||||
proxy.init(event);
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
proxy.postInit(event);
|
||||
}
|
||||
|
||||
public static final CreativeTabs tabAB = new AdvancedBotanyTab("tabAB");
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
package ab.common.item.equipment;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
|
||||
import ab.AdvancedBotany;
|
||||
import ab.api.AdvancedBotanyAPI;
|
||||
import ab.client.core.ClientHelper;
|
||||
import ab.client.core.handler.PlayerItemUsingSound.ClientSoundHandler;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
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.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.ItemSword;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.helper.ItemNBTHelper;
|
||||
import vazkii.botania.common.core.helper.Vector3;
|
||||
|
||||
public class ItemAquaSword extends ItemSword {
|
||||
|
||||
public ItemAquaSword() {
|
||||
super(AdvancedBotanyAPI.mithrilToolMaterial);
|
||||
this.setCreativeTab(AdvancedBotany.tabAB);
|
||||
this.setUnlocalizedName("itemAquaSword");
|
||||
this.setTextureName("ab:itemAquaSword");
|
||||
}
|
||||
|
||||
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(entity.posX, entity.posY, entity.posZ, entity.lastTickPosX, entity.lastTickPosY, entity.lastTickPosZ).expand(1.7f, 1.7f, 1.7f);
|
||||
List<EntityLivingBase> entities = entity.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
double posX = entity.posX;
|
||||
double posY = entity.posY + entity.getEyeHeight();
|
||||
double posZ = entity.posZ;
|
||||
if(!player.worldObj.isRemote) {
|
||||
boolean hasWaterSplash = false;
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(player.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
else if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(player), AdvancedBotanyAPI.mithrilToolMaterial.getDamageVsEntity() / 2.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, player, 10, true);
|
||||
if(!hasWaterSplash)
|
||||
hasWaterSplash = true;
|
||||
Vec3 vec3 = player.getLook(1.0F).normalize();
|
||||
living.motionX += vec3.xCoord * 1.35f;
|
||||
living.motionY += (vec3.yCoord / 1.8f);
|
||||
living.motionZ += vec3.zCoord * 1.35f;
|
||||
}
|
||||
}
|
||||
if(hasWaterSplash)
|
||||
player.worldObj.playSoundAtEntity(player, "ab:aquaSword", 1.2F, 1.2F);
|
||||
} else {
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, player, 10, false)) {
|
||||
for(int i = 0; i < 24; i++) {
|
||||
float mtX = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtY = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
float mtZ = (float)((Math.random() - 0.5f) * 0.12f);
|
||||
Botania.proxy.wispFX(player.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.17f + (float)(Math.random() * 0.3f), mtX, mtY, mtZ, 0.512f);
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onLeftClickEntity(stack, player, entity);
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer p, int time) {
|
||||
if(p.worldObj.isRemote) {
|
||||
if(!ManaItemHandler.requestManaExactForTool(stack, p, 15, false))
|
||||
return;
|
||||
ClientSoundHandler.playSound(p, "liquid.water", 0.8F, 1.5F, 14, false);
|
||||
time = (this.getMaxItemUseDuration(stack) - time) % 120 + 1;
|
||||
if(time > 50)
|
||||
time = 120 - time;
|
||||
float phase = time / 120.0f;
|
||||
int wispCount = 8;
|
||||
double tickIncrement = 360.0D / wispCount;
|
||||
int speed = 10;
|
||||
double wticks = (time * speed) - tickIncrement;
|
||||
double r = Math.sin(1.4f);
|
||||
for(int i = 0; i < wispCount; i++) {
|
||||
double posX = p.posX + Math.sin(wticks * Math.PI / 180.0D) * r;
|
||||
double posY = p.posY + (wticks * 0.001f) + 0.1f;
|
||||
double posZ = p.posZ + Math.cos(wticks * Math.PI / 180.0D) * r;
|
||||
Botania.proxy.wispFX(p.worldObj, posX, posY, posZ, 0.0f, (float)(Math.random() * 0.35f), 1.0f - (float)(Math.random() * 0.4f), 0.3F, 0.0f, -0.1f + (float)(Math.random() * 0.05f), 0.0f, 0.7F);
|
||||
wticks += tickIncrement;
|
||||
}
|
||||
} else {
|
||||
AxisAlignedBB axis = AxisAlignedBB.getBoundingBox(p.posX, p.posY, p.posZ, p.lastTickPosX, p.lastTickPosY, p.lastTickPosZ).expand(2.75f, 2.75f, 2.75f);
|
||||
List<EntityLivingBase> entities = p.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living instanceof EntityPlayer && (((EntityPlayer)living).getCommandSenderName().equals(p.getCommandSenderName()) || (MinecraftServer.getServer() != null && !MinecraftServer.getServer().isPVPEnabled())))
|
||||
continue;
|
||||
double dist = living.getDistance(p.posX, p.posY, p.posZ) / 2.5f;
|
||||
if(ManaItemHandler.requestManaExactForTool(stack, p, 15, false) && living.attackEntityFrom(DamageSource.causePlayerDamage(p), 1.0f)) {
|
||||
ManaItemHandler.requestManaExactForTool(stack, p, 15, true);
|
||||
if(dist <= 1.0D) {
|
||||
double d5 = living.posX - p.posX;
|
||||
double d7 = living.posZ - p.posZ;
|
||||
double d9 = (double)MathHelper.sqrt_double(d5 * d5 + d7 * d7);
|
||||
if (d9 != 0.0D) {
|
||||
d5 /= d9;
|
||||
d7 /= d9;
|
||||
living.motionX += d5 * 1.2f;
|
||||
living.motionZ += d7 * 1.2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||