Added a few more upgrades to the Living Armour

... Wait, was I supposed to put something in here?
This commit is contained in:
WayofTime 2020-12-05 11:26:01 -05:00
parent 507c541d5b
commit 953bac9298
23 changed files with 493 additions and 23 deletions

View file

@ -1,6 +1,8 @@
package wayoftime.bloodmagic.tile;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.tileentity.ITickableTileEntity;
@ -36,6 +38,14 @@ public class TileAlchemyArray extends TileInventory implements ITickableTileEnti
this(TYPE);
}
public void onEntityCollidedWithBlock(BlockState state, Entity entity)
{
if (arrayEffect != null)
{
arrayEffect.onEntityCollidedWithBlock(this, getWorld(), pos, state, entity);
}
}
@Override
public void deserialize(CompoundNBT tagCompound)
{
@ -108,6 +118,7 @@ public class TileAlchemyArray extends TileInventory implements ITickableTileEnti
} else
{
AlchemyArrayEffect effect = AlchemyArrayRegistry.getEffect(world, this.getStackInSlot(0), this.getStackInSlot(1));
System.out.println("Effect: " + effect);
if (effect == null)
{
// key = effect.i