/
Belyash5
/
Flu
Обзор
Документация
Войти
/
Belyash5
/
Flu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/com/hbm/items/armor/ItemModCladding.java
32 строки
915 B
Biohazard041
Update ItemModCladding.java
14 янв 2025, 07:23
Не верифицирован
14 янв 2025, 07:23
2114bec
Код
Авторство
О чём код?
package com.hbm.items.armor; import java.util.List; import com.hbm.handler.ArmorModHandler; import com.hbm.items.armor.ItemArmorMod; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumChatFormatting; public class ItemModCladding extends ItemArmorMod { public double rad; public ItemModCladding(double rad) { super(ArmorModHandler.cladding, true, true, true, true); this.rad = rad; } @Override public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean bool) { list.add(EnumChatFormatting.YELLOW + "+" + rad + " rad-resistance"); list.add(""); super.addInformation(itemstack, player, list, bool); } @Override public void addDesc(List list, ItemStack stack, ItemStack armor) { list.add(EnumChatFormatting.YELLOW + " " + stack.getDisplayName() + " (+" + rad + " radiation resistance)"); } }