This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (UtilPower.movePower(powerManager, manager, 5, EnumSimulationType.FORCED_SIMULATE)) { | |
| // Get rid of the coord params in the constructor. | |
| // I would also make it a method to set the target. | |
| EntityPhoton entity = new EntityPhoton(worldObj).setTarget(entry.getKey()).setMaxDistance(10).setPowerCarried(5)); | |
| // You can move them to here | |
| entity.setPosition(xCoord, yCoord, zCoord); | |
| worldObj.spawnEntityInWorld(new EntityPhoton(worldObj, xCoord, yCoord, zCoord, entry.getKey()) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package me.jezzadabomb.es2.common.core; | |
| import java.util.HashMap; | |
| import java.util.HashSet; | |
| import me.jezzadabomb.es2.common.core.utils.coordset.CoordSet; | |
| import me.jezzadabomb.es2.common.core.utils.coordset.CoordSet4; | |
| import me.jezzadabomb.es2.common.lib.Reference; | |
| import net.minecraft.world.World; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package me.jezzadabomb.es2.common.core; | |
| import java.util.HashMap; | |
| import java.util.HashSet; | |
| import java.util.Iterator; | |
| import java.util.Map; | |
| import java.util.Map.Entry; | |
| import java.util.Set; | |
| import net.minecraft.util.ChunkCoordinates; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package me.jezzadabomb.es2.common.core; | |
| import java.util.HashMap; | |
| import java.util.Iterator; | |
| import java.util.Map; | |
| import java.util.Map.Entry; | |
| import java.util.Set; | |
| import net.minecraft.util.ChunkCoordinates; | |
| import net.minecraft.world.World; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (worldObj.isRemote()) | |
| System.out.println(getEntityItem().getItemDamage()); | |
| else | |
| System.out.println(getEntityItem().getItemDamage()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void renderBiggerFlame(World world, double x, double y, double z, double velX, double velY, double velZ, float scale) { | |
| if (world.isRemote) | |
| return; | |
| EntityFX entityfx = new EntityFlameFX(world, x, y, z, velX, velY, velZ).multipleParticleScaleBy(scale); | |
| FMLClientHandler.instance().getClient().effectRenderer.addEffect(entityfx); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack itemStack) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| @SideOnly(Side.CLIENT) | |
| public void registerBlockIcons(IIconRegister iconRegister) { | |
| blockIcon = iconRegister.registerIcon(Reference.MOD_ID + ":" + getUnlocalizedName().replace("tile.", "")); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package me.jezzadabomb.es2.common.tileentity; | |
| import me.jezzadabomb.es2.common.ModBlocks; | |
| import me.jezzadabomb.es2.common.core.ESLogger; | |
| import me.jezzadabomb.es2.common.core.utils.DimensionalPattern; | |
| import me.jezzadabomb.es2.common.core.utils.UtilMethods; | |
| import me.jezzadabomb.es2.common.core.utils.DimensionalPattern.Layer; | |
| import me.jezzadabomb.es2.common.core.utils.DimensionalPattern.Row; | |
| import me.jezzadabomb.es2.common.core.utils.DimensionalPattern.BlockState; | |
| import net.minecraft.block.Block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package me.jezza.thaumicpipes.common.core.utils; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import net.minecraft.world.IBlockAccess; | |
| /** | |
| * Welcome to the Shad MultiCore. | |
| * |