mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 22:07:59 +01:00
22 lines
554 B
Java
22 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);
|
||
|
}
|
||
|
}
|