mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-02 20:06:43 +01:00
ad7a7d84c0
- Foods fill for different amounts for different races - Certain foods can no longer be eaten by certain races - Added food categories for candy, rocks, desserts - Moved everything to datapacks
16 lines
448 B
Java
16 lines
448 B
Java
package com.minelittlepony.unicopia.item;
|
|
|
|
import java.util.Optional;
|
|
|
|
import com.minelittlepony.unicopia.entity.ItemImpl;
|
|
import net.minecraft.item.*;
|
|
|
|
public interface ItemDuck extends ItemConvertible, ItemImpl.TickableItem {
|
|
void setFoodComponent(FoodComponent food);
|
|
|
|
Optional<FoodComponent> getOriginalFoodComponent();
|
|
|
|
default void resetFoodComponent() {
|
|
setFoodComponent(getOriginalFoodComponent().orElse(null));
|
|
}
|
|
}
|