@@ -1,7 +1,7 @@
|
||||
--- a/net/minecraft/server/EntityVillager.java
|
||||
+++ b/net/minecraft/server/EntityVillager.java
|
||||
@@ -19,6 +19,14 @@
|
||||
import javax.annotation.Nullable;
|
||||
--- a/net/minecraft/world/entity/npc/EntityVillager.java
|
||||
+++ b/net/minecraft/world/entity/npc/EntityVillager.java
|
||||
@@ -89,6 +89,14 @@
|
||||
import net.minecraft.world.phys.AxisAlignedBB;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
+// CraftBukkit start
|
||||
@@ -15,7 +15,7 @@
|
||||
public class EntityVillager extends EntityVillagerAbstract implements ReputationHandler, VillagerDataHolder {
|
||||
|
||||
private static final DataWatcherObject<VillagerData> br = DataWatcher.a(EntityVillager.class, DataWatcherRegistry.q);
|
||||
@@ -64,7 +72,7 @@
|
||||
@@ -134,7 +142,7 @@
|
||||
|
||||
@Override
|
||||
public BehaviorController<EntityVillager> getBehaviorController() {
|
||||
@@ -24,7 +24,7 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -83,7 +91,7 @@
|
||||
@@ -153,7 +161,7 @@
|
||||
public void c(WorldServer worldserver) {
|
||||
BehaviorController<EntityVillager> behaviorcontroller = this.getBehaviorController();
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
this.bg = behaviorcontroller.h();
|
||||
this.a(this.getBehaviorController());
|
||||
}
|
||||
@@ -133,7 +141,7 @@
|
||||
@@ -203,7 +211,7 @@
|
||||
@Override
|
||||
protected void mobTick() {
|
||||
this.world.getMethodProfiler().enter("villagerBrain");
|
||||
@@ -42,7 +42,7 @@
|
||||
this.world.getMethodProfiler().exit();
|
||||
if (this.bF) {
|
||||
this.bF = false;
|
||||
@@ -147,7 +155,7 @@
|
||||
@@ -217,7 +225,7 @@
|
||||
this.bu = false;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -358,7 +366,14 @@
|
||||
@@ -428,7 +436,14 @@
|
||||
while (iterator.hasNext()) {
|
||||
MerchantRecipe merchantrecipe = (MerchantRecipe) iterator.next();
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -387,7 +402,7 @@
|
||||
@@ -457,7 +472,7 @@
|
||||
@Override
|
||||
public void saveData(NBTTagCompound nbttagcompound) {
|
||||
super.saveData(nbttagcompound);
|
||||
@@ -76,7 +76,7 @@
|
||||
Logger logger = EntityVillager.LOGGER;
|
||||
|
||||
logger.getClass();
|
||||
@@ -700,7 +715,12 @@
|
||||
@@ -770,7 +785,12 @@
|
||||
}
|
||||
|
||||
entitywitch.setPersistent();
|
||||
@@ -90,7 +90,7 @@
|
||||
this.fq();
|
||||
this.die();
|
||||
} else {
|
||||
@@ -833,7 +853,7 @@
|
||||
@@ -903,7 +923,7 @@
|
||||
|
||||
if (entityirongolem != null) {
|
||||
if (entityirongolem.a((GeneratorAccess) worldserver, EnumMobSpawn.MOB_SUMMONED) && entityirongolem.a((IWorldReader) worldserver)) {
|
||||
@@ -99,7 +99,7 @@
|
||||
return entityirongolem;
|
||||
}
|
||||
|
||||
@@ -911,7 +931,7 @@
|
||||
@@ -981,7 +1001,7 @@
|
||||
@Override
|
||||
public void entitySleep(BlockPosition blockposition) {
|
||||
super.entitySleep(blockposition);
|
||||
@@ -108,7 +108,7 @@
|
||||
this.bg.removeMemory(MemoryModuleType.WALK_TARGET);
|
||||
this.bg.removeMemory(MemoryModuleType.CANT_REACH_WALK_TARGET_SINCE);
|
||||
}
|
||||
@@ -919,7 +939,7 @@
|
||||
@@ -989,7 +1009,7 @@
|
||||
@Override
|
||||
public void entityWakeup() {
|
||||
super.entityWakeup();
|
||||
|
||||
Reference in New Issue
Block a user