diff --git a/Change Log.txt b/Change Log.txt index 3477a064..8c3377af 100644 --- a/Change Log.txt +++ b/Change Log.txt @@ -1,8 +1,18 @@ +######## 1.0.2 ######## +-stabilized spawner's will now keep their original mob type when created. +-mobs spawned by stabilized spawner are now allowed to despawn after 30 seconds. +-increased the length and render distance of the particle generator beam. +-shortened the teleport sound. +-added Draconium Infused Obsidian +-added Draconic Portal +-removed old debug code from bow +-fixed energy crystal name localisation in hud + ######## 1.0.1-Bugfix-c ######## --fixed crash when arrow from DE bow hits RFTools force field +-fixed crash when arrow from DE bow hits RFTools force field. ######## 1.0.1-Bugfix-b ######## --fixed a problem in the config gui that came from a change in bugfix a +-fixed a problem in the config gui that came from a change in bugfix a. ######## 1.0.1-Bugfix-a ######## -fixed heart dupe bug. diff --git a/build.gradle b/build.gradle index fa104899..0f72fdd2 100644 --- a/build.gradle +++ b/build.gradle @@ -52,7 +52,7 @@ dependencies { compile "codechicken:CodeChickenCore:${config.minecraft_version}-${config.ccc_version}:dev" compile "codechicken:NotEnoughItems:${config.minecraft_version}-${config.NEI_version}:dev" - if (file('../BrandonsLib/').exists()) compile project('../BrandonsLib') + if (file('../BrandonsCore/').exists()) compile project('../BrandonsCore') } processResources diff --git a/build.properties b/build.properties index 101112e0..139528da 100644 --- a/build.properties +++ b/build.properties @@ -1,5 +1,5 @@ minecraft_version=1.7.10 -mod_version=1.0.1c +mod_version=1.0.1d_privateServerFix forge_version=10.13.3.1403-1.7.10 CCLIB_version=1.1.1.99 NEI_version=1.0.3.74 diff --git a/settings.gradle b/settings.gradle index 4cbfe252..2cf4e957 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -if(file('../BrandonsLib/').exists()) { include '../BrandonsLib' } \ No newline at end of file +if(file('../BrandonsCore/').exists()) { include '../BrandonsCore' } \ No newline at end of file diff --git a/src/main/java/cofh/api/CoFHAPIProps.java b/src/main/java/cofh/api/CoFHAPIProps.java deleted file mode 100644 index 9b528304..00000000 --- a/src/main/java/cofh/api/CoFHAPIProps.java +++ /dev/null @@ -1,11 +0,0 @@ -package cofh.api; - -public class CoFHAPIProps { - - private CoFHAPIProps() { - - } - - public static final String VERSION = "1.7.10R1.0.2"; - -} diff --git a/src/main/java/cofh/api/energy/EnergyStorage.java b/src/main/java/cofh/api/energy/EnergyStorage.java deleted file mode 100644 index 1674c189..00000000 --- a/src/main/java/cofh/api/energy/EnergyStorage.java +++ /dev/null @@ -1,158 +0,0 @@ -package cofh.api.energy; - -import net.minecraft.nbt.NBTTagCompound; - -/** - * Reference implementation of {@link IEnergyStorage}. Use/extend this or implement your own. - * - * @author King Lemming - * - */ -public class EnergyStorage implements IEnergyStorage { - - protected int energy; - protected int capacity; - protected int maxReceive; - protected int maxExtract; - - public EnergyStorage(int capacity) { - - this(capacity, capacity, capacity); - } - - public EnergyStorage(int capacity, int maxTransfer) { - - this(capacity, maxTransfer, maxTransfer); - } - - public EnergyStorage(int capacity, int maxReceive, int maxExtract) { - - this.capacity = capacity; - this.maxReceive = maxReceive; - this.maxExtract = maxExtract; - } - - public EnergyStorage readFromNBT(NBTTagCompound nbt) { - - this.energy = nbt.getInteger("Energy"); - - if (energy > capacity) { - energy = capacity; - } - return this; - } - - public NBTTagCompound writeToNBT(NBTTagCompound nbt) { - - if (energy < 0) { - energy = 0; - } - nbt.setInteger("Energy", energy); - return nbt; - } - - public void setCapacity(int capacity) { - - this.capacity = capacity; - - if (energy > capacity) { - energy = capacity; - } - } - - public void setMaxTransfer(int maxTransfer) { - - setMaxReceive(maxTransfer); - setMaxExtract(maxTransfer); - } - - public void setMaxReceive(int maxReceive) { - - this.maxReceive = maxReceive; - } - - public void setMaxExtract(int maxExtract) { - - this.maxExtract = maxExtract; - } - - public int getMaxReceive() { - - return maxReceive; - } - - public int getMaxExtract() { - - return maxExtract; - } - - /** - * This function is included to allow for server -> client sync. Do not call this externally to the containing Tile Entity, as not all IEnergyHandlers - * are guaranteed to have it. - * - * @param energy - */ - public void setEnergyStored(int energy) { - - this.energy = energy; - - if (this.energy > capacity) { - this.energy = capacity; - } else if (this.energy < 0) { - this.energy = 0; - } - } - - /** - * This function is included to allow the containing tile to directly and efficiently modify the energy contained in the EnergyStorage. Do not rely on this - * externally, as not all IEnergyHandlers are guaranteed to have it. - * - * @param energy - */ - public void modifyEnergyStored(int energy) { - - this.energy += energy; - - if (this.energy > capacity) { - this.energy = capacity; - } else if (this.energy < 0) { - this.energy = 0; - } - } - - /* IEnergyStorage */ - @Override - public int receiveEnergy(int maxReceive, boolean simulate) { - - int energyReceived = Math.min(capacity - energy, Math.min(this.maxReceive, maxReceive)); - - if (!simulate) { - energy += energyReceived; - } - return energyReceived; - } - - @Override - public int extractEnergy(int maxExtract, boolean simulate) { - - int energyExtracted = Math.min(energy, Math.min(this.maxExtract, maxExtract)); - - if (!simulate) { - energy -= energyExtracted; - } - return energyExtracted; - } - - @Override - public int getEnergyStored() { - - return energy; - } - - @Override - public int getMaxEnergyStored() { - - return capacity; - } - -} diff --git a/src/main/java/cofh/api/energy/IEnergyConnection.java b/src/main/java/cofh/api/energy/IEnergyConnection.java deleted file mode 100644 index 79bdf77a..00000000 --- a/src/main/java/cofh/api/energy/IEnergyConnection.java +++ /dev/null @@ -1,21 +0,0 @@ -package cofh.api.energy; - -import net.minecraftforge.common.util.ForgeDirection; - -/** - * Implement this interface on TileEntities which should connect to energy transportation blocks. This is intended for blocks which generate energy but do not - * accept it; otherwise just use IEnergyHandler. - *

- * Note that {@link IEnergyHandler} is an extension of this. - * - * @author King Lemming - * - */ -public interface IEnergyConnection { - - /** - * Returns TRUE if the TileEntity can connect on a given side. - */ - boolean canConnectEnergy(ForgeDirection from); - -} diff --git a/src/main/java/cofh/api/energy/IEnergyContainerItem.java b/src/main/java/cofh/api/energy/IEnergyContainerItem.java deleted file mode 100644 index c28455b1..00000000 --- a/src/main/java/cofh/api/energy/IEnergyContainerItem.java +++ /dev/null @@ -1,52 +0,0 @@ -package cofh.api.energy; - -import net.minecraft.item.ItemStack; - -/** - * Implement this interface on Item classes that support external manipulation of their internal energy storages. - *

- * A reference implementation is provided {@link ItemEnergyContainer}. - * - * @author King Lemming - * - */ -public interface IEnergyContainerItem { - - /** - * Adds energy to a container item. Returns the quantity of energy that was accepted. This should always return 0 if the item cannot be externally charged. - * - * @param container - * ItemStack to be charged. - * @param maxReceive - * Maximum amount of energy to be sent into the item. - * @param simulate - * If TRUE, the charge will only be simulated. - * @return Amount of energy that was (or would have been, if simulated) received by the item. - */ - int receiveEnergy(ItemStack container, int maxReceive, boolean simulate); - - /** - * Removes energy from a container item. Returns the quantity of energy that was removed. This should always return 0 if the item cannot be externally - * discharged. - * - * @param container - * ItemStack to be discharged. - * @param maxExtract - * Maximum amount of energy to be extracted from the item. - * @param simulate - * If TRUE, the discharge will only be simulated. - * @return Amount of energy that was (or would have been, if simulated) extracted from the item. - */ - int extractEnergy(ItemStack container, int maxExtract, boolean simulate); - - /** - * Get the amount of energy currently stored in the container item. - */ - int getEnergyStored(ItemStack container); - - /** - * Get the max amount of energy that can be stored in the container item. - */ - int getMaxEnergyStored(ItemStack container); - -} diff --git a/src/main/java/cofh/api/energy/IEnergyHandler.java b/src/main/java/cofh/api/energy/IEnergyHandler.java deleted file mode 100644 index 22f2dbc6..00000000 --- a/src/main/java/cofh/api/energy/IEnergyHandler.java +++ /dev/null @@ -1,58 +0,0 @@ -package cofh.api.energy; - -import net.minecraftforge.common.util.ForgeDirection; - -/** - * Implement this interface on Tile Entities which should handle energy, generally storing it in one or more internal {@link IEnergyStorage} objects. - *

- * A reference implementation is provided {@link TileEnergyHandler}. - * - * @author King Lemming - * - */ -public interface IEnergyHandler extends IEnergyProvider, IEnergyReceiver { - - // merely a convenience interface (remove these methods in 1.8; provided here for back-compat via compiler doing things) - - /** - * Add energy to an IEnergyReceiver, internal distribution is left entirely to the IEnergyReceiver. - * - * @param from - * Orientation the energy is received from. - * @param maxReceive - * Maximum amount of energy to receive. - * @param simulate - * If TRUE, the charge will only be simulated. - * @return Amount of energy that was (or would have been, if simulated) received. - */ - @Override - int receiveEnergy(ForgeDirection from, int maxReceive, boolean simulate); - - /** - * Remove energy from an IEnergyProvider, internal distribution is left entirely to the IEnergyProvider. - * - * @param from - * Orientation the energy is extracted from. - * @param maxExtract - * Maximum amount of energy to extract. - * @param simulate - * If TRUE, the extraction will only be simulated. - * @return Amount of energy that was (or would have been, if simulated) extracted. - */ - @Override - int extractEnergy(ForgeDirection from, int maxExtract, boolean simulate); - - - /** - * Returns the amount of energy currently stored. - */ - @Override - int getEnergyStored(ForgeDirection from); - - /** - * Returns the maximum amount of energy that can be stored. - */ - @Override - int getMaxEnergyStored(ForgeDirection from); - -} diff --git a/src/main/java/cofh/api/energy/IEnergyProvider.java b/src/main/java/cofh/api/energy/IEnergyProvider.java deleted file mode 100644 index 05287b35..00000000 --- a/src/main/java/cofh/api/energy/IEnergyProvider.java +++ /dev/null @@ -1,38 +0,0 @@ -package cofh.api.energy; - -import net.minecraftforge.common.util.ForgeDirection; - -/** - * Implement this interface on Tile Entities which should provide energy, generally storing it in one or more internal {@link IEnergyStorage} objects. - *

- * A reference implementation is provided {@link TileEnergyHandler}. - * - * @author King Lemming - * - */ -public interface IEnergyProvider extends IEnergyConnection { - - /** - * Remove energy from an IEnergyProvider, internal distribution is left entirely to the IEnergyProvider. - * - * @param from - * Orientation the energy is extracted from. - * @param maxExtract - * Maximum amount of energy to extract. - * @param simulate - * If TRUE, the extraction will only be simulated. - * @return Amount of energy that was (or would have been, if simulated) extracted. - */ - int extractEnergy(ForgeDirection from, int maxExtract, boolean simulate); - - /** - * Returns the amount of energy currently stored. - */ - int getEnergyStored(ForgeDirection from); - - /** - * Returns the maximum amount of energy that can be stored. - */ - int getMaxEnergyStored(ForgeDirection from); - -} diff --git a/src/main/java/cofh/api/energy/IEnergyReceiver.java b/src/main/java/cofh/api/energy/IEnergyReceiver.java deleted file mode 100644 index c726e09e..00000000 --- a/src/main/java/cofh/api/energy/IEnergyReceiver.java +++ /dev/null @@ -1,38 +0,0 @@ -package cofh.api.energy; - -import net.minecraftforge.common.util.ForgeDirection; - -/** - * Implement this interface on Tile Entities which should receive energy, generally storing it in one or more internal {@link IEnergyStorage} objects. - *

- * A reference implementation is provided {@link TileEnergyHandler}. - * - * @author King Lemming - * - */ -public interface IEnergyReceiver extends IEnergyConnection { - - /** - * Add energy to an IEnergyReceiver, internal distribution is left entirely to the IEnergyReceiver. - * - * @param from - * Orientation the energy is received from. - * @param maxReceive - * Maximum amount of energy to receive. - * @param simulate - * If TRUE, the charge will only be simulated. - * @return Amount of energy that was (or would have been, if simulated) received. - */ - int receiveEnergy(ForgeDirection from, int maxReceive, boolean simulate); - - /** - * Returns the amount of energy currently stored. - */ - int getEnergyStored(ForgeDirection from); - - /** - * Returns the maximum amount of energy that can be stored. - */ - int getMaxEnergyStored(ForgeDirection from); - -} diff --git a/src/main/java/cofh/api/energy/IEnergyStorage.java b/src/main/java/cofh/api/energy/IEnergyStorage.java deleted file mode 100644 index bc206560..00000000 --- a/src/main/java/cofh/api/energy/IEnergyStorage.java +++ /dev/null @@ -1,46 +0,0 @@ -package cofh.api.energy; - -/** - * An energy storage is the unit of interaction with Energy inventories.
- * This is not to be implemented on TileEntities. This is for internal use only. - *

- * A reference implementation can be found at {@link EnergyStorage}. - * - * @author King Lemming - * - */ -public interface IEnergyStorage { - - /** - * Adds energy to the storage. Returns quantity of energy that was accepted. - * - * @param maxReceive - * Maximum amount of energy to be inserted. - * @param simulate - * If TRUE, the insertion will only be simulated. - * @return Amount of energy that was (or would have been, if simulated) accepted by the storage. - */ - int receiveEnergy(int maxReceive, boolean simulate); - - /** - * Removes energy from the storage. Returns quantity of energy that was removed. - * - * @param maxExtract - * Maximum amount of energy to be extracted. - * @param simulate - * If TRUE, the extraction will only be simulated. - * @return Amount of energy that was (or would have been, if simulated) extracted from the storage. - */ - int extractEnergy(int maxExtract, boolean simulate); - - /** - * Returns the amount of energy currently stored. - */ - int getEnergyStored(); - - /** - * Returns the maximum amount of energy that can be stored. - */ - int getMaxEnergyStored(); - -} diff --git a/src/main/java/cofh/api/energy/ItemEnergyContainer.java b/src/main/java/cofh/api/energy/ItemEnergyContainer.java deleted file mode 100644 index 055ae45b..00000000 --- a/src/main/java/cofh/api/energy/ItemEnergyContainer.java +++ /dev/null @@ -1,110 +0,0 @@ -package cofh.api.energy; - -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; - -/** - * Reference implementation of {@link IEnergyContainerItem}. Use/extend this or implement your own. - * - * @author King Lemming - * - */ -public class ItemEnergyContainer extends Item implements IEnergyContainerItem { - - protected int capacity; - protected int maxReceive; - protected int maxExtract; - - public ItemEnergyContainer() { - - } - - public ItemEnergyContainer(int capacity) { - - this(capacity, capacity, capacity); - } - - public ItemEnergyContainer(int capacity, int maxTransfer) { - - this(capacity, maxTransfer, maxTransfer); - } - - public ItemEnergyContainer(int capacity, int maxReceive, int maxExtract) { - - this.capacity = capacity; - this.maxReceive = maxReceive; - this.maxExtract = maxExtract; - } - - public ItemEnergyContainer setCapacity(int capacity) { - - this.capacity = capacity; - return this; - } - - public void setMaxTransfer(int maxTransfer) { - - setMaxReceive(maxTransfer); - setMaxExtract(maxTransfer); - } - - public void setMaxReceive(int maxReceive) { - - this.maxReceive = maxReceive; - } - - public void setMaxExtract(int maxExtract) { - - this.maxExtract = maxExtract; - } - - /* IEnergyContainerItem */ - @Override - public int receiveEnergy(ItemStack container, int maxReceive, boolean simulate) { - - if (container.stackTagCompound == null) { - container.stackTagCompound = new NBTTagCompound(); - } - int energy = container.stackTagCompound.getInteger("Energy"); - int energyReceived = Math.min(capacity - energy, Math.min(this.maxReceive, maxReceive)); - - if (!simulate) { - energy += energyReceived; - container.stackTagCompound.setInteger("Energy", energy); - } - return energyReceived; - } - - @Override - public int extractEnergy(ItemStack container, int maxExtract, boolean simulate) { - - if (container.stackTagCompound == null || !container.stackTagCompound.hasKey("Energy")) { - return 0; - } - int energy = container.stackTagCompound.getInteger("Energy"); - int energyExtracted = Math.min(energy, Math.min(this.maxExtract, maxExtract)); - - if (!simulate) { - energy -= energyExtracted; - container.stackTagCompound.setInteger("Energy", energy); - } - return energyExtracted; - } - - @Override - public int getEnergyStored(ItemStack container) { - - if (container.stackTagCompound == null || !container.stackTagCompound.hasKey("Energy")) { - return 0; - } - return container.stackTagCompound.getInteger("Energy"); - } - - @Override - public int getMaxEnergyStored(ItemStack container) { - - return capacity; - } - -} diff --git a/src/main/java/cofh/api/energy/TileEnergyHandler.java b/src/main/java/cofh/api/energy/TileEnergyHandler.java deleted file mode 100644 index 7cc655e9..00000000 --- a/src/main/java/cofh/api/energy/TileEnergyHandler.java +++ /dev/null @@ -1,65 +0,0 @@ -package cofh.api.energy; - -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.tileentity.TileEntity; -import net.minecraftforge.common.util.ForgeDirection; - -/** - * Reference implementation of {@link IEnergyHandler}. Use/extend this or implement your own. - * - * @author King Lemming - * - */ -public class TileEnergyHandler extends TileEntity implements IEnergyHandler { - - protected EnergyStorage storage = new EnergyStorage(32000); - - @Override - public void readFromNBT(NBTTagCompound nbt) { - - super.readFromNBT(nbt); - storage.readFromNBT(nbt); - } - - @Override - public void writeToNBT(NBTTagCompound nbt) { - - super.writeToNBT(nbt); - storage.writeToNBT(nbt); - } - - /* IEnergyConnection */ - @Override - public boolean canConnectEnergy(ForgeDirection from) { - - return true; - } - - /* IEnergyReceiver */ - @Override - public int receiveEnergy(ForgeDirection from, int maxReceive, boolean simulate) { - - return storage.receiveEnergy(maxReceive, simulate); - } - - /* IEnergyProvider */ - @Override - public int extractEnergy(ForgeDirection from, int maxExtract, boolean simulate) { - - return storage.extractEnergy(maxExtract, simulate); - } - - /* IEnergyReceiver and IEnergyProvider */ - @Override - public int getEnergyStored(ForgeDirection from) { - - return storage.getEnergyStored(); - } - - @Override - public int getMaxEnergyStored(ForgeDirection from) { - - return storage.getMaxEnergyStored(); - } - -} diff --git a/src/main/java/cofh/api/energy/package-info.java b/src/main/java/cofh/api/energy/package-info.java deleted file mode 100644 index 7379702b..00000000 --- a/src/main/java/cofh/api/energy/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/** - * (C) 2014 Team CoFH / CoFH / Cult of the Full Hub - * http://www.teamcofh.com - */ -@API(apiVersion = CoFHAPIProps.VERSION, owner = "CoFHAPI", provides = "CoFHAPI|energy") -package cofh.api.energy; - -import cofh.api.CoFHAPIProps; -import cpw.mods.fml.common.API; - diff --git a/src/main/java/cofh/api/package-info.java b/src/main/java/cofh/api/package-info.java deleted file mode 100644 index 08ff5fcb..00000000 --- a/src/main/java/cofh/api/package-info.java +++ /dev/null @@ -1,9 +0,0 @@ -/** - * (C) 2014 Team CoFH / CoFH / Cult of the Full Hub - * http://www.teamcofh.com - */ -@API(apiVersion = CoFHAPIProps.VERSION, owner = "CoFHLib", provides = "CoFHAPI") -package cofh.api; - -import cpw.mods.fml.common.API; - diff --git a/src/main/java/com/brandon3055/draconicevolution/DraconicEvolution.java b/src/main/java/com/brandon3055/draconicevolution/DraconicEvolution.java index ac01c90d..1498e774 100644 --- a/src/main/java/com/brandon3055/draconicevolution/DraconicEvolution.java +++ b/src/main/java/com/brandon3055/draconicevolution/DraconicEvolution.java @@ -17,7 +17,11 @@ import net.minecraft.enchantment.Enchantment; import java.util.Arrays; -@Mod(modid = References.MODID, name = References.MODNAME, version = References.VERSION, canBeDeactivated = false, guiFactory = References.GUIFACTORY, dependencies = "after:NotEnoughItems;after:NotEnoughItems;after:ThermalExpansion;after:ThermalFoundation;") +@Mod(modid = References.MODID, name = References.MODNAME, version = References.VERSION, canBeDeactivated = false, guiFactory = References.GUIFACTORY, dependencies = "after:NotEnoughItems;" + + "after:NotEnoughItems;" + + "after:ThermalExpansion;" + + "after:ThermalFoundation;" + + "required-after:BrandonsCore@[1.0.0.1,);") public class DraconicEvolution { @Mod.Instance(References.MODID) diff --git a/src/main/java/com/brandon3055/draconicevolution/client/ClientProxy.java b/src/main/java/com/brandon3055/draconicevolution/client/ClientProxy.java index b46c63fa..3c959407 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/ClientProxy.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/ClientProxy.java @@ -28,6 +28,7 @@ import com.brandon3055.draconicevolution.common.tileentities.energynet.TileEnerg import com.brandon3055.draconicevolution.common.tileentities.energynet.TileWirelessEnergyTransceiver; import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileEnergyPylon; import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileEnergyStorageCore; +import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileReactorCore; import com.brandon3055.draconicevolution.common.utills.UpdateChecker; import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.client.registry.ClientRegistry; @@ -138,6 +139,7 @@ public class ClientProxy extends CommonProxy { //ISimpleBlockRendering RenderingRegistry.registerBlockHandler(new RenderTeleporterStand()); + RenderingRegistry.registerBlockHandler(new RenderPortal()); //TileEntitySpecialRenderers ClientRegistry.bindTileEntitySpecialRenderer(TileParticleGenerator.class, new RenderTileParticleGen()); @@ -153,6 +155,7 @@ public class ClientProxy extends CommonProxy { ClientRegistry.bindTileEntitySpecialRenderer(TileEnergyRelay.class, new RenderTileCrystal()); ClientRegistry.bindTileEntitySpecialRenderer(TileEnergyTransceiver.class, new RenderTileCrystal()); ClientRegistry.bindTileEntitySpecialRenderer(TileWirelessEnergyTransceiver.class, new RenderTileCrystal()); + ClientRegistry.bindTileEntitySpecialRenderer(TileReactorCore.class, new RenderTileReactorCore()); //Entitys RenderingRegistry.registerEntityRenderingHandler(EntityCustomDragon.class, new RenderDragon()); @@ -161,11 +164,7 @@ public class ClientProxy extends CommonProxy { public void registerRenderIDs (){ References.idTeleporterStand = RenderingRegistry.getNextAvailableRenderId(); - } - - @Override - public boolean isDedicatedServer() { - return false; + References.idPortal = RenderingRegistry.getNextAvailableRenderId(); } @Override @@ -228,22 +227,9 @@ public class ClientProxy extends CommonProxy { } @Override - public void spawnParticle(Object particle) { - if (particle instanceof EntityFX) ParticleHandler.spawnCustomParticle((EntityFX)particle); + public void spawnParticle(Object particle, int range) { + if (particle instanceof EntityFX && ((EntityFX)particle).worldObj.isRemote) ParticleHandler.spawnCustomParticle((EntityFX)particle, range); } - @Override - public boolean isSpaceDown() { - return Minecraft.getMinecraft().gameSettings.keyBindJump.getIsKeyPressed(); - } - @Override - public boolean isShiftDown() { - return Minecraft.getMinecraft().gameSettings.keyBindSneak.getIsKeyPressed(); - } - - @Override - public boolean isCtrlDown() { - return Minecraft.getMinecraft().gameSettings.keyBindSprint.getIsKeyPressed(); - } } diff --git a/src/main/java/com/brandon3055/draconicevolution/client/creativetab/DETab.java b/src/main/java/com/brandon3055/draconicevolution/client/creativetab/DETab.java index 03929619..1bc8f831 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/creativetab/DETab.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/creativetab/DETab.java @@ -1,7 +1,7 @@ package com.brandon3055.draconicevolution.client.creativetab; import com.brandon3055.draconicevolution.common.ModBlocks; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.ModItems; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIDraconiumChest.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIDraconiumChest.java index 4659dabd..65385054 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIDraconiumChest.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIDraconiumChest.java @@ -10,7 +10,7 @@ import com.brandon3055.draconicevolution.common.container.ContainerDraconiumChes import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.network.ButtonPacket; import com.brandon3055.draconicevolution.common.tileentities.TileDraconiumChest; -import com.brandon3055.draconicevolution.common.utills.GuiHelper; +import com.brandon3055.brandonscore.client.utills.GuiHelper; import cpw.mods.fml.common.Optional; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIEnergyInfuser.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIEnergyInfuser.java index c3c16c72..6c1df9f3 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIEnergyInfuser.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIEnergyInfuser.java @@ -2,7 +2,7 @@ package com.brandon3055.draconicevolution.client.gui; import cofh.api.energy.IEnergyContainerItem; import com.brandon3055.draconicevolution.common.container.ContainerEnergyInfuser; -import com.brandon3055.draconicevolution.common.utills.GuiHelper; +import com.brandon3055.brandonscore.client.utills.GuiHelper; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.tileentities.TileEnergyInfuser; import cpw.mods.fml.relauncher.Side; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIGenerator.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIGenerator.java index bdff459b..0486b856 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIGenerator.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIGenerator.java @@ -1,7 +1,7 @@ package com.brandon3055.draconicevolution.client.gui; import com.brandon3055.draconicevolution.common.container.ContainerGenerator; -import com.brandon3055.draconicevolution.common.utills.GuiHelper; +import com.brandon3055.brandonscore.client.utills.GuiHelper; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.tileentities.TileGenerator; import cpw.mods.fml.relauncher.Side; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIGrinder.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIGrinder.java index da6b2064..386a365f 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIGrinder.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIGrinder.java @@ -1,7 +1,7 @@ package com.brandon3055.draconicevolution.client.gui; import com.brandon3055.draconicevolution.common.container.ContainerGrinder; -import com.brandon3055.draconicevolution.common.utills.GuiHelper; +import com.brandon3055.brandonscore.client.utills.GuiHelper; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.tileentities.TileGrinder; import cpw.mods.fml.relauncher.Side; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIParticleGenerator.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIParticleGenerator.java index ebad23e5..5744a210 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIParticleGenerator.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/GUIParticleGenerator.java @@ -754,15 +754,15 @@ public class GUIParticleGenerator extends GuiScreen { packetValue = (short) beam_blue; break; case 103: //beam pitch + - beam_pitch = (beam_pitch + value_F) > 360F ? 360F : beam_pitch + value_F; + beam_pitch = (beam_pitch + value_F) > 180F ? 180F : beam_pitch + value_F; packetValue = (short) (beam_pitch * 100F); break; case 104: //beam yaw + - beam_yaw = (beam_yaw + value_F) > 360F ? 360F : beam_yaw + value_F; + beam_yaw = (beam_yaw + value_F) > 180F ? 180F : beam_yaw + value_F; packetValue = (short) (beam_yaw * 100F); break; case 105: //beam length + - beam_length = (beam_length + value_F) > 30F ? 30F : beam_length + value_F; + beam_length = (beam_length + value_F) > 320F ? 320F : beam_length + value_F; packetValue = (short) (beam_length * 100F); break; case 106: //beam rotation + @@ -786,11 +786,11 @@ public class GUIParticleGenerator extends GuiScreen { packetValue = (short) beam_blue; break; case 111: //beam pitch - - beam_pitch = (beam_pitch - value_F) < -0F ? -0F : beam_pitch - value_F; + beam_pitch = (beam_pitch - value_F) < -180F ? -180F : beam_pitch - value_F; packetValue = (short) (beam_pitch * 100F); break; case 112: //beam yaw - - beam_yaw = (beam_yaw - value_F) < -0F ? -0F : beam_yaw - value_F; + beam_yaw = (beam_yaw - value_F) < -180F ? -180F : beam_yaw - value_F; packetValue = (short) (beam_yaw * 100F); break; case 113: //beam length - diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/GUITeleporter.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/GUITeleporter.java index 48de988f..bb33a77b 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/GUITeleporter.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/GUITeleporter.java @@ -6,9 +6,9 @@ import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.handler.ConfigHandler; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.network.TeleporterPacket; -import com.brandon3055.draconicevolution.common.utills.GuiHelper; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; -import com.brandon3055.draconicevolution.common.utills.Teleporter.TeleportLocation; +import com.brandon3055.brandonscore.client.utills.GuiHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.Teleporter.TeleportLocation; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.Minecraft; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/componentguis/GUIManual.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/componentguis/GUIManual.java index a573563a..202d4258 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/componentguis/GUIManual.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/componentguis/GUIManual.java @@ -5,7 +5,7 @@ import com.brandon3055.draconicevolution.client.handler.ResourceHandler; import com.brandon3055.draconicevolution.common.container.DummyContainer; import com.brandon3055.draconicevolution.common.handler.ConfigHandler; import com.brandon3055.draconicevolution.common.lib.References; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.InfoHelper; import com.google.gson.stream.JsonReader; import net.minecraft.client.Minecraft; import net.minecraft.client.audio.PositionedSoundRecord; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentFieldAdjuster.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentFieldAdjuster.java index 5ef57299..8c01d5c2 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentFieldAdjuster.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentFieldAdjuster.java @@ -2,8 +2,8 @@ package com.brandon3055.draconicevolution.client.gui.guicomponents; import com.brandon3055.draconicevolution.client.gui.componentguis.GUIToolConfig; import com.brandon3055.draconicevolution.common.lib.References; -import com.brandon3055.draconicevolution.common.utills.DataUtills; -import com.brandon3055.draconicevolution.common.utills.GuiHelper; +import com.brandon3055.brandonscore.common.utills.DataUtills; +import com.brandon3055.brandonscore.client.utills.GuiHelper; import com.brandon3055.draconicevolution.common.utills.IConfigurableItem; import com.brandon3055.draconicevolution.common.utills.ItemConfigField; import net.minecraft.client.Minecraft; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentFieldButton.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentFieldButton.java index 6395cc74..fbc574dd 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentFieldButton.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentFieldButton.java @@ -2,7 +2,7 @@ package com.brandon3055.draconicevolution.client.gui.guicomponents; import com.brandon3055.draconicevolution.client.gui.componentguis.GUIToolConfig; import com.brandon3055.draconicevolution.common.lib.References; -import com.brandon3055.draconicevolution.common.utills.DataUtills; +import com.brandon3055.brandonscore.common.utills.DataUtills; import com.brandon3055.draconicevolution.common.utills.IConfigurableItem; import com.brandon3055.draconicevolution.common.utills.ItemConfigField; import net.minecraft.client.Minecraft; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentIndexButton.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentIndexButton.java index 7ddcc762..fc36283d 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentIndexButton.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentIndexButton.java @@ -2,7 +2,7 @@ package com.brandon3055.draconicevolution.client.gui.guicomponents; import com.brandon3055.draconicevolution.client.gui.componentguis.ManualPage; import com.brandon3055.draconicevolution.client.handler.ResourceHandler; -import com.brandon3055.draconicevolution.common.utills.Utills; +import com.brandon3055.brandonscore.common.utills.Utills; import net.minecraft.client.Minecraft; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentManualPage.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentManualPage.java index 3c98e0d8..cf1ec213 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentManualPage.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/guicomponents/ComponentManualPage.java @@ -3,9 +3,9 @@ package com.brandon3055.draconicevolution.client.gui.guicomponents; import com.brandon3055.draconicevolution.client.gui.componentguis.ManualPage; import com.brandon3055.draconicevolution.client.handler.ResourceHandler; import com.brandon3055.draconicevolution.client.utill.CustomResourceLocation; -import com.brandon3055.draconicevolution.common.utills.GuiHelper; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; -import com.brandon3055.draconicevolution.common.utills.Utills; +import com.brandon3055.brandonscore.client.utills.GuiHelper; +import com.brandon3055.brandonscore.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.Utills; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.Tessellator; import net.minecraft.item.ItemStack; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/manual/GuiManual.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/manual/GuiManual.java index 696ec2a7..cfb43659 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/manual/GuiManual.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/manual/GuiManual.java @@ -2,7 +2,7 @@ package com.brandon3055.draconicevolution.client.gui.manual; import com.brandon3055.draconicevolution.common.ModBlocks; import com.brandon3055.draconicevolution.common.ModItems; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.Minecraft; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/handler/ClientEventHandler.java b/src/main/java/com/brandon3055/draconicevolution/client/handler/ClientEventHandler.java index 2993fa9b..06c12892 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/handler/ClientEventHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/handler/ClientEventHandler.java @@ -5,7 +5,7 @@ import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.items.weapons.DraconicBow; import com.brandon3055.draconicevolution.common.items.weapons.WyvernBow; import com.brandon3055.draconicevolution.common.network.MountUpdatePacket; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.utills.LogHelper; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.TickEvent; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/render/block/RenderPortal.java b/src/main/java/com/brandon3055/draconicevolution/client/render/block/RenderPortal.java new file mode 100644 index 00000000..ff2ef592 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/client/render/block/RenderPortal.java @@ -0,0 +1,155 @@ +package com.brandon3055.draconicevolution.client.render.block; + +import com.brandon3055.draconicevolution.common.ModBlocks; +import com.brandon3055.draconicevolution.common.lib.References; +import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler; +import net.minecraft.block.Block; +import net.minecraft.client.renderer.RenderBlocks; +import net.minecraft.client.renderer.Tessellator; +import net.minecraft.world.IBlockAccess; + +/** + * Created by Brandon on 25/5/2015. + */ +public class RenderPortal implements ISimpleBlockRenderingHandler { + @Override + public void renderInventoryBlock(Block block, int metadata, int modelId, RenderBlocks renderer) { + + } + + @Override + public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) { + Tessellator tess = Tessellator.instance; + int meta = world.getBlockMetadata(x, y, z); + + tess.setColorRGBA(0, 0, 0, 256); + switch (meta){ + case 1: + tess.addVertexWithUV(x-0.01, y-0.01, z+0.75, 0, 0); + tess.addVertexWithUV(x-0.01, y+1.01, z+0.75, 0, 0); + tess.addVertexWithUV(x+1.01, y+1.01, z+0.75, 0, 0); + tess.addVertexWithUV(x+1.01, y-0.01, z+0.75, 0, 0); + + tess.addVertexWithUV(x+1.01, y-0.01, z+0.25, 0, 0); + tess.addVertexWithUV(x+1.01, y+1.01, z+0.25, 0, 0); + tess.addVertexWithUV(x-0.01, y+1.01, z+0.25, 0, 0); + tess.addVertexWithUV(x-0.01, y-0.01, z+0.25, 0, 0); + + if (isFrame(world, x+1, y, z)){ + tess.addVertexWithUV(x+0.99, y-0.01, z+0.25, 0, 0); + tess.addVertexWithUV(x+0.99, y-0.01, z+0.75, 0, 0); + tess.addVertexWithUV(x+0.99, y+1.01, z+0.75, 0, 0); + tess.addVertexWithUV(x+0.99, y+1.01, z+0.25, 0, 0); + } + if (isFrame(world, x-1, y, z)){ + tess.addVertexWithUV(x+0.01, y+1.01, z+0.25, 0, 0); + tess.addVertexWithUV(x+0.01, y+1.01, z+0.75, 0, 0); + tess.addVertexWithUV(x+0.01, y-0.01, z+0.75, 0, 0); + tess.addVertexWithUV(x+0.01, y-0.01, z+0.25, 0, 0); + } + if (isFrame(world, x, y-1, z)){ + tess.addVertexWithUV(x-0.01, y+0.01,z+0.25, 0, 0); + tess.addVertexWithUV(x-0.01, y+0.01,z+0.75, 0, 0); + tess.addVertexWithUV(x+1.01, y+0.01,z+0.75, 0, 0); + tess.addVertexWithUV(x+1.01, y+0.01,z+0.25, 0, 0); + } + if (isFrame(world, x, y+1, z)){ + tess.addVertexWithUV(x+1.01, y+0.99,z+0.25, 0, 0); + tess.addVertexWithUV(x+1.01, y+0.99,z+0.75, 0, 0); + tess.addVertexWithUV(x-0.01, y+0.99,z+0.75, 0, 0); + tess.addVertexWithUV(x-0.01, y+0.99,z+0.25, 0, 0); + } + + break; + case 2: + tess.addVertexWithUV(x+0.75, y-0.01, z-0.01, 0, 0); + tess.addVertexWithUV(x+0.75, y-0.01, z+1.01, 0, 0); + tess.addVertexWithUV(x+0.75, y+1.01, z+1.01, 0, 0); + tess.addVertexWithUV(x+0.75, y+1.01, z-0.01, 0, 0); + + tess.addVertexWithUV(x+0.25, y+1.01, z-0.01, 0, 0); + tess.addVertexWithUV(x+0.25, y+1.01, z+1.01, 0, 0); + tess.addVertexWithUV(x+0.25, y-0.01, z+1.01, 0, 0); + tess.addVertexWithUV(x+0.25, y-0.01, z-0.01, 0, 0); + + if (isFrame(world, x, y, z+1)){ + tess.addVertexWithUV(x+0.25, y-0.01, z+0.99, 0, 0); + tess.addVertexWithUV(x+0.25, y+1.01, z+0.99, 0, 0); + tess.addVertexWithUV(x+0.75, y+1.01, z+0.99, 0, 0); + tess.addVertexWithUV(x+0.75, y-0.01, z+0.99, 0, 0); + } + if (isFrame(world, x, y, z-1)){ + tess.addVertexWithUV(x+0.75, y-0.01, z+0.01, 0, 0); + tess.addVertexWithUV(x+0.75, y+1.01, z+0.01, 0, 0); + tess.addVertexWithUV(x+0.25, y+1.01, z+0.01, 0, 0); + tess.addVertexWithUV(x+0.25, y-0.01, z+0.01, 0, 0); + } + if (isFrame(world, x, y-1, z)){ + tess.addVertexWithUV(x+0.25, y+0.01, z-0.01, 0, 0); + tess.addVertexWithUV(x+0.25, y+0.01, z+1.01, 0, 0); + tess.addVertexWithUV(x+0.75, y+0.01, z+1.01, 0, 0); + tess.addVertexWithUV(x+0.75, y+0.01, z-0.01, 0, 0); + } + if (isFrame(world, x, y+1, z)){ + tess.addVertexWithUV(x+0.75, y+0.99, z-0.01, 0, 0); + tess.addVertexWithUV(x+0.75, y+0.99, z+1.01, 0, 0); + tess.addVertexWithUV(x+0.25, y+0.99, z+1.01, 0, 0); + tess.addVertexWithUV(x+0.25, y+0.99, z-0.01, 0, 0); + } + + break; + case 3: + tess.addVertexWithUV(x-0.01, y+0.25, z-0.01, 0, 0); + tess.addVertexWithUV(x-0.01, y+0.25, z+1.01, 0, 0); + tess.addVertexWithUV(x+1.01, y+0.25, z+1.01, 0, 0); + tess.addVertexWithUV(x+1.01, y+0.25, z-0.01, 0, 0); + + tess.addVertexWithUV(x+1.01, y+0.75, z-0.01, 0, 0); + tess.addVertexWithUV(x+1.01, y+0.75, z+1.01, 0, 0); + tess.addVertexWithUV(x-0.01, y+0.75, z+1.01, 0, 0); + tess.addVertexWithUV(x-0.01, y+0.75, z-0.01, 0, 0); + + if (isFrame(world, x, y, z+1)){ + tess.addVertexWithUV(x-0.01, y+0.25, z+0.99, 0, 0); + tess.addVertexWithUV(x-0.01, y+0.75, z+0.99, 0, 0); + tess.addVertexWithUV(x+1.01, y+0.75, z+0.99, 0, 0); + tess.addVertexWithUV(x+1.01, y+0.25, z+0.99, 0, 0); + } + if (isFrame(world, x, y, z-1)){ + tess.addVertexWithUV(x+1.01, y+0.25, z+0.01, 0, 0); + tess.addVertexWithUV(x+1.01, y+0.75, z+0.01, 0, 0); + tess.addVertexWithUV(x-0.01, y+0.75, z+0.01, 0, 0); + tess.addVertexWithUV(x-0.01, y+0.25, z+0.01, 0, 0); + } + if (isFrame(world, x+1, y, z)){ + tess.addVertexWithUV(x+0.99, y+0.25, z-0.01, 0, 0); + tess.addVertexWithUV(x+0.99, y+0.25, z+1.01, 0, 0); + tess.addVertexWithUV(x+0.99, y+0.75, z+1.01, 0, 0); + tess.addVertexWithUV(x+0.99, y+0.75, z-0.01, 0, 0); + } + if (isFrame(world, x-1, y, z)){ + tess.addVertexWithUV(x+0.01, y+0.75, z-0.01, 0, 0); + tess.addVertexWithUV(x+0.01, y+0.75, z+1.01, 0, 0); + tess.addVertexWithUV(x+0.01, y+0.25, z+1.01, 0, 0); + tess.addVertexWithUV(x+0.01, y+0.25, z-0.01, 0, 0); + } + } + + return true; + } + + @Override + public boolean shouldRender3DInInventory(int modelId) { + return false; + } + + @Override + public int getRenderId() { + return References.idPortal; + } + + private boolean isFrame(IBlockAccess access, int x, int y, int z){ + Block block = access.getBlock(x, y, z); + return block == ModBlocks.infusedObsidian || block == ModBlocks.dislocatorReceptacle; + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/client/render/block/RenderTeleporterStand.java b/src/main/java/com/brandon3055/draconicevolution/client/render/block/RenderTeleporterStand.java index 72311e3d..b6945eaf 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/render/block/RenderTeleporterStand.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/render/block/RenderTeleporterStand.java @@ -25,7 +25,7 @@ public class RenderTeleporterStand implements ISimpleBlockRenderingHandler { @Override public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) { return false; - } + } @Override public boolean shouldRender3DInInventory(int modelId) { diff --git a/src/main/java/com/brandon3055/draconicevolution/client/render/item/RenderMobSoul.java b/src/main/java/com/brandon3055/draconicevolution/client/render/item/RenderMobSoul.java index c9721b74..e89c05d3 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/render/item/RenderMobSoul.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/render/item/RenderMobSoul.java @@ -1,6 +1,6 @@ package com.brandon3055.draconicevolution.client.render.item; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.utills.LogHelper; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.entity.RenderManager; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/render/particle/ParticleEnergyBeam.java b/src/main/java/com/brandon3055/draconicevolution/client/render/particle/ParticleEnergyBeam.java index 89c90dad..c14c98b4 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/render/particle/ParticleEnergyBeam.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/render/particle/ParticleEnergyBeam.java @@ -3,7 +3,7 @@ package com.brandon3055.draconicevolution.client.render.particle; import com.brandon3055.draconicevolution.client.handler.ClientEventHandler; import com.brandon3055.draconicevolution.client.handler.ResourceHandler; import com.brandon3055.draconicevolution.common.lib.References; -import com.brandon3055.draconicevolution.common.utills.Utills; +import com.brandon3055.brandonscore.common.utills.Utills; import net.minecraft.client.Minecraft; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/render/particle/Particles.java b/src/main/java/com/brandon3055/draconicevolution/client/render/particle/Particles.java index 45e6752c..c4d194e5 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/render/particle/Particles.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/render/particle/Particles.java @@ -1,10 +1,12 @@ package com.brandon3055.draconicevolution.client.render.particle; +import com.brandon3055.brandonscore.common.utills.Utills; import com.brandon3055.draconicevolution.client.handler.ResourceHandler; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; +import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.world.World; import org.lwjgl.opengl.GL11; @@ -543,6 +545,96 @@ public final class Particles { } } + + public static class PortalParticle extends EntityFX + { + public double targetX; + public double targetY; + public double targetZ; + public double startX; + public double startY; + public double startZ; + public float baseScale; + + public PortalParticle(World world, double x, double y, double z, double tx, double ty, double tz) { + super(world, x, y, z, 0.0D, 0.0D, 0.0D); + this.startX = x; + this.startY = y; + this.startZ = z; + this.targetX = tx; + this.targetY = ty; + this.targetZ = tz; + float speed = 0.12F + (rand.nextFloat() * 0.2F); + this.motionX = (targetX - startX) * speed; + this.motionY = (targetY - startY) * speed; + this.motionZ = (targetZ - startZ) * speed; + this.particleMaxAge = 100; + this.noClip = true; + this.particleRed = this.particleGreen = this.particleBlue = 1.0f; + float baseSize = 0.05F + ((float) RenderManager.instance.livingPlayer.getDistance(x, y, z)) * 0.007F; + if (RenderManager.instance.livingPlayer != null) this.baseScale = baseSize + (rand.nextFloat() * (baseSize * 2F)); + } + + @Override + public void onUpdate() { + //super.onUpdate(); + if (particleAge >= particleMaxAge || this.getDistanceSq(targetX, targetY, targetZ) < 0.05) setDead(); + + double d1 = Utills.getDistanceAtoB(startX, startY, startZ, targetX, targetY, targetZ); + double d2 = Utills.getDistanceAtoB(posX, posY, posZ, targetX, targetY, targetZ); + particleScale = ((float) (d2 / d1)) * baseScale; + + particleAge ++; + prevPosX = posX; + prevPosY = posY; + prevPosZ = posZ; + moveEntity(motionX, motionY, motionZ); + + } + + @Override + @SideOnly(Side.CLIENT) + public void renderParticle(Tessellator tesselator, float par2, float par3, float par4, float par5, float par6, float par7) {//Note U=X V=Y + + tesselator.draw(); + ResourceHandler.bindParticles(); + tesselator.startDrawingQuads(); + tesselator.setBrightness(200); + + int uIndex = 6; + int vIndex = 0; + + float minU = uIndex * 0.125F; + float maxU = (uIndex+1) * 0.125F; + float minV = vIndex * 0.125F; + float maxV = (vIndex+1) * 0.125F; + + float drawScale = 0.1F * this.particleScale; + + if (this.particleIcon != null) { + minU = this.particleIcon.getMinU(); + maxU = this.particleIcon.getMaxU(); + minV = this.particleIcon.getMinV(); + maxV = this.particleIcon.getMaxV(); + } + + float drawX = (float) (this.prevPosX + (this.posX - this.prevPosX) * (double) par2 - interpPosX); + float drawY = (float) (this.prevPosY + (this.posY - this.prevPosY) * (double) par2 - interpPosY); + float drawZ = (float) (this.prevPosZ + (this.posZ - this.prevPosZ) * (double) par2 - interpPosZ); + + tesselator.setColorRGBA_F(this.particleRed, this.particleGreen, this.particleBlue, this.particleAlpha); + + tesselator.addVertexWithUV((double) (drawX - par3 * drawScale - par6 * drawScale), (double) (drawY - par4 * drawScale), (double) (drawZ - par5 * drawScale - par7 * drawScale), (double) maxU, (double) maxV); + tesselator.addVertexWithUV((double) (drawX - par3 * drawScale + par6 * drawScale), (double) (drawY + par4 * drawScale), (double) (drawZ - par5 * drawScale + par7 * drawScale), (double) maxU, (double) minV); + tesselator.addVertexWithUV((double) (drawX + par3 * drawScale + par6 * drawScale), (double) (drawY + par4 * drawScale), (double) (drawZ + par5 * drawScale + par7 * drawScale), (double) minU, (double) minV); + tesselator.addVertexWithUV((double) (drawX + par3 * drawScale - par6 * drawScale), (double) (drawY - par4 * drawScale), (double) (drawZ + par5 * drawScale - par7 * drawScale), (double) minU, (double) maxV); + + tesselator.draw(); + ResourceHandler.bindDefaultParticles(); + tesselator.startDrawingQuads(); + + } + } } //int uIndex = 0; //int vIndex = 0; diff --git a/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileEnergyStorageCore.java b/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileEnergyStorageCore.java index 80c3d81d..48df09b1 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileEnergyStorageCore.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileEnergyStorageCore.java @@ -20,12 +20,10 @@ public class RenderTileEnergyStorageCore extends TileEntitySpecialRenderer {//to private static final ResourceLocation iner_model_texture = new ResourceLocation(References.MODID.toLowerCase(), "textures/models/power_sphere_layer_1.png"); private static final ResourceLocation outer_model_texture = new ResourceLocation(References.MODID.toLowerCase(), "textures/models/power_sphere_layer_2.png"); private IModelCustom iner_model; - private IModelCustom outer_model; public RenderTileEnergyStorageCore() { iner_model = AdvancedModelLoader.loadModel(new ResourceLocation(References.MODID.toLowerCase(), "models/power_sphere_layer_1.obj")); - //outer_model = AdvancedModelLoader.loadModel(new ResourceLocation(References.MODID.toLowerCase(), "models/power_sphere_layer_2.obj")); } @Override public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float timeSinceLastTick) { @@ -67,15 +65,10 @@ public class RenderTileEnergyStorageCore extends TileEntitySpecialRenderer {//to GL11.glTranslated(x+0.5, y+0.5, z+0.5); FMLClientHandler.instance().getClient().getTextureManager().bindTexture(iner_model_texture); - - //float colour = (float)(Minecraft.getSystemTime()%10000) / 10000f; - //double colour = Math.sin((float)Minecraft.getSystemTime() / 10000f); double colour = ((TileEnergyStorageCore) tile).getEnergyStored() / ((TileEnergyStorageCore) tile).getMaxEnergyStored(); float brightness = (float)Math.abs(Math.sin((float) Minecraft.getSystemTime() / 3000f) * 100f); colour = 1f - colour; - //LogHelper.info(colour + " " + ((TileEnergyStorageCore) tile).getEnergyStored() +" "+ ((TileEnergyStorageCore) tile).getMaxEnergyStored()); - //GL11.glColor4d(1F, 0.3F, 0.7f, 1F); GL11.glScalef(scale, scale, scale); GL11.glPushMatrix(); GL11.glRotatef(rotation, 0F, 1F, 0.5F); @@ -109,7 +102,7 @@ public class RenderTileEnergyStorageCore extends TileEntitySpecialRenderer {//to iner_model.renderAll(); GL11.glDisable(GL11.GL_BLEND); GL11.glDepthMask(true); - + GL11.glEnable(GL11.GL_LIGHTING); GL11.glPopMatrix(); } diff --git a/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileReactorCore.java b/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileReactorCore.java new file mode 100644 index 00000000..45e867c4 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileReactorCore.java @@ -0,0 +1,72 @@ +package com.brandon3055.draconicevolution.client.render.tile; + +import com.brandon3055.draconicevolution.client.handler.ResourceHandler; +import com.brandon3055.draconicevolution.common.lib.References; +import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileReactorCore; +import net.minecraft.client.renderer.OpenGlHelper; +import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.ResourceLocation; +import net.minecraftforge.client.model.AdvancedModelLoader; +import net.minecraftforge.client.model.IModelCustom; +import org.lwjgl.opengl.GL11; + +/** + * Created by Brandon on 16/6/2015. + */ +public class RenderTileReactorCore extends TileEntitySpecialRenderer { + private IModelCustom reactorModel; + + public RenderTileReactorCore(){ + reactorModel = AdvancedModelLoader.loadModel(new ResourceLocation(References.MODID.toLowerCase(), "models/reactorCoreModel.obj")); + } + + @Override + public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float partialTick) { + TileReactorCore tile = (TileReactorCore) tileEntity; + + GL11.glPushMatrix(); + GL11.glTranslated(x + 0.5, y + 0.5, z + 0.5); + GL11.glDisable(GL11.GL_LIGHTING); + OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 200F, 200F); + + renderReactorCore(tile, partialTick); + + GL11.glEnable(GL11.GL_LIGHTING); + GL11.glDisable(GL11.GL_BLEND); + GL11.glPopMatrix(); + } + + + public void renderReactorCore(TileReactorCore tile, float partialTick) { + float rotation = tile.renderRotation + (partialTick * 0.2F); + double ff = 1; + double r = ff < 0.5 ? 1 - (ff*2) : 0; + double g = ff > 0.5 ? (ff-0.5)*2 : 0; + double b = ff * 2; + double a = ff < 0.1 ? (ff * 10) + 0.5 : 1; + + + + ResourceHandler.bindResource("textures/models/reactorCore.png"); + GL11.glScaled(2F, 2F, 2F); + GL11.glRotatef(rotation, 0.5F, 1F, 0.5F); + reactorModel.renderAll(); + + + GL11.glEnable(GL11.GL_BLEND); + GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); + GL11.glEnable(GL11.GL_ALPHA_TEST); + GL11.glAlphaFunc(GL11.GL_GREATER, 0F); + + ResourceHandler.bindResource("textures/models/reactorShieldPlate.png"); + + + GL11.glColor4d(r, g, b, a); + GL11.glScaled(1.03F, 1.03F, 1.03F); + GL11.glRotatef(2343, 0.5F, 1F, 0.5F); + GL11.glRotatef(-rotation*2, 0.5F, 1F, 0.5F); + reactorModel.renderAll(); + } + +} diff --git a/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileTeleporterStand.java b/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileTeleporterStand.java index dde86c2f..fd8a4ca8 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileTeleporterStand.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileTeleporterStand.java @@ -5,8 +5,8 @@ import com.brandon3055.draconicevolution.common.handler.ConfigHandler; import com.brandon3055.draconicevolution.common.items.tools.TeleporterMKII; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.tileentities.TileTeleporterStand; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; -import com.brandon3055.draconicevolution.common.utills.Utills; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.Utills; import net.minecraft.client.Minecraft; import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.client.gui.FontRenderer; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/CommonProxy.java b/src/main/java/com/brandon3055/draconicevolution/common/CommonProxy.java index 0308626c..fd4ba5c1 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/CommonProxy.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/CommonProxy.java @@ -20,10 +20,7 @@ import com.brandon3055.draconicevolution.common.tileentities.*; import com.brandon3055.draconicevolution.common.tileentities.energynet.TileEnergyRelay; import com.brandon3055.draconicevolution.common.tileentities.energynet.TileEnergyTransceiver; import com.brandon3055.draconicevolution.common.tileentities.energynet.TileWirelessEnergyTransceiver; -import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileEnderResurrection; -import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileEnergyPylon; -import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileEnergyStorageCore; -import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileInvisibleMultiblock; +import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.*; import com.brandon3055.draconicevolution.common.utills.LogHelper; import com.brandon3055.draconicevolution.common.world.DraconicWorldGenerator; import cpw.mods.fml.common.FMLCommonHandler; @@ -34,7 +31,6 @@ import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; -import net.minecraft.server.MinecraftServer; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.oredict.OreDictionary; @@ -144,6 +140,9 @@ public class CommonProxy { GameRegistry.registerTileEntity(TileEnergyRelay.class, References.RESOURCESPREFIX + "TileEnergyRelay"); GameRegistry.registerTileEntity(TileEnergyTransceiver.class, References.RESOURCESPREFIX + "TileEnergyTransceiver"); GameRegistry.registerTileEntity(TileWirelessEnergyTransceiver.class, References.RESOURCESPREFIX + "TileWirelessEnergyTransceiver"); + GameRegistry.registerTileEntity(TileDislocatorReceptacle.class, References.RESOURCESPREFIX + "TileDislocatorReceptacle"); + GameRegistry.registerTileEntity(TilePortalBlock.class, References.RESOURCESPREFIX + "TilePortalBlock"); + GameRegistry.registerTileEntity(TileReactorCore.class, References.RESOURCESPREFIX + "TileReactorCore"); if (DraconicEvolution.debug) { GameRegistry.registerTileEntity(TileTestBlock.class, References.RESOURCESPREFIX + "TileTestBlock"); GameRegistry.registerTileEntity(TileContainerTemplate.class, References.RESOURCESPREFIX + "TileContainerTemplate"); @@ -174,12 +173,6 @@ public class CommonProxy { EntityRegistry.registerModEntity(EntityDragonHeart.class, "Dragon Heart Item", 5, DraconicEvolution.instance, 32, 5, true); } - public boolean isDedicatedServer() {return true;} - - public MinecraftServer getMCServer(){ - return FMLCommonHandler.instance().getMinecraftServerInstance(); - } - public ParticleEnergyBeam energyBeam(World worldObj, double x, double y, double z, double tx, double ty, double tz, int powerFlow, boolean advanced, ParticleEnergyBeam oldBeam, boolean render, int beamType) { return null; @@ -189,36 +182,12 @@ public class CommonProxy { return null; } - public boolean isOp(String paramString) - { - MinecraftServer localMinecraftServer = FMLCommonHandler.instance().getMinecraftServerInstance(); - paramString = paramString.trim(); - for (String str : localMinecraftServer.getConfigurationManager().func_152606_n()) { - if (paramString.equalsIgnoreCase(str)) { - return true; - } - } - return false; - } - public void spawnParticle(Object particle) + + public void spawnParticle(Object particle, int range) { } - public boolean isSpaceDown() - { - return false; - } - - public boolean isCtrlDown() - { - return false; - } - - public boolean isShiftDown() - { - return false; - } } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/ModBlocks.java b/src/main/java/com/brandon3055/draconicevolution/common/ModBlocks.java index a815ec2d..0da28ae6 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/ModBlocks.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/ModBlocks.java @@ -3,9 +3,7 @@ package com.brandon3055.draconicevolution.common; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.blocks.*; import com.brandon3055.draconicevolution.common.blocks.machine.*; -import com.brandon3055.draconicevolution.common.blocks.multiblock.EnergyPylon; -import com.brandon3055.draconicevolution.common.blocks.multiblock.EnergyStorageCore; -import com.brandon3055.draconicevolution.common.blocks.multiblock.InvisibleMultiblock; +import com.brandon3055.draconicevolution.common.blocks.multiblock.*; import com.brandon3055.draconicevolution.common.handler.ConfigHandler; import com.brandon3055.draconicevolution.common.lib.References; import cpw.mods.fml.common.registry.GameRegistry; @@ -42,6 +40,10 @@ public class ModBlocks { public static BlockDE draconiumChest; public static BlockDE draconicBlock; public static BlockDE energyCrystal; + public static BlockDE infusedObsidian; + public static BlockDE dislocatorReceptacle; + public static BlockDE portal; + public static BlockDE reactorCore; public static Block safetyFlame; public static ItemStack resurrectionStone; @@ -73,6 +75,10 @@ public class ModBlocks { draconiumChest = new DraconiumChest(); draconicBlock = new DraconicBlock(); energyCrystal = new EnergyCrystal(); + infusedObsidian = new InfusedObsidian(); + dislocatorReceptacle = new DislocatorReceptacle(); + portal = new Portal(); + reactorCore = new ReactorCore(); longRangeDislocator = new LongRangeDislocator(); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/achievements/Achievements.java b/src/main/java/com/brandon3055/draconicevolution/common/achievements/Achievements.java index 600c098b..1cd0abf0 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/achievements/Achievements.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/achievements/Achievements.java @@ -2,7 +2,7 @@ package com.brandon3055.draconicevolution.common.achievements; import com.brandon3055.draconicevolution.common.ModBlocks; import com.brandon3055.draconicevolution.common.ModItems; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.PlayerEvent; import net.minecraft.entity.player.EntityPlayer; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/BlockCustomDrop.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/BlockCustomDrop.java index a71daf3e..e21181a4 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/BlockCustomDrop.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/BlockCustomDrop.java @@ -1,6 +1,6 @@ package com.brandon3055.draconicevolution.common.blocks; -import com.brandon3055.draconicevolution.common.utills.InventoryUtils; +import com.brandon3055.brandonscore.common.utills.InventoryUtils; import com.google.common.collect.Lists; import net.minecraft.block.material.Material; import net.minecraft.entity.player.EntityPlayer; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/CKeyStone.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/CKeyStone.java index a188bc21..f1ba385a 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/CKeyStone.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/CKeyStone.java @@ -3,7 +3,7 @@ package com.brandon3055.draconicevolution.common.blocks; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.ModBlocks; import com.brandon3055.draconicevolution.common.blocks.itemblocks.CKeyStoneItemBlock; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; @@ -99,7 +99,7 @@ public class CKeyStone extends BlockDE { } @Override - public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) { + public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z, EntityPlayer player) { TileCKeyStone tile = world.getTileEntity(x, y, z) != null && world.getTileEntity(x, y, z) instanceof TileCKeyStone ? (TileCKeyStone) world.getTileEntity(x, y, z) : null; if (tile != null) { ItemStack key = new ItemStack(ModItems.key); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/CustomSpawner.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/CustomSpawner.java index be0838db..b4dce7ce 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/CustomSpawner.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/CustomSpawner.java @@ -6,8 +6,8 @@ import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.lib.Strings; import com.brandon3055.draconicevolution.common.tileentities.TileCustomSpawner; import com.brandon3055.draconicevolution.common.utills.IHudDisplayBlock; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.utills.LogHelper; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumChest.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumChest.java index 3e4cb2f3..6b5c3525 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumChest.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumChest.java @@ -170,7 +170,7 @@ public class DraconiumChest extends BlockCustomDrop { @Override public int getRenderType() { - return References.idDraconiumChest; + return -1; } @Override diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/InfusedObsidian.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/InfusedObsidian.java new file mode 100644 index 00000000..26bbc848 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/InfusedObsidian.java @@ -0,0 +1,62 @@ +package com.brandon3055.draconicevolution.common.blocks; + +import com.brandon3055.draconicevolution.DraconicEvolution; +import com.brandon3055.draconicevolution.common.ModBlocks; +import com.brandon3055.draconicevolution.common.lib.References; +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.renderer.texture.IIconRegister; +import net.minecraft.entity.Entity; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemBlock; +import net.minecraft.item.ItemStack; +import net.minecraft.util.EnumChatFormatting; +import net.minecraft.util.StatCollector; +import net.minecraft.world.IBlockAccess; + +import java.util.List; + +/** + * Created by Brandon on 19/5/2015. + */ +public class InfusedObsidian extends BlockDE { + + public InfusedObsidian(){ + super(Material.rock); + this.setHardness(100.0F); + this.setResistance(4000.0F); + this.setBlockName("infusedObsidian"); + this.setHarvestLevel("pickaxe", 4); + this.setCreativeTab(DraconicEvolution.tabBlocksItems); + + ModBlocks.register(this, InfusedObsidianItemBlock.class); + } + + @SideOnly(Side.CLIENT) + @Override + public void registerBlockIcons(IIconRegister iconRegister) { + blockIcon = iconRegister.registerIcon(References.RESOURCESPREFIX + "animated/infusedObsidian"); + } + + @Override + public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) { + return false; + } + + public static class InfusedObsidianItemBlock extends ItemBlock { + + public InfusedObsidianItemBlock(Block p_i45328_1_) { + super(p_i45328_1_); + } + + @SideOnly(Side.CLIENT) + @SuppressWarnings("unchecked") + @Override + public void addInformation(ItemStack p_77624_1_, EntityPlayer p_77624_2_, List list, boolean p_77624_4_) { + list.add(EnumChatFormatting.GRAY + StatCollector.translateToLocal("info.infusedObsidian.txt")); + super.addInformation(p_77624_1_, p_77624_2_, list, p_77624_4_); + } + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/TeleporterStand.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/TeleporterStand.java index be619a76..0c12c827 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/TeleporterStand.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/TeleporterStand.java @@ -6,7 +6,7 @@ import com.brandon3055.draconicevolution.common.items.tools.TeleporterMKI; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; import com.brandon3055.draconicevolution.common.tileentities.TileTeleporterStand; -import com.brandon3055.draconicevolution.common.utills.Teleporter; +import com.brandon3055.brandonscore.common.utills.Teleporter; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/machine/EnergyCrystal.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/machine/EnergyCrystal.java index f2d4e22c..49d6fca4 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/machine/EnergyCrystal.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/machine/EnergyCrystal.java @@ -8,7 +8,7 @@ import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; import com.brandon3055.draconicevolution.common.tileentities.energynet.*; import com.brandon3055.draconicevolution.common.utills.IHudDisplayBlock; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.InfoHelper; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.material.Material; @@ -207,7 +207,7 @@ public class EnergyCrystal extends BlockDE implements IHudDisplayBlock IRemoteEnergyHandler tile = world.getTileEntity(x, y, z) instanceof IRemoteEnergyHandler ? (IRemoteEnergyHandler) world.getTileEntity(x, y, z) : null; if (tile != null) { - list.add(InfoHelper.HITC()+getLocalizedName()); + list.add(InfoHelper.HITC()+StatCollector.translateToLocal(this.getUnlocalizedName() + world.getBlockMetadata(x, y, z) + ".name")); list.add("RF: " + tile.getEnergyStored(ForgeDirection.DOWN)); list.add("Cap: " + tile.getCapacity() + "%"); if (tile instanceof TileEnergyTransceiver) { diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/machine/SunDial.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/machine/SunDial.java index 005224f5..f17f75e9 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/machine/SunDial.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/machine/SunDial.java @@ -21,7 +21,7 @@ public class SunDial extends BlockDE { public IIcon icon_front; public IIcon icon_front_active; public IIcon icon_side; - public boolean blockState = true; + //public boolean blockState = true; public SunDial() { this.setBlockName(Strings.blockSunDialName); @@ -62,6 +62,7 @@ public class SunDial extends BlockDE { } @Override + @SideOnly(Side.CLIENT) public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) { TileEntity tile = world.getTileEntity(x, y, z); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/DislocatorReceptacle.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/DislocatorReceptacle.java new file mode 100644 index 00000000..d41a9e12 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/DislocatorReceptacle.java @@ -0,0 +1,137 @@ +package com.brandon3055.draconicevolution.common.blocks.multiblock; + +import com.brandon3055.draconicevolution.DraconicEvolution; +import com.brandon3055.draconicevolution.common.ModBlocks; +import com.brandon3055.draconicevolution.common.blocks.BlockCustomDrop; +import com.brandon3055.draconicevolution.common.items.tools.TeleporterMKI; +import com.brandon3055.draconicevolution.common.lib.References; +import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileDislocatorReceptacle; +import net.minecraft.block.ITileEntityProvider; +import net.minecraft.block.material.Material; +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.Entity; +import net.minecraft.entity.item.EntityItem; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemStack; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.IIcon; +import net.minecraft.world.IBlockAccess; +import net.minecraft.world.World; + +import java.util.List; +import java.util.Random; + +/** + * Created by Brandon on 19/5/2015. + */ +public class DislocatorReceptacle extends BlockCustomDrop implements ITileEntityProvider { + IIcon textureInactive; + + public DislocatorReceptacle(){ + super(Material.rock); + this.setHardness(50.0F); + this.setResistance(2000.0F); + this.setBlockName("dislocatorReceptacle"); + this.setHarvestLevel("pickaxe", 3); + this.setCreativeTab(DraconicEvolution.tabBlocksItems); + + ModBlocks.register(this); + } + + @Override + public void registerBlockIcons(IIconRegister iconRegister) { + textureInactive = iconRegister.registerIcon(References.RESOURCESPREFIX + "animated/dislocatorReceptacle_inactive"); + blockIcon = iconRegister.registerIcon(References.RESOURCESPREFIX + "animated/dislocatorReceptacle_active"); + } + + @Override + public IIcon getIcon(IBlockAccess access, int x, int y, int z, int side) { + TileDislocatorReceptacle tile = access.getTileEntity(x, y, z) instanceof TileDislocatorReceptacle ? (TileDislocatorReceptacle)access.getTileEntity(x, y, z) : null; + if (tile != null) return tile.isActive ? blockIcon : textureInactive; + return blockIcon; + } + + @Override + public void updateTick(World world, int x, int y, int z, Random random) { + TileDislocatorReceptacle tile = (TileDislocatorReceptacle) world.getTileEntity(x, y, z); + if (tile != null) tile.updateState(); + + } + + @Override + public IIcon getIcon(int p_149691_1_, int meta) { + return blockIcon; + } + + @Override + public boolean hasTileEntity(int metadata) { + return true; + } + + @Override + public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) { + return false; + } + + @Override + public TileEntity createNewTileEntity(World world, int i) { + return new TileDislocatorReceptacle(); + } + + @Override + public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float p_149727_7_, float p_149727_8_, float p_149727_9_) { + if (world.isRemote) return true; + TileDislocatorReceptacle tile = (TileDislocatorReceptacle) world.getTileEntity(x, y, z); + if (tile == null) return false; + + if (tile.getStackInSlot(0) != null){ + if (player.getHeldItem() == null){ + player.inventory.setInventorySlotContents(player.inventory.currentItem, tile.getStackInSlot(0)); + tile.setInventorySlotContents(0, null); + }else { + world.spawnEntityInWorld(new EntityItem(world, player.posX, player.posY, player.posZ, tile.getStackInSlot(0))); + tile.setInventorySlotContents(0, null); + } + world.markBlockForUpdate(x, y, z); + world.notifyBlockChange(x, y, z, this); + + }else { + ItemStack stack = player.getHeldItem(); + if (stack != null && stack.getItem() instanceof TeleporterMKI && ((TeleporterMKI)stack.getItem()).getLocation(stack) != null){ + tile.setInventorySlotContents(0, player.getHeldItem()); + player.destroyCurrentEquippedItem(); + } + + } + + + + return true; + } + + @Override + public boolean hasComparatorInputOverride() { + return true; + } + + @Override + public int getComparatorInputOverride(World world, int x, int y, int z, int p_149736_5_) { + TileDislocatorReceptacle tile = (TileDislocatorReceptacle)world.getTileEntity(x, y, z); + return tile == null ? 0 : tile.getStackInSlot(0) != null ? 15 : 0; + } + + @Override + protected boolean dropInventory() { + return true; + } + + @Override + protected boolean hasCustomDropps() { + return false; + } + + @Override + protected void getCustomTileEntityDrops(TileEntity te, List droppes) { + + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/EnergyStorageCore.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/EnergyStorageCore.java index 8fbb27f5..6741688f 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/EnergyStorageCore.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/EnergyStorageCore.java @@ -7,9 +7,9 @@ import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileEnergyStorageCore; import com.brandon3055.draconicevolution.common.utills.IHudDisplayBlock; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.InfoHelper; import com.brandon3055.draconicevolution.common.utills.LogHelper; -import com.brandon3055.draconicevolution.common.utills.Utills; +import com.brandon3055.brandonscore.common.utills.Utills; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/InvisibleMultiblock.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/InvisibleMultiblock.java index a1fbfb45..a1b9b254 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/InvisibleMultiblock.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/InvisibleMultiblock.java @@ -8,9 +8,9 @@ import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.Til import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileEnergyStorageCore; import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileInvisibleMultiblock; import com.brandon3055.draconicevolution.common.utills.IHudDisplayBlock; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.InfoHelper; import com.brandon3055.draconicevolution.common.utills.LogHelper; -import com.brandon3055.draconicevolution.common.utills.Utills; +import com.brandon3055.brandonscore.common.utills.Utills; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/Portal.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/Portal.java new file mode 100644 index 00000000..f98308cd --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/Portal.java @@ -0,0 +1,121 @@ +package com.brandon3055.draconicevolution.common.blocks.multiblock; + +import com.brandon3055.draconicevolution.common.ModBlocks; +import com.brandon3055.draconicevolution.common.blocks.BlockDE; +import com.brandon3055.draconicevolution.common.lib.References; +import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileDislocatorReceptacle; +import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TilePortalBlock; +import net.minecraft.block.Block; +import net.minecraft.block.ITileEntityProvider; +import net.minecraft.block.material.Material; +import net.minecraft.entity.Entity; +import net.minecraft.item.Item; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.AxisAlignedBB; +import net.minecraft.world.IBlockAccess; +import net.minecraft.world.World; + +import java.util.Random; + +/** + * Created by Brandon on 23/5/2015. + */ +public class Portal extends BlockDE implements ITileEntityProvider{ + + public Portal(){ + super(Material.portal); + this.setBlockUnbreakable(); + this.setBlockName("portal"); + + ModBlocks.register(this); + } + + @Override + public int getRenderType() { + return References.idPortal; + } + + @Override + public AxisAlignedBB getSelectedBoundingBoxFromPool(World p_149633_1_, int p_149633_2_, int p_149633_3_, int p_149633_4_) { + return AxisAlignedBB.getBoundingBox(0, 0, 0, 0, 0, 0); + } + + @Override + public boolean isOpaqueCube() { + return false; + } + + @Override + public boolean renderAsNormalBlock() { + return false; + } + + @Override + public TileEntity createNewTileEntity(World world, int i) { + return new TilePortalBlock(); + } + + + @Override + public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_) { + return null; + } + + @Override + public void onNeighborBlockChange(World world, int x, int y, int z, Block block) { + if (world.isRemote) return; + if (getMaster(world, x, y, z) == null){ + world.setBlockToAir(x, y, z); + return; + } + + if (getMaster(world, x, y, z).isActive) getMaster(world, x, y, z).validateActivePortal(); + if (!getMaster(world, x, y, z).isActive && !getMaster(world, x, y, z).updating) { + world.setBlockToAir(x, y, z); + return; + } + updateMetadata(world, x, y, z); + } + + @Override + public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity) { + if (world.isRemote) return; + TileDislocatorReceptacle tile = getMaster(world, x, y, z); + if (tile != null && tile.isActive && tile.getLocation() != null) { + if (tile.coolDown > 0) return; + tile.coolDown = 1; + tile.getLocation().sendEntityToCoords(entity); + } + else if (tile != null) tile.validateActivePortal(); + else world.setBlockToAir(x, y, z); + } + + private TileDislocatorReceptacle getMaster(World world, int x, int y, int z){ + return world.getTileEntity(x, y, z) instanceof TilePortalBlock ? ((TilePortalBlock)world.getTileEntity(x, y, z)).getMaster() : null; + } + + @Override + public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) { + return null; } + + private boolean isPortalOrFrame(IBlockAccess access, int x, int y, int z) { + Block block = access.getBlock(x, y, z); + return block == ModBlocks.portal || block == ModBlocks.infusedObsidian || block == ModBlocks.dislocatorReceptacle; + } + + @Override + public void onBlockAdded(World world, int x, int y, int z) { + updateMetadata(world, x, y, z); + } + + private void updateMetadata(World world, int x, int y, int z) { + if (world.isRemote || world.getBlockMetadata(x, y, z) != 0) return; + int meta = 0; + + if (isPortalOrFrame(world, x, y + 1, z) && isPortalOrFrame(world, x, y - 1, z) && isPortalOrFrame(world, x + 1, y, z) && isPortalOrFrame(world, x - 1, y, z)) meta = 1; + else if (isPortalOrFrame(world, x, y + 1, z) && isPortalOrFrame(world, x, y - 1, z) && isPortalOrFrame(world, x, y, z + 1) && isPortalOrFrame(world, x, y, z - 1)) meta = 2; + else if (isPortalOrFrame(world, x + 1, y, z) && isPortalOrFrame(world, x - 1, y, z) && isPortalOrFrame(world, x, y, z + 1) && isPortalOrFrame(world, x, y, z - 1)) meta = 3; + + world.setBlockMetadataWithNotify(x, y, z, meta, 2); + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/ReactorCore.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/ReactorCore.java new file mode 100644 index 00000000..e5564887 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/multiblock/ReactorCore.java @@ -0,0 +1,55 @@ +package com.brandon3055.draconicevolution.common.blocks.multiblock; + +import com.brandon3055.draconicevolution.DraconicEvolution; +import com.brandon3055.draconicevolution.common.ModBlocks; +import com.brandon3055.draconicevolution.common.blocks.BlockDE; +import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileReactorCore; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.world.World; + +/** + * Created by Brandon on 16/6/2015. + */ +public class ReactorCore extends BlockDE { + + public ReactorCore(){ + this.setCreativeTab(DraconicEvolution.tabBlocksItems); + this.setBlockName("reactorCore"); + + ModBlocks.register(this); + } + + @SideOnly(Side.CLIENT) + @Override + public void registerBlockIcons(IIconRegister iconRegister) { + + } + + @Override + public boolean renderAsNormalBlock() { + return false; + } + + @Override + public boolean isOpaqueCube() { + return false; + } + + @Override + public int getRenderType() { + return -1; + } + + @Override + public boolean hasTileEntity(int metadata) { + return true; + } + + @Override + public TileEntity createTileEntity(World world, int metadata) { + return new TileReactorCore(); + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/container/ContainerDissEnchanter.java b/src/main/java/com/brandon3055/draconicevolution/common/container/ContainerDissEnchanter.java index 8fc62b16..ed2f8c35 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/container/ContainerDissEnchanter.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/container/ContainerDissEnchanter.java @@ -1,7 +1,7 @@ package com.brandon3055.draconicevolution.common.container; import com.brandon3055.draconicevolution.common.inventory.SlotOutput; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.tileentities.TileDissEnchanter; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.player.EntityPlayer; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityChaosDrill.java b/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityChaosDrill.java index b17e7b2a..d53e495b 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityChaosDrill.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityChaosDrill.java @@ -2,7 +2,7 @@ package com.brandon3055.draconicevolution.common.entity; import com.brandon3055.draconicevolution.common.blocks.multiblock.MultiblockHelper; import com.brandon3055.draconicevolution.common.utills.LogHelper; -import com.brandon3055.draconicevolution.common.utills.Utills; +import com.brandon3055.brandonscore.common.utills.Utills; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.nbt.NBTTagCompound; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityDragonHeart.java b/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityDragonHeart.java index c52061f9..71c492b1 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityDragonHeart.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityDragonHeart.java @@ -6,7 +6,7 @@ import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.blocks.DraconiumBlock; import com.brandon3055.draconicevolution.common.blocks.multiblock.MultiblockHelper.TileLocation; import com.brandon3055.draconicevolution.client.handler.ParticleHandler; -import com.brandon3055.draconicevolution.common.utills.Utills; +import com.brandon3055.brandonscore.common.utills.Utills; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.particle.EntityFX; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityEnderArrow.java b/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityEnderArrow.java index 14b2a792..690c975e 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityEnderArrow.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityEnderArrow.java @@ -1,6 +1,6 @@ package com.brandon3055.draconicevolution.common.entity; -import com.brandon3055.draconicevolution.common.utills.Utills; +import com.brandon3055.brandonscore.common.utills.Utills; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/entity/ExtendedPlayer.java b/src/main/java/com/brandon3055/draconicevolution/common/entity/ExtendedPlayer.java index 564ade7b..06b317eb 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/entity/ExtendedPlayer.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/entity/ExtendedPlayer.java @@ -25,7 +25,7 @@ public class ExtendedPlayer implements IExtendedEntityProperties { * Used to register these extended properties for the player during EntityConstructing event * This method is for convenience only; it will make your code look nicer */ - public static final void register(EntityPlayer player) { + public static void register(EntityPlayer player) { player.registerExtendedProperties(ExtendedPlayer.EXT_PROP_NAME, new ExtendedPlayer(player)); } @@ -33,7 +33,7 @@ public class ExtendedPlayer implements IExtendedEntityProperties { * Returns ExtendedPlayer properties for player * This method is for convenience only; it will make your code look nicer */ - public static final ExtendedPlayer get(EntityPlayer player) { + public static ExtendedPlayer get(EntityPlayer player) { return (ExtendedPlayer) player.getExtendedProperties(EXT_PROP_NAME); } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/handler/CraftingHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/handler/CraftingHandler.java index aa6246bc..21c240e4 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/handler/CraftingHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/handler/CraftingHandler.java @@ -2,7 +2,7 @@ package com.brandon3055.draconicevolution.common.handler; import com.brandon3055.draconicevolution.common.ModBlocks; import com.brandon3055.draconicevolution.common.ModItems; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.utills.LogHelper; import com.brandon3055.draconicevolution.common.utills.ShapedOreEnergyRecipe; import cpw.mods.fml.common.Loader; @@ -74,11 +74,13 @@ public class CraftingHandler { //aesthetic add(ModBlocks.particleGenerator, "RBR", "BCB", "RBR", 'R', Blocks.redstone_block, 'B', Items.blaze_rod, 'C', ModItems.draconicCore); + add(ModBlocks.infusedObsidian, "BOB", "ODO", "BOB", 'B', Items.blaze_powder, 'O', Blocks.obsidian, 'D', ModItems.draconiumDust); //machines addOre(ModBlocks.potentiometer, "ITI", "QCQ", "IRI", 'I', "ingotIron", 'T', Blocks.redstone_torch, 'Q', "gemQuartz", 'C', Items.comparator, 'R', Blocks.redstone_block); addOre(ModBlocks.rainSensor, " ", "RBR", "SPS", 'R', "dustRedstone", 'B', Items.bucket, 'S', Blocks.stone_slab, 'P', Blocks.heavy_weighted_pressure_plate); addOre(ModBlocks.teleporterStand, " P ", " S ", "HBH", 'P', Blocks.stone_pressure_plate, 'S', "stone", 'H', new ItemStack(Blocks.stone_slab, 1, 0), 'B', Items.blaze_powder); + addOre(ModBlocks.dislocatorReceptacle, "ICI", " O ", "ISI", 'I', "ingotIron", 'C', ModItems.draconicCore, 'O', ModBlocks.infusedObsidian, 'S', ModBlocks.teleporterStand); //machines adv @@ -94,7 +96,7 @@ public class CraftingHandler { addOre(getStack(ModBlocks.generator, 1, 3), "NIN", "IFI", "NCN", 'N', Items.netherbrick, 'I', "ingotIron", 'F', Blocks.furnace, 'C', ModItems.draconicCore); addOre(ModBlocks.dissEnchanter, "PIP", "ETE", "CBC", 'P', Items.ender_eye, 'I', Items.enchanted_book, 'E', "gemEmerald", 'T', Blocks.enchanting_table, 'C', ModItems.draconicCore, 'B', Items.book); addOre(getStack(ModBlocks.energyCrystal, 4, 0), "IDI", "DCD", "IDI", 'I' , ModItems.draconiumIngot, 'D', "gemDiamond", 'C', ModItems.draconicCore); - addOre(getStack(ModBlocks.energyCrystal, 4, 1), "CRC", "RWR", "CRC", 'R' , ModBlocks.energyCrystal, 'W', ModItems.wyvernCore, 'C', ModItems.draconicCore); + addOre(getStack(ModBlocks.energyCrystal, 4, 1), "CRC", "RWR", "CRC", 'R' , getStack(ModBlocks.energyCrystal, 1, 0), 'W', ModItems.wyvernCore, 'C', ModItems.draconicCore); addShaplessOre(getStack(ModBlocks.energyCrystal, 1, 0), getStack(ModBlocks.energyCrystal, 1, 2), getStack(ModBlocks.energyCrystal, 1, 2)); addShaplessOre(getStack(ModBlocks.energyCrystal, 2, 2), getStack(ModBlocks.energyCrystal, 1, 0)); addShaplessOre(getStack(ModBlocks.energyCrystal, 1, 1), getStack(ModBlocks.energyCrystal, 1, 3), getStack(ModBlocks.energyCrystal, 1, 3)); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/handler/FMLEventHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/handler/FMLEventHandler.java index f3796db9..1b07a625 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/handler/FMLEventHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/handler/FMLEventHandler.java @@ -1,7 +1,7 @@ package com.brandon3055.draconicevolution.common.handler; -import com.brandon3055.draconicevolution.DraconicEvolution; +import com.brandon3055.brandonscore.BrandonsCore; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.items.armor.ArmorEffectHandler; import com.brandon3055.draconicevolution.common.lib.References; @@ -96,16 +96,16 @@ public class FMLEventHandler { player.capabilities.allowFlying = true; if (ArmorEffectHandler.getFlightLock(player)) player.capabilities.isFlying = true; - if ((!player.onGround && player.capabilities.isFlying) && player.motionY != 0 && ((ArmorEffectHandler.getVAccSprint(player) && DraconicEvolution.proxy.isCtrlDown()) || (!ArmorEffectHandler.getVAccSprint(player)))) + if ((!player.onGround && player.capabilities.isFlying) && player.motionY != 0 && ((ArmorEffectHandler.getVAccSprint(player) && BrandonsCore.proxy.isCtrlDown()) || (!ArmorEffectHandler.getVAccSprint(player)))) { float percentIncrease = ArmorEffectHandler.getVAccel(player); - if (DraconicEvolution.proxy.isSpaceDown() && !DraconicEvolution.proxy.isShiftDown()) + if (BrandonsCore.proxy.isSpaceDown() && !BrandonsCore.proxy.isShiftDown()) { player.motionY =(double)(percentIncrease * 2F); } - if (DraconicEvolution.proxy.isShiftDown() && !DraconicEvolution.proxy.isSpaceDown()) + if (BrandonsCore.proxy.isShiftDown() && !BrandonsCore.proxy.isSpaceDown()) { player.motionY = -(double)(percentIncrease * 2F); } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/handler/MinecraftForgeEventHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/handler/MinecraftForgeEventHandler.java index a95ada91..7fa324d5 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/handler/MinecraftForgeEventHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/handler/MinecraftForgeEventHandler.java @@ -1,6 +1,7 @@ package com.brandon3055.draconicevolution.common.handler; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.ModBlocks; import com.brandon3055.draconicevolution.common.ModItems; @@ -12,7 +13,6 @@ import com.brandon3055.draconicevolution.common.items.armor.ArmorEffectHandler; import com.brandon3055.draconicevolution.common.network.MountUpdatePacket; import com.brandon3055.draconicevolution.common.network.SpeedRequestPacket; import com.brandon3055.draconicevolution.common.tileentities.TileGrinder; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.utills.LogHelper; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.relauncher.ReflectionHelper; @@ -24,6 +24,7 @@ import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityList; +import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.boss.EntityDragon; import net.minecraft.entity.boss.IBossDisplayData; @@ -53,6 +54,7 @@ import net.minecraftforge.event.entity.player.PlayerInteractEvent; import net.minecraftforge.event.entity.player.PlayerUseItemEvent; import net.minecraftforge.event.world.WorldEvent; +import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.List; @@ -68,11 +70,40 @@ public class MinecraftForgeEventHandler { public static int ticksSinceRequest = 0; public static boolean speedNeedsUpdating = true; + private Field persistenceRequired = null; + + public MinecraftForgeEventHandler(){ + try { + persistenceRequired = ReflectionHelper.findField(EntityLiving.class, "field_82179_bU", "persistenceRequired"); + } catch (Exception e) { + LogHelper.error("Unable to find field \"persistenceRequired\""); + } + } + @SubscribeEvent public void onLivingUpdate(LivingEvent.LivingUpdateEvent event) { + EntityLivingBase entity = event.entityLiving; + + if (entity.getEntityData().hasKey("SpawnedByDESpawner")){ + long spawnTime = entity.getEntityData().getLong("SpawnedByDESpawner"); + long livedFor = entity.worldObj.getTotalWorldTime() - spawnTime; + + if (livedFor > 600 && persistenceRequired != null){ + try { + persistenceRequired.setBoolean(entity, false); + entity.getEntityData().removeTag("SpawnedByDESpawner"); + LogHelper.info("Tag Removed From " + entity); + } catch (Exception e) { + LogHelper.warn("Error occured while resetting entity persistence: " + e); + entity.getEntityData().removeTag("SpawnedByDESpawner"); + } + } + } + + if (!event.entityLiving.worldObj.isRemote || !(event.entityLiving instanceof EntityPlayerSP)) return; - EntityPlayerSP player = (EntityPlayerSP) event.entityLiving; + EntityPlayerSP player = (EntityPlayerSP) entity; double motionX = player.motionX; double motionZ = player.motionZ; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/inventory/InventoryTool.java b/src/main/java/com/brandon3055/draconicevolution/common/inventory/InventoryTool.java index 412d3bff..c917b952 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/inventory/InventoryTool.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/inventory/InventoryTool.java @@ -2,7 +2,7 @@ package com.brandon3055.draconicevolution.common.inventory; import com.brandon3055.draconicevolution.common.container.ContainerAdvTool; import com.brandon3055.draconicevolution.common.utills.IInventoryTool; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.utills.LogHelper; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Items; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/DraconicCore.java b/src/main/java/com/brandon3055/draconicevolution/common/items/DraconicCore.java index 55d85e7f..9c4e6e7d 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/DraconicCore.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/DraconicCore.java @@ -1,15 +1,17 @@ package com.brandon3055.draconicevolution.common.items; +import com.brandon3055.brandonscore.common.utills.InfoHelper; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.ModBlocks; import com.brandon3055.draconicevolution.common.ModItems; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; import com.brandon3055.draconicevolution.common.lib.Strings; +import com.brandon3055.draconicevolution.common.tileentities.TileCustomSpawner; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; +import net.minecraft.tileentity.TileEntityMobSpawner; import net.minecraft.util.StatCollector; import net.minecraft.world.World; @@ -34,7 +36,18 @@ public class DraconicCore extends ItemDE { public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int par7, float par8, float par9, float par10) { if (world.getBlock(x, y, z) == Blocks.mob_spawner) { + TileEntityMobSpawner oldSpawner = world.getTileEntity(x, y, z) instanceof TileEntityMobSpawner ? (TileEntityMobSpawner)world.getTileEntity(x, y, z) : null; + if (oldSpawner == null) return false; + String mobName = oldSpawner.func_145881_a().getEntityNameToSpawn(); + world.setBlock(x, y, z, ModBlocks.customSpawner); + TileCustomSpawner newSpawner = world.getTileEntity(x, y, z) instanceof TileCustomSpawner ? (TileCustomSpawner)world.getTileEntity(x, y, z) : null; + if (newSpawner != null) { + newSpawner.getBaseLogic().entityName = mobName; + newSpawner.isSetToSpawn = true; + world.markBlockForUpdate(x, y, z); + } + stack.splitStack(1); return true; } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/Key.java b/src/main/java/com/brandon3055/draconicevolution/common/items/Key.java index 0c36052e..f12f52ff 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/Key.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/Key.java @@ -2,7 +2,7 @@ package com.brandon3055.draconicevolution.common.items; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.ModItems; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.lib.Strings; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/MobSoul.java b/src/main/java/com/brandon3055/draconicevolution/common/items/MobSoul.java index 4580505e..8b893545 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/MobSoul.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/MobSoul.java @@ -1,7 +1,7 @@ package com.brandon3055.draconicevolution.common.items; import com.brandon3055.draconicevolution.common.ModItems; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.utills.LogHelper; import com.brandon3055.draconicevolution.common.lib.Strings; import cpw.mods.fml.relauncher.Side; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/Tclogo.java b/src/main/java/com/brandon3055/draconicevolution/common/items/Tclogo.java index 518ee5ec..7a366a7e 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/Tclogo.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/Tclogo.java @@ -32,6 +32,29 @@ public class Tclogo extends ItemDE { @Override public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean par5) { +// if (entity instanceof EntityPlayerMP && !entity.onGround) { +// //for (int i = 0; i < 10; i++) +// EntityPlayer player = (EntityPlayer)entity; +// if (player.posX < 500){ +// +// ((EntityPlayerMP) entity).playerNetServerHandler.setPlayerLocation(player.posX + 10, entity.posY, entity.posZ, entity.rotationYaw, entity.rotationPitch); +// player.motionX += 10; +// if (player.posX > 128) { +// +// ((EntityPlayerMP) entity).playerNetServerHandler.setPlayerLocation(501, entity.posY, entity.posZ, entity.rotationYaw, entity.rotationPitch); +// +// } +// +// } +// else player.motionX = 0; + + + +// ((EntityPlayerMP) entity).playerNetServerHandler.setPlayerLocation(entity.posX + 10, entity.posY, entity.posZ, entity.rotationYaw, entity.rotationPitch); +// ((EntityPlayerMP) entity).addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 10, 1000)); +// if (entity.posX > 500) ((EntityPlayerMP) entity).destroyCurrentEquippedItem(); +// } + /* //if (entity.isCollidedHorizontally)// && !world.isRemote) //entity.setLocationAndAngles(entity.posX+30D, entity.posY, entity.posZ, entity.rotationYaw, entity.rotationPitch);; /* @@ -74,6 +97,13 @@ public class Tclogo extends ItemDE { @Override public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) { + /*if (player instanceof EntityPlayerMP) { + for (int i = 0; i < 10; i++) + ((EntityPlayerMP) player).playerNetServerHandler.setPlayerLocation(player.posX + 1, player.posY, player.posZ, player.rotationYaw, player.rotationPitch); + } + + if (1==1) return stack;*/ + //Minecraft.getMinecraft().gameSettings.mouseSensitivity = -0.34F; // if (world.isRemote) diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/ArmorEffectHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/ArmorEffectHandler.java index d872a02b..09c25883 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/ArmorEffectHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/ArmorEffectHandler.java @@ -1,7 +1,7 @@ package com.brandon3055.draconicevolution.common.items.armor; import cofh.api.energy.IEnergyContainerItem; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/DraconicArmor.java b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/DraconicArmor.java index 1751931e..78bde6a4 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/DraconicArmor.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/DraconicArmor.java @@ -1,6 +1,8 @@ package com.brandon3055.draconicevolution.common.items.armor; import cofh.api.energy.IEnergyContainerItem; +import com.brandon3055.brandonscore.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.entity.EntityPersistentItem; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/WyvernArmor.java b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/WyvernArmor.java index 33832ded..0d34e046 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/WyvernArmor.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/WyvernArmor.java @@ -1,6 +1,8 @@ package com.brandon3055.draconicevolution.common.items.armor; import cofh.api.energy.IEnergyContainerItem; +import com.brandon3055.brandonscore.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.entity.EntityPersistentItem; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/AdminSpawnEgg.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/AdminSpawnEgg.java index 605273ba..92da09d0 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/AdminSpawnEgg.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/AdminSpawnEgg.java @@ -1,7 +1,7 @@ package com.brandon3055.draconicevolution.common.items.tools; import com.brandon3055.draconicevolution.DraconicEvolution; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.utills.LogHelper; import com.brandon3055.draconicevolution.common.items.ItemDE; import com.brandon3055.draconicevolution.common.ModItems; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconicAxe.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconicAxe.java index 03ad2f2d..fd3989f3 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconicAxe.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconicAxe.java @@ -6,7 +6,7 @@ import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; import com.brandon3055.draconicevolution.common.utills.IInventoryTool; import com.brandon3055.draconicevolution.common.utills.ItemConfigField; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import net.minecraft.block.Block; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnumEnchantmentType; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconicDistructionStaff.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconicDistructionStaff.java index 8937ec21..a4cda42a 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconicDistructionStaff.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconicDistructionStaff.java @@ -7,7 +7,7 @@ import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; import com.brandon3055.draconicevolution.common.utills.IInventoryTool; import com.brandon3055.draconicevolution.common.utills.ItemConfigField; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconicHoe.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconicHoe.java index 319f9f1f..aac2662e 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconicHoe.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconicHoe.java @@ -6,8 +6,8 @@ import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.entity.EntityPersistentItem; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import cpw.mods.fml.common.eventhandler.Event.Result; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconiumFluxCapacitor.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconiumFluxCapacitor.java index a1615944..544ae4ba 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconiumFluxCapacitor.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/DraconiumFluxCapacitor.java @@ -5,8 +5,8 @@ import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.items.tools.baseclasses.RFItemBase; import com.brandon3055.draconicevolution.common.lib.Strings; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/SafetyMatch.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/SafetyMatch.java index 570bec97..5b78435c 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/SafetyMatch.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/SafetyMatch.java @@ -2,7 +2,7 @@ package com.brandon3055.draconicevolution.common.items.tools; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.ModBlocks; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.InfoHelper; import com.brandon3055.draconicevolution.common.items.ItemDE; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.lib.References; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/TeleporterMKI.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/TeleporterMKI.java index 0e44fe27..c8153d82 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/TeleporterMKI.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/TeleporterMKI.java @@ -1,13 +1,14 @@ package com.brandon3055.draconicevolution.common.items.tools; +import com.brandon3055.brandonscore.BrandonsCore; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.Teleporter.TeleportLocation; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.entity.EntityPersistentItem; import com.brandon3055.draconicevolution.common.items.ItemDE; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; -import com.brandon3055.draconicevolution.common.utills.Teleporter.TeleportLocation; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; @@ -92,7 +93,7 @@ public class TeleporterMKI extends ItemDE { ItemNBTHelper.setFloat(stack, "Pitch", player.rotationPitch); ItemNBTHelper.setInteger(stack, "Dimension", player.dimension); ItemNBTHelper.setBoolean(stack, "IsSet", true); - ItemNBTHelper.setString(stack, "DimentionName", DraconicEvolution.proxy.getMCServer().worldServerForDimension(player.dimension).provider.getDimensionName()); + ItemNBTHelper.setString(stack, "DimentionName", BrandonsCore.proxy.getMCServer().worldServerForDimension(player.dimension).provider.getDimensionName()); } return stack; } else if (world.isRemote) diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/TeleporterMKII.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/TeleporterMKII.java index 804c2eb2..4a83b230 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/TeleporterMKII.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/TeleporterMKII.java @@ -7,9 +7,9 @@ import com.brandon3055.draconicevolution.common.entity.EntityPersistentItem; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; import com.brandon3055.draconicevolution.common.utills.IHudDisplayItem; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; -import com.brandon3055.draconicevolution.common.utills.Teleporter.TeleportLocation; +import com.brandon3055.brandonscore.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.Teleporter.TeleportLocation; import cpw.mods.fml.common.network.internal.FMLNetworkHandler; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/Wrench.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/Wrench.java index 326500c1..7fa4ede3 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/Wrench.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/Wrench.java @@ -8,7 +8,7 @@ import com.brandon3055.draconicevolution.common.lib.Strings; import com.brandon3055.draconicevolution.common.tileentities.energynet.TileRemoteEnergyBase; import com.brandon3055.draconicevolution.common.tileentities.energynet.TileWirelessEnergyTransceiver; import com.brandon3055.draconicevolution.common.utills.IHudDisplayItem; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.entity.player.EntityPlayer; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/MiningTool.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/MiningTool.java index 21c1c2c3..958c2eeb 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/MiningTool.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/MiningTool.java @@ -2,7 +2,7 @@ package com.brandon3055.draconicevolution.common.items.tools.baseclasses; import com.brandon3055.draconicevolution.common.handler.ConfigHandler; import com.brandon3055.draconicevolution.common.lib.References; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import net.minecraft.block.Block; import net.minecraft.block.material.MaterialLiquid; import net.minecraft.client.Minecraft; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/RFItemBase.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/RFItemBase.java index 13bb1791..313c9723 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/RFItemBase.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/RFItemBase.java @@ -1,6 +1,9 @@ package com.brandon3055.draconicevolution.common.items.tools.baseclasses; import cofh.api.energy.IEnergyContainerItem; +import com.brandon3055.brandonscore.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.Utills; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.entity.EntityPersistentItem; import com.brandon3055.draconicevolution.common.items.ItemDE; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/ToolBase.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/ToolBase.java index 250cef43..c0070384 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/ToolBase.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/ToolBase.java @@ -1,5 +1,10 @@ package com.brandon3055.draconicevolution.common.items.tools.baseclasses; +import com.brandon3055.brandonscore.BrandonsCore; +import com.brandon3055.brandonscore.common.utills.DataUtills; +import com.brandon3055.brandonscore.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.Utills; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.client.keybinding.KeyBindings; import com.brandon3055.draconicevolution.common.lib.References; @@ -159,11 +164,11 @@ public class ToolBase extends RFItemBase { @Override public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) { - if (!world.isRemote && !DraconicEvolution.proxy.isDedicatedServer()) + if (!world.isRemote && !BrandonsCore.proxy.isDedicatedServer()) { handleModeChange(stack, player, InfoHelper.isShiftKeyDown(), InfoHelper.isCtrlKeyDown()); } - else if (world.isRemote && DraconicEvolution.proxy.getMCServer() == null) + else if (world.isRemote && BrandonsCore.proxy.getMCServer() == null) { handleModeChange(stack, player, InfoHelper.isShiftKeyDown(), InfoHelper.isCtrlKeyDown()); DraconicEvolution.network.sendToServer(new ToolModePacket(InfoHelper.isShiftKeyDown(), InfoHelper.isCtrlKeyDown())); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/ToolHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/ToolHandler.java index a5ea3436..34bb4007 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/ToolHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/ToolHandler.java @@ -3,7 +3,7 @@ package com.brandon3055.draconicevolution.common.items.tools.baseclasses; import cofh.api.energy.IEnergyContainerItem; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.lib.References; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.enchantment.Enchantment; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/DraconicBow.java b/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/DraconicBow.java index dc7deea7..978bb068 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/DraconicBow.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/DraconicBow.java @@ -6,9 +6,9 @@ import com.brandon3055.draconicevolution.common.entity.EntityPersistentItem; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; import com.brandon3055.draconicevolution.common.utills.IInventoryTool; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.InfoHelper; import com.brandon3055.draconicevolution.common.utills.ItemConfigField; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/DraconicSword.java b/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/DraconicSword.java index 541d0b15..38bd99fc 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/DraconicSword.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/DraconicSword.java @@ -8,9 +8,9 @@ import com.brandon3055.draconicevolution.common.items.tools.baseclasses.ToolHand import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; import com.brandon3055.draconicevolution.common.utills.IInventoryTool; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.InfoHelper; import com.brandon3055.draconicevolution.common.utills.ItemConfigField; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.google.common.collect.Multimap; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/WyvernBow.java b/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/WyvernBow.java index 6985383e..e115af23 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/WyvernBow.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/WyvernBow.java @@ -6,9 +6,9 @@ import com.brandon3055.draconicevolution.common.entity.EntityPersistentItem; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; import com.brandon3055.draconicevolution.common.utills.IInventoryTool; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.InfoHelper; import com.brandon3055.draconicevolution.common.utills.ItemConfigField; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @@ -108,8 +108,6 @@ public class WyvernBow extends ItemBow implements IInventoryTool { { String currentMode = ItemNBTHelper.getString(stack, "mode", "rapidfire"); - System.out.println("curent mode:" + currentMode); - if (currentMode.equals("rapidfire")) ItemNBTHelper.setString(stack, "mode", "sharpshooter"); else diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/WyvernSword.java b/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/WyvernSword.java index aa675cc2..598af62c 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/WyvernSword.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/weapons/WyvernSword.java @@ -8,9 +8,9 @@ import com.brandon3055.draconicevolution.common.items.tools.baseclasses.ToolHand import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; import com.brandon3055.draconicevolution.common.utills.IInventoryTool; -import com.brandon3055.draconicevolution.common.utills.InfoHelper; +import com.brandon3055.brandonscore.common.utills.InfoHelper; import com.brandon3055.draconicevolution.common.utills.ItemConfigField; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.google.common.collect.Multimap; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/lib/References.java b/src/main/java/com/brandon3055/draconicevolution/common/lib/References.java index d611f27a..7f2cac30 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/lib/References.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/lib/References.java @@ -21,7 +21,7 @@ public final class References { //======================Render IDs========================// public static int idTeleporterStand = -1; - public static int idDraconiumChest = -1; + public static int idPortal = -1; //======================Data Types========================// diff --git a/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java index b68fd9ca..2b8b1f73 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java @@ -5,7 +5,7 @@ package com.brandon3055.draconicevolution.common.lib; */ public class VersionHandler { - public static final String VERSION = "1.0.1c"; + public static final String VERSION = "1.0.1d"; public static final int SNAPSHOT = 0; public static final String MCVERSION = "1.7.10"; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/network/ItemConfigPacket.java b/src/main/java/com/brandon3055/draconicevolution/common/network/ItemConfigPacket.java index 7d88984a..e0b18d97 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/network/ItemConfigPacket.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/network/ItemConfigPacket.java @@ -1,6 +1,6 @@ package com.brandon3055.draconicevolution.common.network; -import com.brandon3055.draconicevolution.common.utills.DataUtills; +import com.brandon3055.brandonscore.common.utills.DataUtills; import com.brandon3055.draconicevolution.common.utills.IConfigurableItem; import com.brandon3055.draconicevolution.common.utills.ItemConfigField; import cpw.mods.fml.common.network.ByteBufUtils; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/network/SpeedRequestPacket.java b/src/main/java/com/brandon3055/draconicevolution/common/network/SpeedRequestPacket.java index 622ed360..779940fe 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/network/SpeedRequestPacket.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/network/SpeedRequestPacket.java @@ -1,6 +1,6 @@ package com.brandon3055.draconicevolution.common.network; -import com.brandon3055.draconicevolution.DraconicEvolution; +import com.brandon3055.brandonscore.BrandonsCore; import com.brandon3055.draconicevolution.common.handler.ConfigHandler; import com.brandon3055.draconicevolution.common.handler.MinecraftForgeEventHandler; import com.brandon3055.draconicevolution.common.utills.LogHelper; @@ -39,7 +39,7 @@ public class SpeedRequestPacket implements IMessage public IMessage onMessage(SpeedRequestPacket message, MessageContext ctx) { if (ctx.side == Side.SERVER) { - if (ConfigHandler.speedLimitDimList.contains(ctx.getServerHandler().playerEntity.dimension) || (DraconicEvolution.proxy.isOp(ctx.getServerHandler().playerEntity.getCommandSenderName()) && !ConfigHandler.speedLimitops)) return new SpeedRequestPacket(20F); + if (ConfigHandler.speedLimitDimList.contains(ctx.getServerHandler().playerEntity.dimension) || (BrandonsCore.proxy.isOp(ctx.getServerHandler().playerEntity.getCommandSenderName()) && !ConfigHandler.speedLimitops)) return new SpeedRequestPacket(20F); LogHelper.info(ConfigHandler.speedLimitops); return new SpeedRequestPacket(ConfigHandler.maxPlayerSpeed); } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/network/TeleporterPacket.java b/src/main/java/com/brandon3055/draconicevolution/common/network/TeleporterPacket.java index b03a2f63..e35d785b 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/network/TeleporterPacket.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/network/TeleporterPacket.java @@ -1,10 +1,10 @@ package com.brandon3055.draconicevolution.common.network; -import com.brandon3055.draconicevolution.DraconicEvolution; +import com.brandon3055.brandonscore.BrandonsCore; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.Teleporter.TeleportLocation; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.handler.ConfigHandler; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; -import com.brandon3055.draconicevolution.common.utills.Teleporter.TeleportLocation; import cpw.mods.fml.common.network.ByteBufUtils; import cpw.mods.fml.common.network.simpleimpl.IMessage; import cpw.mods.fml.common.network.simpleimpl.IMessageHandler; @@ -138,7 +138,7 @@ public class TeleporterPacket implements IMessage if (message.function == ADDDESTINATION){ NBTTagCompound tag = new NBTTagCompound(); - message.location.setDimentionName(DraconicEvolution.proxy.getMCServer().worldServerForDimension(message.location.getDimension()).provider.getDimensionName()); + message.location.setDimentionName(BrandonsCore.proxy.getMCServer().worldServerForDimension(message.location.getDimension()).provider.getDimensionName()); message.location.writeToNBT(tag); list.appendTag(tag); compound.setTag("Locations", list); @@ -172,7 +172,7 @@ public class TeleporterPacket implements IMessage if (message.function == UPDATEDESTINATION){ NBTTagCompound tag = list.getCompoundTagAt(message.data); - message.location.setDimentionName(DraconicEvolution.proxy.getMCServer().worldServerForDimension(message.location.getDimension()).provider.getDimensionName()); + message.location.setDimentionName(BrandonsCore.proxy.getMCServer().worldServerForDimension(message.location.getDimension()).provider.getDimensionName()); message.location.writeToNBT(tag); list.func_150304_a(message.data, tag); compound.setTag("Locations", list); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/network/TileObjectPacket.java b/src/main/java/com/brandon3055/draconicevolution/common/network/TileObjectPacket.java index c436e6c3..f6165578 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/network/TileObjectPacket.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/network/TileObjectPacket.java @@ -2,7 +2,7 @@ package com.brandon3055.draconicevolution.common.network; import com.brandon3055.draconicevolution.common.container.ContainerDataSync; import com.brandon3055.draconicevolution.common.tileentities.TileObjectSync; -import com.brandon3055.draconicevolution.common.utills.DataUtills; +import com.brandon3055.brandonscore.common.utills.DataUtills; import cpw.mods.fml.common.network.simpleimpl.IMessage; import cpw.mods.fml.common.network.simpleimpl.IMessageHandler; import cpw.mods.fml.common.network.simpleimpl.MessageContext; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/plugins/nei/NEIDraconicevolutionConfig.java b/src/main/java/com/brandon3055/draconicevolution/common/plugins/nei/NEIDraconicevolutionConfig.java index ffbe1315..685de33b 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/plugins/nei/NEIDraconicevolutionConfig.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/plugins/nei/NEIDraconicevolutionConfig.java @@ -26,6 +26,7 @@ public class NEIDraconicevolutionConfig implements IConfigureNEI API.hideItem(new ItemStack(ModItems.creativeStructureSpawner)); API.hideItem(new ItemStack(ModItems.dezilsMarshmallow)); API.hideItem(new ItemStack(ModItems.creativeStructureSpawner, 1, 1)); + API.hideItem(new ItemStack(ModBlocks.portal)); LogHelper.info("Added NEI integration"); } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/CustomSpawnerBaseLogic.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/CustomSpawnerBaseLogic.java index d96586e7..f9348b86 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/CustomSpawnerBaseLogic.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/CustomSpawnerBaseLogic.java @@ -166,7 +166,11 @@ public abstract class CustomSpawnerBaseLogic { } } else ((EntityLiving) par1Entity).onSpawnWithEgg(null); - if (!requiresPlayer)((EntityLiving)par1Entity).func_110163_bv(); + if (!requiresPlayer) { + ((EntityLiving)par1Entity).func_110163_bv(); + par1Entity.getEntityData().setLong("SpawnedByDESpawner", getSpawnerWorld().getTotalWorldTime()); + } + this.getSpawnerWorld().spawnEntityInWorld(par1Entity); } @@ -242,7 +246,7 @@ public abstract class CustomSpawnerBaseLogic { @SideOnly(Side.CLIENT) public Entity getEntityForRenderer() { if (this.renderedEntity == null) { - Entity entity = EntityList.createEntityByName(this.getEntityNameToSpawn(), (World) null); + Entity entity = EntityList.createEntityByName(this.getEntityNameToSpawn(), getSpawnerWorld()); entity = this.spawnEntity(entity); if (entity instanceof EntitySkeleton) ((EntitySkeleton)entity).setSkeletonType(skeletonType); this.renderedEntity = entity; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileCKeyStone.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileCKeyStone.java index 98cb1635..0bab32b4 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileCKeyStone.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileCKeyStone.java @@ -1,6 +1,6 @@ package com.brandon3055.draconicevolution.common.tileentities; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.ModItems; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileDissEnchanter.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileDissEnchanter.java index 6c31a98d..48743560 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileDissEnchanter.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileDissEnchanter.java @@ -1,6 +1,6 @@ package com.brandon3055.draconicevolution.common.tileentities; -import com.brandon3055.draconicevolution.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Items; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileDraconiumChest.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileDraconiumChest.java index f466f60f..041a1331 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileDraconiumChest.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileDraconiumChest.java @@ -8,7 +8,7 @@ import com.brandon3055.draconicevolution.common.container.ContainerDraconiumChes import com.brandon3055.draconicevolution.common.lib.OreDoublingRegistry; import com.brandon3055.draconicevolution.common.utills.EnergyStorage; import com.brandon3055.draconicevolution.common.utills.ICustomItemData; -import com.brandon3055.draconicevolution.common.utills.InventoryUtils; +import com.brandon3055.brandonscore.common.utills.InventoryUtils; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.ISidedInventory; import net.minecraft.item.ItemStack; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileParticleGenerator.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileParticleGenerator.java index e3c15e17..3805652a 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileParticleGenerator.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileParticleGenerator.java @@ -277,4 +277,9 @@ public class TileParticleGenerator extends TileEntity { beam_length = compound.getFloat("beam_length"); beam_rotation = compound.getFloat("beam_rotation"); } + + @SideOnly(Side.CLIENT) + public double getMaxRenderDistanceSquared() { + return 655360.0D; + } } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileTestBlock.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileTestBlock.java index 99ce8e4a..0714ec71 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileTestBlock.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileTestBlock.java @@ -5,7 +5,7 @@ import com.brandon3055.draconicevolution.client.render.particle.ParticleEnergyBe import com.brandon3055.draconicevolution.client.render.particle.ParticleEnergyField; import com.brandon3055.draconicevolution.common.utills.EnergyStorage; import com.brandon3055.draconicevolution.common.utills.LogHelper; -import com.brandon3055.draconicevolution.common.utills.Utills; +import com.brandon3055.brandonscore.common.utills.Utills; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.NetworkManager; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileWeatherController.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileWeatherController.java index 304c9353..64f00aa0 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileWeatherController.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileWeatherController.java @@ -157,7 +157,6 @@ public class TileWeatherController extends TileEntity implements IInventory { public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt) { readFromNBT(pkt.func_148857_g()); - worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); } //==============================================INVENTORY====================================================// diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/energynet/TileRemoteEnergyBase.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/energynet/TileRemoteEnergyBase.java index 57654664..306f3ef6 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/energynet/TileRemoteEnergyBase.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/energynet/TileRemoteEnergyBase.java @@ -1,5 +1,8 @@ package com.brandon3055.draconicevolution.common.tileentities.energynet; +import com.brandon3055.brandonscore.common.utills.DataUtills; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; +import com.brandon3055.brandonscore.common.utills.Utills; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.items.tools.Wrench; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/energynet/TileWirelessEnergyTransceiver.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/energynet/TileWirelessEnergyTransceiver.java index ddb39edb..c6d6aa31 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/energynet/TileWirelessEnergyTransceiver.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/energynet/TileWirelessEnergyTransceiver.java @@ -6,7 +6,7 @@ import com.brandon3055.draconicevolution.client.render.particle.ParticleEnergyFi import com.brandon3055.draconicevolution.client.render.particle.Particles; import com.brandon3055.draconicevolution.common.items.tools.Wrench; import com.brandon3055.draconicevolution.common.lib.References; -import com.brandon3055.draconicevolution.common.utills.Utills; +import com.brandon3055.brandonscore.common.utills.Utills; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.entity.player.EntityPlayer; @@ -66,7 +66,7 @@ public class TileWirelessEnergyTransceiver extends TileRemoteEnergyBase { receiver.particleEnergyCounter -= particleValue; //todo detect box size - DraconicEvolution.proxy.spawnParticle(new Particles.TransceiverParticle(worldObj, xCoord + 0.5, yCoord + 0.3 + (worldObj.rand.nextDouble() * 0.4), zCoord + 0.5, receiver.xCoord + worldObj.rand.nextDouble(), receiver.yCoord + worldObj.rand.nextDouble(), receiver.zCoord + worldObj.rand.nextDouble())); + DraconicEvolution.proxy.spawnParticle(new Particles.TransceiverParticle(worldObj, xCoord + 0.5, yCoord + 0.3 + (worldObj.rand.nextDouble() * 0.4), zCoord + 0.5, receiver.xCoord + worldObj.rand.nextDouble(), receiver.yCoord + worldObj.rand.nextDouble(), receiver.zCoord + worldObj.rand.nextDouble()), 64); } } } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileDislocatorReceptacle.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileDislocatorReceptacle.java new file mode 100644 index 00000000..15496455 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileDislocatorReceptacle.java @@ -0,0 +1,213 @@ +package com.brandon3055.draconicevolution.common.tileentities.multiblocktiles; + +import com.brandon3055.brandonscore.common.utills.Teleporter; +import com.brandon3055.draconicevolution.common.items.tools.TeleporterMKI; +import com.brandon3055.draconicevolution.common.utills.PortalHelper; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.inventory.IInventory; +import net.minecraft.item.ItemStack; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.network.NetworkManager; +import net.minecraft.network.Packet; +import net.minecraft.network.play.server.S35PacketUpdateTileEntity; +import net.minecraft.tileentity.TileEntity; + +/** + * Created by Brandon on 22/5/2015. + */ +public class TileDislocatorReceptacle extends TileEntity implements IInventory { + + private ItemStack dislocator; + public PortalHelper.PortalStructure structure = null; + public boolean isActive = false; + public boolean updating = false; + public int coolDown = 0; + public int ticksTillStart = -1; + + @Override + public void updateEntity() { + if (worldObj.isRemote) return; + if (coolDown > 0) coolDown--; + if (ticksTillStart > -1) ticksTillStart--; + if (ticksTillStart == 0) worldObj.scheduleBlockUpdate(xCoord, yCoord, zCoord, worldObj.getBlock(xCoord, yCoord, zCoord), 1); + } + + public void validateActivePortal() { + if (updating) return; + if (structure == null) { + isActive = false; + return; + } + isActive = structure.checkFrameIsValid(worldObj, xCoord, yCoord, zCoord) && structure.scanPortal(worldObj, xCoord, yCoord, zCoord, false, true); + worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); + } + + public void updateState(){ + if (structure == null || !isActive) structure = PortalHelper.getValidStructure(worldObj, xCoord, yCoord, zCoord); + if (structure == null) { + isActive = false; + worldObj.notifyBlockChange(xCoord, yCoord, zCoord, blockType); + worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); + return; + } + + if (isActive){ + if (getStackInSlot(0) == null || !structure.checkFrameIsValid(worldObj, xCoord, yCoord, zCoord)) isActive = false; + }else { + boolean frameValid = structure.checkFrameIsValid(worldObj, xCoord, yCoord, zCoord); + boolean portalEmpty = structure.scanPortal(worldObj, xCoord, yCoord, zCoord, false, false); + + if (getLocation() != null && frameValid && portalEmpty) + { + isActive = true; + structure.scanPortal(worldObj, xCoord, yCoord, zCoord, true, false); + } + } + worldObj.notifyBlockChange(xCoord, yCoord, zCoord, blockType); + worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); + } + + public Teleporter.TeleportLocation getLocation(){ + if (getStackInSlot(0) != null && getStackInSlot(0).getItem() instanceof TeleporterMKI) return ((TeleporterMKI)getStackInSlot(0).getItem()).getLocation(getStackInSlot(0)); + return null; + } + + @Override + public Packet getDescriptionPacket() { + NBTTagCompound tagCompound = new NBTTagCompound(); + tagCompound.setBoolean("IsActive", isActive); + return new S35PacketUpdateTileEntity(this.xCoord, this.yCoord, this.zCoord, 1, tagCompound); + } + + @Override + public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt) { + isActive = pkt.func_148857_g().getBoolean("IsActive"); + } + + @Override + public int getSizeInventory() + { + return 1; + } + + @Override + public ItemStack getStackInSlot(int i) + { + return i == 0 ? dislocator : null; + } + + @Override + public ItemStack decrStackSize(int i, int count) { + ItemStack itemstack = getStackInSlot(i); + + if (itemstack != null) + { + if (itemstack.stackSize <= count) + { + setInventorySlotContents(i, null); + } else + { + itemstack = itemstack.splitStack(count); + if (itemstack.stackSize == 0) + { + setInventorySlotContents(i, null); + } + } + } + if (isActive) updateState(); + else ticksTillStart = 1; + return itemstack; + } + + @Override + public ItemStack getStackInSlotOnClosing(int i) { + ItemStack item = getStackInSlot(i); + if (item != null) setInventorySlotContents(i, null); + return item; + } + + @Override + public void setInventorySlotContents(int i, ItemStack itemstack) { + if (i != 0) return; + dislocator = itemstack; + if (itemstack != null && itemstack.stackSize > getInventoryStackLimit()) + { + itemstack.stackSize = getInventoryStackLimit(); + } + if (isActive) updateState(); + else ticksTillStart = 1; + } + + @Override + public String getInventoryName() + { + return ""; + } + + @Override + public boolean hasCustomInventoryName() + { + return false; + } + + @Override + public int getInventoryStackLimit() + { + return 1; + } + + @Override + public boolean isUseableByPlayer(EntityPlayer player) { + if (worldObj == null) + { + return true; + } + if (worldObj.getTileEntity(xCoord, yCoord, zCoord) != this) + { + return false; + } + return player.getDistanceSq(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5) < 64; + } + + @Override + public void openInventory() {} + + @Override + public void closeInventory() {} + + @Override + public boolean isItemValidForSlot(int i, ItemStack itemstack) { + return itemstack != null && itemstack.getItem() instanceof TeleporterMKI && ((TeleporterMKI)itemstack.getItem()).getLocation(itemstack) != null; + } + + @Override + public void writeToNBT(NBTTagCompound compound) { + compound.setBoolean("IsActive", isActive); + + if (dislocator != null) { + NBTTagCompound stack = new NBTTagCompound(); + dislocator.writeToNBT(stack); + compound.setTag("Dislocator", stack); + } + + if (structure != null){ + compound.setBoolean("HasStructure", true); + structure.writeToNBT(compound); + } + + super.writeToNBT(compound); + } + + @Override + public void readFromNBT(NBTTagCompound compound) { + isActive = compound.getBoolean("IsActive"); + + if (compound.hasKey("Dislocator")) dislocator = ItemStack.loadItemStackFromNBT(compound.getCompoundTag("Dislocator")); + + if (compound.hasKey("HasStructure")) { + structure = new PortalHelper.PortalStructure(); + structure.readFromNBT(compound); + } + super.readFromNBT(compound); + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TilePortalBlock.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TilePortalBlock.java new file mode 100644 index 00000000..ec8e37bf --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TilePortalBlock.java @@ -0,0 +1,83 @@ +package com.brandon3055.draconicevolution.common.tileentities.multiblocktiles; + +import com.brandon3055.brandonscore.common.utills.Utills; +import com.brandon3055.draconicevolution.DraconicEvolution; +import com.brandon3055.draconicevolution.client.render.particle.Particles; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.client.renderer.entity.RenderManager; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.tileentity.TileEntity; + +/** + * Created by Brandon on 24/5/2015. + */ +public class TilePortalBlock extends TileEntity { + + public int masterX = 0; + public int masterY = 0; + public int masterZ = 0; + + @Override + @SideOnly(Side.SERVER) + public boolean canUpdate() { + return false; + } + + @Override + @SideOnly(Side.CLIENT) + public void updateEntity() { + if (!worldObj.isRemote) return; + double distanceMod = Utills.getDistanceAtoB(xCoord+0.5, yCoord+0.5, zCoord+0.5, RenderManager.renderPosX, RenderManager.renderPosY, RenderManager.renderPosZ); + if (worldObj.rand.nextInt(Math.max((int)(distanceMod * (distanceMod/5D)), 1)) == 0) + { + if (blockMetadata == -1) blockMetadata = worldObj.getBlockMetadata(xCoord, yCoord, zCoord); + + double rD1 = worldObj.rand.nextDouble(); + double rD2 = worldObj.rand.nextDouble(); + double rO1 = -0.1 + worldObj.rand.nextDouble() * 0.2; + double rO2 = -0.1 + worldObj.rand.nextDouble() * 0.2; + + + if (blockMetadata == 1 && RenderManager.renderPosZ < zCoord + 0.5) + DraconicEvolution.proxy.spawnParticle(new Particles.PortalParticle(worldObj, xCoord + rD1, yCoord + rD2, zCoord, xCoord + rD1 + rO1, yCoord + rD2 + rO2, zCoord + 0.75), 256); + else if (blockMetadata == 1 && RenderManager.renderPosZ > zCoord + 0.5) + DraconicEvolution.proxy.spawnParticle(new Particles.PortalParticle(worldObj, xCoord + rD1, yCoord + rD2, zCoord + 1, xCoord + rD1 + rO1, yCoord + rD2 + rO2, zCoord + 0.25), 256); + else if (blockMetadata == 2 && RenderManager.renderPosX < xCoord + 0.5) + DraconicEvolution.proxy.spawnParticle(new Particles.PortalParticle(worldObj, xCoord, yCoord + rD1, zCoord + rD2, xCoord + 0.75, yCoord + rD1 + rO1, zCoord + rD2 + rO2), 256); + else if (blockMetadata == 2 && RenderManager.renderPosX > xCoord + 0.5) + DraconicEvolution.proxy.spawnParticle(new Particles.PortalParticle(worldObj, xCoord + 1, yCoord + rD1, zCoord + rD2, xCoord + 0.25, yCoord + rD1 + rO1, zCoord + rD2 + rO2), 256); + else if (blockMetadata == 3 && RenderManager.renderPosY > yCoord + 0.5) + DraconicEvolution.proxy.spawnParticle(new Particles.PortalParticle(worldObj, xCoord + rD1, yCoord + 1, zCoord + rD2, xCoord + rD1 + rO1, yCoord + 0.25, zCoord + rD2 + rO2), 256); + else if (blockMetadata == 3 && RenderManager.renderPosY < yCoord + 0.5) + DraconicEvolution.proxy.spawnParticle(new Particles.PortalParticle(worldObj, xCoord + rD1, yCoord, zCoord + rD2, xCoord + rD1 + rO1, yCoord + 0.75, zCoord + rD2 + rO2), 256); + } + } + + public TileDislocatorReceptacle getMaster(){ + return worldObj.getTileEntity(masterX, masterY, masterZ) instanceof TileDislocatorReceptacle ? (TileDislocatorReceptacle)worldObj.getTileEntity(masterX, masterY, masterZ) : null; + } + + public boolean isPortalStillValid(){ + TileDislocatorReceptacle master = getMaster(); + if (master == null || !master.isActive) return false; + master.validateActivePortal(); + return master.isActive; + } + + @Override + public void writeToNBT(NBTTagCompound compound) { + super.writeToNBT(compound); + compound.setInteger("MasterX", masterX); + compound.setInteger("MasterY", masterY); + compound.setInteger("MasterZ", masterZ); + } + + @Override + public void readFromNBT(NBTTagCompound compound) { + super.readFromNBT(compound); + masterX = compound.getInteger("MasterX"); + masterY = compound.getInteger("MasterY"); + masterZ = compound.getInteger("MasterZ"); + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileReactorCore.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileReactorCore.java new file mode 100644 index 00000000..45103da6 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileReactorCore.java @@ -0,0 +1,17 @@ +package com.brandon3055.draconicevolution.common.tileentities.multiblocktiles; + +import net.minecraft.tileentity.TileEntity; + +/** + * Created by Brandon on 16/6/2015. + */ +public class TileReactorCore extends TileEntity { + public float renderRotation = 0; + + + + @Override + public void updateEntity() { + if (worldObj.isRemote) renderRotation += 0.2F; + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/utills/DataUtills.java b/src/main/java/com/brandon3055/draconicevolution/common/utills/DataUtills.java deleted file mode 100644 index c0fe00a4..00000000 --- a/src/main/java/com/brandon3055/draconicevolution/common/utills/DataUtills.java +++ /dev/null @@ -1,169 +0,0 @@ -package com.brandon3055.draconicevolution.common.utills; - -import com.brandon3055.draconicevolution.common.lib.References; -import cpw.mods.fml.common.network.ByteBufUtils; -import io.netty.buffer.ByteBuf; -import net.minecraft.item.ItemStack; - -/** - * Created by Brandon on 31/12/2014. - */ -public class DataUtills { - - public static DataUtills instance = new DataUtills(); - - public void writeObjectToBytes(ByteBuf bytes, int dataType, Object object){ - switch (dataType){ - case References.BYTE_ID: - bytes.writeByte((Byte)object); - break; - case References.SHORT_ID: - bytes.writeShort((Short) object); - break; - case References.INT_ID: - bytes.writeInt((Integer) object); - break; - case References.LONG_ID: - bytes.writeLong((Long) object); - break; - case References.FLOAT_ID: - bytes.writeFloat((Float) object); - break; - case References.DOUBLE_ID: - bytes.writeDouble((Double) object); - break; - case References.CHAR_ID: - bytes.writeChar((Character) object); - break; - case References.STRING_ID: - ByteBufUtils.writeUTF8String(bytes, (String) object); - break; - case References.BOOLEAN_ID: - bytes.writeBoolean((Boolean) object); - break; - case References.INT_PAIR_ID: - bytes.writeInt(((IntPair)object).i1); - bytes.writeInt(((IntPair)object).i2); - break; - } - } - - public Object readObjectFromBytes(ByteBuf bytes, int dataType){ - switch (dataType){ - case References.BYTE_ID: - return bytes.readByte(); - case References.SHORT_ID: - return bytes.readShort(); - case References.INT_ID: - return bytes.readInt(); - case References.LONG_ID: - return bytes.readLong(); - case References.FLOAT_ID: - return bytes.readFloat(); - case References.DOUBLE_ID: - return bytes.readDouble(); - case References.CHAR_ID: - return bytes.readChar(); - case References.STRING_ID: - return ByteBufUtils.readUTF8String(bytes); - case References.BOOLEAN_ID: - return bytes.readBoolean(); - case References.INT_PAIR_ID: - IntPair tx = new IntPair(0, 0); - tx.i1 = bytes.readInt(); - tx.i2 = bytes.readInt(); - return tx; - } - return null; - } - - public static void writeObjectToItem(ItemStack stack, Object value, int datatype, String name){ - switch (datatype){ - case References.BYTE_ID: - ItemNBTHelper.setByte(stack, name, (Byte) value); - break; - case References.SHORT_ID: - ItemNBTHelper.setShort(stack, name, (Short) value); - break; - case References.INT_ID: - ItemNBTHelper.setInteger(stack, name, (Integer) value); - break; - case References.LONG_ID: - ItemNBTHelper.setLong(stack, name, (Long) value); - break; - case References.FLOAT_ID: - ItemNBTHelper.setFloat(stack, name, (Float) value); - break; - case References.DOUBLE_ID: - ItemNBTHelper.setDouble(stack, name, (Double) value); - break; -// case References.CHAR_ID: -// ItemNBTHelper.setChar(stack, value.name, (Byte)value.value); -// break; - case References.STRING_ID: - ItemNBTHelper.setString(stack, name, (String) value); - break; - case References.BOOLEAN_ID: - ItemNBTHelper.setBoolean(stack, name, (Boolean) value); - break; - } - } - - public static Object readObjectFromItem(ItemStack stack, int dataType, String name, Object defaultExpected){ - switch (dataType){ - case References.BYTE_ID: - return ItemNBTHelper.getByte(stack, name, (Byte)defaultExpected); - case References.SHORT_ID: - return ItemNBTHelper.getShort(stack, name, (Short)defaultExpected); - case References.INT_ID: - return ItemNBTHelper.getInteger(stack, name, (Integer)defaultExpected); - case References.LONG_ID: - return ItemNBTHelper.getLong(stack, name, (Long)defaultExpected); - case References.FLOAT_ID: - return ItemNBTHelper.getFloat(stack, name, (Float)defaultExpected); - case References.DOUBLE_ID: - return ItemNBTHelper.getDouble(stack, name, (Double)defaultExpected); - //case References.CHAR_ID: - case References.STRING_ID: - return ItemNBTHelper.getString(stack, name, (String)defaultExpected); - case References.BOOLEAN_ID: - return ItemNBTHelper.getBoolean(stack, name, (Boolean)defaultExpected); - } - return null; - } - - public static Object readObjectFromItem(ItemStack stack, int dataType, String name){ - switch (dataType){ - case References.BYTE_ID: - return ItemNBTHelper.getByte(stack, name, (byte)0); - case References.SHORT_ID: - return ItemNBTHelper.getShort(stack, name, (short)0); - case References.INT_ID: - return ItemNBTHelper.getInteger(stack, name, 0); - case References.LONG_ID: - return ItemNBTHelper.getLong(stack, name, 0L); - case References.FLOAT_ID: - return ItemNBTHelper.getFloat(stack, name, 0F); - case References.DOUBLE_ID: - return ItemNBTHelper.getDouble(stack, name, 0D); - //case References.CHAR_ID: - case References.STRING_ID: - return ItemNBTHelper.getString(stack, name, ""); - case References.BOOLEAN_ID: - return ItemNBTHelper.getBoolean(stack, name, false); - } - return null; - } - - public static class IntPair - { - public int i1; - public int i2; - - public IntPair(int i1, int i2) - { - this.i1 = i1; - this.i2 = i2; - } - } -} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/utills/GuiHelper.java b/src/main/java/com/brandon3055/draconicevolution/common/utills/GuiHelper.java deleted file mode 100644 index 8c5129aa..00000000 --- a/src/main/java/com/brandon3055/draconicevolution/common/utills/GuiHelper.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.brandon3055.draconicevolution.common.utills; - -/** - * Created by Brandon on 28/06/2014. - */ -public class GuiHelper { - public static boolean isInRect(int x, int y, int xSize, int ySize, int mouseX, int mouseY){ - return ((mouseX >= x && mouseX <= x+xSize) && (mouseY >= y && mouseY <= y+ySize)); - } -} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/utills/InfoHelper.java b/src/main/java/com/brandon3055/draconicevolution/common/utills/InfoHelper.java deleted file mode 100644 index c1bf6f65..00000000 --- a/src/main/java/com/brandon3055/draconicevolution/common/utills/InfoHelper.java +++ /dev/null @@ -1,119 +0,0 @@ -package com.brandon3055.draconicevolution.common.utills; - -import cofh.api.energy.IEnergyContainerItem; -import com.brandon3055.draconicevolution.common.handler.ConfigHandler; -import net.minecraft.item.ItemStack; -import net.minecraft.util.EnumChatFormatting; -import net.minecraft.util.StatCollector; -import org.lwjgl.input.Keyboard; - -import java.util.List; - -/** - * Created by Brandon on 1/07/2014. - */ -public class InfoHelper { - @SuppressWarnings("unchecked") - public static void addEnergyInfo(ItemStack stack, List list) { - IEnergyContainerItem item = (IEnergyContainerItem)stack.getItem(); - int energy = item.getEnergyStored(stack); - int maxEnergy = item.getMaxEnergyStored(stack); - String eS = ""; - String eM = ""; - if (energy < 1000) - eS = String.valueOf(energy); - else if (energy < 1000000) - eS = String.valueOf(energy);//Math.round((float)energy / 10F)/100F)+"k"; - else - eS = String.valueOf(Math.round((float)energy / 1000F)/1000F)+"m"; - if (maxEnergy < 1000) - eM = String.valueOf(maxEnergy); - else if (maxEnergy < 1000000) - eM = String.valueOf(Math.round((float)maxEnergy / 100F)/10F)+"k"; - else - eM = String.valueOf(Math.round((float)maxEnergy / 10000F)/100F)+"m"; - - list.add(StatCollector.translateToLocal("info.de.charge.txt") + ": " + eS + " / " + eM + " RF"); - } - - @SuppressWarnings("unchecked") - public static void addLore(ItemStack stack, List list, boolean addLeadingLine){ - if (ConfigHandler.disableLore) return; - String[] lore = getLore(stack); - if (addLeadingLine) list.add(""); - if (lore == null) { - list.add("" + EnumChatFormatting.ITALIC + "" + EnumChatFormatting.DARK_PURPLE + "Invalid lore localization see console for details"); - return; - } - for (String s : lore) list.add("" + EnumChatFormatting.ITALIC + "" + EnumChatFormatting.DARK_PURPLE + s); - } - - /**Add lore with a blank line above it*/ - public static void addLore(ItemStack stack, List list){ - addLore(stack, list, true); - } - - /**Add the standard energy and lore information*/ - @SuppressWarnings("unchecked") - public static void addEnergyAndLore(ItemStack stack, List list){ - if (!isShiftKeyDown()) list.add(StatCollector.translateToLocal("info.de.hold.txt")+" "+EnumChatFormatting.AQUA + "" + EnumChatFormatting.ITALIC + StatCollector.translateToLocal("info.de.shift.txt") + EnumChatFormatting.RESET + " " + EnumChatFormatting.GRAY + StatCollector.translateToLocal("info.de.forDetails.txt")); - else { - addEnergyInfo(stack, list); - addLore(stack, list); - } - } - - /**returns lore text or an empty string if the lore is not set*/ - public static String[] getLore(ItemStack stack){ - String unlocalizeLore = stack.getItem().getUnlocalizedName() + ".lore"; - String rawLore = StatCollector.translateToLocal(unlocalizeLore); - - if (rawLore.contains(unlocalizeLore)){ - LogHelper.error("Invalid or missing Lore localization \""+unlocalizeLore+"\""); - return null; - } - - String lineCountS = rawLore.substring(0, 1); - rawLore = rawLore.substring(1); - int lineCount = 0; - - try { - lineCount = Integer.parseInt(lineCountS); - }catch (NumberFormatException e){ - LogHelper.error("Invalid Lore Format! Lore myst start with the number of lines \"3Line 1\\nLine 2\\nLine 3\""); - } - - String[] loreLines = new String[lineCount]; - - for (int i = 0; i < lineCount; i++){ - if (rawLore.contains("\\n")) loreLines[i] = rawLore.substring(0, rawLore.indexOf("\\n")); - else loreLines[i] = rawLore; - if (rawLore.contains("\\n")) rawLore = rawLore.substring(rawLore.indexOf("\\n")+2); - } - - return loreLines; - } - - public static boolean isShiftKeyDown() { - return Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT); - } - - public static boolean isCtrlKeyDown() { - return Keyboard.isKeyDown(Keyboard.KEY_LCONTROL) || Keyboard.isKeyDown(Keyboard.KEY_RCONTROL); - } - - @SuppressWarnings("unchecked") - public static boolean holdShiftForDetails(List list, boolean inverted){ - if (isShiftKeyDown() == inverted) list.add(StatCollector.translateToLocal("info.de.hold.txt")+" "+EnumChatFormatting.AQUA + "" + EnumChatFormatting.ITALIC + StatCollector.translateToLocal("info.de.shift.txt") + EnumChatFormatting.RESET + " " + EnumChatFormatting.GRAY + StatCollector.translateToLocal("info.de.forDetails.txt")); - return isShiftKeyDown(); - } - - public static boolean holdShiftForDetails(List list){ - return holdShiftForDetails(list, false); - } - - /**"Information Text Colour" The colour used for custom tool tip info*/ - public static String ITC(){return "" + EnumChatFormatting.RESET + "" + EnumChatFormatting.DARK_AQUA;} - /**"Highlighted Information Text Colour" The colour used for parts that need to stand out*/ - public static String HITC(){return "" + EnumChatFormatting.RESET + "" + EnumChatFormatting.ITALIC + "" + EnumChatFormatting.GOLD;} -} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/utills/InventoryUtils.java b/src/main/java/com/brandon3055/draconicevolution/common/utills/InventoryUtils.java deleted file mode 100644 index 33bce83d..00000000 --- a/src/main/java/com/brandon3055/draconicevolution/common/utills/InventoryUtils.java +++ /dev/null @@ -1,720 +0,0 @@ -package com.brandon3055.draconicevolution.common.utills; - -/** - * Everything in this class is copied from openblocks - */ -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.common.collect.Maps; -import com.google.common.collect.Sets; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.init.Blocks; -import net.minecraft.inventory.IInventory; -import net.minecraft.inventory.ISidedInventory; -import net.minecraft.inventory.InventoryLargeChest; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.nbt.NBTTagList; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.tileentity.TileEntityChest; -import net.minecraft.world.World; -import net.minecraftforge.common.util.ForgeDirection; - -import java.util.*; - -public class InventoryUtils { - - /*** - * Try to merge the supplied stack into the supplied slot in the target - * inventory - * - * @param targetInventory - * Although it doesn't return anything, it'll REDUCE the stack - * size of the stack that you pass in - * - * @param slot - * @param stack - */ - public static void tryInsertStack(IInventory targetInventory, int slot, ItemStack stack, boolean canMerge) { - if (targetInventory.isItemValidForSlot(slot, stack)) { - ItemStack targetStack = targetInventory.getStackInSlot(slot); - if (targetStack == null) { - targetInventory.setInventorySlotContents(slot, stack.copy()); - stack.stackSize = 0; - } else if (canMerge) { - if (targetInventory.isItemValidForSlot(slot, stack) && - areMergeCandidates(stack, targetStack)) { - int space = targetStack.getMaxStackSize() - - targetStack.stackSize; - int mergeAmount = Math.min(space, stack.stackSize); - ItemStack copy = targetStack.copy(); - copy.stackSize += mergeAmount; - targetInventory.setInventorySlotContents(slot, copy); - stack.stackSize -= mergeAmount; - } - } - } - } - - public static boolean areItemAndTagEqual(final ItemStack stackA, ItemStack stackB) { - return stackA.isItemEqual(stackB) && ItemStack.areItemStackTagsEqual(stackA, stackB); - } - - public static boolean areMergeCandidates(ItemStack source, ItemStack target) { - return areItemAndTagEqual(source, target) && target.stackSize < target.getMaxStackSize(); - } - - public static void insertItemIntoInventory(IInventory inventory, ItemStack stack) { - insertItemIntoInventory(inventory, stack, ForgeDirection.UNKNOWN, -1); - } - - public static void insertItemIntoInventory(IInventory inventory, ItemStack stack, ForgeDirection side, int intoSlot) { - insertItemIntoInventory(inventory, stack, side, intoSlot, true); - } - - public static void insertItemIntoInventory(IInventory inventory, ItemStack stack, ForgeDirection side, int intoSlot, boolean doMove) { - insertItemIntoInventory(inventory, stack, side, intoSlot, doMove, true); - } - - public static void insertItemIntoInventory(IInventory inventory, ItemStack stack, ForgeDirection side, int intoSlot, boolean doMove, boolean canStack) { - if (stack == null) return; - - final int sideId = side.ordinal(); - IInventory targetInventory = inventory; - - // if we're not meant to move, make a clone of the inventory - if (!doMove) { - GenericInventory copy = new GenericInventory("temporary.inventory", false, targetInventory.getSizeInventory()); - copy.copyFrom(inventory); - targetInventory = copy; - } - - final Set attemptSlots = Sets.newTreeSet(); - - // if it's a sided inventory, get all the accessible slots - final boolean isSidedInventory = inventory instanceof ISidedInventory && side != ForgeDirection.UNKNOWN; - - if (isSidedInventory) { - int[] accessibleSlots = ((ISidedInventory)inventory).getAccessibleSlotsFromSide(sideId); - for (int slot : accessibleSlots) - attemptSlots.add(slot); - } else { - // if it's just a standard inventory, get all slots - for (int a = 0; a < inventory.getSizeInventory(); a++) { - attemptSlots.add(a); - } - } - - // if we've defining a specific slot, we'll just use that - if (intoSlot > -1) attemptSlots.retainAll(ImmutableSet.of(intoSlot)); - - if (attemptSlots.isEmpty()) return; - - for (Integer slot : attemptSlots) { - if (stack.stackSize <= 0) break; - if (isSidedInventory && !((ISidedInventory)inventory).canInsertItem(slot, stack, sideId)) continue; - tryInsertStack(targetInventory, slot, stack, canStack); - } - } - - public static int moveItemInto(IInventory fromInventory, int fromSlot, Object target, int intoSlot, int maxAmount, ForgeDirection direction, boolean doMove) { - return moveItemInto(fromInventory, fromSlot, target, intoSlot, maxAmount, direction, doMove, true); - } - - /*** - * Move an item from the fromInventory, into the target. The target can be - * an inventory or pipe. - * Double checks are automagically wrapped. If you're not bothered what slot - * you insert into, pass -1 for intoSlot. If you're passing false for - * doMove, it'll create a dummy inventory and its calculations on that - * instead - * - * @param fromInventory - * the inventory the item is coming from - * @param fromSlot - * the slot the item is coming from - * @param target - * the inventory you want the item to be put into. can be BC pipe - * or IInventory - * @param intoSlot - * the target slot. Pass -1 for any slot - * @param maxAmount - * The maximum amount you wish to pass - * @param direction - * The direction of the move. Pass UNKNOWN if not applicable - * @param doMove - * @param canStack - * @return The amount of items moved - */ - public static int moveItemInto(IInventory fromInventory, int fromSlot, Object target, int intoSlot, int maxAmount, ForgeDirection direction, boolean doMove, boolean canStack) { - - fromInventory = InventoryUtils.getInventory(fromInventory); - - // if we dont have a stack in the source location, return 0 - ItemStack sourceStack = fromInventory.getStackInSlot(fromSlot); - if (sourceStack == null) { return 0; } - - if (fromInventory instanceof ISidedInventory - && !((ISidedInventory)fromInventory).canExtractItem(fromSlot, sourceStack, direction.ordinal())) return 0; - - // create a clone of our source stack and set the size to either - // maxAmount or the stackSize - ItemStack clonedSourceStack = sourceStack.copy(); - clonedSourceStack.stackSize = Math.min(clonedSourceStack.stackSize, maxAmount); - int amountToMove = clonedSourceStack.stackSize; - int inserted = 0; - - if (target instanceof IInventory) { - IInventory targetInventory = getInventory((IInventory)target); - ForgeDirection side = direction.getOpposite(); - // try insert the item into the target inventory. this'll reduce the - // stackSize of our stack - InventoryUtils.insertItemIntoInventory(targetInventory, clonedSourceStack, side, intoSlot, doMove, canStack); - inserted = amountToMove - clonedSourceStack.stackSize; - - } - - // if we've done the move, reduce/remove the stack from our source - // inventory - if (doMove) { - ItemStack newSourcestack = sourceStack.copy(); - newSourcestack.stackSize -= inserted; - if (newSourcestack.stackSize == 0) { - fromInventory.setInventorySlotContents(fromSlot, null); - } else { - fromInventory.setInventorySlotContents(fromSlot, newSourcestack); - } - } - - return inserted; - } - - private static IInventory doubleChestFix(TileEntity te) { - final World world = te.getWorldObj(); - final int x = te.xCoord; - final int y = te.yCoord; - final int z = te.zCoord; - if (world.getBlock(x - 1, y, z) == Blocks.chest) return new InventoryLargeChest("Large chest", (IInventory)world.getTileEntity(x - 1, y, z), (IInventory)te); - if (world.getBlock(x + 1, y, z) == Blocks.chest) return new InventoryLargeChest("Large chest", (IInventory)te, (IInventory)world.getTileEntity(x + 1, y, z)); - if (world.getBlock(x, y, z - 1) == Blocks.chest) return new InventoryLargeChest("Large chest", (IInventory)world.getTileEntity(x, y, z - 1), (IInventory)te); - if (world.getBlock(x, y, z + 1) == Blocks.chest) return new InventoryLargeChest("Large chest", (IInventory)te, (IInventory)world.getTileEntity(x, y, z + 1)); - return (te instanceof IInventory)? (IInventory)te : null; - } - - public static IInventory getInventory(World world, int x, int y, int z) { - TileEntity tileEntity = world.getTileEntity(x, y, z); - if (tileEntity instanceof TileEntityChest) return doubleChestFix(tileEntity); - if (tileEntity instanceof IInventory) return (IInventory)tileEntity; - return null; - } - - public static IInventory getInventory(World world, int x, int y, int z, ForgeDirection direction) { - if (direction != null) { - x += direction.offsetX; - y += direction.offsetY; - z += direction.offsetZ; - } - return getInventory(world, x, y, z); - - } - - public static IInventory getInventory(IInventory inventory) { - if (inventory instanceof TileEntityChest) return doubleChestFix((TileEntity)inventory); - return inventory; - } - - public static List getInventoryContents(IInventory inventory) { - List result = Lists.newArrayList(); - for (int i = 0; i < inventory.getSizeInventory(); i++) { - ItemStack slot = inventory.getStackInSlot(i); - if (slot != null) result.add(slot); - } - return result; - } - - /*** - * Get the indexes of all slots containing a stack of the supplied item - * type. - * - * @param inventory - * @param stack - * @return Returns a set of the slot indexes - */ - public static Set getSlotsWithStack(IInventory inventory, ItemStack stack) { - inventory = getInventory(inventory); - Set slots = Sets.newHashSet(); - for (int i = 0; i < inventory.getSizeInventory(); i++) { - ItemStack stackInSlot = inventory.getStackInSlot(i); - if (stackInSlot != null && stackInSlot.isItemEqual(stack)) slots.add(i); - } - return slots; - } - - /*** - * Get the first slot containing an item type matching the supplied type. - * - * @param inventory - * @param stack - * @return Returns -1 if none found - */ - public static int getFirstSlotWithStack(IInventory inventory, ItemStack stack) { - inventory = getInventory(inventory); - for (int i = 0; i < inventory.getSizeInventory(); i++) { - ItemStack stackInSlot = inventory.getStackInSlot(i); - if (stackInSlot != null && stackInSlot.isItemEqual(stack)) { return i; } - } - return -1; - } - - /*** - * Consume ONE of the supplied item types - * - * @param inventory - * @param stack - * @return Returns whether or not it was able to - */ - public static boolean consumeInventoryItem(IInventory inventory, ItemStack stack) { - int slotWithStack = getFirstSlotWithStack(inventory, stack); - if (slotWithStack > -1) { - ItemStack stackInSlot = inventory.getStackInSlot(slotWithStack); - stackInSlot.stackSize--; - if (stackInSlot.stackSize == 0) { - inventory.setInventorySlotContents(slotWithStack, null); - } - return true; - } - return false; - } - - /** - * Get the first slot index in an inventory with an item - * - * @param invent - * @return The slot index, or -1 if the inventory is empty - */ - public static int getSlotIndexOfNextStack(IInventory invent) { - for (int i = 0; i < invent.getSizeInventory(); i++) { - ItemStack stack = invent.getStackInSlot(i); - if (stack != null) { return i; } - } - return -1; - } - - /*** - * Removes an item stack from the inventory and returns a copy of it - * - * @param invent - * @return A copy of the stack it removed - */ - public static ItemStack removeNextItemStack(IInventory invent) { - int nextFilledSlot = getSlotIndexOfNextStack(invent); - if (nextFilledSlot > -1) { - ItemStack copy = invent.getStackInSlot(nextFilledSlot).copy(); - invent.setInventorySlotContents(nextFilledSlot, null); - return copy; - } - return null; - } - - public static int moveItemsFromOneOfSides(TileEntity te, IInventory inv, int maxAmount, int intoSlot, Set sides) { - return moveItemsFromOneOfSides(te, inv, null, maxAmount, intoSlot, sides); - } - - public static int moveItemsFromOneOfSides(TileEntity te, IInventory inv, ItemStack filterStack, int maxAmount, int intoSlot, Set sides) { - List shuffledSides = Lists.newArrayList(sides); - Collections.shuffle(shuffledSides); - - IInventory ourInventory = getInventory(inv); - - // loop through the shuffled sides - for (ForgeDirection dir : sides) { - TileEntity tileOnSurface = getTileInDirection(te, dir); - // if it's an inventory - if (tileOnSurface instanceof IInventory) { - final IInventory neighbor = (IInventory)tileOnSurface; - - Set slots; - - if (filterStack == null) slots = getAllSlots(neighbor); - else slots = getSlotsWithStack(neighbor, filterStack); - - for (Integer slot : slots) { - int moved = InventoryUtils.moveItemInto(neighbor, slot, ourInventory, intoSlot, maxAmount, dir.getOpposite(), true); - if (moved > 0) return moved; - } - } - } - return 0; - } - - /** - * Tests to see if an item stack can be inserted in to an inventory Does not - * perform the insertion, only tests the possibility - * - * @param inventory - * The inventory to insert the stack into - * @param item - * the stack to insert - * @return the amount of items that could be put in to the stack - */ - public static int testInventoryInsertion(IInventory inventory, ItemStack item) { - if (item == null || item.stackSize == 0) return 0; - if (inventory == null) return 0; - int slotCount = inventory.getSizeInventory(); - /* - * Allows counting down the item size, without cloning or changing the - * object - */ - int itemSizeCounter = item.stackSize; - for (int i = 0; i < slotCount && itemSizeCounter > 0; i++) { - - if (!inventory.isItemValidForSlot(i, item)) continue; - ItemStack inventorySlot = inventory.getStackInSlot(i); - /* - * If the slot is empty, dump the biggest stack we can, taking in to - * consideration, the remaining amount of stack - */ - if (inventorySlot == null) { - itemSizeCounter -= Math.min(Math.min(itemSizeCounter, inventory.getInventoryStackLimit()), item.getMaxStackSize()); - } - /* If the slot is not empty, check that these items stack */ - else if (areMergeCandidates(item, inventorySlot)) { - /* If they stack, decrement by the amount of space that remains */ - - int space = inventorySlot.getMaxStackSize() - - inventorySlot.stackSize; - itemSizeCounter -= Math.min(itemSizeCounter, space); - } - } - // itemSizeCounter might be less than zero here. It shouldn't be, but I - // don't trust me. -NC - if (itemSizeCounter != item.stackSize) { - itemSizeCounter = Math.max(itemSizeCounter, 0); - return item.stackSize - itemSizeCounter; - } - return 0; - } - - public static Set getAllSlots(IInventory inventory) { - inventory = getInventory(inventory); - Set slots = new HashSet(); - for (int i = 0; i < inventory.getSizeInventory(); i++) { - slots.add(i); - } - return slots; - } - - public static Map getAllItems(IInventory inventory) { - Map result = Maps.newHashMap(); - for (int i = 0; i < inventory.getSizeInventory(); i++) { - ItemStack stack = inventory.getStackInSlot(i); - if (stack != null) result.put(i, stack); - } - - return result; - - } - - public static int moveItemsToOneOfSides(TileEntity te, IInventory inv, int fromSlot, int maxAmount, Set sides) { - // wrap it. Sure, we dont need to really as this'll never be a double - // chest but, whatevs. (M?) - final IInventory inventory = getInventory(inv); - - // if we've not got a stack in that slot, we dont care. - if (inventory.getStackInSlot(fromSlot) == null) return 0; - - // shuffle the sides that have been passed in - List shuffledSides = Lists.newArrayList(sides); - Collections.shuffle(shuffledSides); - - for (ForgeDirection dir : shuffledSides) { - // grab the tile in the current direction - TileEntity tileOnSurface = getTileInDirection(te, dir); - if (tileOnSurface == null) { return 0; } - - int moved = InventoryUtils.moveItemInto(inventory, fromSlot, tileOnSurface, -1, maxAmount, dir, true); - // move the object from our inventory, in the specified slot, to a - // pipe or any slot in an inventory in a particular direction - if (moved > 0) return moved; - } - return 0; - } - - public static boolean inventoryIsEmpty(IInventory inventory) { - for (int i = 0, l = inventory.getSizeInventory(); i < l; i++) - if (inventory.getStackInSlot(i) != null) return false; - return true; - } - - public static boolean tryMergeStacks(ItemStack stackToMerge, ItemStack stackInSlot) { - if (stackInSlot == null || !stackInSlot.isItemEqual(stackToMerge) || !ItemStack.areItemStackTagsEqual(stackToMerge, stackInSlot)) return false; - - int newStackSize = stackInSlot.stackSize + stackToMerge.stackSize; - - final int maxStackSize = stackToMerge.getMaxStackSize(); - if (newStackSize <= maxStackSize) { - stackToMerge.stackSize = 0; - stackInSlot.stackSize = newStackSize; - return true; - } else if (stackInSlot.stackSize < maxStackSize) { - stackToMerge.stackSize -= maxStackSize - stackInSlot.stackSize; - stackInSlot.stackSize = maxStackSize; - return true; - } - - return false; - } - - public static ItemStack returnItem(ItemStack stack) { - return (stack == null || stack.stackSize <= 0)? null : stack.copy(); - } - - public static void swapStacks(IInventory inventory, int slot1, int slot2) { - swapStacks(inventory, slot1, slot2, true, true); - } - - public static void swapStacks(IInventory inventory, int slot1, int slot2, boolean copy, boolean validate) { - Preconditions.checkElementIndex(slot1, inventory.getSizeInventory(), "input slot id"); - Preconditions.checkElementIndex(slot2, inventory.getSizeInventory(), "output slot id"); - - ItemStack stack1 = inventory.getStackInSlot(slot1); - ItemStack stack2 = inventory.getStackInSlot(slot2); - - if (validate) { - isItemValid(inventory, slot2, stack1); - isItemValid(inventory, slot1, stack2); - } - - if (copy) { - if (stack1 != null) stack1 = stack1.copy(); - if (stack2 != null) stack2 = stack2.copy(); - } - - inventory.setInventorySlotContents(slot1, stack2); - inventory.setInventorySlotContents(slot2, stack1); - inventory.markDirty(); - } - - public static void swapStacks(ISidedInventory inventory, int slot1, ForgeDirection side1, int slot2, ForgeDirection side2) { - swapStacks(inventory, slot1, side1, slot2, side2, true, true); - } - - public static void swapStacks(ISidedInventory inventory, int slot1, ForgeDirection side1, int slot2, ForgeDirection side2, boolean copy, boolean validate) { - Preconditions.checkElementIndex(slot1, inventory.getSizeInventory(), "input slot id"); - Preconditions.checkElementIndex(slot2, inventory.getSizeInventory(), "output slot id"); - - ItemStack stack1 = inventory.getStackInSlot(slot1); - ItemStack stack2 = inventory.getStackInSlot(slot2); - - if (validate) { - isItemValid(inventory, slot2, stack1); - isItemValid(inventory, slot1, stack2); - - canExtract(inventory, slot1, side1, stack1); - canInsert(inventory, slot2, side2, stack1); - - canExtract(inventory, slot2, side2, stack2); - canInsert(inventory, slot1, side1, stack2); - } - - if (copy) { - if (stack1 != null) stack1 = stack1.copy(); - if (stack2 != null) stack2 = stack2.copy(); - } - - inventory.setInventorySlotContents(slot1, stack2); - inventory.setInventorySlotContents(slot2, stack1); - inventory.markDirty(); - } - - protected static void isItemValid(IInventory inventory, int slot, ItemStack stack) { - Preconditions.checkArgument(inventory.isItemValidForSlot(slot, stack), "Slot %s cannot accept item", slot); - } - - protected static void canInsert(ISidedInventory inventory, int slot, ForgeDirection side, ItemStack stack) { - Preconditions.checkArgument(inventory.canInsertItem(slot, stack, side.ordinal()), - "Item cannot be inserted into slot %s on side %s", slot, side); - } - - protected static void canExtract(ISidedInventory inventory, int slot, ForgeDirection side, ItemStack stack) { - Preconditions.checkArgument(inventory.canExtractItem(slot, stack, side.ordinal()), - "Item cannot be extracted from slot %s on side %s", slot, side); - } - - public static TileEntity getTileInDirection(TileEntity tile, ForgeDirection direction) { - int targetX = tile.xCoord + direction.offsetX; - int targetY = tile.yCoord + direction.offsetY; - int targetZ = tile.zCoord + direction.offsetZ; - return tile.getWorldObj().getTileEntity(targetX, targetY, targetZ); - } - - public static class GenericInventory implements IInventory { - - protected String inventoryTitle; - protected int slotsCount; - protected ItemStack[] inventoryContents; - protected boolean isInvNameLocalized; - - public GenericInventory(String name, boolean isInvNameLocalized, int size) { - this.isInvNameLocalized = isInvNameLocalized; - this.slotsCount = size; - this.inventoryTitle = name; - this.inventoryContents = new ItemStack[size]; - } - - @Override - public ItemStack decrStackSize(int par1, int par2) - { - if (this.inventoryContents[par1] != null) - { - ItemStack itemstack; - - if (this.inventoryContents[par1].stackSize <= par2) - { - itemstack = this.inventoryContents[par1]; - this.inventoryContents[par1] = null; - return itemstack; - } - itemstack = this.inventoryContents[par1].splitStack(par2); - if (this.inventoryContents[par1].stackSize == 0) - { - this.inventoryContents[par1] = null; - } - - return itemstack; - } - return null; - } - - @Override - public int getInventoryStackLimit() { - return 64; - } - - @Override - public int getSizeInventory() { - return slotsCount; - } - - @Override - public ItemStack getStackInSlot(int i) { - return this.inventoryContents[i]; - } - - public ItemStack getStackInSlot(Enum i) { - return getStackInSlot(i.ordinal()); - } - - @Override - public ItemStack getStackInSlotOnClosing(int i) { - if (i >= this.inventoryContents.length) { return null; } - if (this.inventoryContents[i] != null) { - ItemStack itemstack = this.inventoryContents[i]; - this.inventoryContents[i] = null; - return itemstack; - } - return null; - } - - public boolean isItem(int slot, Item item) { - return inventoryContents[slot] != null - && inventoryContents[slot].getItem() == item; - } - - @Override - public boolean isItemValidForSlot(int i, ItemStack itemstack) { - return true; - } - - @Override - public boolean isUseableByPlayer(EntityPlayer entityplayer) { - return true; - } - - - public void clearAndSetSlotCount(int amount) { - this.slotsCount = amount; - inventoryContents = new ItemStack[amount]; - } - - public void readFromNBT(NBTTagCompound tag) { - if (tag.hasKey("size")) { - this.slotsCount = tag.getInteger("size"); - } - NBTTagList nbttaglist = tag.getTagList("Items", 10); - inventoryContents = new ItemStack[slotsCount]; - for (int i = 0; i < nbttaglist.tagCount(); i++) { - NBTTagCompound stacktag = nbttaglist.getCompoundTagAt(i); - int j = stacktag.getByte("Slot"); - if (j >= 0 && j < inventoryContents.length) { - inventoryContents[j] = ItemStack.loadItemStackFromNBT(stacktag); - } - } - } - - @Override - public void setInventorySlotContents(int i, ItemStack itemstack) { - this.inventoryContents[i] = itemstack; - - if (itemstack != null && itemstack.stackSize > getInventoryStackLimit()) { - itemstack.stackSize = getInventoryStackLimit(); - } - } - - public void writeToNBT(NBTTagCompound tag) { - tag.setInteger("size", getSizeInventory()); - NBTTagList nbttaglist = new NBTTagList(); - for (int i = 0; i < inventoryContents.length; i++) { - if (inventoryContents[i] != null) { - NBTTagCompound stacktag = new NBTTagCompound(); - stacktag.setByte("Slot", (byte)i); - inventoryContents[i].writeToNBT(stacktag); - nbttaglist.appendTag(stacktag); - } - } - tag.setTag("Items", nbttaglist); - } - - /** - * This bastard never even gets called, so don't rely on it. - */ - @Override - public void markDirty() { - } - - public void copyFrom(IInventory inventory) { - for (int i = 0; i < inventory.getSizeInventory(); i++) { - if (i < getSizeInventory()) { - ItemStack stack = inventory.getStackInSlot(i); - if (stack != null) { - setInventorySlotContents(i, stack.copy()); - } else { - setInventorySlotContents(i, null); - } - } - } - } - - public List contents() { - return Arrays.asList(inventoryContents); - } - - @Override - public String getInventoryName() { - return this.inventoryTitle; - } - - @Override - public boolean hasCustomInventoryName() { - return this.isInvNameLocalized; - } - - @Override - public void openInventory() {} - - @Override - public void closeInventory() {} - } -} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/utills/ItemConfigField.java b/src/main/java/com/brandon3055/draconicevolution/common/utills/ItemConfigField.java index 360bd1c6..1833eecf 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/utills/ItemConfigField.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/utills/ItemConfigField.java @@ -1,5 +1,7 @@ package com.brandon3055.draconicevolution.common.utills; +import com.brandon3055.brandonscore.common.utills.DataUtills; +import com.brandon3055.brandonscore.common.utills.InfoHelper; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.network.ItemConfigPacket; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/utills/ItemNBTHelper.java b/src/main/java/com/brandon3055/draconicevolution/common/utills/ItemNBTHelper.java deleted file mode 100644 index c6d4e813..00000000 --- a/src/main/java/com/brandon3055/draconicevolution/common/utills/ItemNBTHelper.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.brandon3055.draconicevolution.common.utills; - -import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; - - -public final class ItemNBTHelper { - - - - // SETTERS /////////////////////////////////////////////////////////////////// - public static NBTTagCompound getCompound(ItemStack stack){ - if (stack.getTagCompound() == null) stack.setTagCompound(new NBTTagCompound()); - return stack.getTagCompound(); - } - - public static ItemStack setByte(ItemStack stack, String tag, byte b) - { - NBTTagCompound compound = getCompound(stack); - compound.setByte(tag, b); - stack.setTagCompound(compound); - return stack; - } - - public static ItemStack setBoolean(ItemStack stack, String tag, boolean b) - { - NBTTagCompound compound = getCompound(stack); - compound.setBoolean(tag, b); - stack.setTagCompound(compound); - return stack; - } - - public static ItemStack setShort(ItemStack stack, String tag, short s) - { - NBTTagCompound compound = getCompound(stack); - compound.setShort(tag, s); - stack.setTagCompound(compound); - return stack; - } - - public static ItemStack setInteger(ItemStack stack, String tag, int i) - { - NBTTagCompound compound = getCompound(stack); - compound.setInteger(tag, i); - stack.setTagCompound(compound); - return stack; - } - - public static ItemStack setLong(ItemStack stack, String tag, long i) - { - NBTTagCompound compound = getCompound(stack); - compound.setLong(tag, i); - stack.setTagCompound(compound); - return stack; - } - - public static ItemStack setFloat(ItemStack stack, String tag, float f) - { - NBTTagCompound compound = getCompound(stack); - compound.setFloat(tag, f); - stack.setTagCompound(compound); - return stack; - } - - public static ItemStack setDouble(ItemStack stack, String tag, double d) - { - NBTTagCompound compound = getCompound(stack); - compound.setDouble(tag, d); - stack.setTagCompound(compound); - return stack; - } - - public static ItemStack setString(ItemStack stack, String tag, String s) { - NBTTagCompound compound = getCompound(stack); - compound.setString(tag, s); - stack.setTagCompound(compound); - return stack; - } - - // GETTERS /////////////////////////////////////////////////////////////////// - - public static boolean verifyExistance(ItemStack stack, String tag) { - NBTTagCompound compound = stack.getTagCompound(); - if (compound == null) - return false; - else - return stack.getTagCompound().hasKey(tag); - } - - public static byte getByte(ItemStack stack, String tag, byte defaultExpected) { - return verifyExistance(stack, tag) ? stack.getTagCompound().getByte(tag) : defaultExpected; - } - - public static boolean getBoolean(ItemStack stack, String tag, boolean defaultExpected) { - return verifyExistance(stack, tag) ? stack.getTagCompound().getBoolean(tag) : defaultExpected; - } - - public static short getShort(ItemStack stack, String tag, short defaultExpected) { - return verifyExistance(stack, tag) ? stack.getTagCompound().getShort(tag) : defaultExpected; - } - - public static int getInteger(ItemStack stack, String tag, int defaultExpected) { - return verifyExistance(stack, tag) ? stack.getTagCompound().getInteger(tag) : defaultExpected; - } - - public static long getLong(ItemStack stack, String tag, long defaultExpected) { - return verifyExistance(stack, tag) ? stack.getTagCompound().getLong(tag) : defaultExpected; - } - - public static float getFloat(ItemStack stack, String tag, float defaultExpected) { - return verifyExistance(stack, tag) ? stack.getTagCompound().getFloat(tag) : defaultExpected; - } - - public static double getDouble(ItemStack stack, String tag, double defaultExpected) { - return verifyExistance(stack, tag) ? stack.getTagCompound().getDouble(tag) : defaultExpected; - } - - public static String getString(ItemStack stack, String tag, String defaultExpected) { - return verifyExistance(stack, tag) ? stack.getTagCompound().getString(tag) : defaultExpected; - } -} \ No newline at end of file diff --git a/src/main/java/com/brandon3055/draconicevolution/common/utills/PortalHelper.java b/src/main/java/com/brandon3055/draconicevolution/common/utills/PortalHelper.java new file mode 100644 index 00000000..ec0a7bf5 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/common/utills/PortalHelper.java @@ -0,0 +1,207 @@ +package com.brandon3055.draconicevolution.common.utills; + +import com.brandon3055.draconicevolution.common.ModBlocks; +import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TileDislocatorReceptacle; +import com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.TilePortalBlock; +import net.minecraft.block.Block; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.world.World; +import net.minecraft.world.chunk.Chunk; +import net.minecraftforge.common.util.ForgeDirection; + +/** + * Created by Brandon on 23/5/2015. + */ +public class PortalHelper { + + static int iterationNow = 0; + + public static boolean isFrame(Block block) { return block == ModBlocks.infusedObsidian; } + + public static boolean isReceptacle(Block block) { return block == ModBlocks.dislocatorReceptacle; } + + public static boolean isPortal(Block block) { return block == ModBlocks.portal; } + + public static PortalStructure getValidStructure(World world, int x, int y, int z) { + if (world.isRemote) return null; + + for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS){ + for (ForgeDirection plane : ForgeDirection.VALID_DIRECTIONS){ + if (plane != direction && plane != direction.getOpposite()) { + PortalStructure structure = traceFrame(world, x, y, z, direction, plane); + if (structure != null && structure.scanPortal(world, x, y, z, false, false)) return structure; + } + } + } + + return null; + } + + public static PortalStructure traceFrame(World world, int x, int y, int z, ForgeDirection startDir, ForgeDirection plane){ + int MAX_SIZE = 150; + int startX = x + startDir.offsetX; + int startY = y + startDir.offsetY; + int startZ = z + startDir.offsetZ; + + //Check that the trace is starting from a receptacle + if (!world.isAirBlock(startX, startY, startZ)) return null; + + int xSize = 0; + int ySize = 0; + int yOffset = 0; + + //Get X size + for (int i = 0; i <= MAX_SIZE; i++){ + Block block = world.getBlock(startX + i * startDir.offsetX, startY + i * startDir.offsetY, startZ + i * startDir.offsetZ); + if (isFrame(block)) { + xSize = i; + break; + } + else if (!world.isAirBlock(startX + i * startDir.offsetX, startY + i * startDir.offsetY, startZ + i * startDir.offsetZ)) return null; + } + + //Get Y size above receptacle + for (int i = 0; i <= MAX_SIZE; i++){ + Block block = world.getBlock(startX + i * plane.offsetX, startY + i * plane.offsetY, startZ + i * plane.offsetZ); + if (isFrame(block)) { + ySize = i; + break; + } + else if (!world.isAirBlock(startX + i * plane.offsetX, startY + i * plane.offsetY, startZ + i * plane.offsetZ)) return null; + } + + //Get Y size below receptacle and get y offset + for (int i = 0; i <= MAX_SIZE; i++){ + Block block = world.getBlock(startX - i * plane.offsetX, startY - i * plane.offsetY, startZ - i * plane.offsetZ); + if (isFrame(block)) { + ySize += i - 1; + yOffset = i; + break; + } + else if (!world.isAirBlock(startX - i * plane.offsetX, startY - i * plane.offsetY, startZ - i * plane.offsetZ)) return null; + + } + + if (xSize == 0 || ySize == 0 || ySize > MAX_SIZE) return null; + + PortalStructure structure = new PortalStructure(xSize, ySize, yOffset, startDir, plane); + + if (!structure.checkFrameIsValid(world, x, y, z) || !structure.scanPortal(world, x, y, z, false, false)) return null; + + + return structure; + } + + public static class PortalStructure { + + public int xSize; + public int ySize; + public int yOffset; + public ForgeDirection startDir; + public ForgeDirection plane; + + public PortalStructure(){} + + public PortalStructure(int xSize, int ySize, int yOffset, ForgeDirection startDir, ForgeDirection plane){ + this.xSize = xSize; + this.ySize = ySize; + this.yOffset = yOffset; + this.startDir = startDir; + this.plane = plane; + } + + public boolean checkFrameIsValid(World world, int x, int y, int z) { + + int startX = x + startDir.offsetX; + int startY = y + startDir.offsetY; + int startZ = z + startDir.offsetZ; + + //Check structure for y size + for (int y1 = 1; y1 <= ySize; y1++){ + int y2 = y1 - yOffset; + + int inX = startX + y2 * plane.offsetX - startDir.offsetX; + int inY = startY + y2 * plane.offsetY - startDir.offsetY; + int inZ = startZ + y2 * plane.offsetZ - startDir.offsetZ; + + int outX = startX + y2 * plane.offsetX + (xSize) * startDir.offsetX; + int outY = startY + y2 * plane.offsetY + (xSize) * startDir.offsetY; + int outZ = startZ + y2 * plane.offsetZ + (xSize) * startDir.offsetZ; + + if (!isFrame(world.getBlock(inX, inY, inZ)) && !(inX == x && inY == y && inZ == z)) return false; + if (!isFrame(world.getBlock(outX, outY, outZ))) return false; + } + + //Check structure for x size + for (int x1 = 0; x1 < xSize; x1++){ + int upX = startX + x1 * startDir.offsetX - yOffset * plane.offsetX; + int upY = startY + x1 * startDir.offsetY - yOffset * plane.offsetY; + int upZ = startZ + x1 * startDir.offsetZ - yOffset * plane.offsetZ; + + int downX = startX + x1 * startDir.offsetX + (ySize - yOffset + 1) * plane.offsetX; + int downY = startY + x1 * startDir.offsetY + (ySize - yOffset + 1) * plane.offsetY; + int downZ = startZ + x1 * startDir.offsetZ + (ySize - yOffset + 1) * plane.offsetZ; + + if (!isFrame(world.getBlock(upX, upY, upZ))) return false; + if (!isFrame(world.getBlock(downX, downY, downZ))) return false; + } + + return true; + } + + public boolean scanPortal(World world, int x, int y, int z, boolean setPortalBlocks, boolean checkPortalBlocks){ + int startX = x + startDir.offsetX; + int startY = y + startDir.offsetY; + int startZ = z + startDir.offsetZ; + + TileDislocatorReceptacle receptacle = (TileDislocatorReceptacle) world.getTileEntity(x, y, z); + if (receptacle == null) return false; + if (setPortalBlocks) receptacle.updating = true; + + for (int x1 = 0; x1 < xSize; x1++){ + for (int y1 = 1; y1 <= ySize; y1++) + { + int y2 = y1 - yOffset; + int X = (startX + x1 * startDir.offsetX) + y2 * plane.offsetX; + int Y = (startY + x1 * startDir.offsetY) + y2 * plane.offsetY; + int Z = (startZ + x1 * startDir.offsetZ) + y2 * plane.offsetZ; + + Block block = world.getBlock(X, Y, Z); + + if (checkPortalBlocks){ + if (!isPortal(block)) return false; + } + else if (setPortalBlocks) { + world.setBlock(X, Y, Z, ModBlocks.portal); + Chunk chunk = world.getChunkFromBlockCoords(X, Z); + TilePortalBlock tile = (TilePortalBlock) chunk.func_150806_e(X & 15, Y, Z & 15); + tile.masterX = x; + tile.masterY = y; + tile.masterZ = z; + } + else if (!world.isAirBlock(X, Y, Z)) return false; + } + } + + if (setPortalBlocks) receptacle.updating = false; + + return true; + } + + public void writeToNBT(NBTTagCompound compound){ + compound.setInteger("XSize", xSize); + compound.setInteger("YSize", ySize); + compound.setInteger("YOffset", yOffset); + compound.setString("StartDir", startDir.name()); + compound.setString("Plane", plane.name()); + } + + public void readFromNBT(NBTTagCompound compound){ + xSize = compound.getInteger("XSize"); + ySize = compound.getInteger("YSize"); + yOffset = compound.getInteger("YOffset"); + startDir = ForgeDirection.valueOf(compound.getString("StartDir")); + plane = ForgeDirection.valueOf(compound.getString("Plane")); + } + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/utills/ShapedOreEnergyRecipe.java b/src/main/java/com/brandon3055/draconicevolution/common/utills/ShapedOreEnergyRecipe.java index 231d230f..420e8ce1 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/utills/ShapedOreEnergyRecipe.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/utills/ShapedOreEnergyRecipe.java @@ -1,6 +1,7 @@ package com.brandon3055.draconicevolution.common.utills; import cofh.api.energy.IEnergyContainerItem; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import net.minecraft.block.Block; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.Item; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/utills/Teleporter.java b/src/main/java/com/brandon3055/draconicevolution/common/utills/Teleporter.java deleted file mode 100644 index 4d9e46b5..00000000 --- a/src/main/java/com/brandon3055/draconicevolution/common/utills/Teleporter.java +++ /dev/null @@ -1,291 +0,0 @@ -package com.brandon3055.draconicevolution.common.utills; - -import com.brandon3055.draconicevolution.DraconicEvolution; -import cpw.mods.fml.common.FMLCommonHandler; -import net.minecraft.entity.Entity; -import net.minecraft.entity.EntityList; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.entity.player.EntityPlayerMP; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.network.play.server.S07PacketRespawn; -import net.minecraft.network.play.server.S1DPacketEntityEffect; -import net.minecraft.network.play.server.S1FPacketSetExperience; -import net.minecraft.potion.PotionEffect; -import net.minecraft.world.World; -import net.minecraft.world.WorldServer; - -public class Teleporter -{ - - public static class TeleportLocation { - protected double xCoord; - protected double yCoord; - protected double zCoord; - protected int dimension; - protected float pitch; - protected float yaw; - protected String name; - protected String dimentionName = ""; - protected boolean writeProtected = false; - - public TeleportLocation(){ - - } - - public TeleportLocation(double x, double y, double z, int dimension){ - this.xCoord = x; - this.yCoord = y; - this.zCoord = z; - this.dimension = dimension; - this.pitch = 0; - this.yaw = 0; - } - - public TeleportLocation(double x, double y, double z, int dimension, float pitch, float yaw){ - this.xCoord = x; - this.yCoord = y; - this.zCoord = z; - this.dimension = dimension; - this.pitch = pitch; - this.yaw = yaw; - } - - public TeleportLocation(double x, double y, double z, int dimension, float pitch, float yaw, String name){ - this.xCoord = x; - this.yCoord = y; - this.zCoord = z; - this.dimension = dimension; - this.pitch = pitch; - this.yaw = yaw; - this.name = name; - } - - public double getXCoord(){ - return xCoord; - } - - public double getYCoord(){ - return yCoord; - } - - public double getZCoord(){ - return zCoord; - } - - public int getDimension() {return dimension;} - - public String getDimensionName() { - return dimentionName; - } - - public float getPitch() {return pitch;} - - public float getYaw() {return yaw;} - - public String getName() {return name;} - - public boolean getWriteProtected() {return writeProtected;} - - public void setXCoord(double x){ - xCoord = x; - } - - public void setYCoord(double y){ - yCoord = y; - } - - public void setZCoord(double z){ - zCoord = z; - } - - public void setDimension(int d) {dimension = d;} - - public void setPitch(float p) {pitch = p;} - - public void setYaw(float y) {yaw = y;} - - public void setName(String s) {name = s;} - - public void setWriteProtected(boolean b) {writeProtected = b;} - - public void writeToNBT(NBTTagCompound compound) { - compound.setDouble("X", xCoord); - compound.setDouble("Y", yCoord); - compound.setDouble("Z", zCoord); - compound.setInteger("Dimension", dimension); - compound.setFloat("Pitch", pitch); - compound.setFloat("Yaw", yaw); - compound.setString("Name", name); - compound.setString("DimentionName", dimentionName); - compound.setBoolean("WP", writeProtected); - } - - public void readFromNBT(NBTTagCompound compound) { - xCoord = compound.getDouble("X"); - yCoord = compound.getDouble("Y"); - zCoord = compound.getDouble("Z"); - dimension = compound.getInteger("Dimension"); - pitch = compound.getFloat("Pitch"); - yaw = compound.getFloat("Yaw"); - name = compound.getString("Name"); - dimentionName = compound.getString("DimentionName"); - writeProtected = compound.getBoolean("WP"); - } - - public void sendEntityToCoords(Entity entity){ - entity.worldObj.playSoundEffect(entity.posX, entity.posY, entity.posZ, "portal.travel", 0.1F, entity.worldObj.rand.nextFloat() * 0.1F + 0.9F); - - teleportEntity(entity, this); -// boolean dimensional = false; -// -// if (entity.dimension != dimension) dimensional = true; -// -// if (entity instanceof EntityPlayerMP){ -// EntityPlayerMP player = (EntityPlayerMP)entity; -// Entity ridingEntity = player.ridingEntity; -// -// if (dimensional)transferPlayerToDimension(player, dimension, player.mcServer.getConfigurationManager()); -// player.rotationPitch = pitch; -// player.rotationYaw = yaw; -// player.setPositionAndUpdate(xCoord, yCoord+0.3, zCoord); -// -// if (ridingEntity != null){ -// if (dimensional)transferEntityToWorld(ridingEntity, (WorldServer)entity.worldObj, MinecraftServer.getServer().worldServerForDimension(dimension)); -// ridingEntity.setPosition(xCoord, yCoord + 0.3, zCoord); -// } -// } -// else { -// LogHelper.info("current dimension "+MinecraftServer.getServer().worldServerForDimension(entity.dimension).provider.getDimensionName()); -// LogHelper.info("new dimension "+MinecraftServer.getServer().worldServerForDimension(dimension).provider.getDimensionName()); -// //entity.setPosition(xCoord, yCoord + 0.3, zCoord); -// //entity.setLocationAndAngles(xCoord, yCoord + 0.3, zCoord, yaw, pitch); -// LogHelper.info(dimensional); -// if (dimensional) travelEntity(entity.worldObj, entity);//transferEntityToWorld(entity, MinecraftServer.getServer().worldServerForDimension(entity.dimension), MinecraftServer.getServer().worldServerForDimension(dimension)); -// } -// -// entity.fallDistance = 0; - entity.worldObj.playSoundEffect(entity.posX, entity.posY, entity.posZ, "portal.travel", 0.1F, entity.worldObj.rand.nextFloat() * 0.1F + 0.9F); - } - - public void setDimentionName(String dimentionName) { - this.dimentionName = dimentionName; - } - } - - - - @SuppressWarnings("unchecked") - private static Entity teleportEntity(Entity entity, TeleportLocation destination) - { - if (entity == null || entity.worldObj.isRemote) return entity; - - World startWorld = entity.worldObj; - World destinationWorld = DraconicEvolution.proxy.getMCServer().worldServerForDimension(destination.dimension); - - if (destinationWorld == null){ - LogHelper.error("Destination world dose not exist!"); - return entity; - } - - Entity mount = entity.ridingEntity; - if (entity.ridingEntity != null) - { - entity.mountEntity(null); - mount = teleportEntity(mount, destination); - } - - boolean interDimensional = startWorld.provider.dimensionId != destinationWorld.provider.dimensionId; - - startWorld.updateEntityWithOptionalForce(entity, false);//added - - if ((entity instanceof EntityPlayerMP) && interDimensional) - { - EntityPlayerMP player = (EntityPlayerMP)entity; - player.closeScreen();//added - player.dimension = destination.dimension; - player.playerNetServerHandler.sendPacket(new S07PacketRespawn(player.dimension, player.worldObj.difficultySetting, destinationWorld.getWorldInfo().getTerrainType(), player.theItemInWorldManager.getGameType())); - ((WorldServer)startWorld).getPlayerManager().removePlayer(player); - - startWorld.playerEntities.remove(player); - startWorld.updateAllPlayersSleepingFlag(); - int i = entity.chunkCoordX; - int j = entity.chunkCoordZ; - if ((entity.addedToChunk) && (startWorld.getChunkProvider().chunkExists(i, j))) - { - startWorld.getChunkFromChunkCoords(i, j).removeEntity(entity); - startWorld.getChunkFromChunkCoords(i, j).isModified = true; - } - startWorld.loadedEntityList.remove(entity); - startWorld.onEntityRemoved(entity); - } - - entity.setLocationAndAngles(destination.xCoord, destination.yCoord, destination.zCoord, destination.yaw, destination.pitch); - - ((WorldServer)destinationWorld).theChunkProviderServer.loadChunk((int)destination.xCoord >> 4, (int)destination.zCoord >> 4); - - destinationWorld.theProfiler.startSection("placing"); - if (interDimensional) - { - if (!(entity instanceof EntityPlayer)) - { - NBTTagCompound entityNBT = new NBTTagCompound(); - entity.isDead = false; - entityNBT.setString("id", EntityList.getEntityString(entity)); - entity.writeToNBT(entityNBT); - entity.isDead = true; - entity = EntityList.createEntityFromNBT(entityNBT, destinationWorld); - if (entity == null) - { - LogHelper.error("Failed to teleport entity to new location"); - return null; - } - entity.dimension = destinationWorld.provider.dimensionId; - } - destinationWorld.spawnEntityInWorld(entity); - entity.setWorld(destinationWorld); - } - entity.setLocationAndAngles(destination.xCoord, destination.yCoord, destination.zCoord, destination.yaw, entity.rotationPitch); - - destinationWorld.updateEntityWithOptionalForce(entity, false); - entity.setLocationAndAngles(destination.xCoord, destination.yCoord, destination.zCoord, destination.yaw, entity.rotationPitch); - - if ((entity instanceof EntityPlayerMP)) - { - EntityPlayerMP player = (EntityPlayerMP)entity; - if (interDimensional) { - player.mcServer.getConfigurationManager().func_72375_a(player, (WorldServer) destinationWorld); - } - player.playerNetServerHandler.setPlayerLocation(destination.xCoord, destination.yCoord, destination.zCoord, player.rotationYaw, player.rotationPitch); - } - - destinationWorld.updateEntityWithOptionalForce(entity, false); - - if (((entity instanceof EntityPlayerMP)) && interDimensional) - { - EntityPlayerMP player = (EntityPlayerMP)entity; - player.theItemInWorldManager.setWorld((WorldServer) destinationWorld); - player.mcServer.getConfigurationManager().updateTimeAndWeatherForPlayer(player, (WorldServer) destinationWorld); - player.mcServer.getConfigurationManager().syncPlayerInventory(player); - - for (PotionEffect potionEffect : (Iterable) player.getActivePotionEffects()) - { - player.playerNetServerHandler.sendPacket(new S1DPacketEntityEffect(player.getEntityId(), potionEffect)); - } - - player.playerNetServerHandler.sendPacket(new S1FPacketSetExperience(player.experience, player.experienceTotal, player.experienceLevel)); - FMLCommonHandler.instance().firePlayerChangedDimensionEvent(player, startWorld.provider.dimensionId, destinationWorld.provider.dimensionId); - } - entity.setLocationAndAngles(destination.xCoord, destination.yCoord, destination.zCoord, destination.yaw, entity.rotationPitch); - - if (mount != null) - { - entity.mountEntity(mount); - if ((entity instanceof EntityPlayerMP)) { - destinationWorld.updateEntityWithOptionalForce(entity, true); - } - } - destinationWorld.theProfiler.endSection(); - entity.fallDistance = 0; - return entity; - } -} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/utills/Utills.java b/src/main/java/com/brandon3055/draconicevolution/common/utills/Utills.java deleted file mode 100644 index b726fd94..00000000 --- a/src/main/java/com/brandon3055/draconicevolution/common/utills/Utills.java +++ /dev/null @@ -1,80 +0,0 @@ -package com.brandon3055.draconicevolution.common.utills; - -import cpw.mods.fml.common.FMLCommonHandler; -import cpw.mods.fml.common.registry.GameData; -import net.minecraft.item.ItemStack; - -/** - * Created by Brandon on 25/07/2014. - */ -public class Utills { - - public static String formatNumber(double value){ - if (value < 1000D) - return String.valueOf(value); - else if (value < 1000000D) - return String.valueOf(Math.round(value)/1000D) + "K"; - else if (value < 1000000000D) - return String.valueOf(Math.round(value/1000D)/1000D) + "M"; - else if (value < 1000000000000D) - return String.valueOf(Math.round(value/1000000D)/1000D) + "B"; - else - return String.valueOf(Math.round(value/1000000000D)/1000D) + "T"; - } - - /** - * Calculates the exact distance between two points in 3D space - * @param x1 point A x - * @param y1 point A y - * @param z1 point A z - * @param x2 point B x - * @param y2 point B y - * @param z2 point B z - * @return The distance between point A and point B - */ - public static double getDistanceAtoB(double x1, double y1, double z1, double x2, double y2, double z2){ - double dx = x1-x2; - double dy = y1-y2; - double dz = z1-z2; - return Math.sqrt((dx*dx + dy*dy + dz*dz )); - } - - /** - * Calculates the exact distance between two points in 2D space - * @param x1 point A x - * @param z1 point A z - * @param x2 point B x - * @param z2 point B z - * @return The distance between point A and point B - */ - public static double getDistanceAtoB(double x1, double z1, double x2, double z2){ - double dx = x1-x2; - double dz = z1-z2; - return Math.sqrt((dx*dx + dz*dz )); - } - - public static final boolean isSinglePlayerServer() - { - return FMLCommonHandler.instance().getMinecraftServerInstance() != null; - } - - public static final boolean isMultiPlayerServer() - { - return FMLCommonHandler.instance().getMinecraftServerInstance() == null; - } - - public static ItemStack getStackFromName(String name, int meta) - { - if (name.contains("tile.")) - { - name = name.replace("draconicevolution", "DraconicEvolution").replace("tile.", ""); - if (GameData.getBlockRegistry().getObject(name) != null) return new ItemStack(GameData.getBlockRegistry().getObject(name), 1, meta); - } - if (name.contains("item.")) - { - name = name.replace("draconicevolution", "DraconicEvolution").replace("item.", ""); - if (GameData.getItemRegistry().getObject(name) != null) return new ItemStack(GameData.getItemRegistry().getObject(name), 1, meta); - } - return null; - } -} diff --git a/src/main/resources/assets/draconicevolution/lang/en_US.lang b/src/main/resources/assets/draconicevolution/lang/en_US.lang index fc52f9cd..4940ba8b 100644 --- a/src/main/resources/assets/draconicevolution/lang/en_US.lang +++ b/src/main/resources/assets/draconicevolution/lang/en_US.lang @@ -1,79 +1,33 @@ //Description format \n=Force new line \% at start of line=add half line space above line //Tile Information ---------------------------------------------------------------------------------------------------------------------------------------- tile.draconicevolution:xRayBlock.name=Distortion Flame ------tile.draconicevolution:xRayBlock.description=Many of you have probably seen a graphical glitch that sometimes occurs when chunks load that allows you to see through the world and see all of the cave caves and tunnels bellow. This block replicates that effect. When you place it next to another block the face of the block it is touching becomes transparent allowing you to see through the world. This can be very useful for finding cave systems and dungeons maby even things other players don’t want you to find. Such a block dose not come cheap. It will cost you several Nether Stars and it is so fragile that once placed it can not be collected without destroying it. (not even with silk touch) - tile.draconicevolution:sunDial.name=Sun Dial ------tile.draconicevolution:sunDial.description=This is an extremely powerful block that allows you to change the time. Simply place it in the world and and apply a constant redstone signal. Once the device charges it will fire a particle beam at the sun accelerating it to 30X its normal speed. Simply shut off the redstone signal when you have the sun where you want it. - tile.draconicevolution:weatherController.name=Weather Controller ------tile.draconicevolution:weatherController.description=This is a block that allows you to control the weather. To use it place some emeralds in its inventory and select a mode. There are 3 available modes Rain off, Rain on and Thunder storm. To activate apply a redstone signal. - tile.draconicevolution:draconiumOre.name=Draconium Ore ------tile.draconicevolution:draconiumOre.description=The very basis of Draconic Research - tile.draconicevolution:grinder.name=Mob Grinder ------tile.draconicevolution:grinder.description=Everyone needs effective mob farms. For the cost of a bit of solid fuel (coal, charcoal, etc.) or RF power, you can kill to your hearts content knowing the forces of the Draconic have your back! The grinder will kill all mobs in a 7x7 area in front of it. It is much more efficient and can kill mobs faster if powered by RF. - tile.draconicevolution:potentiometer.name=Potentiometer ------tile.draconicevolution:potentiometer.description=A simple redstone emitter that is capable of emitting a variable strength redstone signal between 0 and 15. - tile.draconicevolution:rainSensor.name=Rain Sensor ------tile.draconicevolution:rainSensor.description=A device that emits a redstine signal when it rains. This is perfect for controlling the weather controller. - tile.draconicevolution:particleGenerator.name=Particle Generator ------tile.draconicevolution:particleGenerator.description=Purely decorative, this blocks allows for fully customizable particle effects to be created. For more information check out the instruction manual built into its GUI. - tile.draconicevolution:playerDetector.name=Player Detector ------tile.draconicevolution:playerDetector.description=Simple player detection, can be adjusted up to 10 blocks range to detect any players nearby. - tile.draconicevolution:playerDetectorAdvanced.name=Advanced Player Detector ------tile.draconicevolution:playerDetectorAdvanced.description=This is an advanced version of the player detector it has the following features. Max range of 20 blocks. Whitelist/Blacklist for fine tuning who you do or don’t want. Camouflage – Hide your detector so no one sees it. Inverted out put (less redstone needed!). - tile.draconicevolution:energyInfuser.name=Energy Infuser ------tile.draconicevolution:energyInfuser.description=Seeing the need for faster energy transfer you have found a way to bring the infuser to being. Has a faster transfer rate than most other mod’s RF recharge stations (and cool particle effects to boot!) - tile.draconicevolution:customSpawner.name=Stabilized Mob Spawner ------tile.draconicevolution:customSpawner.description=To get started, right click any vanilla spawner with a draconic core to stabilize it. You now have a empty transportable spawner (pick up with draconic tools) Use any mob soul on the spawner to change it to that type. There are several items you can use to upgrade the spawner:\n\%-Wyvern Core: Upgrades to tier 2 (increases spawn count and speed)\n\%-Awakened Core: Upgrades to tier 3 (further increases spawn count and speed)\n\%-Nether Star: Removes the requirement for a player to be within 16 blocks for the spawner to function.\n\%-Notch Apple: Makes the spawner ignore spawn requirements for the mob it is spawning e.g. Will make monsters spawn even if the light level is to high.\n\%When broken you get back everything except the mob soul (it is to fragile and is destroyed when the spawner is broken) - tile.draconicevolution:longRangeDislocator1.name=Admin Dislocator -tile.draconicevolution:longRangeDislocator1.description=If you are a server admin or map creator this block is for you! (creative or op only as there is no recipe on purpose) Created at the behest of GreatOrator, it allows for a configurable range for teleporting. What makes this different is it is purely random. Nearest player to the block when activated with redstone will be teleported to a random location (default is 1000 minimum and 10,000 maximum) from the block. If that spot would place the player in water or in the air, a block is generated below them. - tile.draconicevolution:longRangeDislocator0.name=Long Range Dislocator -tile.draconicevolution:longRangeDislocator0.description=Description - tile.draconicevolution:generator.name=Generator ------tile.draconicevolution:generator.description=This is a basic low power (around 80RF/t) generator that may come in handy if you have no other mods capable of generating RF power. - tile.draconicevolution:energyStorageCore.name=Energy Core ------tile.draconicevolution:energyStorageCore.description=Using Draconic knowledge you have discovered how to build a multi-block structure capable of storing more power then any other device ever invented with the highest tier able to store up to 2.14 trillion RF (you can find more info in the Energy core multiblock tutorial) - tile.draconicevolution:energyPylon.name=Energy Pylon ------tile.draconicevolution:energyPylon.description=This device is used to extract or insert energy into the energy storage multiblock. Its maximum transfer rate is 2,147,483,647 RF/t - tile.draconicevolution:draconium0.name=Draconium Block ------tile.draconicevolution:draconium0.description=A storage block for draconium. - tile.draconicevolution:draconium1.name=Resurrection Stone -tile.draconicevolution:draconium1.description=The key component in the Ritual of Draconic Resurrection. - tile.draconicevolution:draconium2.name=Charged Draconium Block -tile.draconicevolution:draconium2.description=Used in the Ritual of Draconic Resurrection. Place a draconium block in a charging device and 100 million RF later you have a charged draconium block! - tile.draconicevolution:cKeyStone.name=Creative Key Stone -tile.draconicevolution:cKeyStone.description=Description - tile.draconicevolution:dissEnchanter.name=Disenchanter ------tile.draconicevolution:dissEnchanter.description=With this device you are now able to transfer enchantments from your items to books at the cost of experience. The cost is determined by the repair cost of the item and the repair cost of the item is decreased slightly each time. To use it simply place the enchanted item in the first slot a regular book in the center slot and press the transfer button. One enchantment (the first one) will be stripped from the item and applied to the book. When you strip an enchant the item will loos a percentage of its total durability this percentage is shown in the gui. You can decrease the damage bu placing book shelves around it or other enchanting boosters (It takes a total of 20 book shelves to prevent all damage). WARNING Items that use energy instead of durability will also be damaged and destroyed but will not show their damage value. - tile.draconicevolution:teleporterStand.name=Dislocator Pedestal ------tile.draconicevolution:teleporterStand.description=You have figured out how to create a simple pedestal on which you can place you basic or advanced charms of dislocation. Simply right click with a charm in your hand to place it on the pedestal then right click the pedestal to teleport. The advantage of this is the charms wont take damage or use fuel. The disadvantage is you can bring them with you to your destination. To remove the charm from the pedestal simply shift right click with an empty hand\n\nWhen holding basic dislocator that has been renamed in an anvil or an enhanced dislocator with a destination set the name or destination will be displayed above the pedestal. If you hold shift all names will be hidden except the one you are looking at. (Shift behavior can be reversed in the config) - tile.draconicevolution:draconiumChest.name=Draconic Chest ------tile.draconicevolution:draconiumChest.description=Using your draconic knowledge you have learned how to create the ultimate chest. With a massive 234 slot storage capacity a built in crafting table and 5 slot RF furnace capable of doubling ore as well as the ability to keep its contents when harvested this chest is the most powerful most versatile storage device in existence! It also comes in a variety of every colour you can imagine gust shift right click it with empty hand for details. - tile.draconicevolution:draconicBlock.name=Awakened Draconium Block ------tile.draconicevolution:draconicBlock.description=You have been studying the interactions of Draconium with various materials and have come to realize that this is only an inert state. You have discovered a method to bring out the true power of Draconium using a complex ritual involving a dragon heart. (See the dragon heart page for details) +tile.draconicevolution:infusedObsidian.name=Draconium Infused Obsidian +tile.draconicevolution:dislocatorReceptacle.name=Dislocator Receptacle +tile.draconicevolution:portal.name=Portal tile.draconicevolution:energyCrystal0.name=Energy Relay tile.draconicevolution:energyCrystal1.name=Advanced Energy Relay @@ -85,138 +39,55 @@ tile.draconicevolution:energyCrystal5.name=Advanced Wireless Transceiver //Item Information ---------------------------------------------------------------------------------------------------------------------------------------- item.draconicevolution:awakenedCore.name=Awakened Core ------item.draconicevolution:awakenedCore.description=This component is used to craft the most advanced draconic items - item.draconicevolution:draconiumIngot.name=Draconium Ingot ------item.draconicevolution:draconiumIngot.description=The results of smelting draconium blend in a furnace. Used in most recipes. - item.draconicevolution:draconiumDust.name=Draconium Dust ------item.draconicevolution:draconiumDust.description=This is the material from mining Draconium Ore - item.draconicevolution:draconiumBlend.name=Draconium Blend (Depreciated) ------item.draconicevolution:draconiumBlend.description=Mixture of Draconic dust and iron. Necessary to make Draconium - item.draconicevolution:dragonHeart.name=Dragon Heart ------item.draconicevolution:dragonHeart.description=Dropped by the Ender Dragon and Draconic Dragon. It is your belief that this immensely powerful item may hold the key to unlocking the true power of draconium using an ancient ritual known as the ritual of awakening. \n\nThe Ritual:\n1.Drop a dragon heart on the ground and activate it with an explosion.\n\n2.Drop 4 to 16 draconic cores on the ground near the activated heart (4 per block of draconium). A few seconds after its initial activation it will draw all nearby items towards it anything that is not a core will be destroyed.\n\n3.Now quickly place 1 to 4 (depending on how many cores you dropped) Charged draconium blocks near the heart.\n\n4.You will know its working when you see the hearts energy targeting the charged draconium blocks. Now stand back and watch the magic happen.\n\nYou can only do this ritual once per heart so you best make the most of it. - item.draconicevolution:wyvernCore.name=Wyvern Core -item.draconicevolution:wyvernCore.description=This component is used to craft all Wyvern tools - item.draconicevolution:sunFocus.name=Solar Focus -item.draconicevolution:sunFocus.description=With the power of draconium you find a way to harness the heat and light of the sun. (crafting component) - item.draconicevolution:tclogo.name=TCLogo - item.draconicevolution:draconicCore.name=Draconic Core -item.draconicevolution:draconicCore.description=Used to create all machines and advanced tools - item.draconicevolution:teleporterMKI.name=Charm of Dislocation ------item.draconicevolution:teleporterMKI.description=You have managed to infuse the powers of The End with your knowledge of the Draconic to create a basic teleporter, but at a cost. The energies binding them are unstable and only last for 10 uses and will take some of your life energy with each use and can only be linked to a single location but works across dimensions. Once used up, you must create a new one. - item.draconicevolution:teleporterMKII.name=Enhanced Charm of Dislocation ------item.draconicevolution:teleporterMKII.description=Learning how draconic powers interact with the powers of the endermen, you have created the ultimate teleporter. You can now store up to 100 locations and using the endermen’s own pearls as fuel, created something that can teleport you extreme distances even across dimensions at will. Shift right click to open the GUI. Most functionality should be self explanatory. On the left is the destination list. Each destination has a lock button that prevents you from accidentally overwriting or deleting it. On the right starting from the top you have information about the selected destination, An option to rename the selected destination, An option to change the selected destination to your current coordinates and an option to delete the selected destination. Under that is the fuel, An option to teleport to the selected destination, an option to add a new destination (your current location), And an option to add fuel (Ender pearls from your inventory) Shift click to add a stack. You can also shift+Scroll with the item in your hand to cycle through the destinations without opening the gui and right click to teleport. You can also teleport players and mobs by left clicking them however players must be holding shift and mobs can not be teleported across dimensions. info.teleporterInfGUI.txt=Shift + Right click to open gui info.teleporterInfScroll.txt=Shift + scroll to cycle destinations item.draconicevolution:wyvernPickaxe.name=Pickaxe of the Wyvern ------item.draconicevolution:wyvernPickaxe.description=Weary of ordinary tools you begin to understand ways to use Draconic energy to upgrade. Modes: Shift-Right Click to switch modes: 1×1 or 3×3 - item.draconicevolution:wyvernShovel.name=Shovel of the Wyvern ------item.draconicevolution:wyvernShovel.description=Weary of ordinary tools you begin to understand ways to use Draconic energy to upgrade. Modes: Shift-Right Click to switch modes: 1×1 or 3×3 - item.draconicevolution:wyvernSword.name=Sword of the Wyvern ------item.draconicevolution:wyvernSword.description=Weary of ordinary tools you begin to understand ways to use Draconic energy to upgrade. +15 Attack – Bonus damage on mobs with health above 10 hearts (+20% of the mobs extra health) AOE – Hits all mobs in a 3×3 area (bonus damage does not apply to mobs other than the one you hit directly) - item.draconicevolution:wyvernBow.name=Bow of the Wyvern ------item.draconicevolution:wyvernBow.description=Weary of ordinary tools you begin to understand ways to use Draconic energy to upgrade. Sharpshooter – Zoom in on your target and deal extreme damage with pin point accuracy. Rapid Fire – Barrage your enemies in a rain of arrows. - item.draconicevolution:wyvernHelm.name=Wyvern Helm ------item.draconicevolution:wyvernHelm.description=Stronger than diamond you can now withstand even greater blows.\n\n\nFull set gives total fire immunity - item.draconicevolution:wyvernChest.name=Wyvern Chestplate ------item.draconicevolution:wyvernChest.description=Infusing the armor with Dracomiun you vastly improve its resistance.\n\n\nFull set gives total fire immunity - item.draconicevolution:wyvernLeggs.name=Wyvern Leggings ------item.draconicevolution:wyvernLeggs.description=You feel even stronger and faster now\nthat you have infused diamond legs with Draconium.\n\%Armor Effects:\n\%-Speed boost\n\n\nFull set gives total fire immunity - item.draconicevolution:wyvernBoots.name=Wyvern Boots ------item.draconicevolution:wyvernBoots.description=You learn to improve the boots Draconium seems to have given you greater agility.\n\%Armor Effects:\n\%-Reduced fall damage\n\%-Jump boost\n\n\nFull set gives total fire immunity - item.draconicevolution:draconicPickaxe.name=Draconic Pickaxe ------item.draconicevolution:draconicPickaxe.description=Further Draconic research has shown you ways to even greater power.. Modes: Shift-Right Click to switch modes: 1×1, 3×3, 5×5 and 7×7 Right Click to activate: Obliteration Mode – Destroys stone, cobblestone and netherrack. - item.draconicevolution:draconicAxe.name=Draconic Axe ------item.draconicevolution:draconicAxe.description=Further Draconic research has shown you ways to even greater power.. Will harvest the entire tree and leaves above. - item.draconicevolution:draconicShovel.name=Draconic Shovel ------item.draconicevolution:draconicShovel.description=Further Draconic research has shown you ways to even greater power.. Modes: Shift-Right Click to switch modes: 1×1, 3×3, 5×5 and 7×7 Right Click to activate: Obliteration Mode – Destroys dirt, sand and gravel. - item.draconicevolution:draconicHoe.name=Draconic Hoe ------item.draconicevolution:draconicHoe.description=Further Draconic research has shown you ways to even greater power.. Will till an entire 9×9 area, just perfect for a full-size farm with water source. Also will dig or replace dirt (if dirt in inventory) to make the full 9×9. - item.draconicevolution:draconicSword.name=Draconic Sword ------item.draconicevolution:draconicSword.description=Further Draconic research has shown you ways to even greater power.. +19 Attack – Bonus damage on mobs with health above 10 hearts (+30% of the mobs extra health) AOE – Hits all mobs in a 7×7 area (bonus damage does not apply to mobs other than the one you hit directly) - item.draconicevolution:draconicBow.name=Draconic Bow ------item.draconicevolution:draconicBow.description=Further Draconic research has shown you ways to even greater power.. Sharpshooter – Zoom in on your target and deal extreme damage with pin point accuracy. Rapid Fire – Barrage your enemies in a rain of arrows. Explosive – With gunpowder in your inventory destroy an area slightly larger than TNT with your arrows. Devastation (Creative Mode only) – Explodes an extreme area in rapid fire mode. - item.draconicevolution:draconicHelm.name=Draconic Helm ------item.draconicevolution:draconicHelm.description=No longer do you fear the night you now can see all the time regardless of what is out there.\n\%Armor Effects:\n\%-Night Vision (Activates when in darkness)\n\%-Cures negative potion effects\n\%-Bypass suffocation and drowning damage\n\%-Removes mining slowdown under water - item.draconicevolution:draconicChest.name=Draconic Chestplate ------item.draconicevolution:draconicChest.description=Using the heart of a dragon you are stronger and have the gift of flight.\n\%Armor Effects:\n\%-Flight\n\%-Removes mining slowdown when in the air \n\%-Fire immunity - item.draconicevolution:draconicLeggs.name=Draconic Leggings ------item.draconicevolution:draconicLeggs.description=Even stronger armor the soul of a dragon protects you and moves you even faster Improved speed boost.\n\%Armor Effects:\n\%-Speed boost - item.draconicevolution:draconicBoots.name=Draconic Boots ------item.draconicevolution:draconicBoots.description=Stronger, faster, better than before the heart of a dragon grants you higher jumping. \n\%Armor Effects:\n\%-Fall protection\n\%-Jump boost\n\%-Up Hill Step - item.draconicevolution:draconicDistructionStaff.name=Draconic Staff of Power -item.draconicevolution:draconicDistructionStaff.description=After great pains you have mastered the powers of the Draconic! Mining – Shift-Right Click to switch modes: 1×1, 3×3, 5×5, 7×7 and 9×9 Mining – Right Click to activate: Obliteration Mode – Destroys all non-valuable blocks. Battle: +20 Attack – Bonus damage on mobs with health above 10 hearts (+50% of the mobs extra health) Battle: AOE – in 1×1 hits 1×1 area, 3×3 hits 5×5 area, 5×5 hits 9×9, 7×7 hits 13×13, and 9×9 hits 17×17 (bonus damage does not apply to mobs other than the one you hit directly) - item.draconicevolution:mobSoul.name=Mob Soul ------item.draconicevolution:mobSoul.description=You notice that with Draconic Weapons you can now occasionally steal the souls of those things you kill. - item.draconicevolution:enderArrow.name=Ender Arrow ------item.draconicevolution:enderArrow.description=Awesome arrow infused with the power of ender pearls. You will teleport to the location you hit. - item.draconicevolution:safetyMatch.name=Safety Match ------item.draconicevolution:safetyMatch.description=Tired of everything burning to the ground when making a fireplace? - item.draconicevolution:safetyMatchBox.name=Box of Safety Matches ------item.draconicevolution:safetyMatchBox.description=High-use safety matches. - item.draconicevolution:key.name=Key -item.draconicevolution:key.description=Magical Key to access various locks. - item.draconicevolution:draconiumEnergyCore0.name=Wyvern Energy Core ------item.draconicevolution:draconiumEnergyCore0.description=This component is used in devices that need to be able to store energy - item.draconicevolution:draconiumEnergyCore1.name=Draconic Energy Core -item.draconicevolution:draconiumEnergyCore1.description=This is a more powerful version of the wyvern energy core - item.draconicevolution:draconiumFluxCapacitor0.name=Wyvern Flux Capacitor ------item.draconicevolution:draconiumFluxCapacitor0.description=Tired of your tools and armor running out of energy when you need them most you have figured out how to create an item capable of storing an immense amount of energy and transferring it to your items as they need it. - item.draconicevolution:draconiumFluxCapacitor1.name=Draconic Flux Capacitor ------item.draconicevolution:draconiumFluxCapacitor1.description=With this upgrade you will be able to go for days without needing to stop and recharge. - item.draconicevolution:draconicIngot.name=Awakened Draconium Ingot ------item.draconicevolution:draconicIngot.description=You have been studying the interactions of Draconium with various materials and have come to realize that this is only an inert state. You have discovered a method to bring out the true power of Draconium using a complex ritual involving a dragon heart. (See the dragon heart page for details) - item.draconicevolution:creativeStructureSpawnerComet.name=Spawn Comet - item.draconicevolution:creativeStructureSpawnerEnderIsland.name=Spawn Ender Island - item.draconicevolution:infoTablet.name=Draconic Evolution Information Tablet - item.draconicevolution:wrench.name=Crystal Binder - item.draconicevolution:dezilsMarshmallow.name=Dezil's Marshmallow - //Item Groups ---------------------------------------------------------------------------------------------------------------------------------------- itemGroup.toolsAndWeapons=Draconic Evolution Tools & Weapons itemGroup.blocksAndItems=Draconic Evolution Blocks & Items @@ -369,6 +240,8 @@ info.de.connections.txt=Connections info.de.wirelessConnections.txt=Wireless Connections +info.infusedObsidian.txt=This block is wither resistant + enchantment.draconicevolution.reaperEnchant=Reaper //Achievements ---------------------------------------------------------------------------------------------------------------------------------------- @@ -449,7 +322,7 @@ achievement.draconicevolution.flux2.desc=Craft the Draconic Flux Capacitor achievement.draconicevolution.dhoe=Kick it up a Notch! -BAM- achievement.draconicevolution.dhoe.desc=Craft the Draconic Hoe -achievement.draconicevolution.dFlux Capacitor=With your powers combined! +achievement.draconicevolution.dstaff=With your powers combined! achievement.draconicevolution.dstaff.desc=Create the Draconic Staff achievement.draconicevolution.soul=Reaper!!!! diff --git a/src/main/resources/assets/draconicevolution/manual.json b/src/main/resources/assets/draconicevolution/manual.json index 9d6b376c..0f0c2987 100644 --- a/src/main/resources/assets/draconicevolution/manual.json +++ b/src/main/resources/assets/draconicevolution/manual.json @@ -225,6 +225,33 @@ "[c]tile.draconicevolution:teleporterStand:0" ] }, + { + "name":"tile.draconicevolution:infusedObsidian", + "images":[], + "content": + [ + "You have discovered that by combining one of the strongest blocks in existence with the power of draconium, You can create a block that mo creature can destroy.", + "This block has twice the explosion and mining resistance of Obsidian. It also requires a stronger pickaxe.", + "", + "You wonder what other uses this block could have...", + "[c]tile.draconicevolution:infusedObsidian:0" + ] + }, + { + "name":"tile.draconicevolution:dislocatorReceptacle", + "nameL":"Draconic Portal", + "images":["http://i.imgur.com/hTLS3UK.png"], + "content": + [ + "Like Obsidian Infused Obsidian can be used to create a magical portal, but with some big differences. This portal can be any size between 1x1 and 150x150 blocks and using a dislocator to set the destination this portal can send you to any location.", + "To build a portal build a rectangular structure similar to a nether portal but any dimensions you like up to 150x150. Then replace any of the structural blocks (Excluding the corners) with a Dislocator Receptacle.", + "To activate the portal simply right click the receptacle with a basic or advanced Charm of Dislocation (must be bound to a location)", + "You can also pipe dislocators in and out of the receptacle with hoppers or other automation methods.", + "The portal cam be horizontal or vertical.", + "http://i.imgur.com/hTLS3UK.png", + "[c]tile.draconicevolution:dislocatorReceptacle:0" + ] + }, { "name":"tile.draconicevolution:draconium", "nameL":"Resurrection Stone", @@ -243,7 +270,7 @@ [ "Perhaps not your brightest idea... You found a way to travel even longer distances using ender perls by strapping them to the end of a arrow.", "This of course makes the arrow a lot heavier. Too heavy for a regular for a regular bow. Leaving you no choice but to use ether a wyvern or draconic bow.", - "So what could go wrong you ask? Well as im sure you are aware ender perls on their own are a rather painful way to travel. Now add the power of a wayvern or worse a draconic bow to that and you have a recipe for extreme pain.", + "So what could go wrong you ask? Well as im sure you are aware ender perls on their own are a rather painful way to travel. Now add the power of a wyvern or worse a draconic bow to that and you have a recipe for extreme pain.", "Be sure to wear your best fall protection. And just hope its enough", "[c]item.draconicevolution:enderArrow.name:0" ] @@ -734,7 +761,7 @@ "http://i.imgur.com/x4IxV9F.png", "http://i.imgur.com/4FxoUvf.png", "http://i.imgur.com/IagzpKW.png", - "http://i.imgur.com/TvL8TVG.png", + "http://i.imgur.com/1S6h9Po.png", "http://i.imgur.com/MTmGhLv.png", "http://i.imgur.com/crmnC6v.png", "http://i.imgur.com/eH3OvhW.png", @@ -763,7 +790,7 @@ "http://i.imgur.com/BXl1x7e.png[>]http://i.imgur.com/7rtdJV2.png[>]http://i.imgur.com/x4IxV9F.png[>]http://i.imgur.com/4FxoUvf.png", "Redstone x26\nDraconium x54\nCapacity = 9.88Billion RF", "§4Tier 5", - "http://i.imgur.com/BXl1x7e.png[>]http://i.imgur.com/7rtdJV2.png[>]http://i.imgur.com/IagzpKW.png[>]http://i.imgur.com/TvL8TVG.png[>]http://i.imgur.com/MTmGhLv.png", + "http://i.imgur.com/BXl1x7e.png[>]http://i.imgur.com/7rtdJV2.png[>]http://i.imgur.com/IagzpKW.png[>]http://i.imgur.com/1S6h9Po.png[>]http://i.imgur.com/MTmGhLv.png", "Redstone x80\nDraconium x98\nCapacity = 59.3Billion RF", "§4Tier 6", "http://i.imgur.com/BXl1x7e.png[>]http://i.imgur.com/7rtdJV2.png[>]http://i.imgur.com/IagzpKW.png[>]http://i.imgur.com/crmnC6v.png[>]http://i.imgur.com/eH3OvhW.png[>]http://i.imgur.com/oEBI4lj.png", diff --git a/src/main/resources/assets/draconicevolution/models/reactorCoreModel.mtl b/src/main/resources/assets/draconicevolution/models/reactorCoreModel.mtl new file mode 100644 index 00000000..ddf62c08 --- /dev/null +++ b/src/main/resources/assets/draconicevolution/models/reactorCoreModel.mtl @@ -0,0 +1,11 @@ +# Blender MTL File: 'None' +# Material Count: 1 + +newmtl None +Ns 0 +Ka 0.000000 0.000000 0.000000 +Kd 0.8 0.8 0.8 +Ks 0.8 0.8 0.8 +d 1 +illum 2 +map_Kd D:\Mass Storage\Minecraft Dev\Models\Reactor\reactorCoreTexture.png diff --git a/src/main/resources/assets/draconicevolution/models/reactorCoreModel.obj b/src/main/resources/assets/draconicevolution/models/reactorCoreModel.obj new file mode 100644 index 00000000..0a1d2d4c --- /dev/null +++ b/src/main/resources/assets/draconicevolution/models/reactorCoreModel.obj @@ -0,0 +1,1931 @@ +# Blender v2.70 (sub 0) OBJ File: '' +# www.blender.org +mtllib reactorCoreModel.mtl +o Icosphere_Icosphere.001 +v 0.000000 -1.000000 0.000000 +v 0.723607 -0.447219 0.525725 +v -0.276388 -0.447220 0.850649 +v -0.894426 -0.447216 0.000000 +v -0.276388 -0.447220 -0.850649 +v 0.723607 -0.447219 -0.525725 +v 0.276388 0.447220 0.850649 +v -0.723607 0.447219 0.525725 +v -0.723607 0.447219 -0.525725 +v 0.276388 0.447220 -0.850649 +v 0.894426 0.447216 0.000000 +v 0.000000 1.000000 0.000000 +v -0.257937 -0.550685 0.793860 +v -0.232822 -0.657519 0.716563 +v -0.200688 -0.760403 0.617666 +v -0.162456 -0.850654 0.499995 +v -0.120413 -0.920955 0.370598 +v -0.077607 -0.967950 0.238853 +v -0.036848 -0.992865 0.113408 +v 0.096471 -0.992865 0.070089 +v 0.203181 -0.967950 0.147618 +v 0.315251 -0.920955 0.229040 +v 0.425323 -0.850654 0.309011 +v 0.525420 -0.760403 0.381735 +v 0.609547 -0.657519 0.442856 +v 0.675300 -0.550685 0.490628 +v 0.638452 -0.476987 0.604038 +v 0.531941 -0.502302 0.681712 +v 0.405008 -0.519572 0.752338 +v 0.262869 -0.525738 0.809012 +v 0.114564 -0.519572 0.846711 +v -0.029639 -0.502302 0.864184 +v -0.161465 -0.476988 0.863951 +v 0.771771 -0.476987 -0.420539 +v 0.812729 -0.502301 -0.295238 +v 0.840673 -0.519571 -0.152694 +v 0.850648 -0.525736 0.000000 +v 0.840673 -0.519571 0.152694 +v 0.812729 -0.502301 0.295238 +v 0.771771 -0.476987 0.420539 +v 0.096471 -0.992865 -0.070089 +v 0.203181 -0.967950 -0.147618 +v 0.315251 -0.920955 -0.229040 +v 0.425323 -0.850654 -0.309011 +v 0.525420 -0.760403 -0.381735 +v 0.609547 -0.657519 -0.442856 +v 0.675300 -0.550685 -0.490628 +v -0.834716 -0.550681 0.000000 +v -0.753442 -0.657515 0.000000 +v -0.649456 -0.760399 0.000000 +v -0.525730 -0.850652 0.000000 +v -0.389673 -0.920953 0.000000 +v -0.251147 -0.967949 0.000000 +v -0.119245 -0.992865 0.000000 +v -0.377183 -0.476988 0.793861 +v -0.483971 -0.502302 0.716565 +v -0.590366 -0.519572 0.617668 +v -0.688189 -0.525736 0.499997 +v -0.769872 -0.519570 0.370600 +v -0.831051 -0.502299 0.238853 +v -0.871565 -0.476984 0.113408 +v -0.257937 -0.550685 -0.793860 +v -0.232822 -0.657519 -0.716563 +v -0.200688 -0.760403 -0.617666 +v -0.162456 -0.850654 -0.499995 +v -0.120413 -0.920955 -0.370598 +v -0.077607 -0.967950 -0.238853 +v -0.036848 -0.992865 -0.113408 +v -0.871565 -0.476984 -0.113408 +v -0.831051 -0.502299 -0.238853 +v -0.769872 -0.519570 -0.370600 +v -0.688189 -0.525736 -0.499997 +v -0.590366 -0.519572 -0.617668 +v -0.483971 -0.502302 -0.716565 +v -0.377183 -0.476988 -0.793861 +v -0.161465 -0.476988 -0.863951 +v -0.029639 -0.502302 -0.864184 +v 0.114564 -0.519572 -0.846711 +v 0.262869 -0.525738 -0.809012 +v 0.405008 -0.519572 -0.752338 +v 0.531941 -0.502302 -0.681712 +v 0.638453 -0.476987 -0.604038 +v 0.931188 0.357738 0.070089 +v 0.956626 0.251149 0.147618 +v 0.964711 0.129893 0.229041 +v 0.951058 0.000000 0.309013 +v 0.915098 -0.129893 0.381737 +v 0.860698 -0.251151 0.442858 +v 0.794547 -0.357741 0.490629 +v 0.794547 -0.357741 -0.490629 +v 0.860698 -0.251151 -0.442858 +v 0.915098 -0.129893 -0.381737 +v 0.951058 0.000000 -0.309013 +v 0.964711 0.129893 -0.229041 +v 0.956626 0.251149 -0.147618 +v 0.931188 0.357738 -0.070089 +v 0.221089 0.357741 0.907271 +v 0.155215 0.251152 0.955422 +v 0.080276 0.129894 0.988273 +v -0.000000 0.000000 1.000000 +v -0.080276 -0.129894 0.988273 +v -0.155215 -0.251152 0.955422 +v -0.221089 -0.357741 0.907271 +v 0.712150 -0.357741 0.604039 +v 0.687158 -0.251152 0.681715 +v 0.645839 -0.129894 0.752343 +v 0.587786 0.000000 0.809017 +v 0.515946 0.129894 0.846716 +v 0.436007 0.251152 0.864188 +v 0.354409 0.357742 0.863953 +v -0.794547 0.357741 0.490629 +v -0.860698 0.251151 0.442858 +v -0.915098 0.129893 0.381737 +v -0.951058 0.000000 0.309013 +v -0.964711 -0.129893 0.229041 +v -0.956626 -0.251149 0.147618 +v -0.931188 -0.357738 0.070089 +v -0.354409 -0.357742 0.863953 +v -0.436007 -0.251152 0.864188 +v -0.515946 -0.129894 0.846716 +v -0.587786 0.000000 0.809017 +v -0.645839 0.129894 0.752342 +v -0.687159 0.251152 0.681715 +v -0.712150 0.357741 0.604039 +v -0.712150 0.357741 -0.604039 +v -0.687159 0.251152 -0.681715 +v -0.645839 0.129894 -0.752343 +v -0.587786 0.000000 -0.809017 +v -0.515946 -0.129894 -0.846716 +v -0.436007 -0.251152 -0.864188 +v -0.354409 -0.357742 -0.863953 +v -0.931188 -0.357738 -0.070089 +v -0.956626 -0.251149 -0.147618 +v -0.964711 -0.129893 -0.229041 +v -0.951058 0.000000 -0.309013 +v -0.915098 0.129893 -0.381737 +v -0.860698 0.251151 -0.442858 +v -0.794547 0.357741 -0.490629 +v 0.354409 0.357742 -0.863953 +v 0.436007 0.251152 -0.864188 +v 0.515946 0.129894 -0.846716 +v 0.587786 0.000000 -0.809017 +v 0.645839 -0.129894 -0.752342 +v 0.687159 -0.251152 -0.681715 +v 0.712150 -0.357741 -0.604039 +v -0.221089 -0.357741 -0.907271 +v -0.155215 -0.251152 -0.955422 +v -0.080276 -0.129894 -0.988273 +v 0.000000 0.000000 -1.000000 +v 0.080276 0.129894 -0.988273 +v 0.155215 0.251152 -0.955422 +v 0.221089 0.357741 -0.907271 +v 0.871565 0.476984 0.113408 +v 0.831051 0.502299 0.238853 +v 0.769872 0.519570 0.370600 +v 0.688189 0.525736 0.499997 +v 0.590366 0.519572 0.617668 +v 0.483971 0.502302 0.716565 +v 0.377183 0.476988 0.793861 +v 0.161465 0.476988 0.863951 +v 0.029639 0.502302 0.864184 +v -0.114564 0.519573 0.846711 +v -0.262869 0.525738 0.809012 +v -0.405008 0.519572 0.752338 +v -0.531941 0.502302 0.681712 +v -0.638453 0.476987 0.604038 +v -0.771771 0.476987 0.420539 +v -0.812729 0.502301 0.295238 +v -0.840673 0.519571 0.152694 +v -0.850648 0.525736 -0.000000 +v -0.840673 0.519571 -0.152694 +v -0.812729 0.502301 -0.295238 +v -0.771771 0.476987 -0.420539 +v -0.638453 0.476987 -0.604038 +v -0.531941 0.502302 -0.681712 +v -0.405008 0.519572 -0.752338 +v -0.262869 0.525738 -0.809012 +v -0.114564 0.519572 -0.846711 +v 0.029639 0.502302 -0.864184 +v 0.161465 0.476988 -0.863951 +v 0.377183 0.476988 -0.793861 +v 0.483971 0.502302 -0.716565 +v 0.590366 0.519572 -0.617668 +v 0.688189 0.525736 -0.499997 +v 0.769872 0.519570 -0.370600 +v 0.831051 0.502299 -0.238853 +v 0.871565 0.476984 -0.113408 +v 0.036848 0.992865 0.113408 +v 0.077607 0.967950 0.238853 +v 0.120413 0.920955 0.370598 +v 0.162456 0.850654 0.499995 +v 0.200688 0.760403 0.617666 +v 0.232822 0.657519 0.716563 +v 0.257937 0.550685 0.793860 +v 0.834716 0.550681 0.000000 +v 0.753442 0.657515 0.000000 +v 0.649456 0.760399 0.000000 +v 0.525730 0.850652 0.000000 +v 0.389673 0.920953 0.000000 +v 0.251147 0.967949 0.000000 +v 0.119245 0.992865 0.000000 +v -0.096471 0.992865 0.070089 +v -0.203181 0.967950 0.147618 +v -0.315251 0.920955 0.229040 +v -0.425323 0.850654 0.309011 +v -0.525420 0.760403 0.381735 +v -0.609547 0.657519 0.442856 +v -0.675300 0.550685 0.490628 +v -0.096471 0.992865 -0.070089 +v -0.203181 0.967950 -0.147618 +v -0.315251 0.920955 -0.229040 +v -0.425323 0.850654 -0.309011 +v -0.525420 0.760403 -0.381735 +v -0.609547 0.657519 -0.442856 +v -0.675300 0.550685 -0.490628 +v 0.036848 0.992865 -0.113408 +v 0.077607 0.967950 -0.238853 +v 0.120413 0.920955 -0.370598 +v 0.162456 0.850654 -0.499995 +v 0.200688 0.760403 -0.617666 +v 0.232822 0.657519 -0.716563 +v 0.257937 0.550685 -0.793860 +v -0.132684 -0.586334 0.799129 +v -0.097915 -0.696561 0.710785 +v 0.009709 -0.614344 0.788978 +v -0.058249 -0.798552 0.599101 +v 0.052790 -0.723612 0.688185 +v 0.162463 -0.629944 0.759458 +v -0.016097 -0.882855 0.469370 +v 0.096780 -0.819913 0.564249 +v 0.210089 -0.733354 0.646572 +v 0.314971 -0.629943 0.709905 +v 0.025409 -0.943208 0.331228 +v 0.138199 -0.894429 0.425321 +v 0.253368 -0.819912 0.513370 +v 0.361805 -0.723611 0.587779 +v 0.455903 -0.614344 0.643999 +v 0.063484 -0.978671 0.195377 +v 0.174140 -0.943208 0.282902 +v 0.288918 -0.882854 0.370264 +v 0.399274 -0.798550 0.450442 +v 0.497011 -0.696560 0.517480 +v 0.577067 -0.586333 0.568513 +v 0.719015 -0.586334 -0.373135 +v 0.753363 -0.614343 -0.234576 +v 0.645740 -0.696560 -0.312768 +v 0.772493 -0.629942 -0.080177 +v 0.670817 -0.723611 -0.162457 +v 0.551780 -0.798551 -0.240532 +v 0.772493 -0.629942 0.080178 +v 0.679849 -0.733353 0.000000 +v 0.566540 -0.819912 -0.082322 +v 0.441423 -0.882854 -0.160354 +v 0.753364 -0.614343 0.234576 +v 0.670817 -0.723610 0.162458 +v 0.566541 -0.819911 0.082323 +v 0.447211 -0.894428 0.000001 +v 0.322869 -0.943208 -0.078191 +v 0.719016 -0.586333 0.373136 +v 0.645741 -0.696559 0.312769 +v 0.551781 -0.798550 0.240533 +v 0.441424 -0.882854 0.160356 +v 0.322870 -0.943208 0.078193 +v 0.205432 -0.978671 0.000001 +v -0.801022 -0.586330 0.120750 +v -0.706258 -0.696558 0.126518 +v -0.747367 -0.614341 0.253037 +v -0.587784 -0.798549 0.129731 +v -0.638195 -0.723609 0.262864 +v -0.672088 -0.629941 0.389193 +v -0.451375 -0.882853 0.129731 +v -0.506730 -0.819911 0.266403 +v -0.550009 -0.733352 0.399605 +v -0.577832 -0.629942 0.518925 +v -0.307168 -0.943208 0.126519 +v -0.361801 -0.894428 0.262864 +v -0.409952 -0.819912 0.399605 +v -0.447211 -0.723610 0.525729 +v -0.471601 -0.614343 0.632594 +v -0.166198 -0.978671 0.120750 +v -0.215246 -0.943208 0.253038 +v -0.262863 -0.882854 0.389194 +v -0.305015 -0.798550 0.518925 +v -0.338569 -0.696560 0.632594 +v -0.362367 -0.586334 0.724502 +v -0.362367 -0.586334 -0.724501 +v -0.338569 -0.696561 -0.632593 +v -0.471601 -0.614344 -0.632593 +v -0.305014 -0.798552 -0.518923 +v -0.447211 -0.723612 -0.525727 +v -0.577832 -0.629943 -0.518924 +v -0.262862 -0.882855 -0.389192 +v -0.409952 -0.819913 -0.399603 +v -0.550010 -0.733353 -0.399603 +v -0.672088 -0.629942 -0.389193 +v -0.215245 -0.943209 -0.253036 +v -0.361801 -0.894429 -0.262863 +v -0.506730 -0.819911 -0.266402 +v -0.638195 -0.723609 -0.262863 +v -0.747367 -0.614341 -0.253036 +v -0.166198 -0.978671 -0.120749 +v -0.307168 -0.943208 -0.126518 +v -0.451376 -0.882854 -0.129730 +v -0.587784 -0.798549 -0.129730 +v -0.706258 -0.696557 -0.126518 +v -0.801022 -0.586330 -0.120749 +v 0.577066 -0.586334 -0.568513 +v 0.497009 -0.696561 -0.517479 +v 0.455902 -0.614344 -0.643999 +v 0.399272 -0.798552 -0.450441 +v 0.361804 -0.723612 -0.587779 +v 0.314971 -0.629943 -0.709905 +v 0.288916 -0.882855 -0.370263 +v 0.253366 -0.819913 -0.513370 +v 0.210087 -0.733354 -0.646572 +v 0.162463 -0.629943 -0.759459 +v 0.174138 -0.943209 -0.282902 +v 0.138197 -0.894429 -0.425321 +v 0.096779 -0.819912 -0.564250 +v 0.052789 -0.723611 -0.688186 +v 0.009708 -0.614344 -0.788979 +v 0.063482 -0.978671 -0.195377 +v 0.025407 -0.943208 -0.331229 +v -0.016099 -0.882854 -0.469371 +v -0.058250 -0.798550 -0.599103 +v -0.097915 -0.696560 -0.710786 +v -0.132684 -0.586334 -0.799129 +v 0.967222 0.253931 0.000000 +v 0.988023 0.133031 0.078192 +v 0.988023 0.133031 -0.078192 +v 0.987059 0.000000 0.160355 +v 1.000000 0.000000 0.000000 +v 0.987059 0.000000 -0.160355 +v 0.961008 -0.136410 0.240533 +v 0.986715 -0.140059 0.082322 +v 0.986715 -0.140059 -0.082322 +v 0.961008 -0.136410 -0.240533 +v 0.911804 -0.266064 0.312769 +v 0.947213 -0.276396 0.162458 +v 0.959966 -0.280117 0.000000 +v 0.947213 -0.276396 -0.162458 +v 0.911804 -0.266064 -0.312769 +v 0.845982 -0.380899 0.373136 +v 0.886395 -0.399095 0.234576 +v 0.908902 -0.409229 0.080178 +v 0.908902 -0.409229 -0.080178 +v 0.886395 -0.399095 -0.234576 +v 0.845982 -0.380899 -0.373136 +v 0.298886 0.253934 0.919883 +v 0.230948 0.133033 0.963828 +v 0.379681 0.133033 0.915502 +v 0.152509 0.000000 0.988302 +v 0.309017 0.000000 0.951056 +v 0.457527 0.000000 0.889196 +v 0.068206 -0.136410 0.988302 +v 0.226619 -0.140060 0.963861 +v 0.383207 -0.140060 0.912982 +v 0.525732 -0.136411 0.839641 +v -0.015699 -0.266065 0.963827 +v 0.138199 -0.276397 0.951055 +v 0.296648 -0.280119 0.912980 +v 0.447216 -0.276398 0.850648 +v 0.579229 -0.266065 0.770521 +v -0.093451 -0.380900 0.919882 +v 0.050817 -0.399097 0.915500 +v 0.204615 -0.409230 0.889192 +v 0.357124 -0.409230 0.839639 +v 0.497012 -0.399097 0.770520 +v 0.616302 -0.380900 0.689266 +v -0.782501 0.253934 0.568515 +v -0.845290 0.133032 0.517482 +v -0.753368 0.133032 0.644002 +v -0.892805 0.000000 0.450444 +v -0.809018 0.000000 0.587783 +v -0.704293 0.000000 0.709910 +v -0.918856 -0.136410 0.370265 +v -0.846659 -0.140059 0.513374 +v -0.749881 -0.140059 0.646577 +v -0.636087 -0.136410 0.759464 +v -0.921507 -0.266063 0.282904 +v -0.861803 -0.276396 0.425324 +v -0.776629 -0.280118 0.564253 +v -0.670819 -0.276397 0.688191 +v -0.553819 -0.266065 0.788983 +v -0.903739 -0.380897 0.195378 +v -0.854991 -0.399094 0.331231 +v -0.782445 -0.409229 0.469374 +v -0.688189 -0.409230 0.599106 +v -0.579224 -0.399096 0.710789 +v -0.465084 -0.380900 0.799132 +v -0.782501 0.253934 -0.568515 +v -0.753368 0.133032 -0.644002 +v -0.845290 0.133032 -0.517482 +v -0.704293 0.000000 -0.709910 +v -0.809018 0.000000 -0.587783 +v -0.892805 0.000000 -0.450444 +v -0.636087 -0.136410 -0.759464 +v -0.749881 -0.140059 -0.646577 +v -0.846659 -0.140059 -0.513374 +v -0.918856 -0.136410 -0.370265 +v -0.553819 -0.266065 -0.788983 +v -0.670819 -0.276397 -0.688191 +v -0.776628 -0.280118 -0.564253 +v -0.861803 -0.276396 -0.425324 +v -0.921507 -0.266063 -0.282904 +v -0.465084 -0.380900 -0.799132 +v -0.579224 -0.399096 -0.710789 +v -0.688189 -0.409230 -0.599106 +v -0.782445 -0.409229 -0.469374 +v -0.854991 -0.399094 -0.331231 +v -0.903739 -0.380897 -0.195378 +v 0.298886 0.253934 -0.919883 +v 0.379681 0.133033 -0.915502 +v 0.230948 0.133033 -0.963828 +v 0.457527 0.000000 -0.889196 +v 0.309017 0.000000 -0.951056 +v 0.152509 0.000000 -0.988302 +v 0.525732 -0.136411 -0.839641 +v 0.383207 -0.140060 -0.912982 +v 0.226619 -0.140060 -0.963861 +v 0.068205 -0.136410 -0.988302 +v 0.579229 -0.266065 -0.770521 +v 0.447216 -0.276398 -0.850648 +v 0.296648 -0.280119 -0.912980 +v 0.138199 -0.276398 -0.951055 +v -0.015699 -0.266065 -0.963827 +v 0.616302 -0.380900 -0.689265 +v 0.497012 -0.399097 -0.770520 +v 0.357124 -0.409231 -0.839639 +v 0.204615 -0.409230 -0.889192 +v 0.050817 -0.399097 -0.915500 +v -0.093451 -0.380900 -0.919881 +v 0.465085 0.380900 0.799132 +v 0.553820 0.266064 0.788983 +v 0.579226 0.399096 0.710788 +v 0.636088 0.136410 0.759463 +v 0.670820 0.276396 0.688190 +v 0.688190 0.409229 0.599104 +v 0.704293 -0.000001 0.709909 +v 0.749882 0.140058 0.646576 +v 0.776630 0.280116 0.564252 +v 0.782446 0.409228 0.469372 +v 0.753368 -0.133034 0.644002 +v 0.809019 -0.000002 0.587783 +v 0.846659 0.140057 0.513373 +v 0.861804 0.276394 0.425323 +v 0.854992 0.399093 0.331230 +v 0.782501 -0.253935 0.568515 +v 0.845289 -0.133034 0.517482 +v 0.892805 -0.000002 0.450444 +v 0.918856 0.136407 0.370266 +v 0.921508 0.266061 0.282904 +v 0.903740 0.380896 0.195377 +v -0.616302 0.380900 0.689266 +v -0.579229 0.266065 0.770521 +v -0.497012 0.399096 0.770520 +v -0.525733 0.136410 0.839641 +v -0.447216 0.276397 0.850649 +v -0.357124 0.409230 0.839639 +v -0.457527 -0.000001 0.889196 +v -0.383208 0.140059 0.912982 +v -0.296649 0.280118 0.912981 +v -0.204616 0.409230 0.889193 +v -0.379681 -0.133033 0.915502 +v -0.309017 -0.000001 0.951056 +v -0.226619 0.140059 0.963861 +v -0.138199 0.276397 0.951055 +v -0.050817 0.399096 0.915500 +v -0.298885 -0.253934 0.919883 +v -0.230948 -0.133033 0.963828 +v -0.152509 -0.000000 0.988302 +v -0.068206 0.136410 0.988302 +v 0.015699 0.266064 0.963827 +v 0.093451 0.380900 0.919882 +v -0.845982 0.380899 -0.373136 +v -0.911804 0.266063 -0.312769 +v -0.886396 0.399095 -0.234577 +v -0.961008 0.136410 -0.240533 +v -0.947213 0.276396 -0.162458 +v -0.908902 0.409228 -0.080178 +v -0.987059 0.000000 -0.160355 +v -0.986715 0.140059 -0.082322 +v -0.959966 0.280117 0.000000 +v -0.908902 0.409229 0.080178 +v -0.988023 -0.133031 -0.078192 +v -1.000000 0.000001 0.000000 +v -0.986715 0.140059 0.082323 +v -0.947213 0.276397 0.162458 +v -0.886395 0.399095 0.234577 +v -0.967222 -0.253931 0.000000 +v -0.988023 -0.133030 0.078193 +v -0.987059 0.000001 0.160356 +v -0.961008 0.136411 0.240534 +v -0.911803 0.266065 0.312769 +v -0.845982 0.380900 0.373136 +v 0.093451 0.380900 -0.919882 +v 0.015700 0.266064 -0.963827 +v -0.050816 0.399096 -0.915500 +v -0.068205 0.136410 -0.988302 +v -0.138198 0.276397 -0.951055 +v -0.204615 0.409230 -0.889193 +v -0.152509 -0.000000 -0.988302 +v -0.226618 0.140059 -0.963861 +v -0.296648 0.280118 -0.912981 +v -0.357124 0.409230 -0.839639 +v -0.230948 -0.133033 -0.963829 +v -0.309016 -0.000000 -0.951057 +v -0.383207 0.140059 -0.912982 +v -0.447215 0.276397 -0.850649 +v -0.497012 0.399096 -0.770520 +v -0.298885 -0.253934 -0.919883 +v -0.379680 -0.133033 -0.915503 +v -0.457527 -0.000000 -0.889196 +v -0.525732 0.136410 -0.839642 +v -0.579229 0.266065 -0.770522 +v -0.616302 0.380900 -0.689266 +v 0.903740 0.380897 -0.195376 +v 0.921508 0.266063 -0.282902 +v 0.854992 0.399094 -0.331229 +v 0.918856 0.136410 -0.370264 +v 0.861804 0.276396 -0.425322 +v 0.782446 0.409229 -0.469371 +v 0.892805 0.000000 -0.450443 +v 0.846660 0.140059 -0.513372 +v 0.776630 0.280118 -0.564251 +v 0.688190 0.409230 -0.599104 +v 0.845290 -0.133032 -0.517481 +v 0.809019 0.000000 -0.587782 +v 0.749882 0.140059 -0.646576 +v 0.670820 0.276397 -0.688189 +v 0.579226 0.399096 -0.710788 +v 0.782501 -0.253933 -0.568515 +v 0.753368 -0.133032 -0.644002 +v 0.704293 0.000000 -0.709909 +v 0.636088 0.136411 -0.759463 +v 0.553820 0.266065 -0.788982 +v 0.465085 0.380900 -0.799132 +v 0.166198 0.978672 0.120749 +v 0.215245 0.943209 0.253036 +v 0.307167 0.943208 0.126518 +v 0.262862 0.882855 0.389192 +v 0.361800 0.894429 0.262863 +v 0.451375 0.882854 0.129731 +v 0.305014 0.798552 0.518924 +v 0.409951 0.819913 0.399604 +v 0.506729 0.819912 0.266403 +v 0.587783 0.798549 0.129731 +v 0.338569 0.696561 0.632593 +v 0.447209 0.723612 0.525728 +v 0.550008 0.733353 0.399605 +v 0.638193 0.723610 0.262864 +v 0.706258 0.696558 0.126519 +v 0.362366 0.586334 0.724502 +v 0.471599 0.614344 0.632594 +v 0.577830 0.629943 0.518926 +v 0.672087 0.629942 0.389194 +v 0.747366 0.614342 0.253038 +v 0.801022 0.586331 0.120750 +v -0.063483 0.978672 0.195376 +v -0.174138 0.943209 0.282901 +v -0.025408 0.943209 0.331227 +v -0.288916 0.882855 0.370262 +v -0.138197 0.894430 0.425320 +v 0.016098 0.882855 0.469369 +v -0.399272 0.798552 0.450440 +v -0.253366 0.819914 0.513369 +v -0.096779 0.819914 0.564248 +v 0.058250 0.798552 0.599101 +v -0.497009 0.696561 0.517479 +v -0.361804 0.723612 0.587778 +v -0.210088 0.733355 0.646571 +v -0.052790 0.723612 0.688185 +v 0.097915 0.696561 0.710785 +v -0.577066 0.586334 0.568513 +v -0.455902 0.614345 0.643998 +v -0.314971 0.629944 0.709904 +v -0.162463 0.629944 0.759458 +v -0.009708 0.614345 0.788978 +v 0.132684 0.586335 0.799129 +v -0.205432 0.978671 0.000000 +v -0.322868 0.943208 -0.078192 +v -0.322868 0.943208 0.078192 +v -0.441423 0.882855 -0.160354 +v -0.447210 0.894429 0.000000 +v -0.441423 0.882855 0.160354 +v -0.551779 0.798551 -0.240532 +v -0.566539 0.819912 -0.082322 +v -0.566539 0.819912 0.082322 +v -0.551779 0.798551 0.240532 +v -0.645740 0.696561 -0.312768 +v -0.670817 0.723611 -0.162457 +v -0.679848 0.733353 0.000000 +v -0.670817 0.723611 0.162457 +v -0.645740 0.696560 0.312768 +v -0.719015 0.586334 -0.373135 +v -0.753363 0.614343 -0.234576 +v -0.772492 0.629942 -0.080177 +v -0.772492 0.629942 0.080177 +v -0.753363 0.614343 0.234576 +v -0.719015 0.586334 0.373135 +v -0.063483 0.978672 -0.195376 +v -0.025408 0.943209 -0.331227 +v -0.174138 0.943209 -0.282901 +v 0.016098 0.882855 -0.469369 +v -0.138197 0.894430 -0.425319 +v -0.288916 0.882855 -0.370262 +v 0.058250 0.798552 -0.599101 +v -0.096779 0.819914 -0.564248 +v -0.253366 0.819914 -0.513369 +v -0.399272 0.798552 -0.450440 +v 0.097915 0.696561 -0.710785 +v -0.052790 0.723612 -0.688185 +v -0.210088 0.733355 -0.646571 +v -0.361804 0.723612 -0.587778 +v -0.497009 0.696561 -0.517479 +v 0.132684 0.586334 -0.799129 +v -0.009708 0.614345 -0.788978 +v -0.162463 0.629944 -0.759458 +v -0.314971 0.629944 -0.709904 +v -0.455902 0.614344 -0.643998 +v -0.577066 0.586334 -0.568513 +v 0.166198 0.978672 -0.120749 +v 0.307167 0.943208 -0.126518 +v 0.215245 0.943209 -0.253036 +v 0.451375 0.882854 -0.129731 +v 0.361800 0.894429 -0.262863 +v 0.262862 0.882855 -0.389192 +v 0.587783 0.798549 -0.129731 +v 0.506729 0.819912 -0.266403 +v 0.409951 0.819913 -0.399604 +v 0.305014 0.798552 -0.518924 +v 0.706258 0.696558 -0.126519 +v 0.638193 0.723610 -0.262864 +v 0.550008 0.733353 -0.399605 +v 0.447209 0.723612 -0.525728 +v 0.338569 0.696561 -0.632593 +v 0.801022 0.586331 -0.120750 +v 0.747366 0.614342 -0.253038 +v 0.672087 0.629942 -0.389194 +v 0.577830 0.629943 -0.518926 +v 0.471599 0.614344 -0.632594 +v 0.362366 0.586334 -0.724502 +vt 0.000000 0.000000 +vt 1.000000 0.000000 +vt 1.000000 1.000000 +usemtl None +s off +f 1/1 20/2 19/3 +f 2/1 26/2 40/3 +f 1/1 19/2 54/3 +f 1/1 54/2 68/3 +f 1/1 68/2 41/3 +f 2/1 40/2 89/3 +f 3/1 33/2 103/3 +f 4/1 61/2 117/3 +f 5/1 75/2 131/3 +f 6/1 82/2 145/3 +f 2/1 89/2 104/3 +f 3/1 103/2 118/3 +f 4/1 117/2 132/3 +f 5/1 131/2 146/3 +f 6/1 145/2 90/3 +f 7/1 159/2 194/3 +f 8/1 166/2 208/3 +f 9/1 173/2 215/3 +f 10/1 180/2 222/3 +f 11/1 187/2 195/3 +f 13/1 33/2 3/3 +f 14/1 223/2 13/3 +f 15/1 224/2 14/3 +f 16/1 226/2 15/3 +f 17/1 229/2 16/3 +f 18/1 233/2 17/3 +f 19/1 238/2 18/3 +f 13/1 223/2 33/3 +f 223/1 32/2 33/3 +f 14/1 224/2 223/3 +f 224/1 225/2 223/3 +f 223/1 225/2 32/3 +f 225/1 31/2 32/3 +f 15/1 226/2 224/3 +f 226/1 227/2 224/3 +f 224/1 227/2 225/3 +f 227/1 228/2 225/3 +f 225/1 228/2 31/3 +f 228/1 30/2 31/3 +f 16/1 229/2 226/3 +f 229/1 230/2 226/3 +f 226/1 230/2 227/3 +f 230/1 231/2 227/3 +f 227/1 231/2 228/3 +f 231/1 232/2 228/3 +f 228/1 232/2 30/3 +f 232/1 29/2 30/3 +f 17/1 233/2 229/3 +f 233/1 234/2 229/3 +f 229/1 234/2 230/3 +f 234/1 235/2 230/3 +f 230/1 235/2 231/3 +f 235/1 236/2 231/3 +f 231/1 236/2 232/3 +f 236/1 237/2 232/3 +f 232/1 237/2 29/3 +f 237/1 28/2 29/3 +f 18/1 238/2 233/3 +f 238/1 239/2 233/3 +f 233/1 239/2 234/3 +f 239/1 240/2 234/3 +f 234/1 240/2 235/3 +f 240/1 241/2 235/3 +f 235/1 241/2 236/3 +f 241/1 242/2 236/3 +f 236/1 242/2 237/3 +f 242/1 243/2 237/3 +f 237/1 243/2 28/3 +f 243/1 27/2 28/3 +f 19/1 20/2 238/3 +f 20/1 21/2 238/3 +f 238/1 21/2 239/3 +f 21/1 22/2 239/3 +f 239/1 22/2 240/3 +f 22/1 23/2 240/3 +f 240/1 23/2 241/3 +f 23/1 24/2 241/3 +f 241/1 24/2 242/3 +f 24/1 25/2 242/3 +f 242/1 25/2 243/3 +f 25/1 26/2 243/3 +f 243/1 26/2 27/3 +f 26/1 2/2 27/3 +f 34/1 47/2 6/3 +f 35/1 244/2 34/3 +f 36/1 245/2 35/3 +f 37/1 247/2 36/3 +f 38/1 250/2 37/3 +f 39/1 254/2 38/3 +f 40/1 259/2 39/3 +f 34/1 244/2 47/3 +f 244/1 46/2 47/3 +f 35/1 245/2 244/3 +f 245/1 246/2 244/3 +f 244/1 246/2 46/3 +f 246/1 45/2 46/3 +f 36/1 247/2 245/3 +f 247/1 248/2 245/3 +f 245/1 248/2 246/3 +f 248/1 249/2 246/3 +f 246/1 249/2 45/3 +f 249/1 44/2 45/3 +f 37/1 250/2 247/3 +f 250/1 251/2 247/3 +f 247/1 251/2 248/3 +f 251/1 252/2 248/3 +f 248/1 252/2 249/3 +f 252/1 253/2 249/3 +f 249/1 253/2 44/3 +f 253/1 43/2 44/3 +f 38/1 254/2 250/3 +f 254/1 255/2 250/3 +f 250/1 255/2 251/3 +f 255/1 256/2 251/3 +f 251/1 256/2 252/3 +f 256/1 257/2 252/3 +f 252/1 257/2 253/3 +f 257/1 258/2 253/3 +f 253/1 258/2 43/3 +f 258/1 42/2 43/3 +f 39/1 259/2 254/3 +f 259/1 260/2 254/3 +f 254/1 260/2 255/3 +f 260/1 261/2 255/3 +f 255/1 261/2 256/3 +f 261/1 262/2 256/3 +f 256/1 262/2 257/3 +f 262/1 263/2 257/3 +f 257/1 263/2 258/3 +f 263/1 264/2 258/3 +f 258/1 264/2 42/3 +f 264/1 41/2 42/3 +f 40/1 26/2 259/3 +f 26/1 25/2 259/3 +f 259/1 25/2 260/3 +f 25/1 24/2 260/3 +f 260/1 24/2 261/3 +f 24/1 23/2 261/3 +f 261/1 23/2 262/3 +f 23/1 22/2 262/3 +f 262/1 22/2 263/3 +f 22/1 21/2 263/3 +f 263/1 21/2 264/3 +f 21/1 20/2 264/3 +f 264/1 20/2 41/3 +f 20/1 1/2 41/3 +f 48/1 61/2 4/3 +f 49/1 265/2 48/3 +f 50/1 266/2 49/3 +f 51/1 268/2 50/3 +f 52/1 271/2 51/3 +f 53/1 275/2 52/3 +f 54/1 280/2 53/3 +f 48/1 265/2 61/3 +f 265/1 60/2 61/3 +f 49/1 266/2 265/3 +f 266/1 267/2 265/3 +f 265/1 267/2 60/3 +f 267/1 59/2 60/3 +f 50/1 268/2 266/3 +f 268/1 269/2 266/3 +f 266/1 269/2 267/3 +f 269/1 270/2 267/3 +f 267/1 270/2 59/3 +f 270/1 58/2 59/3 +f 51/1 271/2 268/3 +f 271/1 272/2 268/3 +f 268/1 272/2 269/3 +f 272/1 273/2 269/3 +f 269/1 273/2 270/3 +f 273/1 274/2 270/3 +f 270/1 274/2 58/3 +f 274/1 57/2 58/3 +f 52/1 275/2 271/3 +f 275/1 276/2 271/3 +f 271/1 276/2 272/3 +f 276/1 277/2 272/3 +f 272/1 277/2 273/3 +f 277/1 278/2 273/3 +f 273/1 278/2 274/3 +f 278/1 279/2 274/3 +f 274/1 279/2 57/3 +f 279/1 56/2 57/3 +f 53/1 280/2 275/3 +f 280/1 281/2 275/3 +f 275/1 281/2 276/3 +f 281/1 282/2 276/3 +f 276/1 282/2 277/3 +f 282/1 283/2 277/3 +f 277/1 283/2 278/3 +f 283/1 284/2 278/3 +f 278/1 284/2 279/3 +f 284/1 285/2 279/3 +f 279/1 285/2 56/3 +f 285/1 55/2 56/3 +f 54/1 19/2 280/3 +f 19/1 18/2 280/3 +f 280/1 18/2 281/3 +f 18/1 17/2 281/3 +f 281/1 17/2 282/3 +f 17/1 16/2 282/3 +f 282/1 16/2 283/3 +f 16/1 15/2 283/3 +f 283/1 15/2 284/3 +f 15/1 14/2 284/3 +f 284/1 14/2 285/3 +f 14/1 13/2 285/3 +f 285/1 13/2 55/3 +f 13/1 3/2 55/3 +f 62/1 75/2 5/3 +f 63/1 286/2 62/3 +f 64/1 287/2 63/3 +f 65/1 289/2 64/3 +f 66/1 292/2 65/3 +f 67/1 296/2 66/3 +f 68/1 301/2 67/3 +f 62/1 286/2 75/3 +f 286/1 74/2 75/3 +f 63/1 287/2 286/3 +f 287/1 288/2 286/3 +f 286/1 288/2 74/3 +f 288/1 73/2 74/3 +f 64/1 289/2 287/3 +f 289/1 290/2 287/3 +f 287/1 290/2 288/3 +f 290/1 291/2 288/3 +f 288/1 291/2 73/3 +f 291/1 72/2 73/3 +f 65/1 292/2 289/3 +f 292/1 293/2 289/3 +f 289/1 293/2 290/3 +f 293/1 294/2 290/3 +f 290/1 294/2 291/3 +f 294/1 295/2 291/3 +f 291/1 295/2 72/3 +f 295/1 71/2 72/3 +f 66/1 296/2 292/3 +f 296/1 297/2 292/3 +f 292/1 297/2 293/3 +f 297/1 298/2 293/3 +f 293/1 298/2 294/3 +f 298/1 299/2 294/3 +f 294/1 299/2 295/3 +f 299/1 300/2 295/3 +f 295/1 300/2 71/3 +f 300/1 70/2 71/3 +f 67/1 301/2 296/3 +f 301/1 302/2 296/3 +f 296/1 302/2 297/3 +f 302/1 303/2 297/3 +f 297/1 303/2 298/3 +f 303/1 304/2 298/3 +f 298/1 304/2 299/3 +f 304/1 305/2 299/3 +f 299/1 305/2 300/3 +f 305/1 306/2 300/3 +f 300/1 306/2 70/3 +f 306/1 69/2 70/3 +f 68/1 54/2 301/3 +f 54/1 53/2 301/3 +f 301/1 53/2 302/3 +f 53/1 52/2 302/3 +f 302/1 52/2 303/3 +f 52/1 51/2 303/3 +f 303/1 51/2 304/3 +f 51/1 50/2 304/3 +f 304/1 50/2 305/3 +f 50/1 49/2 305/3 +f 305/1 49/2 306/3 +f 49/1 48/2 306/3 +f 306/1 48/2 69/3 +f 48/1 4/2 69/3 +f 47/1 82/2 6/3 +f 46/1 307/2 47/3 +f 45/1 308/2 46/3 +f 44/1 310/2 45/3 +f 43/1 313/2 44/3 +f 42/1 317/2 43/3 +f 41/1 322/2 42/3 +f 47/1 307/2 82/3 +f 307/1 81/2 82/3 +f 46/1 308/2 307/3 +f 308/1 309/2 307/3 +f 307/1 309/2 81/3 +f 309/1 80/2 81/3 +f 45/1 310/2 308/3 +f 310/1 311/2 308/3 +f 308/1 311/2 309/3 +f 311/1 312/2 309/3 +f 309/1 312/2 80/3 +f 312/1 79/2 80/3 +f 44/1 313/2 310/3 +f 313/1 314/2 310/3 +f 310/1 314/2 311/3 +f 314/1 315/2 311/3 +f 311/1 315/2 312/3 +f 315/1 316/2 312/3 +f 312/1 316/2 79/3 +f 316/1 78/2 79/3 +f 43/1 317/2 313/3 +f 317/1 318/2 313/3 +f 313/1 318/2 314/3 +f 318/1 319/2 314/3 +f 314/1 319/2 315/3 +f 319/1 320/2 315/3 +f 315/1 320/2 316/3 +f 320/1 321/2 316/3 +f 316/1 321/2 78/3 +f 321/1 77/2 78/3 +f 42/1 322/2 317/3 +f 322/1 323/2 317/3 +f 317/1 323/2 318/3 +f 323/1 324/2 318/3 +f 318/1 324/2 319/3 +f 324/1 325/2 319/3 +f 319/1 325/2 320/3 +f 325/1 326/2 320/3 +f 320/1 326/2 321/3 +f 326/1 327/2 321/3 +f 321/1 327/2 77/3 +f 327/1 76/2 77/3 +f 41/1 68/2 322/3 +f 68/1 67/2 322/3 +f 322/1 67/2 323/3 +f 67/1 66/2 323/3 +f 323/1 66/2 324/3 +f 66/1 65/2 324/3 +f 324/1 65/2 325/3 +f 65/1 64/2 325/3 +f 325/1 64/2 326/3 +f 64/1 63/2 326/3 +f 326/1 63/2 327/3 +f 63/1 62/2 327/3 +f 327/1 62/2 76/3 +f 62/1 5/2 76/3 +f 83/1 96/2 11/3 +f 84/1 328/2 83/3 +f 85/1 329/2 84/3 +f 86/1 331/2 85/3 +f 87/1 334/2 86/3 +f 88/1 338/2 87/3 +f 89/1 343/2 88/3 +f 83/1 328/2 96/3 +f 328/1 95/2 96/3 +f 84/1 329/2 328/3 +f 329/1 330/2 328/3 +f 328/1 330/2 95/3 +f 330/1 94/2 95/3 +f 85/1 331/2 329/3 +f 331/1 332/2 329/3 +f 329/1 332/2 330/3 +f 332/1 333/2 330/3 +f 330/1 333/2 94/3 +f 333/1 93/2 94/3 +f 86/1 334/2 331/3 +f 334/1 335/2 331/3 +f 331/1 335/2 332/3 +f 335/1 336/2 332/3 +f 332/1 336/2 333/3 +f 336/1 337/2 333/3 +f 333/1 337/2 93/3 +f 337/1 92/2 93/3 +f 87/1 338/2 334/3 +f 338/1 339/2 334/3 +f 334/1 339/2 335/3 +f 339/1 340/2 335/3 +f 335/1 340/2 336/3 +f 340/1 341/2 336/3 +f 336/1 341/2 337/3 +f 341/1 342/2 337/3 +f 337/1 342/2 92/3 +f 342/1 91/2 92/3 +f 88/1 343/2 338/3 +f 343/1 344/2 338/3 +f 338/1 344/2 339/3 +f 344/1 345/2 339/3 +f 339/1 345/2 340/3 +f 345/1 346/2 340/3 +f 340/1 346/2 341/3 +f 346/1 347/2 341/3 +f 341/1 347/2 342/3 +f 347/1 348/2 342/3 +f 342/1 348/2 91/3 +f 348/1 90/2 91/3 +f 89/1 40/2 343/3 +f 40/1 39/2 343/3 +f 343/1 39/2 344/3 +f 39/1 38/2 344/3 +f 344/1 38/2 345/3 +f 38/1 37/2 345/3 +f 345/1 37/2 346/3 +f 37/1 36/2 346/3 +f 346/1 36/2 347/3 +f 36/1 35/2 347/3 +f 347/1 35/2 348/3 +f 35/1 34/2 348/3 +f 348/1 34/2 90/3 +f 34/1 6/2 90/3 +f 97/1 110/2 7/3 +f 98/1 349/2 97/3 +f 99/1 350/2 98/3 +f 100/1 352/2 99/3 +f 101/1 355/2 100/3 +f 102/1 359/2 101/3 +f 103/1 364/2 102/3 +f 97/1 349/2 110/3 +f 349/1 109/2 110/3 +f 98/1 350/2 349/3 +f 350/1 351/2 349/3 +f 349/1 351/2 109/3 +f 351/1 108/2 109/3 +f 99/1 352/2 350/3 +f 352/1 353/2 350/3 +f 350/1 353/2 351/3 +f 353/1 354/2 351/3 +f 351/1 354/2 108/3 +f 354/1 107/2 108/3 +f 100/1 355/2 352/3 +f 355/1 356/2 352/3 +f 352/1 356/2 353/3 +f 356/1 357/2 353/3 +f 353/1 357/2 354/3 +f 357/1 358/2 354/3 +f 354/1 358/2 107/3 +f 358/1 106/2 107/3 +f 101/1 359/2 355/3 +f 359/1 360/2 355/3 +f 355/1 360/2 356/3 +f 360/1 361/2 356/3 +f 356/1 361/2 357/3 +f 361/1 362/2 357/3 +f 357/1 362/2 358/3 +f 362/1 363/2 358/3 +f 358/1 363/2 106/3 +f 363/1 105/2 106/3 +f 102/1 364/2 359/3 +f 364/1 365/2 359/3 +f 359/1 365/2 360/3 +f 365/1 366/2 360/3 +f 360/1 366/2 361/3 +f 366/1 367/2 361/3 +f 361/1 367/2 362/3 +f 367/1 368/2 362/3 +f 362/1 368/2 363/3 +f 368/1 369/2 363/3 +f 363/1 369/2 105/3 +f 369/1 104/2 105/3 +f 103/1 33/2 364/3 +f 33/1 32/2 364/3 +f 364/1 32/2 365/3 +f 32/1 31/2 365/3 +f 365/1 31/2 366/3 +f 31/1 30/2 366/3 +f 366/1 30/2 367/3 +f 30/1 29/2 367/3 +f 367/1 29/2 368/3 +f 29/1 28/2 368/3 +f 368/1 28/2 369/3 +f 28/1 27/2 369/3 +f 369/1 27/2 104/3 +f 27/1 2/2 104/3 +f 111/1 124/2 8/3 +f 112/1 370/2 111/3 +f 113/1 371/2 112/3 +f 114/1 373/2 113/3 +f 115/1 376/2 114/3 +f 116/1 380/2 115/3 +f 117/1 385/2 116/3 +f 111/1 370/2 124/3 +f 370/1 123/2 124/3 +f 112/1 371/2 370/3 +f 371/1 372/2 370/3 +f 370/1 372/2 123/3 +f 372/1 122/2 123/3 +f 113/1 373/2 371/3 +f 373/1 374/2 371/3 +f 371/1 374/2 372/3 +f 374/1 375/2 372/3 +f 372/1 375/2 122/3 +f 375/1 121/2 122/3 +f 114/1 376/2 373/3 +f 376/1 377/2 373/3 +f 373/1 377/2 374/3 +f 377/1 378/2 374/3 +f 374/1 378/2 375/3 +f 378/1 379/2 375/3 +f 375/1 379/2 121/3 +f 379/1 120/2 121/3 +f 115/1 380/2 376/3 +f 380/1 381/2 376/3 +f 376/1 381/2 377/3 +f 381/1 382/2 377/3 +f 377/1 382/2 378/3 +f 382/1 383/2 378/3 +f 378/1 383/2 379/3 +f 383/1 384/2 379/3 +f 379/1 384/2 120/3 +f 384/1 119/2 120/3 +f 116/1 385/2 380/3 +f 385/1 386/2 380/3 +f 380/1 386/2 381/3 +f 386/1 387/2 381/3 +f 381/1 387/2 382/3 +f 387/1 388/2 382/3 +f 382/1 388/2 383/3 +f 388/1 389/2 383/3 +f 383/1 389/2 384/3 +f 389/1 390/2 384/3 +f 384/1 390/2 119/3 +f 390/1 118/2 119/3 +f 117/1 61/2 385/3 +f 61/1 60/2 385/3 +f 385/1 60/2 386/3 +f 60/1 59/2 386/3 +f 386/1 59/2 387/3 +f 59/1 58/2 387/3 +f 387/1 58/2 388/3 +f 58/1 57/2 388/3 +f 388/1 57/2 389/3 +f 57/1 56/2 389/3 +f 389/1 56/2 390/3 +f 56/1 55/2 390/3 +f 390/1 55/2 118/3 +f 55/1 3/2 118/3 +f 125/1 138/2 9/3 +f 126/1 391/2 125/3 +f 127/1 392/2 126/3 +f 128/1 394/2 127/3 +f 129/1 397/2 128/3 +f 130/1 401/2 129/3 +f 131/1 406/2 130/3 +f 125/1 391/2 138/3 +f 391/1 137/2 138/3 +f 126/1 392/2 391/3 +f 392/1 393/2 391/3 +f 391/1 393/2 137/3 +f 393/1 136/2 137/3 +f 127/1 394/2 392/3 +f 394/1 395/2 392/3 +f 392/1 395/2 393/3 +f 395/1 396/2 393/3 +f 393/1 396/2 136/3 +f 396/1 135/2 136/3 +f 128/1 397/2 394/3 +f 397/1 398/2 394/3 +f 394/1 398/2 395/3 +f 398/1 399/2 395/3 +f 395/1 399/2 396/3 +f 399/1 400/2 396/3 +f 396/1 400/2 135/3 +f 400/1 134/2 135/3 +f 129/1 401/2 397/3 +f 401/1 402/2 397/3 +f 397/1 402/2 398/3 +f 402/1 403/2 398/3 +f 398/1 403/2 399/3 +f 403/1 404/2 399/3 +f 399/1 404/2 400/3 +f 404/1 405/2 400/3 +f 400/1 405/2 134/3 +f 405/1 133/2 134/3 +f 130/1 406/2 401/3 +f 406/1 407/2 401/3 +f 401/1 407/2 402/3 +f 407/1 408/2 402/3 +f 402/1 408/2 403/3 +f 408/1 409/2 403/3 +f 403/1 409/2 404/3 +f 409/1 410/2 404/3 +f 404/1 410/2 405/3 +f 410/1 411/2 405/3 +f 405/1 411/2 133/3 +f 411/1 132/2 133/3 +f 131/1 75/2 406/3 +f 75/1 74/2 406/3 +f 406/1 74/2 407/3 +f 74/1 73/2 407/3 +f 407/1 73/2 408/3 +f 73/1 72/2 408/3 +f 408/1 72/2 409/3 +f 72/1 71/2 409/3 +f 409/1 71/2 410/3 +f 71/1 70/2 410/3 +f 410/1 70/2 411/3 +f 70/1 69/2 411/3 +f 411/1 69/2 132/3 +f 69/1 4/2 132/3 +f 139/1 152/2 10/3 +f 140/1 412/2 139/3 +f 141/1 413/2 140/3 +f 142/1 415/2 141/3 +f 143/1 418/2 142/3 +f 144/1 422/2 143/3 +f 145/1 427/2 144/3 +f 139/1 412/2 152/3 +f 412/1 151/2 152/3 +f 140/1 413/2 412/3 +f 413/1 414/2 412/3 +f 412/1 414/2 151/3 +f 414/1 150/2 151/3 +f 141/1 415/2 413/3 +f 415/1 416/2 413/3 +f 413/1 416/2 414/3 +f 416/1 417/2 414/3 +f 414/1 417/2 150/3 +f 417/1 149/2 150/3 +f 142/1 418/2 415/3 +f 418/1 419/2 415/3 +f 415/1 419/2 416/3 +f 419/1 420/2 416/3 +f 416/1 420/2 417/3 +f 420/1 421/2 417/3 +f 417/1 421/2 149/3 +f 421/1 148/2 149/3 +f 143/1 422/2 418/3 +f 422/1 423/2 418/3 +f 418/1 423/2 419/3 +f 423/1 424/2 419/3 +f 419/1 424/2 420/3 +f 424/1 425/2 420/3 +f 420/1 425/2 421/3 +f 425/1 426/2 421/3 +f 421/1 426/2 148/3 +f 426/1 147/2 148/3 +f 144/1 427/2 422/3 +f 427/1 428/2 422/3 +f 422/1 428/2 423/3 +f 428/1 429/2 423/3 +f 423/1 429/2 424/3 +f 429/1 430/2 424/3 +f 424/1 430/2 425/3 +f 430/1 431/2 425/3 +f 425/1 431/2 426/3 +f 431/1 432/2 426/3 +f 426/1 432/2 147/3 +f 432/1 146/2 147/3 +f 145/1 82/2 427/3 +f 82/1 81/2 427/3 +f 427/1 81/2 428/3 +f 81/1 80/2 428/3 +f 428/1 80/2 429/3 +f 80/1 79/2 429/3 +f 429/1 79/2 430/3 +f 79/1 78/2 430/3 +f 430/1 78/2 431/3 +f 78/1 77/2 431/3 +f 431/1 77/2 432/3 +f 77/1 76/2 432/3 +f 432/1 76/2 146/3 +f 76/1 5/2 146/3 +f 110/1 159/2 7/3 +f 109/1 433/2 110/3 +f 108/1 434/2 109/3 +f 107/1 436/2 108/3 +f 106/1 439/2 107/3 +f 105/1 443/2 106/3 +f 104/1 448/2 105/3 +f 110/1 433/2 159/3 +f 433/1 158/2 159/3 +f 109/1 434/2 433/3 +f 434/1 435/2 433/3 +f 433/1 435/2 158/3 +f 435/1 157/2 158/3 +f 108/1 436/2 434/3 +f 436/1 437/2 434/3 +f 434/1 437/2 435/3 +f 437/1 438/2 435/3 +f 435/1 438/2 157/3 +f 438/1 156/2 157/3 +f 107/1 439/2 436/3 +f 439/1 440/2 436/3 +f 436/1 440/2 437/3 +f 440/1 441/2 437/3 +f 437/1 441/2 438/3 +f 441/1 442/2 438/3 +f 438/1 442/2 156/3 +f 442/1 155/2 156/3 +f 106/1 443/2 439/3 +f 443/1 444/2 439/3 +f 439/1 444/2 440/3 +f 444/1 445/2 440/3 +f 440/1 445/2 441/3 +f 445/1 446/2 441/3 +f 441/1 446/2 442/3 +f 446/1 447/2 442/3 +f 442/1 447/2 155/3 +f 447/1 154/2 155/3 +f 105/1 448/2 443/3 +f 448/1 449/2 443/3 +f 443/1 449/2 444/3 +f 449/1 450/2 444/3 +f 444/1 450/2 445/3 +f 450/1 451/2 445/3 +f 445/1 451/2 446/3 +f 451/1 452/2 446/3 +f 446/1 452/2 447/3 +f 452/1 453/2 447/3 +f 447/1 453/2 154/3 +f 453/1 153/2 154/3 +f 104/1 89/2 448/3 +f 89/1 88/2 448/3 +f 448/1 88/2 449/3 +f 88/1 87/2 449/3 +f 449/1 87/2 450/3 +f 87/1 86/2 450/3 +f 450/1 86/2 451/3 +f 86/1 85/2 451/3 +f 451/1 85/2 452/3 +f 85/1 84/2 452/3 +f 452/1 84/2 453/3 +f 84/1 83/2 453/3 +f 453/1 83/2 153/3 +f 83/1 11/2 153/3 +f 124/1 166/2 8/3 +f 123/1 454/2 124/3 +f 122/1 455/2 123/3 +f 121/1 457/2 122/3 +f 120/1 460/2 121/3 +f 119/1 464/2 120/3 +f 118/1 469/2 119/3 +f 124/1 454/2 166/3 +f 454/1 165/2 166/3 +f 123/1 455/2 454/3 +f 455/1 456/2 454/3 +f 454/1 456/2 165/3 +f 456/1 164/2 165/3 +f 122/1 457/2 455/3 +f 457/1 458/2 455/3 +f 455/1 458/2 456/3 +f 458/1 459/2 456/3 +f 456/1 459/2 164/3 +f 459/1 163/2 164/3 +f 121/1 460/2 457/3 +f 460/1 461/2 457/3 +f 457/1 461/2 458/3 +f 461/1 462/2 458/3 +f 458/1 462/2 459/3 +f 462/1 463/2 459/3 +f 459/1 463/2 163/3 +f 463/1 162/2 163/3 +f 120/1 464/2 460/3 +f 464/1 465/2 460/3 +f 460/1 465/2 461/3 +f 465/1 466/2 461/3 +f 461/1 466/2 462/3 +f 466/1 467/2 462/3 +f 462/1 467/2 463/3 +f 467/1 468/2 463/3 +f 463/1 468/2 162/3 +f 468/1 161/2 162/3 +f 119/1 469/2 464/3 +f 469/1 470/2 464/3 +f 464/1 470/2 465/3 +f 470/1 471/2 465/3 +f 465/1 471/2 466/3 +f 471/1 472/2 466/3 +f 466/1 472/2 467/3 +f 472/1 473/2 467/3 +f 467/1 473/2 468/3 +f 473/1 474/2 468/3 +f 468/1 474/2 161/3 +f 474/1 160/2 161/3 +f 118/1 103/2 469/3 +f 103/1 102/2 469/3 +f 469/1 102/2 470/3 +f 102/1 101/2 470/3 +f 470/1 101/2 471/3 +f 101/1 100/2 471/3 +f 471/1 100/2 472/3 +f 100/1 99/2 472/3 +f 472/1 99/2 473/3 +f 99/1 98/2 473/3 +f 473/1 98/2 474/3 +f 98/1 97/2 474/3 +f 474/1 97/2 160/3 +f 97/1 7/2 160/3 +f 138/1 173/2 9/3 +f 137/1 475/2 138/3 +f 136/1 476/2 137/3 +f 135/1 478/2 136/3 +f 134/1 481/2 135/3 +f 133/1 485/2 134/3 +f 132/1 490/2 133/3 +f 138/1 475/2 173/3 +f 475/1 172/2 173/3 +f 137/1 476/2 475/3 +f 476/1 477/2 475/3 +f 475/1 477/2 172/3 +f 477/1 171/2 172/3 +f 136/1 478/2 476/3 +f 478/1 479/2 476/3 +f 476/1 479/2 477/3 +f 479/1 480/2 477/3 +f 477/1 480/2 171/3 +f 480/1 170/2 171/3 +f 135/1 481/2 478/3 +f 481/1 482/2 478/3 +f 478/1 482/2 479/3 +f 482/1 483/2 479/3 +f 479/1 483/2 480/3 +f 483/1 484/2 480/3 +f 480/1 484/2 170/3 +f 484/1 169/2 170/3 +f 134/1 485/2 481/3 +f 485/1 486/2 481/3 +f 481/1 486/2 482/3 +f 486/1 487/2 482/3 +f 482/1 487/2 483/3 +f 487/1 488/2 483/3 +f 483/1 488/2 484/3 +f 488/1 489/2 484/3 +f 484/1 489/2 169/3 +f 489/1 168/2 169/3 +f 133/1 490/2 485/3 +f 490/1 491/2 485/3 +f 485/1 491/2 486/3 +f 491/1 492/2 486/3 +f 486/1 492/2 487/3 +f 492/1 493/2 487/3 +f 487/1 493/2 488/3 +f 493/1 494/2 488/3 +f 488/1 494/2 489/3 +f 494/1 495/2 489/3 +f 489/1 495/2 168/3 +f 495/1 167/2 168/3 +f 132/1 117/2 490/3 +f 117/1 116/2 490/3 +f 490/1 116/2 491/3 +f 116/1 115/2 491/3 +f 491/1 115/2 492/3 +f 115/1 114/2 492/3 +f 492/1 114/2 493/3 +f 114/1 113/2 493/3 +f 493/1 113/2 494/3 +f 113/1 112/2 494/3 +f 494/1 112/2 495/3 +f 112/1 111/2 495/3 +f 495/1 111/2 167/3 +f 111/1 8/2 167/3 +f 152/1 180/2 10/3 +f 151/1 496/2 152/3 +f 150/1 497/2 151/3 +f 149/1 499/2 150/3 +f 148/1 502/2 149/3 +f 147/1 506/2 148/3 +f 146/1 511/2 147/3 +f 152/1 496/2 180/3 +f 496/1 179/2 180/3 +f 151/1 497/2 496/3 +f 497/1 498/2 496/3 +f 496/1 498/2 179/3 +f 498/1 178/2 179/3 +f 150/1 499/2 497/3 +f 499/1 500/2 497/3 +f 497/1 500/2 498/3 +f 500/1 501/2 498/3 +f 498/1 501/2 178/3 +f 501/1 177/2 178/3 +f 149/1 502/2 499/3 +f 502/1 503/2 499/3 +f 499/1 503/2 500/3 +f 503/1 504/2 500/3 +f 500/1 504/2 501/3 +f 504/1 505/2 501/3 +f 501/1 505/2 177/3 +f 505/1 176/2 177/3 +f 148/1 506/2 502/3 +f 506/1 507/2 502/3 +f 502/1 507/2 503/3 +f 507/1 508/2 503/3 +f 503/1 508/2 504/3 +f 508/1 509/2 504/3 +f 504/1 509/2 505/3 +f 509/1 510/2 505/3 +f 505/1 510/2 176/3 +f 510/1 175/2 176/3 +f 147/1 511/2 506/3 +f 511/1 512/2 506/3 +f 506/1 512/2 507/3 +f 512/1 513/2 507/3 +f 507/1 513/2 508/3 +f 513/1 514/2 508/3 +f 508/1 514/2 509/3 +f 514/1 515/2 509/3 +f 509/1 515/2 510/3 +f 515/1 516/2 510/3 +f 510/1 516/2 175/3 +f 516/1 174/2 175/3 +f 146/1 131/2 511/3 +f 131/1 130/2 511/3 +f 511/1 130/2 512/3 +f 130/1 129/2 512/3 +f 512/1 129/2 513/3 +f 129/1 128/2 513/3 +f 513/1 128/2 514/3 +f 128/1 127/2 514/3 +f 514/1 127/2 515/3 +f 127/1 126/2 515/3 +f 515/1 126/2 516/3 +f 126/1 125/2 516/3 +f 516/1 125/2 174/3 +f 125/1 9/2 174/3 +f 96/1 187/2 11/3 +f 95/1 517/2 96/3 +f 94/1 518/2 95/3 +f 93/1 520/2 94/3 +f 92/1 523/2 93/3 +f 91/1 527/2 92/3 +f 90/1 532/2 91/3 +f 96/1 517/2 187/3 +f 517/1 186/2 187/3 +f 95/1 518/2 517/3 +f 518/1 519/2 517/3 +f 517/1 519/2 186/3 +f 519/1 185/2 186/3 +f 94/1 520/2 518/3 +f 520/1 521/2 518/3 +f 518/1 521/2 519/3 +f 521/1 522/2 519/3 +f 519/1 522/2 185/3 +f 522/1 184/2 185/3 +f 93/1 523/2 520/3 +f 523/1 524/2 520/3 +f 520/1 524/2 521/3 +f 524/1 525/2 521/3 +f 521/1 525/2 522/3 +f 525/1 526/2 522/3 +f 522/1 526/2 184/3 +f 526/1 183/2 184/3 +f 92/1 527/2 523/3 +f 527/1 528/2 523/3 +f 523/1 528/2 524/3 +f 528/1 529/2 524/3 +f 524/1 529/2 525/3 +f 529/1 530/2 525/3 +f 525/1 530/2 526/3 +f 530/1 531/2 526/3 +f 526/1 531/2 183/3 +f 531/1 182/2 183/3 +f 91/1 532/2 527/3 +f 532/1 533/2 527/3 +f 527/1 533/2 528/3 +f 533/1 534/2 528/3 +f 528/1 534/2 529/3 +f 534/1 535/2 529/3 +f 529/1 535/2 530/3 +f 535/1 536/2 530/3 +f 530/1 536/2 531/3 +f 536/1 537/2 531/3 +f 531/1 537/2 182/3 +f 537/1 181/2 182/3 +f 90/1 145/2 532/3 +f 145/1 144/2 532/3 +f 532/1 144/2 533/3 +f 144/1 143/2 533/3 +f 533/1 143/2 534/3 +f 143/1 142/2 534/3 +f 534/1 142/2 535/3 +f 142/1 141/2 535/3 +f 535/1 141/2 536/3 +f 141/1 140/2 536/3 +f 536/1 140/2 537/3 +f 140/1 139/2 537/3 +f 537/1 139/2 181/3 +f 139/1 10/2 181/3 +f 188/1 201/2 12/3 +f 189/1 538/2 188/3 +f 190/1 539/2 189/3 +f 191/1 541/2 190/3 +f 192/1 544/2 191/3 +f 193/1 548/2 192/3 +f 194/1 553/2 193/3 +f 188/1 538/2 201/3 +f 538/1 200/2 201/3 +f 189/1 539/2 538/3 +f 539/1 540/2 538/3 +f 538/1 540/2 200/3 +f 540/1 199/2 200/3 +f 190/1 541/2 539/3 +f 541/1 542/2 539/3 +f 539/1 542/2 540/3 +f 542/1 543/2 540/3 +f 540/1 543/2 199/3 +f 543/1 198/2 199/3 +f 191/1 544/2 541/3 +f 544/1 545/2 541/3 +f 541/1 545/2 542/3 +f 545/1 546/2 542/3 +f 542/1 546/2 543/3 +f 546/1 547/2 543/3 +f 543/1 547/2 198/3 +f 547/1 197/2 198/3 +f 192/1 548/2 544/3 +f 548/1 549/2 544/3 +f 544/1 549/2 545/3 +f 549/1 550/2 545/3 +f 545/1 550/2 546/3 +f 550/1 551/2 546/3 +f 546/1 551/2 547/3 +f 551/1 552/2 547/3 +f 547/1 552/2 197/3 +f 552/1 196/2 197/3 +f 193/1 553/2 548/3 +f 553/1 554/2 548/3 +f 548/1 554/2 549/3 +f 554/1 555/2 549/3 +f 549/1 555/2 550/3 +f 555/1 556/2 550/3 +f 550/1 556/2 551/3 +f 556/1 557/2 551/3 +f 551/1 557/2 552/3 +f 557/1 558/2 552/3 +f 552/1 558/2 196/3 +f 558/1 195/2 196/3 +f 194/1 159/2 553/3 +f 159/1 158/2 553/3 +f 553/1 158/2 554/3 +f 158/1 157/2 554/3 +f 554/1 157/2 555/3 +f 157/1 156/2 555/3 +f 555/1 156/2 556/3 +f 156/1 155/2 556/3 +f 556/1 155/2 557/3 +f 155/1 154/2 557/3 +f 557/1 154/2 558/3 +f 154/1 153/2 558/3 +f 558/1 153/2 195/3 +f 153/1 11/2 195/3 +f 202/1 188/2 12/3 +f 203/1 559/2 202/3 +f 204/1 560/2 203/3 +f 205/1 562/2 204/3 +f 206/1 565/2 205/3 +f 207/1 569/2 206/3 +f 208/1 574/2 207/3 +f 202/1 559/2 188/3 +f 559/1 189/2 188/3 +f 203/1 560/2 559/3 +f 560/1 561/2 559/3 +f 559/1 561/2 189/3 +f 561/1 190/2 189/3 +f 204/1 562/2 560/3 +f 562/1 563/2 560/3 +f 560/1 563/2 561/3 +f 563/1 564/2 561/3 +f 561/1 564/2 190/3 +f 564/1 191/2 190/3 +f 205/1 565/2 562/3 +f 565/1 566/2 562/3 +f 562/1 566/2 563/3 +f 566/1 567/2 563/3 +f 563/1 567/2 564/3 +f 567/1 568/2 564/3 +f 564/1 568/2 191/3 +f 568/1 192/2 191/3 +f 206/1 569/2 565/3 +f 569/1 570/2 565/3 +f 565/1 570/2 566/3 +f 570/1 571/2 566/3 +f 566/1 571/2 567/3 +f 571/1 572/2 567/3 +f 567/1 572/2 568/3 +f 572/1 573/2 568/3 +f 568/1 573/2 192/3 +f 573/1 193/2 192/3 +f 207/1 574/2 569/3 +f 574/1 575/2 569/3 +f 569/1 575/2 570/3 +f 575/1 576/2 570/3 +f 570/1 576/2 571/3 +f 576/1 577/2 571/3 +f 571/1 577/2 572/3 +f 577/1 578/2 572/3 +f 572/1 578/2 573/3 +f 578/1 579/2 573/3 +f 573/1 579/2 193/3 +f 579/1 194/2 193/3 +f 208/1 166/2 574/3 +f 166/1 165/2 574/3 +f 574/1 165/2 575/3 +f 165/1 164/2 575/3 +f 575/1 164/2 576/3 +f 164/1 163/2 576/3 +f 576/1 163/2 577/3 +f 163/1 162/2 577/3 +f 577/1 162/2 578/3 +f 162/1 161/2 578/3 +f 578/1 161/2 579/3 +f 161/1 160/2 579/3 +f 579/1 160/2 194/3 +f 160/1 7/2 194/3 +f 209/1 202/2 12/3 +f 210/1 580/2 209/3 +f 211/1 581/2 210/3 +f 212/1 583/2 211/3 +f 213/1 586/2 212/3 +f 214/1 590/2 213/3 +f 215/1 595/2 214/3 +f 209/1 580/2 202/3 +f 580/1 203/2 202/3 +f 210/1 581/2 580/3 +f 581/1 582/2 580/3 +f 580/1 582/2 203/3 +f 582/1 204/2 203/3 +f 211/1 583/2 581/3 +f 583/1 584/2 581/3 +f 581/1 584/2 582/3 +f 584/1 585/2 582/3 +f 582/1 585/2 204/3 +f 585/1 205/2 204/3 +f 212/1 586/2 583/3 +f 586/1 587/2 583/3 +f 583/1 587/2 584/3 +f 587/1 588/2 584/3 +f 584/1 588/2 585/3 +f 588/1 589/2 585/3 +f 585/1 589/2 205/3 +f 589/1 206/2 205/3 +f 213/1 590/2 586/3 +f 590/1 591/2 586/3 +f 586/1 591/2 587/3 +f 591/1 592/2 587/3 +f 587/1 592/2 588/3 +f 592/1 593/2 588/3 +f 588/1 593/2 589/3 +f 593/1 594/2 589/3 +f 589/1 594/2 206/3 +f 594/1 207/2 206/3 +f 214/1 595/2 590/3 +f 595/1 596/2 590/3 +f 590/1 596/2 591/3 +f 596/1 597/2 591/3 +f 591/1 597/2 592/3 +f 597/1 598/2 592/3 +f 592/1 598/2 593/3 +f 598/1 599/2 593/3 +f 593/1 599/2 594/3 +f 599/1 600/2 594/3 +f 594/1 600/2 207/3 +f 600/1 208/2 207/3 +f 215/1 173/2 595/3 +f 173/1 172/2 595/3 +f 595/1 172/2 596/3 +f 172/1 171/2 596/3 +f 596/1 171/2 597/3 +f 171/1 170/2 597/3 +f 597/1 170/2 598/3 +f 170/1 169/2 598/3 +f 598/1 169/2 599/3 +f 169/1 168/2 599/3 +f 599/1 168/2 600/3 +f 168/1 167/2 600/3 +f 600/1 167/2 208/3 +f 167/1 8/2 208/3 +f 216/1 209/2 12/3 +f 217/1 601/2 216/3 +f 218/1 602/2 217/3 +f 219/1 604/2 218/3 +f 220/1 607/2 219/3 +f 221/1 611/2 220/3 +f 222/1 616/2 221/3 +f 216/1 601/2 209/3 +f 601/1 210/2 209/3 +f 217/1 602/2 601/3 +f 602/1 603/2 601/3 +f 601/1 603/2 210/3 +f 603/1 211/2 210/3 +f 218/1 604/2 602/3 +f 604/1 605/2 602/3 +f 602/1 605/2 603/3 +f 605/1 606/2 603/3 +f 603/1 606/2 211/3 +f 606/1 212/2 211/3 +f 219/1 607/2 604/3 +f 607/1 608/2 604/3 +f 604/1 608/2 605/3 +f 608/1 609/2 605/3 +f 605/1 609/2 606/3 +f 609/1 610/2 606/3 +f 606/1 610/2 212/3 +f 610/1 213/2 212/3 +f 220/1 611/2 607/3 +f 611/1 612/2 607/3 +f 607/1 612/2 608/3 +f 612/1 613/2 608/3 +f 608/1 613/2 609/3 +f 613/1 614/2 609/3 +f 609/1 614/2 610/3 +f 614/1 615/2 610/3 +f 610/1 615/2 213/3 +f 615/1 214/2 213/3 +f 221/1 616/2 611/3 +f 616/1 617/2 611/3 +f 611/1 617/2 612/3 +f 617/1 618/2 612/3 +f 612/1 618/2 613/3 +f 618/1 619/2 613/3 +f 613/1 619/2 614/3 +f 619/1 620/2 614/3 +f 614/1 620/2 615/3 +f 620/1 621/2 615/3 +f 615/1 621/2 214/3 +f 621/1 215/2 214/3 +f 222/1 180/2 616/3 +f 180/1 179/2 616/3 +f 616/1 179/2 617/3 +f 179/1 178/2 617/3 +f 617/1 178/2 618/3 +f 178/1 177/2 618/3 +f 618/1 177/2 619/3 +f 177/1 176/2 619/3 +f 619/1 176/2 620/3 +f 176/1 175/2 620/3 +f 620/1 175/2 621/3 +f 175/1 174/2 621/3 +f 621/1 174/2 215/3 +f 174/1 9/2 215/3 +f 201/1 216/2 12/3 +f 200/1 622/2 201/3 +f 199/1 623/2 200/3 +f 198/1 625/2 199/3 +f 197/1 628/2 198/3 +f 196/1 632/2 197/3 +f 195/1 637/2 196/3 +f 201/1 622/2 216/3 +f 622/1 217/2 216/3 +f 200/1 623/2 622/3 +f 623/1 624/2 622/3 +f 622/1 624/2 217/3 +f 624/1 218/2 217/3 +f 199/1 625/2 623/3 +f 625/1 626/2 623/3 +f 623/1 626/2 624/3 +f 626/1 627/2 624/3 +f 624/1 627/2 218/3 +f 627/1 219/2 218/3 +f 198/1 628/2 625/3 +f 628/1 629/2 625/3 +f 625/1 629/2 626/3 +f 629/1 630/2 626/3 +f 626/1 630/2 627/3 +f 630/1 631/2 627/3 +f 627/1 631/2 219/3 +f 631/1 220/2 219/3 +f 197/1 632/2 628/3 +f 632/1 633/2 628/3 +f 628/1 633/2 629/3 +f 633/1 634/2 629/3 +f 629/1 634/2 630/3 +f 634/1 635/2 630/3 +f 630/1 635/2 631/3 +f 635/1 636/2 631/3 +f 631/1 636/2 220/3 +f 636/1 221/2 220/3 +f 196/1 637/2 632/3 +f 637/1 638/2 632/3 +f 632/1 638/2 633/3 +f 638/1 639/2 633/3 +f 633/1 639/2 634/3 +f 639/1 640/2 634/3 +f 634/1 640/2 635/3 +f 640/1 641/2 635/3 +f 635/1 641/2 636/3 +f 641/1 642/2 636/3 +f 636/1 642/2 221/3 +f 642/1 222/2 221/3 +f 195/1 187/2 637/3 +f 187/1 186/2 637/3 +f 637/1 186/2 638/3 +f 186/1 185/2 638/3 +f 638/1 185/2 639/3 +f 185/1 184/2 639/3 +f 639/1 184/2 640/3 +f 184/1 183/2 640/3 +f 640/1 183/2 641/3 +f 183/1 182/2 641/3 +f 641/1 182/2 642/3 +f 182/1 181/2 642/3 +f 642/1 181/2 222/3 +f 181/1 10/2 222/3 diff --git a/src/main/resources/assets/draconicevolution/sounds.json b/src/main/resources/assets/draconicevolution/sounds.json index f1bf48ab..0cb0570e 100644 --- a/src/main/resources/assets/draconicevolution/sounds.json +++ b/src/main/resources/assets/draconicevolution/sounds.json @@ -2,5 +2,6 @@ "charge": {"category": "block","sounds": [{"name": "charge","stream": false}]}, "discharge": {"category": "block","sounds": [{"name": "discharge","stream": false}]}, "boom": {"category": "block","sounds": [{"name": "boom","stream": false}]}, - "beam": {"category": "block","sounds": [{"name": "beam","stream": false}]} + "beam": {"category": "block","sounds": [{"name": "beam","stream": false}]}, + "portal": {"category": "player","sounds": [{"name": "portal","stream": false}]} } \ No newline at end of file diff --git a/src/main/resources/assets/draconicevolution/sounds/portal.ogg b/src/main/resources/assets/draconicevolution/sounds/portal.ogg new file mode 100644 index 00000000..586eb183 Binary files /dev/null and b/src/main/resources/assets/draconicevolution/sounds/portal.ogg differ diff --git a/src/main/resources/assets/draconicevolution/textures/blocks/animated/dislocatorReceptacle_active.png b/src/main/resources/assets/draconicevolution/textures/blocks/animated/dislocatorReceptacle_active.png new file mode 100644 index 00000000..823f84d5 Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/blocks/animated/dislocatorReceptacle_active.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/blocks/animated/dislocatorReceptacle_active.png.mcmeta b/src/main/resources/assets/draconicevolution/textures/blocks/animated/dislocatorReceptacle_active.png.mcmeta new file mode 100644 index 00000000..7ceb3639 --- /dev/null +++ b/src/main/resources/assets/draconicevolution/textures/blocks/animated/dislocatorReceptacle_active.png.mcmeta @@ -0,0 +1,45 @@ +{ + "animation": { + "frametime": 2, + "frames": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 18, + 17, + 16, + 15, + 14, + 13, + 12, + 11, + 10, + 9, + 8, + 7, + 6, + 5, + 4, + 3, + 2, + 1 + ] + } +} \ No newline at end of file diff --git a/src/main/resources/assets/draconicevolution/textures/blocks/animated/dislocatorReceptacle_inactive.png b/src/main/resources/assets/draconicevolution/textures/blocks/animated/dislocatorReceptacle_inactive.png new file mode 100644 index 00000000..8b3bd0ba Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/blocks/animated/dislocatorReceptacle_inactive.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/blocks/animated/dislocatorReceptacle_inactive.png.mcmeta b/src/main/resources/assets/draconicevolution/textures/blocks/animated/dislocatorReceptacle_inactive.png.mcmeta new file mode 100644 index 00000000..7ceb3639 --- /dev/null +++ b/src/main/resources/assets/draconicevolution/textures/blocks/animated/dislocatorReceptacle_inactive.png.mcmeta @@ -0,0 +1,45 @@ +{ + "animation": { + "frametime": 2, + "frames": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 18, + 17, + 16, + 15, + 14, + 13, + 12, + 11, + 10, + 9, + 8, + 7, + 6, + 5, + 4, + 3, + 2, + 1 + ] + } +} \ No newline at end of file diff --git a/src/main/resources/assets/draconicevolution/textures/blocks/animated/infusedObsidian.png b/src/main/resources/assets/draconicevolution/textures/blocks/animated/infusedObsidian.png new file mode 100644 index 00000000..575d8a43 Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/blocks/animated/infusedObsidian.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/blocks/animated/infusedObsidian.png.mcmeta b/src/main/resources/assets/draconicevolution/textures/blocks/animated/infusedObsidian.png.mcmeta new file mode 100644 index 00000000..7ceb3639 --- /dev/null +++ b/src/main/resources/assets/draconicevolution/textures/blocks/animated/infusedObsidian.png.mcmeta @@ -0,0 +1,45 @@ +{ + "animation": { + "frametime": 2, + "frames": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 18, + 17, + 16, + 15, + 14, + 13, + 12, + 11, + 10, + 9, + 8, + 7, + 6, + 5, + 4, + 3, + 2, + 1 + ] + } +} \ No newline at end of file diff --git a/src/main/resources/assets/draconicevolution/textures/blocks/draconium_charged_old.png b/src/main/resources/assets/draconicevolution/textures/blocks/draconium_charged_old.png deleted file mode 100644 index 4324b4b2..00000000 Binary files a/src/main/resources/assets/draconicevolution/textures/blocks/draconium_charged_old.png and /dev/null differ diff --git a/src/main/resources/assets/draconicevolution/textures/blocks/portal.png b/src/main/resources/assets/draconicevolution/textures/blocks/portal.png new file mode 100644 index 00000000..7bee0a00 Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/blocks/portal.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/models/reactorCore.png b/src/main/resources/assets/draconicevolution/textures/models/reactorCore.png new file mode 100644 index 00000000..db004ebb Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/models/reactorCore.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/models/reactorCore.png.mcmeta b/src/main/resources/assets/draconicevolution/textures/models/reactorCore.png.mcmeta new file mode 100644 index 00000000..b920dcd2 --- /dev/null +++ b/src/main/resources/assets/draconicevolution/textures/models/reactorCore.png.mcmeta @@ -0,0 +1 @@ +{ "texture": { "blur": true }} \ No newline at end of file diff --git a/src/main/resources/assets/draconicevolution/textures/models/reactorCoreTexture.png b/src/main/resources/assets/draconicevolution/textures/models/reactorCoreTexture.png new file mode 100644 index 00000000..1e42e1ae Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/models/reactorCoreTexture.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/models/reactorShieldPlate.png b/src/main/resources/assets/draconicevolution/textures/models/reactorShieldPlate.png new file mode 100644 index 00000000..9c487148 Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/models/reactorShieldPlate.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/models/reactorShieldPlate.png.mcmeta b/src/main/resources/assets/draconicevolution/textures/models/reactorShieldPlate.png.mcmeta new file mode 100644 index 00000000..b920dcd2 --- /dev/null +++ b/src/main/resources/assets/draconicevolution/textures/models/reactorShieldPlate.png.mcmeta @@ -0,0 +1 @@ +{ "texture": { "blur": true }} \ No newline at end of file diff --git a/src/main/resources/assets/draconicevolution/textures/particle/particles.png b/src/main/resources/assets/draconicevolution/textures/particle/particles.png index 30c5542e..6cb1681c 100644 Binary files a/src/main/resources/assets/draconicevolution/textures/particle/particles.png and b/src/main/resources/assets/draconicevolution/textures/particle/particles.png differ