ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/items/base/ItemArmorAA.java

39 lines
1.4 KiB
Java
Raw Normal View History

2015-08-29 14:33:25 +02:00
/*
2016-05-16 22:52:27 +02:00
* This file ("ItemArmorAA.java") is part of the Actually Additions mod for Minecraft.
2015-08-29 14:33:25 +02:00
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-05-16 22:52:27 +02:00
* http://ellpeck.de/actaddlicense
2015-08-29 14:33:25 +02:00
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2017-01-01 16:23:26 +01:00
* © 2015-2017 Ellpeck
2015-08-29 14:33:25 +02:00
*/
2016-01-05 04:47:35 +01:00
package de.ellpeck.actuallyadditions.mod.items.base;
import de.ellpeck.actuallyadditions.api.misc.IDisableableItem;
import de.ellpeck.actuallyadditions.mod.items.ActuallyItems;
import net.minecraft.inventory.EquipmentSlotType;
2021-02-27 21:24:26 +01:00
import net.minecraft.item.ArmorItem;
import net.minecraft.item.IArmorMaterial;
import net.minecraft.item.Item.Properties;
2021-02-27 21:24:26 +01:00
public class ItemArmorAA extends ArmorItem implements IDisableableItem {
private final boolean disabled;
2019-02-27 19:53:05 +01:00
public ItemArmorAA(IArmorMaterial material, EquipmentSlotType type) {
this(material, type, ActuallyItems.defaultProps());
2016-02-01 17:49:55 +01:00
}
public ItemArmorAA(IArmorMaterial material, EquipmentSlotType type, Properties properties) {
super(material, type, properties);
this.disabled = false;
// this.disabled = ConfigurationHandler.config.getBoolean("Disable: " + StringUtil.badTranslate(this.name), "Tool Control", false, "This will disable the " + StringUtil.badTranslate(this.name) + ". It will not be registered.");
}
2019-02-27 19:53:05 +01:00
@Override
public boolean isDisabled() {
2019-02-27 19:53:05 +01:00
return this.disabled;
}
}