Skip to content

Instantly share code, notes, and snippets.

View Jezza's full-sized avatar
🤔
Rewriting all of the things...

Jezza

🤔
Rewriting all of the things...
  • Germany
View GitHub Profile
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())
}
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;
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;
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;
if (worldObj.isRemote())
System.out.println(getEntityItem().getItemDamage());
else
System.out.println(getEntityItem().getItemDamage());
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);
}
@Override
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack itemStack)
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
blockIcon = iconRegister.registerIcon(Reference.MOD_ID + ":" + getUnlocalizedName().replace("tile.", ""));
}
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;
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.
*