mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 13:57:59 +01:00
21 lines
554 B
Java
21 lines
554 B
Java
package com.minelittlepony.unicopia.item;
|
|
|
|
import net.minecraft.entity.LivingEntity;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.item.StewItem;
|
|
import net.minecraft.world.World;
|
|
|
|
public class OatmealItem extends StewItem {
|
|
|
|
public OatmealItem(Settings settings) {
|
|
super(settings);
|
|
}
|
|
|
|
@Override
|
|
public ItemStack finishUsing(ItemStack stack, World world, LivingEntity user) {
|
|
if (!world.isClient) {
|
|
user.clearStatusEffects();
|
|
}
|
|
return super.finishUsing(stack, world, user);
|
|
}
|
|
}
|