#865: Implement Villager#shakeHead
This commit is contained in:
parent
3252ff189c
commit
a07e783a69
@ -51,6 +51,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -302,7 +310,7 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- private void fT() {
|
||||||
|
+ public void fT() {
|
||||||
|
this.t(40);
|
||||||
|
if (!this.level.isClientSide()) {
|
||||||
|
this.playSound(SoundEffects.VILLAGER_NO, this.getSoundVolume(), this.ep());
|
||||||
@@ -444,7 +452,14 @@
|
@@ -444,7 +452,14 @@
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
MerchantRecipe merchantrecipe = (MerchantRecipe) iterator.next();
|
MerchantRecipe merchantrecipe = (MerchantRecipe) iterator.next();
|
||||||
|
@ -107,6 +107,11 @@ public class CraftVillager extends CraftAbstractVillager implements Villager {
|
|||||||
getHandle().entityWakeup();
|
getHandle().entityWakeup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void shakeHead() {
|
||||||
|
getHandle().fT(); // PAIL rename shakeHead
|
||||||
|
}
|
||||||
|
|
||||||
public static Profession nmsToBukkitProfession(VillagerProfession nms) {
|
public static Profession nmsToBukkitProfession(VillagerProfession nms) {
|
||||||
return Profession.valueOf(IRegistry.VILLAGER_PROFESSION.getKey(nms).getKey().toUpperCase(Locale.ROOT));
|
return Profession.valueOf(IRegistry.VILLAGER_PROFESSION.getKey(nms).getKey().toUpperCase(Locale.ROOT));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user