net.minecraft.world.entity.monster.piglin

public abstract class AbstractPiglin

extends Monster

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting, Enemy

cnl
net.minecraft.world.entity.monster.piglin.AbstractPiglin
net.minecraft.class_5418
net.minecraft.entity.mob.AbstractPiglinEntity
net.minecraft.world.entity.monster.piglin.EntityPiglinAbstract

Field summary

Modifier and TypeField
protected static final EntityDataAccessor<Boolean>
a
DATA_IMMUNE_TO_ZOMBIFICATION
field_25758
IMMUNE_TO_ZOMBIFICATION
public static final int
b
CONVERSION_TIME
field_30547
TIME_TO_ZOMBIFY
protected int
c
timeInOverworld
field_25759
timeInOverworld

Constructor summary

ModifierConstructor
public (EntityType<? extends AbstractPiglin> arg0, Level arg1)

Method summary

Modifier and TypeMethod
private void
t()
applyOpenDoorsAbility()
method_30239()
setCanPathThroughDoors()
protected abstract boolean
m()
canHunt()
method_26952()
canHunt()
public void
x(boolean arg0)
setImmuneToZombification(boolean arg0)
method_30240(boolean arg0)
setImmuneToZombification(boolean immuneToZombification)
protected boolean
p()
isImmuneToZombification()
method_30234()
isImmuneToZombification()
protected void
a(akc$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
b(tq arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tq arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
protected void
a(ard arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
b(int arg0)
setTimeInOverworld(int arg0)
method_63664(int arg0)
setTimeInOverworld(int timeInOverworld)
public boolean
x()
isConverting()
method_30235()
shouldZombify()
protected void
g(ard arg0)
finishConversion(ServerLevel arg0)
method_24694(class_3218 arg0)
zombify(ServerWorld world)
public boolean
gs()
isAdult()
method_30236()
isAdult()
public abstract PiglinArmPose
gt()
getArmPose()
method_24705()
getActivity()
public LivingEntity
O_()
getTarget()
method_5968()
getTarget()
protected boolean
gu()
isHoldingMeleeWeapon()
method_30237()
isHoldingTool()
public void
U()
playAmbientSound()
method_5966()
playAmbientSound()
protected void
ac()
sendDebugPackets()
method_18409()
sendAiDebugData()
protected abstract void
gv()
playConvertedSound()
method_30238()
playZombificationSound()