mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-02 05:53:38 +02:00
37 lines
1.4 KiB
Java
37 lines
1.4 KiB
Java
/*
|
|
* This file ("ItemArmorAA.java") is part of the Actually Additions mod for Minecraft.
|
|
* It is created and owned by Ellpeck and distributed
|
|
* under the Actually Additions License to be found at
|
|
* http://ellpeck.de/actaddlicense
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
*
|
|
* © 2015-2017 Ellpeck
|
|
*/
|
|
|
|
package de.ellpeck.actuallyadditions.mod.items.base;
|
|
|
|
import de.ellpeck.actuallyadditions.api.misc.IDisableableItem;
|
|
import de.ellpeck.actuallyadditions.mod.items.InitItems;
|
|
import net.minecraft.inventory.EquipmentSlotType;
|
|
import net.minecraft.item.ArmorItem;
|
|
import net.minecraft.item.IArmorMaterial;
|
|
|
|
public class ItemArmorAA extends ArmorItem implements IDisableableItem {
|
|
private final boolean disabled;
|
|
|
|
public ItemArmorAA(IArmorMaterial material, EquipmentSlotType type) {
|
|
this(material, type, InitItems.defaultProps());
|
|
}
|
|
|
|
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.");
|
|
}
|
|
|
|
@Override
|
|
public boolean isDisabled() {
|
|
return this.disabled;
|
|
}
|
|
}
|