mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-06-02 18:59:19 +02:00
Merge 6b8794b4f3
into d66170c8fe
This commit is contained in:
commit
62430ea9f1
|
@ -8,6 +8,7 @@ import net.minecraft.world.entity.LivingEntity;
|
|||
import net.minecraft.world.item.ArmorItem;
|
||||
import net.minecraft.world.item.ArmorMaterials;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraftforge.common.Tags;
|
||||
import net.minecraftforge.event.entity.living.LivingEquipmentChangeEvent;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
||||
|
@ -51,13 +52,13 @@ public final class NetheriteDivingHandler {
|
|||
public static boolean isNetheriteDivingHelmet(ItemStack stack) {
|
||||
return stack.getItem() instanceof DivingHelmetItem && isNetheriteArmor(stack);
|
||||
}
|
||||
|
||||
|
||||
public static boolean isNetheriteBacktank(ItemStack stack) {
|
||||
return stack.is(AllItemTags.PRESSURIZED_AIR_SOURCES.tag) && isNetheriteArmor(stack);
|
||||
}
|
||||
|
||||
|
||||
public static boolean isNetheriteArmor(ItemStack stack) {
|
||||
return stack.getItem() instanceof ArmorItem armorItem && armorItem.getMaterial() == ArmorMaterials.NETHERITE;
|
||||
return stack.getItem() instanceof ArmorItem armorItem && armorItem.isFireResistant();
|
||||
}
|
||||
|
||||
public static void setBit(LivingEntity entity, EquipmentSlot slot) {
|
||||
|
|
Loading…
Reference in a new issue