mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +01:00
Rename
This commit is contained in:
parent
d838849df7
commit
e6e69f3cbd
3 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@ public interface IPlayer extends ICaster<EntityPlayer>, IRaceContainer<EntityPla
|
|||
|
||||
void copyFrom(IPlayer oldPlayer);
|
||||
|
||||
void onEntityEat(ItemStack stack, @Nullable ItemFood food);
|
||||
void onEat(ItemStack stack, @Nullable ItemFood food);
|
||||
|
||||
boolean stepOnCloud();
|
||||
|
||||
|
|
|
@ -236,7 +236,7 @@ class PlayerCapabilities implements IPlayer {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onEntityEat(ItemStack stack, @Nullable ItemFood food) {
|
||||
public void onEat(ItemStack stack, @Nullable ItemFood food) {
|
||||
if (getPlayerSpecies() == Race.CHANGELING) {
|
||||
EntityPlayer player = getOwner();
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ class PlayerFood implements IFood {
|
|||
@Override
|
||||
public void finish() {
|
||||
if (!eatingStack.isEmpty()) {
|
||||
player.onEntityEat(eatingStack, (ItemFood)eatingStack.getItem());
|
||||
player.onEat(eatingStack, (ItemFood)eatingStack.getItem());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue