net.minecraft.world.entity.monster.piglin

public class Piglin

extends AbstractPiglin implements CrossbowAttackMob, InventoryCarrier

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, CommandSource, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting, Enemy, CrossbowAttackMob, RangedAttackMob, InventoryCarrier

cln
net.minecraft.world.entity.monster.piglin.Piglin
net.minecraft.class_4836
net.minecraft.unmapped.C_lkhqndnb
net.minecraft.entity.mob.PiglinEntity
net.minecraft.entity.mob.PiglinEntity
net.minecraft.src.C_1101_
net.minecraft.world.entity.monster.piglin.EntityPiglin

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
cd
DATA_BABY_ID
field_22377
f_irzyizjq
BABY
BABY
f_34673_
private static final EntityDataAccessor<Boolean>
ce
DATA_IS_CHARGING_CROSSBOW
field_22378
f_vynssoly
CHARGING
CHARGING
f_34674_
private static final EntityDataAccessor<Boolean>
cf
DATA_IS_DANCING
field_25164
f_dicqsfvy
DANCING
DANCING
f_34675_
private static final ResourceLocation
cg
SPEED_MODIFIER_BABY_ID
field_22379
f_bmortxcl
BABY_SPEED_BOOST_ID
BABY_SPEED_MODIFIER_ID
f_336834_
private static final AttributeModifier
ch
SPEED_MODIFIER_BABY
field_22380
f_xtlntavg
BABY_SPEED_BOOST
BABY_SPEED_BOOST
f_34677_
private static final int
ci
MAX_HEALTH
field_30548
f_qmuktilb
field_30548
MAX_HEALTH
f_149918_
private static final float
cj
MOVEMENT_SPEED_WHEN_FIGHTING
field_30549
f_ivxgmnqx
field_30549
FIGHTING_MOVEMENT_SPEED
f_149919_
private static final int
ck
ATTACK_DAMAGE
field_30550
f_slqxoygl
field_30550
ATTACK_DAMAGE
f_149920_
private static final float
cl
CHANCE_OF_WEARING_EACH_ARMOUR_ITEM
field_30552
f_jchvuysg
field_30552
ARMOR_ITEM_CHANCE
f_149922_
private static final int
cm
MAX_PASSENGERS_ON_ONE_HOGLIN
field_30553
f_dvmxvvkj
field_30553
HOGLIN_MAX_PASSENGERS
f_149923_
private static final float
cn
PROBABILITY_OF_SPAWNING_AS_BABY
field_30554
f_anmnqnjv
field_30554
BABY_SPAWN_PROBABILITY
f_149924_
private static final EntityDimensions
co
BABY_DIMENSIONS
field_47818
f_smtnduuu
BABY_BASE_DIMENSIONS
BABY_DIMENSIONS
f_316267_
private static final double
cp
PROBABILITY_OF_SPAWNING_WITH_CROSSBOW_INSTEAD_OF_SWORD
field_30556
f_woxlktah
field_30556
SPAWN_WITH_CROSSBOW_PROBABILITY
f_149926_
private final SimpleContainer
cq
inventory
field_22371
f_xqilyeci
inventory
inventory
f_34678_
private boolean
cr
cannotHunt
field_23738
f_grlrcjra
cannotHunt
cannotHunt
f_34679_
protected static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super Piglin>>>
e
SENSOR_TYPES
field_22376
f_lqzurrbs
SENSOR_TYPES
SENSOR_TYPES
f_34680_
protected static final com.google.common.collect.ImmutableList<MemoryModuleType<?>>
cc
MEMORY_TYPES
field_22381
f_yoeupwku
MEMORY_MODULE_TYPES
MEMORY_MODULE_TYPES
f_34672_

Constructor summary

ModifierConstructor
public (EntityType<? extends AbstractPiglin> p_34684_, Level world)

Method summary

Modifier and TypeMethod
public void
b(ub arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
m_xuwbpohg(C_hhlwcnih arg0)
writeCustomDataToNbt(NbtCompound arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(ub arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
m_obkzfysl(C_hhlwcnih arg0)
readCustomDataFromNbt(NbtCompound arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public SimpleContainer
x()
getInventory()
method_35199()
m_jezpqywh()
getInventory()
getInventory()
m_35311_()
protected void
a(aqu arg0, brk arg1, boolean arg2)
dropCustomDeathLoot(ServerLevel arg0, DamageSource arg1, boolean arg2)
method_6099(class_3218 arg0, class_1282 arg1, boolean arg2)
m_sephwywk(C_bdwnwhiu arg0, C_sbxfkpyv arg1, boolean arg2)
dropEquipment(ServerWorld arg0, DamageSource arg1, boolean arg2)
dropCustomLoot(ServerWorld arg0, DamageSource arg1, boolean arg2)
m_7472_(C_12_ p_34697_, C_489_ p_34699_, boolean arg2)
protected ItemStack
n(cuq arg0)
addToInventory(ItemStack arg0)
method_24711(class_1799 arg0)
m_jtmrkrba(C_sddaxwyk arg0)
addItem(ItemStack stack)
addItem(ItemStack stack)
m_34778_(C_1391_ arg0)
protected boolean
o(cuq arg0)
canAddToInventory(ItemStack arg0)
method_27085(class_1799 arg0)
m_cismjwrg(C_sddaxwyk arg0)
canInsertIntoInventory(ItemStack stack)
canInsertIntoInventory(ItemStack stack)
m_34780_(C_1391_ arg0)
protected void
a(aka$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
m_lwugwlsw(C_pyoaoolj$C_oqzxcugu arg0)
initDataTracker(DataTracker$Builder arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public void
a(ajw<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
m_efnedaed(C_rinmcaxy<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
m_7350_(C_5225_<?> arg0)
public static AttributeSupplier$Builder
gr()
createAttributes()
method_26953()
m_ufaobfzz()
createPiglinAttributes()
createAttributes()
m_34770_()
public static boolean
b(bsx<cln> arg0, dcx arg1, btr arg2, jd arg3, ayw arg4)
checkPiglinSpawnRules(EntityType<Piglin> arg0, LevelAccessor arg1, MobSpawnType arg2, BlockPos arg3, RandomSource arg4)
method_24695(class_1299<class_4836> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
m_icdspzlk(C_ogavsvbr<C_lkhqndnb> arg0, C_vdvbsyle arg1, C_uzzvxofv arg2, C_hynzadkk arg3, C_rlomrsco arg4)
canSpawn(EntityType<PiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
canSpawn(EntityType<PiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, RandomGenerator random)
m_219197_(C_513_<C_1101_> p_219198_, C_1598_ p_219199_, C_529_ p_219200_, C_4675_ p_219201_, C_212974_ p_219202_)
public SpawnGroupData
a(ddl arg0, bqp arg1, btr arg2, buh arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, MobSpawnType arg2, SpawnGroupData arg3)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
m_oxrxxqyz(C_jmnzlycd arg0, C_jiailwzt arg1, C_uzzvxofv arg2, C_lsmqixfx arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
m_6518_(C_1618_ p_34718_, C_469_ p_34719_, C_529_ p_34720_, C_542_ arg3)
protected boolean
Z()
shouldDespawnInPeaceful()
method_23734()
m_mrbrckqf()
isDisallowedInPeaceful()
isDisallowedInPeaceful()
m_8028_()
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
m_dciqpbdm(double arg0)
canImmediatelyDespawn(double arg0)
canImmediatelyDespawn(double arg0)
m_6785_(double arg0)
protected void
a(ayw arg0, bqp arg1)
populateDefaultEquipmentSlots(RandomSource arg0, DifficultyInstance arg1)
method_5964(class_5819 arg0, class_1266 arg1)
m_bafwglvj(C_rlomrsco arg0, C_jiailwzt arg1)
initEquipment(Random arg0, LocalDifficulty arg1)
initEquipment(RandomGenerator arg0, LocalDifficulty arg1)
m_213945_(C_212974_ p_219190_, C_469_ arg1)
private void
a(bsy arg0, cuq arg1, ayw arg2)
maybeWearArmor(EquipmentSlot arg0, ItemStack arg1, RandomSource arg2)
method_24696(class_1304 arg0, class_1799 arg1, class_5819 arg2)
m_funnqfzg(C_yuycoehb arg0, C_sddaxwyk arg1, C_rlomrsco arg2)
equipAtChance(EquipmentSlot slot, ItemStack stack, Random random)
equipAtChance(EquipmentSlot slot, ItemStack stack, RandomGenerator random)
m_219191_(C_516_ p_219193_, C_1391_ p_219194_, C_212974_ arg2)
protected Brain$Provider<Piglin>
dU()
brainProvider()
method_28306()
m_pusvfpox()
createBrainProfile()
createBrainProfile()
m_5490_()
protected Brain<?>
a(com.mojang.serialization.Dynamic<?> arg0)
makeBrain(com.mojang.serialization.Dynamic<?> arg0)
method_18867(com.mojang.serialization.Dynamic<?> arg0)
m_epkzhkqg(com.mojang.serialization.Dynamic<?> arg0)
deserializeBrain(com.mojang.serialization.Dynamic<?> arg0)
deserializeBrain(com.mojang.serialization.Dynamic<?> arg0)
m_8075_(com.mojang.serialization.Dynamic<?> arg0)
public Brain<Piglin>
dT()
getBrain()
method_18868()
m_hobjxuks()
getBrain()
getBrain()
m_6274_()
public InteractionResult
b(cmx arg0, bqq arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
m_kuhfocmh(C_jzrpycqo arg0, C_laxmzoqs arg1)
interactMob(PlayerEntity arg0, Hand arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_34746_, C_470_ arg1)
public EntityDimensions
e(bua arg0)
getDefaultDimensions(Pose arg0)
method_55694(class_4050 arg0)
m_qukpzlyx(C_ufdjspmk arg0)
getBaseDimensions(EntityPose arg0)
getDefaultDimensions(EntityPose arg0)
m_31586_(C_535_ arg0)
public void
a(boolean arg0)
setBaby(boolean arg0)
method_7217(boolean arg0)
m_wuplhywr(boolean arg0)
setBaby(boolean arg0)
setBaby(boolean arg0)
m_6863_(boolean arg0)
public boolean
o_()
isBaby()
method_6109()
m_xuxedegf()
isBaby()
isBaby()
m_6162_()
private void
z(boolean arg0)
setCannotHunt(boolean arg0)
method_26954(boolean arg0)
m_fqijiivy(boolean arg0)
setCannotHunt(boolean cannotHunt)
setCannotHunt(boolean cannotHunt)
m_34791_(boolean arg0)
protected boolean
s()
canHunt()
method_26952()
m_bmugrmhr()
canHunt()
canHunt()
m_7121_()
protected void
ab()
customServerAiStep()
method_5958()
m_wbeiezxn()
mobTick()
mobTick()
m_8024_()
protected int
eg()
getBaseExperienceReward()
method_6110()
m_qjawpswz()
getXpToDrop()
getBaseXpDropped()
m_213860_()
protected void
a(aqu arg0)
finishConversion(ServerLevel arg0)
method_24694(class_3218 arg0)
m_rloeixfu(C_bdwnwhiu arg0)
zombify(ServerWorld arg0)
zombify(ServerWorld arg0)
m_8063_(C_12_ arg0)
private ItemStack
gt()
createSpawnWeapon()
method_24702()
m_wwfxpwxb()
makeInitialWeapon()
makeInitialWeapon()
m_34772_()
private boolean
gu()
isChargingCrossbow()
method_24703()
m_owwtjime()
isCharging()
isCharging()
m_34773_()
public void
b(boolean arg0)
setChargingCrossbow(boolean arg0)
method_7110(boolean arg0)
m_yindccvg(boolean arg0)
setCharging(boolean arg0)
setCharging(boolean arg0)
m_6136_(boolean arg0)
public void
a()
onCrossbowAttackPerformed()
method_24651()
m_kuohphtl()
postShoot()
postShoot()
m_5847_()
public PiglinArmPose
gm()
getArmPose()
method_24705()
m_iihxosfw()
getActivity()
getActivity()
m_6389_()
public boolean
gs()
isDancing()
method_29272()
m_nhtdkffm()
isDancing()
isDancing()
m_34771_()
public void
y(boolean arg0)
setDancing(boolean arg0)
method_29274(boolean arg0)
m_ieeqtuak(boolean arg0)
setDancing(boolean dancing)
setDancing(boolean dancing)
m_34789_(boolean arg0)
public boolean
a(brk arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
m_szxeksnh(C_sbxfkpyv arg0, float arg1)
damage(DamageSource arg0, float arg1)
damage(DamageSource arg0, float arg1)
m_6469_(C_489_ p_34695_, float arg1)
public void
a(btn arg0, float arg1)
performRangedAttack(LivingEntity arg0, float arg1)
method_7105(class_1309 arg0, float arg1)
m_tmonasak(C_usxaxydn arg0, float arg1)
shootAt(LivingEntity arg0, float arg1)
attack(LivingEntity arg0, float arg1)
m_6504_(C_524_ p_34705_, float arg1)
public boolean
a(cvn arg0)
canFireProjectileWeapon(ProjectileWeaponItem arg0)
method_25938(class_1811 arg0)
m_tjejbxzp(C_axrfhndl arg0)
canUseRangedWeapon(RangedWeaponItem arg0)
canUseRangedWeapon(RangedWeaponItem arg0)
m_5886_(C_1406_ arg0)
protected void
p(cuq arg0)
holdInMainHand(ItemStack arg0)
method_24844(class_1799 arg0)
m_vqcmflpx(C_sddaxwyk arg0)
equipToMainHand(ItemStack stack)
equipToMainHand(ItemStack stack)
m_34783_(C_1391_ arg0)
protected void
q(cuq arg0)
holdInOffHand(ItemStack arg0)
method_24845(class_1799 arg0)
m_domdcbje(C_sddaxwyk arg0)
equipToOffHand(ItemStack stack)
equipToOffHand(ItemStack stack)
m_34785_(C_1391_ arg0)
public boolean
k(cuq arg0)
wantsToPickUp(ItemStack arg0)
method_20820(class_1799 arg0)
m_nzdowltt(C_sddaxwyk arg0)
canGather(ItemStack arg0)
canGather(ItemStack arg0)
m_7243_(C_1391_ arg0)
protected boolean
r(cuq arg0)
canReplaceCurrentItem(ItemStack arg0)
method_24846(class_1799 arg0)
m_zstelxhl(C_sddaxwyk arg0)
canEquipStack(ItemStack stack)
canEquipStack(ItemStack stack)
m_34787_(C_1391_ arg0)
protected boolean
b(cuq arg0, cuq arg1)
canReplaceCurrentItem(ItemStack arg0, ItemStack arg1)
method_5955(class_1799 arg0, class_1799 arg1)
m_swfiqufm(C_sddaxwyk arg0, C_sddaxwyk arg1)
prefersNewEquipment(ItemStack arg0, ItemStack arg1)
prefersNewEquipment(ItemStack arg0, ItemStack arg1)
m_7808_(C_1391_ p_34713_, C_1391_ arg1)
protected void
b(cjh arg0)
pickUpItem(ItemEntity arg0)
method_5949(class_1542 arg0)
m_avgkrrey(C_uqpzijng arg0)
loot(ItemEntity arg0)
loot(ItemEntity arg0)
m_7581_(C_976_ arg0)
public boolean
a(bsr arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
method_5873(class_1297 arg0, boolean arg1)
m_hvcwbybh(C_astfners arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
m_7998_(C_507_ p_34702_, boolean arg1)
private Entity
b(bsr arg0, int arg1)
getTopPassenger(Entity arg0, int arg1)
method_26089(class_1297 arg0, int arg1)
m_csfclcxj(C_astfners arg0, int arg1)
getTopMostPassenger(Entity entity, int maxLevel)
getTopMostPassenger(Entity entity, int maxLevel)
m_34730_(C_507_ p_34732_, int arg1)
protected SoundEvent
v()
getAmbientSound()
method_5994()
m_jjefzxbm()
getAmbientSound()
getAmbientSound()
m_7515_()
protected SoundEvent
d(brk arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
m_spwwmdyl(C_sbxfkpyv arg0)
getHurtSound(DamageSource arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
n_()
getDeathSound()
method_6002()
m_axkhmdzu()
getDeathSound()
getDeathSound()
m_5592_()
protected void
b(jd arg0, dtc arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
m_rnleirmb(C_hynzadkk arg0, C_txtbiemp arg1)
playStepSound(BlockPos arg0, BlockState arg1)
playStepSound(BlockPos arg0, BlockState arg1)
m_7355_(C_4675_ p_34749_, C_2064_ arg1)
protected void
go()
playConvertedSound()
method_30238()
m_jneonamx()
playZombificationSound()
playZombificationSound()
m_7580_()