Minecraft Xeno’s Reliquary

minecraft xeno’s reliquary
package deal xeno.reliquary.objects;

import java.util.List;

import cpw.mods.fml.frequent.Side;
import cpw.mods.fml.frequent.asm.SideSolely;
import internet.minecraft.src.Block;
import internet.minecraft.src.DamageSource;
import internet.minecraft.src.Entity;
import internet.minecraft.src.EntityParticipant;
import internet.minecraft.src.EntityPlayerMP;
minecraft xeno’s reliquary informational minecraft xeno’s reliquary
import internet.minecraft.src.EnumMovingObjectType;
import internet.minecraft.src.EnumRarity;
import internet.minecraft.src.Item;
import internet.minecraft.src.ItemStack;
import internet.minecraft.src.MathHelper;
import internet.minecraft.src.MovingObjectPosition;
import internet.minecraft.src.Potion;
import internet.minecraft.src.PotionImpact;
import internet.minecraft.src.Vec3;
import internet.minecraft.src.World;
minecraft xeno’s reliquary informational minecraft xeno’s reliquary
import xeno.reliquary.Constants;
import xeno.reliquary.Reliquary;
import xeno.reliquary.frequent.TimeKeeperHandler;

public class ItemDistortionCloak extends ItemXR {

protected ItemDistortionCloak(int par1) {
tremendous(par1);
this.setIconIndex(64);
this.setMaxDamage(2401);
minecraft xeno’s reliquary informational minecraft xeno’s reliquary
this.setMaxStackSize(1);
this.canRepair = false;
this.setCreativeTab(Reliquary.tabsXR);
this.setItemTitle(Constants.DISTORTION_CLOAK_NAME);
this.setTextureFile(Constants.ART_PATH + Constants.ITEM_SPRITES);
}

public void addInformation(ItemStack ist, EntityParticipant par2EntityParticipant, List par3List, boolean par4) {
par3List.add(“While held, this cloak renders you invisible.”);
par3List.add(“Consumes ender pearls for its cost.”);
minecraft xeno’s reliquary better of minecraft xeno’s reliquary
par3List.add(“Currently ” + getChargeTime(ist) / 1200 + “:” + (getChargeTime(ist) / 20) % 60 + ” remaining.”);
}

@SideSolely(Side.CLIENT)
public EnumRarity getRarity(ItemStack stack) {
return EnumRarity.epic;
}

@SideSolely(Side.CLIENT)
public boolean hasEffect(ItemStack stack) {
minecraft xeno’s reliquary minecraft xeno’s reliquary
return true;
}

@SideSolely(Side.CLIENT)
public int getIconFromDamage(int i) {
i = TimeKeeperHandler.getTime();
i %= 31;
//i == 0, absolutely seen, i == 4, fully clear.
if(i > 15)
i = 30 – i;
minecraft xeno’s reliquary verify extra minecraft xeno’s reliquary
return this.iconIndex + i;
}

non-public boolean findAndRemoveEnderPearl(EntityParticipant participant) {
if(participant.capabilities.isCreativeMode)
return true;
for(int slot = 0; slot < participant.stock.mainInventory.size; slot++) { if(participant.stock.mainInventory[slot] == null) proceed; if(participant.stock.mainInventory[slot].getItem() == Item.enderPearl) {minecraft xeno's reliquary minecraft xeno's reliquary participant.stock.decrStackSize(slot, 1); return true; } } return false; } @Override public void onUpdate(ItemStack ist, World world, Entity e, int i, boolean f) { if(!(e instanceof EntityParticipant))minecraft xeno's reliquary better of minecraft xeno's reliquary return; EntityParticipant participant = (EntityParticipant)e; if(participant.getCurrentEquippedItem() == null) return; if(participant.getCurrentEquippedItem().getItem() == XRItems.distortionCloak) { if(getChargeTime(ist) <= 0) { if(findAndRemoveEnderPearl(player)) resetChargeTime(ist); } if(getChargeTime(ist) > 0) {
minecraft xeno’s reliquary verify extra minecraft xeno’s reliquary
participant.addPotionImpact(new PotionImpact(Potion.invisibility.id, 5, 0));
decreaseChargeTime(ist);
}
}
if(isOnCooldown(ist))
decrementCooldown(ist);
if(hasTeleportWaypoint(ist))
doTeleport(world, participant, ist);
}

minecraft xeno’s reliquary minecraft xeno’s reliquary
non-public void decreaseChargeTime(ItemStack ist) {
this.setShort(“chargeTime”, ist, getChargeTime(ist) – 1);
}

non-public void resetChargeTime(ItemStack ist) {
this.setShort(“chargeTime”, ist, 2400);
}

non-public int getChargeTime(ItemStack ist) {
return this.getShort(“chargeTime”, ist);
minecraft xeno’s reliquary minecraft xeno’s reliquary
}

non-public void decrementCooldown(ItemStack ist) {
this.setShort(“cooldown”, ist, this.getShort(“cooldown”, ist) – 1);
}

non-public boolean isOnCooldown(ItemStack ist) {
return this.getShort(“cooldown”, ist) > 0;
}

minecraft xeno’s reliquary better of minecraft xeno’s reliquary
non-public void setCooldown(ItemStack ist) {
this.setShort(“cooldown”, ist, 10);
}

@Override
public ItemStack onItemRightClick(ItemStack ist, World world, EntityParticipant participant) {
if(this.isOnCooldown(ist))
return ist;
if(hasTeleportWaypoint(ist))
return ist;
minecraft xeno’s reliquary minecraft xeno’s reliquary
MovingObjectPosition mop = this.getMovingObjectPositionFromPlayer(world, participant, true);
if(mop != null && mop.typeOfHit == EnumMovingObjectType.TILE) {
if(!findAndRemoveEnderPearl(participant))
return ist;
float xOff = (float) (mop.blockX);
float yOff = (float) (mop.blockY + 1F);
float zOff = (float) (mop.blockZ);
setTeleportWaypoint(ist, xOff, yOff, zOff);
}
return ist;
minecraft xeno’s reliquary verify extra minecraft xeno’s reliquary
}

non-public boolean hasTeleportWaypoint(ItemStack ist) {
return (!(this.getShort(“teleportX”, ist) == 0 && this.getShort(“teleportY”, ist) == 0 && this.getShort(“teleportZ”, ist) == 0));
}

non-public void resetTeleportWaypoint(ItemStack ist) {
this.setShort(“teleportX”, ist, 0);
this.setShort(“teleportY”, ist, 0);
this.setShort(“teleportZ”, ist, 0);
minecraft xeno’s reliquary minecraft xeno’s reliquary
}

non-public void setTeleportWaypoint(ItemStack ist, float xOff, float yOff, float zOff) {
this.setShort(“teleportX”, ist, (int)Math.ground(xOff));
this.setShort(“teleportY”, ist, (int)Math.ground(yOff));
this.setShort(“teleportZ”, ist, (int)Math.ground(zOff));
}

protected MovingObjectPosition getMovingObjectPositionFromPlayer(World par1World, EntityParticipant par2EntityParticipant, boolean par3)
{
minecraft xeno’s reliquary verify extra minecraft xeno’s reliquary
float var4 = 1.0F;
float var5 = par2EntityParticipant.prevRotationPitch + (par2EntityParticipant.rotationPitch – par2EntityParticipant.prevRotationPitch) * var4;
float var6 = par2EntityParticipant.prevRotationYaw + (par2EntityParticipant.rotationYaw – par2EntityParticipant.prevRotationYaw) * var4;
double var7 = par2EntityParticipant.prevPosX + (par2EntityParticipant.posX – par2EntityParticipant.prevPosX) * (double)var4;
double var9 = par2EntityParticipant.prevPosY + (par2EntityParticipant.posY – par2EntityParticipant.prevPosY) * (double)var4 + 1.62D – (double)par2EntityParticipant.yOffset;
double var11 = par2EntityParticipant.prevPosZ + (par2EntityParticipant.posZ – par2EntityParticipant.prevPosZ) * (double)var4;
Vec3 var13 = par1World.getWorldVec3Pool().getVecFromPool(var7, var9, var11);
float var14 = MathHelper.cos(-var6 * 0.017453292F – (float)Math.PI);
float var15 = MathHelper.sin(-var6 * 0.017453292F – (float)Math.PI);
float var16 = -MathHelper.cos(-var5 * 0.017453292F);
minecraft xeno’s reliquary better of minecraft xeno’s reliquary
float var17 = MathHelper.sin(-var5 * 0.017453292F);
float var18 = var15 * var16;
float var20 = var14 * var16;
double var21 = 128.0D;
Vec3 var23 = var13.addVector((double)var18 * var21, (double)var17 * var21, (double)var20 * var21);
return par1World.rayTraceBlocks_do_do(var13, var23, par3, !par3);
}

non-public void finishTeleport(World world, EntityParticipant participant, ItemStack ist, float xOff, float yOff, float zOff) {
for (int particles = 0; particles < 32; ++particles)minecraft xeno's reliquary verify extra minecraft xeno's reliquary world.spawnParticle("portal",xOff, yOff + world.rand.nextDouble() * 2.0D, zOff, world.rand.nextGaussian(), 0.0D, world.rand.nextGaussian()); if (!world.isRemote) { participant.setPositionAndUpdate(xOff, yOff, zOff); participant.fallDistance = 0.0F; } this.resetTeleportWaypoint(ist); this.setCooldown(ist); }minecraft xeno's reliquary informational minecraft xeno's reliquary non-public void doTeleport(World world, EntityParticipant participant, ItemStack ist) { int x = getShort("teleportX", ist); int y = getShort("teleportY", ist); int z = getShort("teleportZ", ist); double xOff = ((x - participant.posX) / 2); double yOff = ((y - participant.posY) / 2); double zOff = ((z - participant.posZ) / 2); if(Math.abs(xOff * xOff + zOff * zOff) < 4) finishTeleport(world, participant, ist, x, y, z); else {minecraft xeno's reliquary better of minecraft xeno's reliquary x -= xOff; y -= yOff; z -= zOff; participant.setPositionAndUpdate(x, y, z); participant.fallDistance = 0.0F; } }}minecraft xeno's reliquary

Yu-gi-oh Tag Force 3.iso

Wurm Unlimited Livemap

cheats
game cheats scripts
utube
Buy Hacks Cheats Undetected 2022