net.minecraft.world.entity.monster.piglin

public class Piglin

extends Monster implements CrossbowAttackMob

All mapped superinterfaces:

Nameable, CommandSource, Enemy, CrossbowAttackMob, RangedAttackMob

bdc
net.minecraft.world.entity.monster.piglin.Piglin
net.minecraft.class_4836
net.minecraft.entity.mob.PiglinEntity
net.minecraft.entity.monster.piglin.PiglinEntity
net.minecraft.server.v1_16_R1.EntityPiglin

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
d
DATA_BABY_ID
field_22377
BABY
field_234415_d_
private static final EntityDataAccessor<Boolean>
bv
DATA_IMMUNE_TO_ZOMBIFICATION
field_22419
IMMUNE_TO_ZOMBIFICATION
field_234408_bu_
private static final EntityDataAccessor<Boolean>
bw
DATA_IS_CHARGING_CROSSBOW
field_22378
CHARGING
field_234409_bv_
private static final EntityDataAccessor<Boolean>
bx
DATA_IS_DANCING
field_25164
dancing
field_234410_bw_
private static final UUID
by
SPEED_MODIFIER_BABY_UUID
field_22379
BABY_SPEED_BOOST_ID
field_234411_bx_
private static final AttributeModifier
bz
SPEED_MODIFIER_BABY
field_22380
BABY_SPEED_BOOST
field_234412_by_
private int
bA
timeInOverworld
field_22370
conversionTicks
field_234413_bz_
private final SimpleContainer
bB
inventory
field_22371
inventory
field_234406_bA_
private boolean
bC
cannotHunt
field_23738
cannotHunt
field_234407_bB_
protected static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super Piglin>>>
b
SENSOR_TYPES
field_22376
SENSOR_TYPES
field_234405_b_
protected static final com.google.common.collect.ImmutableList<MemoryModuleType<?>>
c
MEMORY_TYPES
field_22381
MEMORY_MODULE_TYPES
field_234414_c_

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
b(le arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToTag(CompoundTag arg0)
func_213281_b(CompoundNBT arg0)
saveData(NBTTagCompound arg0)
public void
a(le arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromTag(CompoundTag arg0)
func_70037_a(CompoundNBT arg0)
loadData(NBTTagCompound arg0)
protected void
a(anw 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)
func_213333_a(DamageSource arg0, int arg1, boolean arg2)
dropDeathLoot(DamageSource arg0, int arg1, boolean arg2)
protected ItemStack
k(bki arg0)
addToInventory(ItemStack arg0)
method_24711(class_1799 arg0)
addItem(ItemStack stack)
func_234436_k_(ItemStack arg0)
protected boolean
l(bki arg0)
canAddToInventory(ItemStack arg0)
method_27085(class_1799 arg0)
canInsertIntoInventory(ItemStack stack)
func_234437_l_(ItemStack arg0)
protected void
e()
defineSynchedData()
method_5693()
initDataTracker()
func_70088_a()
initDatawatcher()
public void
a(tq<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
func_184206_a(DataParameter<?> arg0)
public static AttributeSupplier$Builder
eL()
createAttributes()
method_26953()
createPiglinAttributes()
func_234420_eI_()
public static boolean
b(aoq<bdc> arg0, bqc arg1, apb arg2, fu 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)
func_234418_b_(EntityType<PiglinEntity> arg0, IWorld arg1, SpawnReason arg2, BlockPos arg3, Random arg4)
public SpawnGroupData
a(bqc arg0, ane arg1, apb arg2, apo arg3, le arg4)
finalizeSpawn(LevelAccessor arg0, DifficultyInstance arg1, MobSpawnType arg2, SpawnGroupData arg3, CompoundTag arg4)
method_5943(class_1936 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3, class_2487 arg4)
initialize(WorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3, CompoundTag arg4)
func_213386_a(IWorld arg0, DifficultyInstance arg1, SpawnReason arg2, ILivingEntityData arg3, CompoundNBT arg4)
prepare(GeneratorAccess arg0, DifficultyDamageScaler arg1, EnumMobSpawn arg2, GroupDataEntity arg3, NBTTagCompound arg4)
protected boolean
L()
shouldDespawnInPeaceful()
method_23734()
isDisallowedInPeaceful()
func_225511_J_()
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
func_213397_c(double arg0)
isTypeNotPersistent(double arg0)
protected void
a(ane arg0)
populateDefaultEquipmentSlots(DifficultyInstance arg0)
method_5964(class_1266 arg0)
initEquipment(LocalDifficulty arg0)
func_180481_a(DifficultyInstance arg0)
private void
d(aor arg0, bki arg1)
maybeWearArmor(EquipmentSlot arg0, ItemStack arg1)
method_24696(class_1304 arg0, class_1799 arg1)
equipAtChance(EquipmentSlot slot, ItemStack stack)
func_234419_d_(EquipmentSlotType arg0, ItemStack arg1)
protected Brain$Provider<Piglin>
cJ()
brainProvider()
method_28306()
createBrainProfile()
func_230289_cH_()
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)
func_213364_a(com.mojang.serialization.Dynamic<?> arg0)
public Brain<Piglin>
cI()
getBrain()
method_18868()
getBrain()
func_213375_cj()
getBehaviorController()
public InteractionResult
b(bec arg0, anf arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
func_230254_b_(PlayerEntity arg0, Hand arg1)
protected float
b(apj arg0, aon arg1)
getStandingEyeHeight(Pose arg0, EntityDimensions arg1)
method_18394(class_4050 arg0, class_4048 arg1)
getActiveEyeHeight(EntityPose arg0, EntityDimensions arg1)
func_213348_b(Pose arg0, EntitySize arg1)
public double
aX()
getMyRidingOffset()
method_5678()
getHeightOffset()
func_70033_W()
public double
aY()
getPassengersRidingOffset()
method_5621()
getMountedHeightOffset()
func_70042_X()
public void
a(boolean arg0)
setBaby(boolean arg0)
method_7217(boolean arg0)
setBaby(boolean arg0)
func_82227_f(boolean arg0)
public boolean
x_()
isBaby()
method_6109()
isBaby()
func_70631_g_()
isBaby()
public boolean
eM()
isAdult()
method_24712()
isAdult()
func_234421_eJ_()
public void
t(boolean arg0)
setImmuneToZombification(boolean arg0)
method_24847(boolean arg0)
setImmuneToZombification(boolean immuneToZombification)
func_234441_t_(boolean arg0)
private boolean
eT()
isImmuneToZombification()
method_24843()
isImmuneToZombification()
func_234431_eV_()
private void
v(boolean arg0)
setCannotHunt(boolean arg0)
method_26954(boolean arg0)
setCannotHunt(boolean cannotHunt)
func_234443_v_(boolean arg0)
protected boolean
eN()
canHunt()
method_26952()
canHunt()
func_234422_eK_()
public boolean
eO()
isConverting()
method_24704()
canConvert()
func_234423_eL_()
protected void
N()
customServerAiStep()
method_5958()
mobTick()
func_70619_bc()
mobTick()
protected int
d(bec arg0)
getExperienceReward(Player arg0)
method_6110(class_1657 arg0)
getCurrentExperience(PlayerEntity arg0)
func_70693_a(PlayerEntity arg0)
getExpValue(EntityHuman arg0)
private void
b(zd arg0)
finishConversion(ServerLevel arg0)
method_24694(class_3218 arg0)
zombify(ServerWorld arg0)
func_234416_a_(ServerWorld arg0)
public LivingEntity
A()
getTarget()
method_5968()
getTarget()
func_70638_az()
getGoalTarget()
private ItemStack
eU()
createSpawnWeapon()
method_24702()
makeInitialWeapon()
func_234432_eW_()
private boolean
eV()
isChargingCrossbow()
method_24703()
isCharging()
func_234433_eX_()
public void
b(boolean arg0)
setChargingCrossbow(boolean arg0)
method_7110(boolean arg0)
setCharging(boolean arg0)
func_213671_a(boolean arg0)
public void
V_()
onCrossbowAttackPerformed()
method_24651()
postShoot()
func_230283_U__()
public Piglin$PiglinArmPose
eP()
getArmPose()
method_24705()
getActivity()
func_234424_eM_()
public boolean
eQ()
isDancing()
method_29272()
isDancing()
func_234425_eN_()
public void
u(boolean arg0)
setDancing(boolean arg0)
method_29274(boolean arg0)
setDancing(boolean dancing)
func_234442_u_(boolean arg0)
private boolean
eW()
isHoldingMeleeWeapon()
method_29273()
isHoldingTool()
func_234434_eY_()
public boolean
a(anw arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
damage(DamageSource arg0, float arg1)
func_70097_a(DamageSource arg0, float arg1)
damageEntity(DamageSource arg0, float arg1)
public void
a(aoy arg0, float arg1)
performRangedAttack(LivingEntity arg0, float arg1)
method_7105(class_1309 arg0, float arg1)
attack(LivingEntity arg0, float arg1)
func_82196_d(LivingEntity arg0, float arg1)
public void
a(aoy arg0, bki arg1, bes 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)
func_230284_a_(LivingEntity arg0, ItemStack arg1, ProjectileEntity arg2, float arg3)
public boolean
a(bkv arg0)
canFireProjectileWeapon(ProjectileWeaponItem arg0)
method_25938(class_1811 arg0)
canUseRangedWeapon(RangedWeaponItem arg0)
func_230280_a_(ShootableItem arg0)
protected void
m(bki arg0)
holdInMainHand(ItemStack arg0)
method_24844(class_1799 arg0)
equipToMainHand(ItemStack stack)
func_234438_m_(ItemStack arg0)
protected void
n(bki arg0)
holdInOffHand(ItemStack arg0)
method_24845(class_1799 arg0)
equipToOffHand(ItemStack stack)
func_234439_n_(ItemStack arg0)
public boolean
i(bki arg0)
wantsToPickUp(ItemStack arg0)
method_20820(class_1799 arg0)
canGather(ItemStack arg0)
func_230293_i_(ItemStack arg0)
protected boolean
o(bki arg0)
canReplaceCurrentItem(ItemStack arg0)
method_24846(class_1799 arg0)
method_24846(ItemStack stack)
func_234440_o_(ItemStack arg0)
protected boolean
a(bki arg0, bki arg1)
canReplaceCurrentItem(ItemStack arg0, ItemStack arg1)
method_5955(class_1799 arg0, class_1799 arg1)
prefersNewEquipment(ItemStack arg0, ItemStack arg1)
func_208003_a(ItemStack arg0, ItemStack arg1)
protected void
b(bbg arg0)
pickUpItem(ItemEntity arg0)
method_5949(class_1542 arg0)
loot(ItemEntity arg0)
func_175445_a(ItemEntity arg0)
public boolean
a(aom arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
method_5873(class_1297 arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
func_184205_a(Entity arg0, boolean arg1)
private Entity
b(aom arg0, int arg1)
getTopPassenger(Entity arg0, int arg1)
method_26089(class_1297 arg0, int arg1)
method_26089(Entity arg0, int arg1)
func_234417_b_(Entity arg0, int arg1)
protected SoundEvent
I()
getAmbientSound()
method_5994()
getAmbientSound()
func_184639_G()
getSoundAmbient()
protected SoundEvent
e(anw arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
func_184601_bQ(DamageSource arg0)
getSoundHurt(DamageSource arg0)
protected SoundEvent
dp()
getDeathSound()
method_6002()
getDeathSound()
func_184615_bR()
getSoundDeath()
protected void
a(fu arg0, cfj arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
func_180429_a(BlockPos arg0, BlockState arg1)
protected void
a(ack arg0)
playSound(SoundEvent arg0)
method_30086(class_3414 arg0)
method_30086(SoundEvent arg0)
func_241417_a_(SoundEvent arg0)
protected void
M()
sendDebugPackets()
method_18409()
sendAiDebugData()
func_213387_K()