Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aee7780
commit d9ed000
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/main/java/org/auioc/mcmod/arnicalib/api/game/event/FoodDataEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.auioc.mcmod.arnicalib.api.game.event; | ||
|
||
import net.minecraft.world.entity.LivingEntity; | ||
import net.minecraft.world.food.FoodData; | ||
import net.minecraftforge.event.entity.living.LivingEvent; | ||
|
||
public class FoodDataEvent extends LivingEvent { | ||
|
||
private final FoodData foodData; | ||
|
||
public FoodDataEvent(LivingEntity living, FoodData foodData) { | ||
super(living); | ||
this.foodData = foodData; | ||
} | ||
|
||
public FoodData getFoodData() { | ||
return this.foodData; | ||
} | ||
|
||
} |