2023-12-03 03:39:55 +01:00
|
|
|
package com.minelittlepony.unicopia.item;
|
2020-04-25 18:41:48 +02:00
|
|
|
|
2022-09-28 22:43:45 +02:00
|
|
|
import net.minecraft.entity.effect.StatusEffectInstance;
|
|
|
|
import net.minecraft.entity.effect.StatusEffects;
|
2020-04-25 18:41:48 +02:00
|
|
|
import net.minecraft.item.FoodComponent;
|
|
|
|
|
|
|
|
public interface UFoodComponents {
|
2022-09-28 22:43:45 +02:00
|
|
|
FoodComponent OATS = builder(1, 0.7F).build();
|
|
|
|
FoodComponent IMPORTED_OATS = builder(3, 1.3F).build();
|
|
|
|
FoodComponent OATMEAL = builder(0, 1.3F)
|
|
|
|
.statusEffect(new StatusEffectInstance(StatusEffects.HEALTH_BOOST, 1200, 1), 1)
|
|
|
|
.statusEffect(new StatusEffectInstance(StatusEffects.STRENGTH, 1200, 1), 0.3F)
|
|
|
|
.statusEffect(new StatusEffectInstance(StatusEffects.SPEED, 1200, 1), 0.2F)
|
|
|
|
.build();
|
2020-04-25 18:41:48 +02:00
|
|
|
FoodComponent DAFODIL_DAISY_SANDWICH = builder(3, 2).build();
|
2022-09-28 22:43:45 +02:00
|
|
|
FoodComponent HAY_BURGER = builder(7, 1.4F).build();
|
|
|
|
FoodComponent HAY_FRIES = builder(4, 2).build();
|
2023-08-16 01:08:05 +02:00
|
|
|
FoodComponent CRISPY_HAY_FRIES = builder(6, 7).build();
|
|
|
|
|
2022-09-30 00:54:09 +02:00
|
|
|
FoodComponent PIE = builder(3, 1.26F).build();
|
2022-09-28 22:43:45 +02:00
|
|
|
FoodComponent CIDER = builder(2, 1.7F).alwaysEdible().build();
|
2021-08-17 19:06:04 +02:00
|
|
|
|
2022-09-30 00:54:09 +02:00
|
|
|
FoodComponent JUICE = builder(2, 1.8F).alwaysEdible().build();
|
2020-04-25 18:41:48 +02:00
|
|
|
FoodComponent BURNED_JUICE = builder(3, 1).build();
|
2021-08-17 19:06:04 +02:00
|
|
|
|
2023-11-24 16:43:36 +01:00
|
|
|
@Deprecated
|
2021-08-17 19:06:04 +02:00
|
|
|
FoodComponent RANDOM_FOLIAGE = builder(2, 1).build();
|
2023-11-24 16:43:36 +01:00
|
|
|
@Deprecated
|
2023-08-27 20:34:17 +02:00
|
|
|
FoodComponent RANDOM_FOLIAGE_FILLING = builder(18, 1).build();
|
2023-09-11 22:16:25 +02:00
|
|
|
FoodComponent WORMS = builder(1, 1.5F).alwaysEdible().meat().build();
|
2021-08-17 19:06:04 +02:00
|
|
|
FoodComponent INSECTS = builder(1, 0).alwaysEdible().build();
|
2020-04-25 18:41:48 +02:00
|
|
|
|
2023-10-23 20:02:39 +02:00
|
|
|
FoodComponent TOAST = builder(1, 0.6F).alwaysEdible().snack().build();
|
|
|
|
FoodComponent BURNED_TOAST = builder(1, -0.8F).alwaysEdible().snack().build();
|
|
|
|
FoodComponent JAM_TOAST = builder(4, 0.6F).alwaysEdible().snack().build();
|
2020-04-25 22:22:28 +02:00
|
|
|
FoodComponent ZAP_APPLE = builder(4, 0.3F).alwaysEdible().snack().build();
|
2022-09-28 22:43:45 +02:00
|
|
|
FoodComponent ZAP_BULB = builder(-2, -0.8f)
|
|
|
|
.alwaysEdible()
|
|
|
|
.statusEffect(new StatusEffectInstance(StatusEffects.POISON, 100, 0), 0.6F)
|
|
|
|
.statusEffect(new StatusEffectInstance(StatusEffects.BLINDNESS, 100, 0), 0.6F)
|
|
|
|
.statusEffect(new StatusEffectInstance(StatusEffects.BAD_OMEN, 100, 0), 0.6F)
|
|
|
|
.build();
|
2020-04-25 22:22:28 +02:00
|
|
|
|
2022-09-30 18:48:34 +02:00
|
|
|
FoodComponent LOVE_BOTTLE = builder(2, 0.125F).alwaysEdible().snack().build();
|
|
|
|
FoodComponent LOVE_MUG = builder(4, 0.125F).snack().build();
|
|
|
|
FoodComponent LOVE_BUCKET = builder(8, 0.125F).build();
|
|
|
|
|
2022-10-06 22:08:25 +02:00
|
|
|
FoodComponent PINECONE = builder(0, 0.01F).snack().alwaysEdible().build();
|
|
|
|
FoodComponent ACORN = builder(1, 0.01F).snack().alwaysEdible().build();
|
2023-05-21 18:37:38 +02:00
|
|
|
FoodComponent MANGO = builder(8, 0.8F).alwaysEdible().build();
|
2023-05-23 10:48:40 +02:00
|
|
|
FoodComponent BANANA = builder(6, 0.9F).build();
|
2022-10-06 22:08:25 +02:00
|
|
|
|
2023-10-23 20:02:39 +02:00
|
|
|
FoodComponent CANDY = builder(7, 0.9F).alwaysEdible().build();
|
|
|
|
FoodComponent SALT_CUBE = builder(0, 2.9F).alwaysEdible().build();
|
|
|
|
|
2023-11-24 16:43:36 +01:00
|
|
|
@Deprecated
|
2023-11-18 15:18:58 +01:00
|
|
|
FoodComponent SHELL = builder(3, 5).build();
|
2023-11-24 16:43:36 +01:00
|
|
|
@Deprecated
|
2023-11-18 15:18:58 +01:00
|
|
|
FoodComponent SHELLY = builder(6, 7).build();
|
|
|
|
|
2020-04-25 18:41:48 +02:00
|
|
|
static FoodComponent.Builder builder(int hunger, float saturation) {
|
|
|
|
return new FoodComponent.Builder()
|
|
|
|
.hunger(hunger)
|
|
|
|
.saturationModifier(saturation);
|
|
|
|
}
|
|
|
|
}
|