package com.choonster.testmod3.util;

import com.choonster.testmod3.TestMod3;
import com.google.common.collect.ImmutableSet;
import net.minecraft.inventory.EntityEquipmentSlot;

import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class Constants {
	public static final String RESOURCE_PREFIX = TestMod3.MODID + ":";

	/**
	 * The armour equipment slots.
	 */
	public static final Set<EntityEquipmentSlot> ARMOUR_SLOTS = ImmutableSet.copyOf(
			Stream.of(EntityEquipmentSlot.values())
					.filter(equipmentSlot -> equipmentSlot.getSlotType() == EntityEquipmentSlot.Type.ARMOR)
					.collect(Collectors.toList())
	);
}

@@ -114,24 +114,85 @@
 mutableSet;%0A
+import net.minecraft.entity.ai.attributes.AttributeModifier;%0A
 import net.m
@@ -715,11 +715,640 @@
 t())%0A%09);
+%0A%0A%09/**%0A%09 * %7B@link AttributeModifier%7D operation 0.%0A%09 * %3Cp%3E%0A%09 * Add the modifier's amount to the attribute's amount.%0A%09 */%0A%09public static final int ATTRIBUTE_MODIFIER_OPERATION_ADD = 0;%0A%0A%09/**%0A%09 * %7B@link AttributeModifier%7D operation 1.%0A%09 * %3Cp%3E%0A%09 * Add the result of operation 0 multiplied by the modifier's amount to the attribute's amount.%0A%09 */%0A%09public static final int ATTRIBUTE_MODIFIER_OPERATION_MULTIPLY_OLD_AMOUNT = 1;%0A%0A%09/**%0A%09 * %7B@link AttributeModifier%7D operation 2.%0A%09 * %3Cp%3E%0A%09 * Multiply the attribute's amount by 1.0 + the modifier's amount.%0A%09 */%0A%09public static final int ATTRIBUTE_MODIFIER_OPERATION_MULTIPLY_NEW_AMOUNT = 2;
 %0A%7D%0A

Add constants for AttributeModifier operations