/* * Decompiled with CFR 0.152. */ package net.minecraft.world.effect; import net.minecraft.server.level.ServerLevel; import net.minecraft.world.effect.InstantenousMobEffect; import net.minecraft.world.effect.MobEffectCategory; import net.minecraft.world.entity.LivingEntity; import net.minecraft.world.entity.player.Player; class SaturationMobEffect extends InstantenousMobEffect { protected SaturationMobEffect(MobEffectCategory category, int color) { super(category, color); } @Override public boolean applyEffectTick(ServerLevel level, LivingEntity mob, int amplification) { if (mob instanceof Player) { Player player = (Player)mob; player.getFoodData().eat(amplification + 1, 1.0f); } return true; } }