net.minecraft.world.entity.monster.piglin

public class Piglin

extends AbstractPiglin implements CrossbowAttackMob, InventoryCarrier

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, Enemy, CrossbowAttackMob, RangedAttackMob, InventoryCarrier

bja
net.minecraft.world.entity.monster.piglin.Piglin
net.minecraft.class_4836
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>
bU
DATA_BABY_ID
field_22377
BABY
f_34673_
private static final EntityDataAccessor<Boolean>
bV
DATA_IS_CHARGING_CROSSBOW
field_22378
CHARGING
f_34674_
private static final EntityDataAccessor<Boolean>
bW
DATA_IS_DANCING
field_25164
DANCING
f_34675_
private static final UUID
bX
SPEED_MODIFIER_BABY_UUID
field_22379
BABY_SPEED_BOOST_ID
f_34676_
private static final AttributeModifier
bY
SPEED_MODIFIER_BABY
field_22380
BABY_SPEED_BOOST
f_34677_
private static final int
bZ
MAX_HEALTH
field_30548
field_30548
f_149918_
private static final float
ca
MOVEMENT_SPEED_WHEN_FIGHTING
field_30549
field_30549
f_149919_
private static final int
cb
ATTACK_DAMAGE
field_30550
field_30550
f_149920_
private static final float
cc
CROSSBOW_POWER
field_30551
field_30551
f_149921_
private static final float
cd
CHANCE_OF_WEARING_EACH_ARMOUR_ITEM
field_30552
field_30552
f_149922_
private static final int
ce
MAX_PASSENGERS_ON_ONE_HOGLIN
field_30553
field_30553
f_149923_
private static final float
cf
PROBABILITY_OF_SPAWNING_AS_BABY
field_30554
field_30554
f_149924_
private static final float
cg
BABY_EYE_HEIGHT_ADJUSTMENT
field_30555
field_30555
f_149925_
private static final double
ch
PROBABILITY_OF_SPAWNING_WITH_CROSSBOW_INSTEAD_OF_SWORD
field_30556
field_30556
f_149926_
private final SimpleContainer
ci
inventory
field_22371
inventory
f_34678_
private boolean
cj
cannotHunt
field_23738
cannotHunt
f_34679_
protected static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super Piglin>>>
e
SENSOR_TYPES
field_22376
SENSOR_TYPES
f_34680_
protected static final com.google.common.collect.ImmutableList<MemoryModuleType<?>>
bT
MEMORY_TYPES
field_22381
MEMORY_MODULE_TYPES
f_34672_

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
b(na arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
saveData(NBTTagCompound arg0)
public void
a(na arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
loadData(NBTTagCompound arg0)
public Container
fG()
getInventory()
method_35199()
getInventory()
m_141944_()
getInventory()
protected void
a(asq arg0, int arg1, boolean arg2)
dropCustomDeathLoot(DamageSource arg0, int arg1, boolean arg2)
method_6099(class_1282 arg0, int arg1, boolean arg2)
dropEquipment(DamageSource arg0, int arg1, boolean arg2)
m_7472_(C_489_ p_34698_, int p_34699_, boolean arg2)
dropDeathLoot(DamageSource arg0, int arg1, boolean arg2)
protected ItemStack
m(bqq arg0)
addToInventory(ItemStack arg0)
method_24711(class_1799 arg0)
addItem(ItemStack stack)
m_34778_(C_1391_ arg0)
protected boolean
n(bqq arg0)
canAddToInventory(ItemStack arg0)
method_27085(class_1799 arg0)
canInsertIntoInventory(ItemStack stack)
m_34780_(C_1391_ arg0)
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
initDatawatcher()
public void
a(wf<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
m_7350_(C_5225_<?> arg0)
public static AttributeSupplier$Builder
fC()
createAttributes()
method_26953()
createPiglinAttributes()
m_34770_()
public static boolean
b(atk<bja> arg0, bwr arg1, aty arg2, gg arg3, Random arg4)
checkPiglinSpawnRules(EntityType<Piglin> arg0, LevelAccessor arg1, MobSpawnType arg2, BlockPos arg3, Random arg4)
method_24695(class_1299<class_4836> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, Random arg4)
canSpawn(EntityType<PiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
m_34733_(C_513_<C_1101_> p_34734_, C_1598_ p_34735_, C_529_ p_34736_, C_4675_ p_34737_, Random p_34738_)
public SpawnGroupData
a(bxe arg0, arz arg1, aty arg2, aum arg3, na arg4)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, MobSpawnType arg2, SpawnGroupData arg3, CompoundTag arg4)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3, class_2487 arg4)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3, NbtCompound arg4)
m_6518_(C_1618_ p_34718_, C_469_ p_34719_, C_529_ p_34720_, C_542_ p_34721_, C_4917_ arg4)
prepare(WorldAccess arg0, DifficultyDamageScaler arg1, EnumMobSpawn arg2, GroupDataEntity arg3, NBTTagCompound arg4)
protected boolean
Q()
shouldDespawnInPeaceful()
method_23734()
isDisallowedInPeaceful()
m_8028_()
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
m_6785_(double arg0)
isTypeNotPersistent(double arg0)
protected void
a(arz arg0)
populateDefaultEquipmentSlots(DifficultyInstance arg0)
method_5964(class_1266 arg0)
initEquipment(LocalDifficulty arg0)
m_6851_(C_469_ arg0)
private void
c(atl arg0, bqq arg1)
maybeWearArmor(EquipmentSlot arg0, ItemStack arg1)
method_24696(class_1304 arg0, class_1799 arg1)
equipAtChance(EquipmentSlot slot, ItemStack stack)
m_34759_(C_516_ p_34761_, C_1391_ arg1)
protected Brain$Provider<Piglin>
dp()
brainProvider()
method_28306()
createBrainProfile()
m_5490_()
protected Brain<?>
a(com.mojang.serialization.Dynamic<?> arg0)
makeBrain(com.mojang.serialization.Dynamic<?> arg0)
method_18867(com.mojang.serialization.Dynamic<?> arg0)
deserializeBrain(com.mojang.serialization.Dynamic<?> arg0)
m_8075_(com.mojang.serialization.Dynamic<?> arg0)
public Brain<Piglin>
do()
getBrain()
method_18868()
getBrain()
m_6274_()
getBehaviorController()
public InteractionResult
b(bke arg0, asa arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_34746_, C_470_ arg1)
protected float
b(aug arg0, ath arg1)
getStandingEyeHeight(Pose arg0, EntityDimensions arg1)
method_18394(class_4050 arg0, class_4048 arg1)
getActiveEyeHeight(EntityPose arg0, EntityDimensions arg1)
m_6431_(C_535_ p_34741_, C_510_ arg1)
public double
bl()
getPassengersRidingOffset()
method_5621()
getMountedHeightOffset()
m_6048_()
public void
a(boolean arg0)
setBaby(boolean arg0)
method_7217(boolean arg0)
setBaby(boolean arg0)
m_6863_(boolean arg0)
setBaby(boolean arg0)
public boolean
w_()
isBaby()
method_6109()
isBaby()
m_6162_()
isBaby()
private void
x(boolean arg0)
setCannotHunt(boolean arg0)
method_26954(boolean arg0)
setCannotHunt(boolean cannotHunt)
m_34791_(boolean arg0)
protected boolean
n()
canHunt()
method_26952()
canHunt()
m_7121_()
protected void
eY()
customServerAiStep()
method_5958()
mobTick()
m_8024_()
mobTick()
protected int
d(bke arg0)
getExperienceReward(Player arg0)
method_6110(class_1657 arg0)
getXpToDrop(PlayerEntity arg0)
m_6552_(C_1141_ arg0)
getExpValue(EntityHuman arg0)
protected void
c(abr arg0)
finishConversion(ServerLevel arg0)
method_24694(class_3218 arg0)
zombify(ServerWorld arg0)
m_8063_(C_12_ arg0)
private ItemStack
fE()
createSpawnWeapon()
method_24702()
makeInitialWeapon()
m_34772_()
private boolean
fF()
isChargingCrossbow()
method_24703()
isCharging()
m_34773_()
public void
b(boolean arg0)
setChargingCrossbow(boolean arg0)
method_7110(boolean arg0)
setCharging(boolean arg0)
m_6136_(boolean arg0)
public void
a()
onCrossbowAttackPerformed()
method_24651()
postShoot()
m_5847_()
public PiglinArmPose
fx()
getArmPose()
method_24705()
getActivity()
m_6389_()
public boolean
fD()
isDancing()
method_29272()
isDancing()
m_34771_()
public void
w(boolean arg0)
setDancing(boolean arg0)
method_29274(boolean arg0)
setDancing(boolean dancing)
m_34789_(boolean arg0)
public boolean
a(asq arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
damage(DamageSource arg0, float arg1)
m_6469_(C_489_ p_34695_, float arg1)
damageEntity(DamageSource arg0, float arg1)
public void
a(atu arg0, float arg1)
performRangedAttack(LivingEntity arg0, float arg1)
method_7105(class_1309 arg0, float arg1)
attack(LivingEntity arg0, float arg1)
m_6504_(C_524_ p_34705_, float arg1)
public void
a(atu arg0, bqq arg1, bku arg2, float arg3)
shootCrossbowProjectile(LivingEntity arg0, ItemStack arg1, Projectile arg2, float arg3)
method_18811(class_1309 arg0, class_1799 arg1, class_1676 arg2, float arg3)
shoot(LivingEntity arg0, ItemStack arg1, ProjectileEntity arg2, float arg3)
m_5811_(C_524_ p_34708_, C_1391_ p_34709_, C_1167_ p_34710_, float arg3)
public boolean
a(bre arg0)
canFireProjectileWeapon(ProjectileWeaponItem arg0)
method_25938(class_1811 arg0)
canUseRangedWeapon(RangedWeaponItem arg0)
m_5886_(C_1406_ arg0)
protected void
o(bqq arg0)
holdInMainHand(ItemStack arg0)
method_24844(class_1799 arg0)
equipToMainHand(ItemStack stack)
m_34783_(C_1391_ arg0)
protected void
p(bqq arg0)
holdInOffHand(ItemStack arg0)
method_24845(class_1799 arg0)
equipToOffHand(ItemStack stack)
m_34785_(C_1391_ arg0)
public boolean
l(bqq arg0)
wantsToPickUp(ItemStack arg0)
method_20820(class_1799 arg0)
canGather(ItemStack arg0)
m_7243_(C_1391_ arg0)
protected boolean
q(bqq arg0)
canReplaceCurrentItem(ItemStack arg0)
method_24846(class_1799 arg0)
canEquipStack(ItemStack stack)
m_34787_(C_1391_ arg0)
protected boolean
a(bqq arg0, bqq arg1)
canReplaceCurrentItem(ItemStack arg0, ItemStack arg1)
method_5955(class_1799 arg0, class_1799 arg1)
prefersNewEquipment(ItemStack arg0, ItemStack arg1)
m_7808_(C_1391_ p_34713_, C_1391_ arg1)
protected void
b(bhd arg0)
pickUpItem(ItemEntity arg0)
method_5949(class_1542 arg0)
loot(ItemEntity arg0)
m_7581_(C_976_ arg0)
public boolean
a(atg arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
method_5873(class_1297 arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
m_7998_(C_507_ p_34702_, boolean arg1)
private Entity
b(atg arg0, int arg1)
getTopPassenger(Entity arg0, int arg1)
method_26089(class_1297 arg0, int arg1)
getTopMostPassenger(Entity entity, int maxLevel)
m_34730_(C_507_ p_34732_, int arg1)
protected SoundEvent
q()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
getSoundAmbient()
protected SoundEvent
c(asq arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
getSoundHurt(DamageSource arg0)
protected SoundEvent
v_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
getSoundDeath()
protected void
b(gg arg0, ckt arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
m_7355_(C_4675_ p_34749_, C_2064_ arg1)
protected void
a(afd arg0)
playSound(SoundEvent arg0)
method_30086(class_3414 arg0)
playSound(SoundEvent sound)
m_34689_(C_123_ arg0)
protected void
fz()
playConvertedSound()
method_30238()
playZombificationSound()
m_7580_()