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 ;
2015-07-11 05:24:04 +02:00
2017-08-02 04:20:47 +02:00
import de.ellpeck.actuallyadditions.api.misc.IDisableableItem ;
2021-03-01 21:23:52 +01:00
import de.ellpeck.actuallyadditions.mod.items.ActuallyItems ;
2021-02-27 22:44:00 +01:00
import net.minecraft.inventory.EquipmentSlotType ;
2021-02-27 21:24:26 +01:00
import net.minecraft.item.ArmorItem ;
import net.minecraft.item.IArmorMaterial ;
2015-07-11 05:24:04 +02:00
2021-08-22 17:09:06 +02:00
import net.minecraft.item.Item.Properties ;
2021-02-27 21:24:26 +01:00
public class ItemArmorAA extends ArmorItem implements IDisableableItem {
2017-08-02 04:20:47 +02:00
private final boolean disabled ;
2019-02-27 19:53:05 +01:00
2021-02-27 22:44:00 +01:00
public ItemArmorAA ( IArmorMaterial material , EquipmentSlotType type ) {
2021-03-01 21:23:52 +01:00
this ( material , type , ActuallyItems . defaultProps ( ) ) ;
2016-02-01 17:49:55 +01:00
}
2021-02-27 22:44:00 +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.");
2015-07-11 05:24:04 +02:00
}
2019-02-27 19:53:05 +01:00
2017-08-02 04:20:47 +02:00
@Override
public boolean isDisabled ( ) {
2019-02-27 19:53:05 +01:00
return this . disabled ;
2017-08-02 04:20:47 +02:00
}
2015-07-11 05:24:04 +02:00
}