Merge pull request #534 from Arcaratus/1.8-Rewrite

Teleposers and refractoring
This commit is contained in:
WayofTime 2016-01-01 12:17:17 -05:00
commit 0bb6e1eb36
145 changed files with 594 additions and 162 deletions

View file

@ -2,6 +2,7 @@ package WayofTime.bloodmagic;
import java.io.File;
import WayofTime.bloodmagic.client.gui.GuiHandler;
import lombok.Getter;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
@ -11,11 +12,8 @@ import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.oredict.RecipeSorter;
import net.minecraftforge.oredict.RecipeSorter.Category;
import net.minecraftforge.fml.common.network.NetworkRegistry;
import WayofTime.bloodmagic.api.Constants;
import WayofTime.bloodmagic.api.recipe.ShapedBloodOrbRecipe;
import WayofTime.bloodmagic.api.recipe.ShapelessBloodOrbRecipe;
import WayofTime.bloodmagic.api.util.helper.LogHelper;
import WayofTime.bloodmagic.network.BloodMagicPacketHandler;
import WayofTime.bloodmagic.proxy.CommonProxy;
@ -28,11 +26,10 @@ import WayofTime.bloodmagic.registry.ModRecipes;
import WayofTime.bloodmagic.registry.ModRituals;
import WayofTime.bloodmagic.util.handler.EventHandler;
@Mod(modid = Constants.Mod.MODID, name = Constants.Mod.NAME, version = Constants.Mod.VERSION, dependencies = Constants.Mod.DEPEND, acceptedMinecraftVersions = "[1.8.8,1.8.9]", guiFactory = "WayofTime.bloodmagic.client.gui.ConfigGuiFactory")
@Mod(modid = Constants.Mod.MODID, name = Constants.Mod.NAME, version = Constants.Mod.VERSION, dependencies = Constants.Mod.DEPEND, acceptedMinecraftVersions = "[1.8.8,1.8.9]", guiFactory = "WayofTime.bloodmagic.client.gui.config.ConfigGuiFactory")
@Getter
public class BloodMagic
{
@SidedProxy(serverSide = "WayofTime.bloodmagic.proxy.CommonProxy", clientSide = "WayofTime.bloodmagic.proxy.ClientProxy")
public static CommonProxy proxy;
@ -77,6 +74,7 @@ public class BloodMagic
ModRituals.initImperfectRituals();
ModCompatibility.registerModCompat();
ConfigHandler.checkRituals();
NetworkRegistry.INSTANCE.registerGuiHandler(BloodMagic.instance, new GuiHandler());
proxy.init();
}

View file

@ -20,7 +20,6 @@ import java.util.List;
public class ConfigHandler
{
@Getter
@Setter
private static Configuration config;

View file

@ -13,7 +13,6 @@ import WayofTime.bloodmagic.client.render.alchemyArray.BindingAlchemyCircleRende
public class AlchemyArrayEffectBinding extends AlchemyArrayEffect
{
@Getter
public final ItemStack outputStack;

View file

@ -33,7 +33,6 @@ import com.google.common.base.Strings;
public class BloodAltar
{
private TileAltar tileAltar;
private int internalCounter = 0;

View file

@ -9,7 +9,6 @@ import net.minecraftforge.fml.common.registry.GameData;
@EqualsAndHashCode
public class BlockStack
{
private final Block block;
private final int meta;

View file

@ -10,7 +10,6 @@ import net.minecraftforge.fml.common.registry.GameRegistry;
public class BloodMagicAPI
{
public static final String ORB = "ItemBloodOrb";
public static final String SCRIBE = "ItemInscriptionTool";

View file

@ -6,10 +6,8 @@ import java.util.Locale;
public class Constants
{
public static class NBT
{
public static final String OWNER_UUID = "ownerUUID";
public static final String USES = "uses";
public static final String UNUSABLE = "unusable";
@ -62,11 +60,12 @@ public class Constants
public static final String TICKS_REMAINING = "ticksRemaining";
public static final String CONTAINED_BLOCK_NAME = "containedBlockName";
public static final String CONTAINED_BLOCK_META = "containedBlockMeta";
public static final String PREVIOUS_INPUT = "previousInput";
}
public static class Mod
{
public static final String MODID = "BloodMagic";
public static final String DOMAIN = MODID.toLowerCase(Locale.ENGLISH) + ":";
public static final String NAME = "Blood Magic: Alchemical Wizardry";
@ -74,6 +73,11 @@ public class Constants
public static final String DEPEND = "";
}
public static final class Gui
{
public static final int TELEPOSER_GUI = 0;
}
public static class Compat
{
public static final String JEI_CATEGORY_ALTAR = Mod.MODID + ":altar";

View file

@ -8,7 +8,6 @@ import net.minecraft.util.IChatComponent;
public class DamageSourceBloodMagic extends DamageSource
{
public DamageSourceBloodMagic()
{
super("bloodMagic");

View file

@ -12,7 +12,6 @@ import net.minecraft.nbt.NBTTagCompound;
@EqualsAndHashCode
public class ItemStackWrapper
{
public final Item item;
public final int stackSize;
public final int meta;

View file

@ -4,7 +4,5 @@ import net.minecraft.tileentity.TileEntity;
public abstract class AlchemyArrayEffect
{
public abstract boolean update(TileEntity tile, int ticksActive);
}

View file

@ -8,7 +8,6 @@ import net.minecraft.util.BlockPos;
public class AlchemyArrayEffectCrafting extends AlchemyArrayEffect
{
@Getter
public final ItemStack outputStack;
public int tickLimit;

View file

@ -11,7 +11,6 @@ import net.minecraft.util.ResourceLocation;
public class AlchemyCircleRenderer
{
public float offsetFromFace = -0.9f;
public final ResourceLocation arrayResource;

View file

@ -9,7 +9,6 @@ import net.minecraft.util.BlockPos;
@Getter
public class AltarComponent
{
private BlockPos offset;
private boolean upgradeSlot;

View file

@ -9,7 +9,6 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
public class AltarUpgrade
{
private int speedCount;
private int efficiencyCount;
private int sacrificeCount;

View file

@ -2,6 +2,5 @@ package WayofTime.bloodmagic.api.altar;
public enum EnumAltarComponent
{
GLOWSTONE, BLOODSTONE, BEACON, BLOODRUNE, CRYSTAL, NOTAIR
}

View file

@ -2,6 +2,5 @@ package WayofTime.bloodmagic.api.altar;
public interface IAltarComponent
{
EnumAltarComponent getType(int meta);
}

View file

@ -2,7 +2,6 @@ package WayofTime.bloodmagic.api.altar;
public interface IBloodAltar
{
int getCapacity();
int getCurrentBlood();

View file

@ -5,7 +5,6 @@ import net.minecraft.world.World;
public abstract class CompressionHandler
{
/**
* Called to look at the inventory and syphons the required stack. Returns
* resultant stack if successful, and null if not.

View file

@ -14,7 +14,6 @@ import java.util.Map;
*/
public class CompressionRegistry
{
public static List<CompressionHandler> compressionRegistry = new ArrayList<CompressionHandler>();
public static Map<ItemStack, Integer> thresholdMap = new HashMap<ItemStack, Integer>();

View file

@ -4,7 +4,6 @@ import net.minecraftforge.fml.common.eventhandler.Event;
public class AddToNetworkEvent extends Event
{
public String ownerNetwork;
public int addedAmount;
public int maximum;

View file

@ -7,7 +7,6 @@ import net.minecraftforge.fml.common.eventhandler.Event;
public class BoundToolEvent extends Event
{
public EntityPlayer player;
public BoundToolEvent(EntityPlayer player)

View file

@ -8,7 +8,6 @@ import net.minecraftforge.fml.common.eventhandler.Event;
@Cancelable
public class ItemBindEvent extends Event
{
public final EntityPlayer player;
public String key;
public ItemStack itemStack;

View file

@ -14,7 +14,6 @@ import net.minecraftforge.fml.common.eventhandler.Event;
public class RitualEvent extends Event
{
public final IMasterRitualStone mrs;
public final String ownerName;
public final Ritual ritual;

View file

@ -7,7 +7,6 @@ import net.minecraftforge.fml.common.eventhandler.Event;
public class SoulNetworkEvent extends Event
{
public final String ownerName;
public int syphon;

View file

@ -0,0 +1,49 @@
package WayofTime.bloodmagic.api.event;
import net.minecraft.block.Block;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.eventhandler.Cancelable;
import net.minecraftforge.fml.common.eventhandler.Event;
/** Fired when a teleposer attempts to transpose two blocks. Use this to perform special cleanup or compensation,
or cancel it entirely to prevent the transposition. */
@Cancelable
public class TeleposeEvent extends Event
{
public final World initalWorld;
public final BlockPos initialBlockPos;
public final Block initialBlock;
public final int initialMetadata;
public final World finalWorld;
public final BlockPos finalBlockPos;
public final Block finalBlock;
public final int finalMetadata;
public TeleposeEvent(World initialWorld, BlockPos initialBlockPos, Block initialBlock, int initialMetadata, World finalWorld, BlockPos finalBlockPos, Block finalBlock, int finalMetadata)
{
this.initalWorld = initialWorld;
this.initialBlockPos = initialBlockPos;
this.initialBlock = initialBlock;
this.initialMetadata = initialMetadata;
this.finalWorld = finalWorld;
this.finalBlockPos = finalBlockPos;
this.finalBlock = finalBlock;
this.finalMetadata = finalMetadata;
}
public TileEntity getInitialTile()
{
return initalWorld.getTileEntity(initialBlockPos);
}
public TileEntity getFinalTile()
{
return finalWorld.getTileEntity(finalBlockPos);
}
}

View file

@ -8,7 +8,6 @@ import net.minecraft.item.ItemStack;
*/
public interface IBindable
{
/**
* Called when the player attempts to bind the item.
*

View file

@ -11,7 +11,6 @@ import com.google.common.collect.Multimap;
public abstract class LivingArmourUpgrade
{
/**
* Upgrade level 0 is the first upgrade. Upgrade goes from 0 to getMaxTier()
* - 1.

View file

@ -7,7 +7,6 @@ import WayofTime.bloodmagic.livingArmour.LivingArmour;
public abstract class StatTracker
{
private boolean isDirty = false;
public abstract String getUniqueIdentifier();

View file

@ -13,7 +13,6 @@ import WayofTime.bloodmagic.api.registry.OrbRegistry;
*/
public class BloodOrb
{
private String name;
private int tier;
private int capacity;

View file

@ -2,7 +2,6 @@ package WayofTime.bloodmagic.api.orb;
public interface IBloodOrb
{
BloodOrb getOrb(int meta);
int getMaxEssence(int meta);

View file

@ -19,7 +19,6 @@ import com.google.common.collect.HashBiMap;
public class AlchemyArrayRecipeRegistry
{
public static final AlchemyCircleRenderer defaultRenderer = new AlchemyCircleRenderer(new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/SightSigil.png"));
@Getter

View file

@ -12,7 +12,6 @@ import java.util.Map;
public class ImperfectRitualRegistry
{
public static final Map<ImperfectRitual, Boolean> enabledRituals = new HashMap<ImperfectRitual, Boolean>();
private static final BiMap<String, ImperfectRitual> registry = HashBiMap.create();

View file

@ -19,7 +19,6 @@ import java.util.List;
*/
public class OrbRegistry
{
@Getter
private static List<BloodOrb> orbs = new ArrayList<BloodOrb>();

View file

@ -12,7 +12,6 @@ import com.google.common.collect.HashBiMap;
public class RitualRegistry
{
public static final Map<Ritual, Boolean> enabledRituals = new HashMap<Ritual, Boolean>();
private static final BiMap<String, Ritual> registry = HashBiMap.create();
/**

View file

@ -8,7 +8,6 @@ import java.util.Locale;
public enum EnumRuneType implements IStringSerializable
{
BLANK, WATER, FIRE, EARTH, AIR, DUSK, DAWN;
public static EnumRuneType byMetadata(int meta)

View file

@ -13,7 +13,6 @@ import net.minecraft.world.World;
*/
public interface IMasterRitualStone
{
String getOwner();
boolean activateRitual(ItemStack activationCrystal, EntityPlayer activator, Ritual ritual);

View file

@ -10,7 +10,6 @@ import net.minecraft.world.World;
*/
public interface IRitualStone
{
boolean isRuneType(World world, BlockPos pos, EnumRuneType runeType);
interface Tile

View file

@ -23,7 +23,6 @@ import net.minecraft.world.World;
@ToString
public abstract class Ritual
{
public final ArrayList<RitualComponent> ritualComponents = new ArrayList<RitualComponent>();
private final String name;
private final int crystalLevel;

View file

@ -13,7 +13,6 @@ import net.minecraft.util.EnumFacing;
@RequiredArgsConstructor
public class RitualComponent
{
private final BlockPos offset;
private final EnumRuneType runeType;

View file

@ -5,7 +5,6 @@ import net.minecraft.util.ResourceLocation;
public abstract class RitualRenderer
{
public abstract void renderAt(IMasterRitualStone masterRitualStone, double x, double y, double z);
protected void bindTexture(ResourceLocation resourceLocation)

View file

@ -12,7 +12,6 @@ import java.util.UUID;
public class BindableHelper
{
/**
* Bind an item to a player. Handles checking if the player was an
* instanceof {@link net.minecraftforge.common.util.FakePlayer} or other

View file

@ -6,7 +6,6 @@ import net.minecraft.nbt.NBTTagCompound;
public class IncenseHelper
{
public static float getCurrentIncense(EntityPlayer player)
{
NBTTagCompound data = player.getEntityData();

View file

@ -6,7 +6,6 @@ import org.apache.logging.log4j.Logger;
public class LogHelper
{
private Logger logger;
public LogHelper(String logger)

View file

@ -5,7 +5,6 @@ import net.minecraft.nbt.NBTTagCompound;
public class NBTHelper
{
public static ItemStack checkNBT(ItemStack stack)
{
if (stack.getTagCompound() == null)

View file

@ -20,7 +20,6 @@ import java.util.UUID;
public class NetworkHelper
{
// Get
/**

View file

@ -15,7 +15,6 @@ import java.util.regex.Pattern;
public class PlayerHelper
{
private static final Pattern FAKE_PLAYER_PATTERN = Pattern.compile("^(?:\\[.*\\])|(?:ComputerCraft)$");
public static String getUsernameFromPlayer(EntityPlayer player)

View file

@ -21,7 +21,6 @@ import WayofTime.bloodmagic.api.ritual.imperfect.ImperfectRitual;
public class RitualHelper
{
public static boolean canCrystalActivate(Ritual ritual, int crystalLevel)
{
return ritual.getCrystalLevel() <= crystalLevel && RitualRegistry.ritualEnabled(ritual);

View file

@ -22,7 +22,6 @@ import WayofTime.bloodmagic.util.Utils;
public class BlockAlchemyArray extends BlockContainer
{
public BlockAlchemyArray()
{
super(Material.cloth);

View file

@ -18,7 +18,6 @@ import net.minecraft.world.World;
public class BlockAltar extends BlockContainer
{
public BlockAltar()
{
super(Material.rock);

View file

@ -7,7 +7,6 @@ import net.minecraft.block.material.Material;
public class BlockBloodStoneBrick extends BlockString
{
public static final String[] names = { "normal", "large" };
public BlockBloodStoneBrick()

View file

@ -17,7 +17,6 @@ import java.awt.*;
public class BlockLifeEssence extends BlockFluidClassic
{
@Getter
private static Fluid lifeEssence = new FluidLifeEssence();

View file

@ -16,7 +16,6 @@ import net.minecraft.world.World;
public class BlockPedestal extends BlockStringContainer
{
public static String[] names = { "pedestal", "plinth" };
public BlockPedestal()

View file

@ -19,7 +19,6 @@ import java.util.Random;
public class BlockPhantom extends BlockContainer
{
public BlockPhantom()
{
super(Material.cloth);

View file

@ -22,7 +22,6 @@ import WayofTime.bloodmagic.tile.TileMasterRitualStone;
public class BlockRitualController extends BlockStringContainer
{
public static final String[] names = { "master", "imperfect" };
public BlockRitualController()

View file

@ -11,7 +11,6 @@ import net.minecraft.world.World;
public class BlockRitualStone extends BlockString implements IRitualStone
{
public static final String[] names = { "blank", "water", "fire", "earth", "air", "dusk", "dawn" };
public BlockRitualStone()

View file

@ -12,7 +12,6 @@ import net.minecraft.world.World;
public class BlockSoulForge extends Block
{
public BlockSoulForge()
{
super(Material.iron);

View file

@ -20,7 +20,6 @@ import java.util.Random;
public class BlockSpectral extends BlockContainer
{
public BlockSpectral()
{
super(Material.cloth);

View file

@ -4,10 +4,12 @@ import WayofTime.bloodmagic.BloodMagic;
import WayofTime.bloodmagic.api.Constants;
import WayofTime.bloodmagic.api.util.helper.BindableHelper;
import WayofTime.bloodmagic.item.ItemTelepositionFocus;
import WayofTime.bloodmagic.tile.TileTeleposer;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.InventoryHelper;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.BlockPos;
@ -16,7 +18,6 @@ import net.minecraft.world.World;
public class BlockTeleposer extends BlockContainer
{
public BlockTeleposer()
{
super(Material.rock);
@ -41,19 +42,30 @@ public class BlockTeleposer extends BlockContainer
if (playerItem != null && playerItem.getItem() instanceof ItemTelepositionFocus)
{
BindableHelper.checkAndSetItemOwner(playerItem, player);
((ItemTelepositionFocus) playerItem.getItem()).setBlockPos(playerItem, world, pos);
}
else if (world.getTileEntity(pos) instanceof TileTeleposer)
{
player.openGui(BloodMagic.instance, Constants.Gui.TELEPOSER_GUI, world, pos.getX(), pos.getY(), pos.getZ());
}
return true;
}
// player.openGui(AlchemicalWizardry.instance, 1, world, pos.getX(),
// pos.getY(), pos.getZ());
return true;
@Override
public void breakBlock(World worldIn, BlockPos pos, IBlockState state)
{
if (worldIn.getTileEntity(pos) != null && worldIn.getTileEntity(pos) instanceof TileTeleposer)
{
InventoryHelper.dropInventoryItems(worldIn, pos, (TileTeleposer) worldIn.getTileEntity(pos));
}
super.breakBlock(worldIn, pos, state);
}
@Override
public TileEntity createNewTileEntity(World worldIn, int meta)
{
return null;
return new TileTeleposer();
}
}

View file

@ -35,7 +35,6 @@ import java.util.List;
@Getter
public class BlockInteger extends Block
{
private final int maxMeta;
private final PropertyInteger metaProp;
private final IUnlistedProperty unlistedMetaProp;

View file

@ -9,7 +9,6 @@ import net.minecraft.world.World;
public abstract class BlockIntegerContainer extends BlockInteger implements ITileEntityProvider
{
public BlockIntegerContainer(Material material, int maxMeta, String propName)
{
super(material, maxMeta, propName);

View file

@ -38,7 +38,6 @@ import java.util.List;
@Getter
public class BlockString extends Block
{
private final int maxMeta;
private final List<String> values;
private final PropertyString stringProp;

View file

@ -9,7 +9,6 @@ import net.minecraft.world.World;
public abstract class BlockStringContainer extends BlockString implements ITileEntityProvider
{
public BlockStringContainer(Material material, String[] values, String propName)
{
super(material, values, propName);

View file

@ -10,7 +10,6 @@ import java.util.HashSet;
public class PropertyString extends PropertyHelper
{
private final ImmutableSet allowedValues;
protected PropertyString(String name, String[] values)

View file

@ -4,7 +4,6 @@ import net.minecraftforge.common.property.IUnlistedProperty;
public class UnlistedPropertyInteger implements IUnlistedProperty<Integer>
{
private int maxMeta;
private String propName;

View file

@ -7,7 +7,6 @@ import java.util.List;
public class UnlistedPropertyString implements IUnlistedProperty<String>
{
private List values;
private String propName;

View file

@ -0,0 +1,44 @@
package WayofTime.bloodmagic.client.gui;
import WayofTime.bloodmagic.api.Constants;
import WayofTime.bloodmagic.tile.TileTeleposer;
import WayofTime.bloodmagic.tile.container.ContainerTeleposer;
import net.minecraft.client.multiplayer.WorldClient;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.network.IGuiHandler;
public class GuiHandler implements IGuiHandler
{
@Override
public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z)
{
BlockPos pos = new BlockPos(x, y, z);
switch (id)
{
case Constants.Gui.TELEPOSER_GUI:
return new ContainerTeleposer(player.inventory, (TileTeleposer) world.getTileEntity(pos));
}
return null;
}
@Override
public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z)
{
if (world instanceof WorldClient)
{
BlockPos pos = new BlockPos(x, y, z);
switch (id)
{
case Constants.Gui.TELEPOSER_GUI:
return new GuiTeleposer(player.inventory, (TileTeleposer) world.getTileEntity(pos));
}
}
return null;
}
}

View file

@ -0,0 +1,40 @@
package WayofTime.bloodmagic.client.gui;
import WayofTime.bloodmagic.api.Constants;
import WayofTime.bloodmagic.tile.container.ContainerTeleposer;
import WayofTime.bloodmagic.util.helper.TextHelper;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class GuiTeleposer extends GuiContainer
{
public GuiTeleposer(InventoryPlayer playerInventory, IInventory tileTeleposer)
{
super(new ContainerTeleposer(playerInventory, tileTeleposer));
}
@Override
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
{
this.fontRendererObj.drawString(TextHelper.localize("tile.BloodMagic.teleposer.name"), 64, 23, 4210752);
this.fontRendererObj.drawString(StatCollector.translateToLocal("container.inventory"), 8, 47, 4210752);
}
@Override
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
{
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
ResourceLocation teleposerGuiTextures = new ResourceLocation(Constants.Mod.MODID + ":textures/gui/teleposer.png");
this.mc.getTextureManager().bindTexture(teleposerGuiTextures);
int i = (this.width - this.xSize) / 2;
int j = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(i, j + 18, 0, 0, this.xSize, this.ySize);
}
}

View file

@ -1,4 +1,4 @@
package WayofTime.bloodmagic.client.gui;
package WayofTime.bloodmagic.client.gui.config;
import WayofTime.bloodmagic.ConfigHandler;
import WayofTime.bloodmagic.api.Constants;

View file

@ -1,4 +1,4 @@
package WayofTime.bloodmagic.client.gui;
package WayofTime.bloodmagic.client.gui.config;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;

View file

@ -12,7 +12,6 @@ import WayofTime.bloodmagic.api.alchemyCrafting.AlchemyCircleRenderer;
public class BindingAlchemyCircleRenderer extends AlchemyCircleRenderer
{
public float offsetFromFace = -0.9f;
public final ResourceLocation arrayResource;
public final ResourceLocation[] arraysResources;

View file

@ -1,4 +1,4 @@
package WayofTime.bloodmagic.render;
package WayofTime.bloodmagic.client.render.entity;
import WayofTime.bloodmagic.entity.projectile.EntityBloodLight;
import net.minecraft.client.renderer.GlStateManager;
@ -7,12 +7,10 @@ import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.entity.Entity;
import net.minecraft.util.ResourceLocation;
public class RenderEntityBloodLight extends Render<EntityBloodLight>
{
public RenderEntityBloodLight(RenderManager renderManager)
{
super(renderManager);

View file

@ -5,7 +5,6 @@ package WayofTime.bloodmagic.compat;
*/
public interface ICompatibility
{
/**
* Called after the given {@code modid} has been verified as loaded.
*/

View file

@ -10,7 +10,6 @@ import net.minecraft.world.World;
public class AdvancedCompressionHandler extends CompressionHandler
{
@Override
public ItemStack compressInventory(ItemStack[] inv, World world)
{

View file

@ -6,7 +6,6 @@ import net.minecraft.world.World;
public class BaseCompressionHandler extends CompressionHandler
{
private final ItemStack required;
private final ItemStack result;
private final int leftover;

View file

@ -15,7 +15,6 @@ import java.util.List;
public class StorageBlockCraftingManager
{
private static final StorageBlockCraftingManager instance = new StorageBlockCraftingManager();
private List recipes = new LinkedList();

View file

@ -18,7 +18,6 @@ import java.util.*;
public class StorageBlockCraftingRecipeAssimilator
{
public List<IRecipe> getPackingRecipes()
{
// grab all recipes potentially suitable for packing or unpacking

View file

@ -15,7 +15,6 @@ import net.minecraftforge.fml.common.registry.IThrowableEntity;
public class EntityBloodLight extends EntityThrowable implements IThrowableEntity, IEntityAdditionalSpawnData
{
public EntityLivingBase shootingEntity;
protected int ticksInAir = 0;
protected int maxTicksInAir = 600;

View file

@ -13,7 +13,6 @@ import java.util.List;
public class ItemActivationCrystal extends ItemBindable
{
public static String[] names = { "weak", "awakened", "creative" };
public ItemActivationCrystal()

View file

@ -21,7 +21,6 @@ import java.util.List;
public class ItemBloodOrb extends ItemBindable implements IBloodOrb, IBindable
{
public ItemBloodOrb()
{
setUnlocalizedName(Constants.Mod.MODID + ".orb.");

View file

@ -12,7 +12,6 @@ import java.util.List;
public class ItemBloodShard extends Item
{
public String[] names = { "weak", "demon" };
public ItemBloodShard()

View file

@ -21,7 +21,6 @@ import java.util.Set;
public class ItemBoundAxe extends ItemBoundTool
{
private static final Set<Block> EFFECTIVE_ON = Sets.newHashSet(Blocks.planks, Blocks.bookshelf, Blocks.log, Blocks.log2, Blocks.chest, Blocks.pumpkin, Blocks.lit_pumpkin, Blocks.melon_block, Blocks.ladder);
public ItemBoundAxe()

View file

@ -22,7 +22,6 @@ import java.util.Set;
public class ItemBoundPickaxe extends ItemBoundTool
{
private static final Set<Block> EFFECTIVE_ON = Sets.newHashSet(Blocks.activator_rail, Blocks.coal_ore, Blocks.cobblestone, Blocks.detector_rail, Blocks.diamond_block, Blocks.diamond_ore, Blocks.double_stone_slab, Blocks.golden_rail, Blocks.gold_block, Blocks.gold_ore, Blocks.ice, Blocks.iron_block, Blocks.iron_ore, Blocks.lapis_block, Blocks.lapis_ore, Blocks.lit_redstone_ore, Blocks.mossy_cobblestone, Blocks.netherrack, Blocks.packed_ice, Blocks.rail, Blocks.redstone_ore, Blocks.sandstone, Blocks.red_sandstone, Blocks.stone, Blocks.stone_slab);
public ItemBoundPickaxe()

View file

@ -19,7 +19,6 @@ import java.util.Set;
public class ItemBoundShovel extends ItemBoundTool
{
private static final Set<Block> EFFECTIVE_ON = Sets.newHashSet(Blocks.clay, Blocks.dirt, Blocks.farmland, Blocks.grass, Blocks.gravel, Blocks.mycelium, Blocks.sand, Blocks.snow, Blocks.snow_layer, Blocks.soul_sand);
public ItemBoundShovel()

View file

@ -8,7 +8,6 @@ import net.minecraft.item.ItemBucket;
public class ItemBucketEssence extends ItemBucket
{
public ItemBucketEssence()
{
super(ModBlocks.lifeEssence);

View file

@ -15,7 +15,6 @@ import WayofTime.bloodmagic.api.Constants;
public class ItemComponent extends Item
{
@Getter
private static ArrayList<String> names = new ArrayList<String>();

View file

@ -20,7 +20,6 @@ import net.minecraft.world.World;
public class ItemDaggerOfSacrifice extends Item
{
public ItemDaggerOfSacrifice()
{
super();

View file

@ -21,7 +21,6 @@ import java.util.List;
// TODO - NBT based damage
public class ItemInscriptionTool extends ItemBindable
{
public ItemInscriptionTool()
{
super();

View file

@ -15,7 +15,6 @@ import java.util.List;
public class ItemSlate extends Item
{
public String[] names = { "blank", "reinforced", "imbued", "demonic", "ethereal" };
public ItemSlate()

View file

@ -9,7 +9,6 @@ import net.minecraft.item.ItemStack;
public class ItemLivingArmour extends ItemArmor
{
public static String[] names = { "helmet", "chest", "legs", "boots" };
public ItemLivingArmour(int armorType)

View file

@ -7,7 +7,6 @@ import net.minecraft.item.ItemStack;
public class ItemBlockBloodRune extends ItemBlock
{
public ItemBlockBloodRune(Block block)
{
super(block);

View file

@ -7,7 +7,6 @@ import net.minecraft.item.ItemStack;
public class ItemBlockBloodStoneBrick extends ItemBlock
{
public ItemBlockBloodStoneBrick(Block block)
{
super(block);

View file

@ -7,7 +7,6 @@ import net.minecraft.item.ItemStack;
public class ItemBlockCrystal extends ItemBlock
{
public ItemBlockCrystal(Block block)
{
super(block);

View file

@ -7,7 +7,6 @@ import net.minecraft.item.ItemStack;
public class ItemBlockPedestal extends ItemBlock
{
public ItemBlockPedestal(Block block)
{
super(block);

View file

@ -7,7 +7,6 @@ import net.minecraft.item.ItemStack;
public class ItemBlockRitualController extends ItemBlock
{
public ItemBlockRitualController(Block block)
{
super(block);

View file

@ -7,7 +7,6 @@ import net.minecraft.item.ItemStack;
public class ItemBlockRitualStone extends ItemBlock
{
public ItemBlockRitualStone(Block block)
{
super(block);

View file

@ -7,7 +7,6 @@ import net.minecraft.world.World;
public class ItemSigilAir extends ItemSigilBase
{
public ItemSigilAir()
{
super("air", 50);

View file

@ -20,7 +20,6 @@ import java.util.List;
@Getter
public class ItemSigilBase extends ItemBindable implements ISigil
{
protected final String tooltipBase;
private final String name;
private boolean toggleable;

View file

@ -12,7 +12,6 @@ import net.minecraft.world.World;
public class ItemSigilBloodLight extends ItemSigilBase
{
public ItemSigilBloodLight()
{
super("bloodLight", 10);

View file

@ -8,7 +8,6 @@ import net.minecraft.world.World;
public class ItemSigilCompression extends ItemSigilToggleable
{
public ItemSigilCompression()
{
super("compression", 200);

View file

@ -16,7 +16,6 @@ import WayofTime.bloodmagic.util.helper.TextHelper;
public class ItemSigilDivination extends ItemSigilBase implements IAltarReader
{
public ItemSigilDivination()
{
super("divination");

Some files were not shown because too many files have changed in this diff Show more