2018-02-15 18:49:01 -08:00
|
|
|
package WayofTime.bloodmagic.alchemyArray;
|
2015-12-23 18:45:47 -05:00
|
|
|
|
2018-02-15 18:49:01 -08:00
|
|
|
import WayofTime.bloodmagic.iface.IAlchemyArray;
|
2019-09-22 12:55:43 -07:00
|
|
|
import net.minecraft.block.BlockState;
|
2016-06-28 13:35:42 -04:00
|
|
|
import net.minecraft.entity.Entity;
|
2019-09-22 12:55:43 -07:00
|
|
|
import net.minecraft.nbt.CompoundNBT;
|
2015-12-23 18:45:47 -05:00
|
|
|
import net.minecraft.tileentity.TileEntity;
|
2016-06-28 13:35:42 -04:00
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
import net.minecraft.world.World;
|
2015-12-23 18:45:47 -05:00
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public abstract class AlchemyArrayEffect {
|
2016-06-27 11:21:37 -04:00
|
|
|
public final String key;
|
|
|
|
|
2017-08-14 20:53:42 -07:00
|
|
|
public AlchemyArrayEffect(String key) {
|
|
|
|
this.key = key;
|
|
|
|
}
|
|
|
|
|
2015-12-30 15:34:40 -05:00
|
|
|
public abstract boolean update(TileEntity tile, int ticksActive);
|
2016-06-27 11:21:37 -04:00
|
|
|
|
2019-09-22 12:55:43 -07:00
|
|
|
public abstract void writeToNBT(CompoundNBT tag);
|
2016-06-27 11:21:37 -04:00
|
|
|
|
2019-09-22 12:55:43 -07:00
|
|
|
public abstract void readFromNBT(CompoundNBT tag);
|
2016-06-27 11:21:37 -04:00
|
|
|
|
|
|
|
public abstract AlchemyArrayEffect getNewCopy();
|
2016-06-28 13:35:42 -04:00
|
|
|
|
2019-09-22 12:55:43 -07:00
|
|
|
public void onEntityCollidedWithBlock(IAlchemyArray array, World world, BlockPos pos, BlockState state, Entity entity) {
|
2016-06-28 13:35:42 -04:00
|
|
|
|
|
|
|
}
|
2017-08-14 20:53:42 -07:00
|
|
|
|
|
|
|
public String getKey() {
|
|
|
|
return key;
|
|
|
|
}
|
2015-12-23 18:45:47 -05:00
|
|
|
}
|