Refactored armor items. Extended ModArmorItem functionality and bumped version to 0.1.5.
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ mod_name=Stalinium
|
||||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||
mod_license=MIT
|
||||
# The mod version. See https://semver.org/
|
||||
mod_version=0.1.4
|
||||
mod_version=0.1.5
|
||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
||||
# This should match the base package used for the mod sources.
|
||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
|
||||
@@ -10,7 +10,6 @@ import net.minecraft.world.effect.MobEffects;
|
||||
import net.minecraft.world.entity.EquipmentSlot;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.item.ArmorItem;
|
||||
import net.minecraft.world.item.ArmorMaterial;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.item.TooltipFlag;
|
||||
@@ -22,7 +21,7 @@ import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
public class StaliniumBootsItem extends ArmorItem {
|
||||
public class StaliniumBootsItem extends ModArmorItem {
|
||||
private static final int SPRINT_THRESHOLD = 5 * 20;
|
||||
private static final double RADIUS = 5.0;
|
||||
private static final Map<UUID, Integer> sprintTicks = new ConcurrentHashMap<>();
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
public class StaliniumChestplateLeggingsItem extends ArmorItem {
|
||||
public class StaliniumChestplateLeggingsItem extends ModArmorItem {
|
||||
private static final Map<Holder<ArmorMaterial>, List<MobEffectInstance>> MATERIAL_TO_EFFECT_MAP =
|
||||
(new ImmutableMap.Builder<Holder<ArmorMaterial>, List<MobEffectInstance>>())
|
||||
.put(ModArmorMaterials.STALINIUM_ARMOR_MATERIAL,
|
||||
|
||||
@@ -7,7 +7,6 @@ import net.minecraft.network.chat.Component;
|
||||
import net.minecraft.world.entity.EquipmentSlot;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.item.ArmorItem;
|
||||
import net.minecraft.world.item.ArmorMaterial;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.effect.MobEffectInstance;
|
||||
@@ -19,7 +18,7 @@ import net.neoforged.neoforge.event.entity.player.AttackEntityEvent;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class StaliniumHelmetItem extends ArmorItem {
|
||||
public class StaliniumHelmetItem extends ModArmorItem {
|
||||
public StaliniumHelmetItem(Holder<ArmorMaterial> material, Type slot, Properties props) {
|
||||
super(material, slot, props);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user