mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-25 06:17:59 +01:00
18 lines
589 B
Java
18 lines
589 B
Java
package com.minelittlepony.unicopia.toxin;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.item.BlockItem;
|
|
import net.minecraft.util.UseAction;
|
|
|
|
public class ToxicBlockItem extends BlockItem {
|
|
|
|
public ToxicBlockItem(Block block, Settings settings, Toxic toxic) {
|
|
super(block, settings);
|
|
((ToxicHolder)this).setToxic(toxic);
|
|
}
|
|
|
|
public ToxicBlockItem(Block block, Settings settings, UseAction action, Toxicity toxicity, Toxin toxin) {
|
|
super(block, settings);
|
|
((ToxicHolder)this).setToxic(new Toxic(this, action, toxin, toxicity));
|
|
}
|
|
}
|