2020-04-15 14:22:03 +02:00
|
|
|
package com.minelittlepony.unicopia.toxin;
|
2020-01-27 11:05:22 +01:00
|
|
|
|
2020-01-27 13:47:14 +01:00
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.item.BlockItem;
|
2020-01-27 11:05:22 +01:00
|
|
|
import net.minecraft.util.UseAction;
|
|
|
|
|
2020-04-25 16:07:09 +02:00
|
|
|
public class ToxicBlockItem extends BlockItem {
|
2020-01-27 11:05:22 +01:00
|
|
|
|
2020-04-25 22:03:36 +02:00
|
|
|
public ToxicBlockItem(Block block, Settings settings, Toxic toxic) {
|
2020-04-25 18:41:48 +02:00
|
|
|
super(block, settings);
|
2020-04-25 22:03:36 +02:00
|
|
|
((ToxicHolder)this).setToxic(toxic);
|
2020-01-27 11:05:22 +01:00
|
|
|
}
|
|
|
|
|
2020-04-25 22:03:36 +02:00
|
|
|
public ToxicBlockItem(Block block, Settings settings, UseAction action, Toxicity toxicity, Toxin toxin) {
|
|
|
|
super(block, settings);
|
|
|
|
((ToxicHolder)this).setToxic(new Toxic(this, action, toxin, toxicity));
|
2020-01-27 11:05:22 +01:00
|
|
|
}
|
|
|
|
}
|