mirror of
https://github.com/Theta-Dev/ConstructionWand.git
synced 2025-08-06 02:45:26 +02:00
18 lines
499 B
Java
18 lines
499 B
Java
package thetadev.constructionwand.items;
|
|
|
|
import net.minecraft.entity.player.PlayerEntity;
|
|
import net.minecraft.item.ItemStack;
|
|
import thetadev.constructionwand.ConstructionWand;
|
|
|
|
public class ItemWandInfinity extends ItemWand
|
|
{
|
|
public ItemWandInfinity(String name)
|
|
{
|
|
super(name, new Settings().maxCount(1).fireproof());
|
|
}
|
|
|
|
@Override
|
|
public int getLimit(PlayerEntity player, ItemStack stack) {
|
|
return player.isCreative() ? ConstructionWand.instance.config.LIMIT_CREATIVE : getLimit();
|
|
}
|
|
}
|