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 copyFrom(IPlayer oldPlayer);
|
||||||
|
|
||||||
void onEntityEat(ItemStack stack, @Nullable ItemFood food);
|
void onEat(ItemStack stack, @Nullable ItemFood food);
|
||||||
|
|
||||||
boolean stepOnCloud();
|
boolean stepOnCloud();
|
||||||
|
|
||||||
|
|
|
@ -236,7 +236,7 @@ class PlayerCapabilities implements IPlayer {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEntityEat(ItemStack stack, @Nullable ItemFood food) {
|
public void onEat(ItemStack stack, @Nullable ItemFood food) {
|
||||||
if (getPlayerSpecies() == Race.CHANGELING) {
|
if (getPlayerSpecies() == Race.CHANGELING) {
|
||||||
EntityPlayer player = getOwner();
|
EntityPlayer player = getOwner();
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ class PlayerFood implements IFood {
|
||||||
@Override
|
@Override
|
||||||
public void finish() {
|
public void finish() {
|
||||||
if (!eatingStack.isEmpty()) {
|
if (!eatingStack.isEmpty()) {
|
||||||
player.onEntityEat(eatingStack, (ItemFood)eatingStack.getItem());
|
player.onEat(eatingStack, (ItemFood)eatingStack.getItem());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue