Unicopia/src/main/java/com/minelittlepony/unicopia/toxin/ToxicBlockItem.java

19 lines
589 B
Java
Raw Normal View History

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
public ToxicBlockItem(Block block, Settings settings, Toxic toxic) {
super(block, settings);
((ToxicHolder)this).setToxic(toxic);
2020-01-27 11:05:22 +01: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
}
}