net.minecraft.world.entity.monster.piglin

public class Piglin

extends AbstractPiglin implements CrossbowAttackMob

All mapped superinterfaces:

Nameable, CommandSource, Enemy, CrossbowAttackMob, RangedAttackMob

bes
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_R3.EntityPiglin

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
bp
DATA_BABY_ID
field_22377
BABY
field_234415_d_
private static final EntityDataAccessor<Boolean>
bq
DATA_IS_CHARGING_CROSSBOW
field_22378
CHARGING
field_234409_bv_
private static final EntityDataAccessor<Boolean>
br
DATA_IS_DANCING
field_25164
DANCING
field_234410_bw_
private static final UUID
bs
SPEED_MODIFIER_BABY_UUID
field_22379
BABY_SPEED_BOOST_ID
field_234411_bx_
private static final AttributeModifier
bt
SPEED_MODIFIER_BABY
field_22380
BABY_SPEED_BOOST
field_234412_by_
private final SimpleContainer
bu
inventory
field_22371
inventory
field_234406_bA_
private boolean
bv
cannotHunt
field_23738
cannotHunt
field_234407_bB_
cannotHunt
protected static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super Piglin>>>
d
SENSOR_TYPES
field_22376
SENSOR_TYPES
field_234405_b_
protected static final com.google.common.collect.ImmutableList<MemoryModuleType<?>>
bo
MEMORY_TYPES
field_22381
MEMORY_MODULE_TYPES
field_234414_c_

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
b(md arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
func_213281_b(CompoundNBT arg0)
saveData(NBTTagCompound arg0)
public void
a(md arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
func_70037_a(CompoundNBT arg0)
loadData(NBTTagCompound arg0)
protected void
a(apk 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(bmb arg0)
addToInventory(ItemStack arg0)
method_24711(class_1799 arg0)
addItem(ItemStack stack)
func_234436_k_(ItemStack arg0)
protected boolean
l(bmb 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(us<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
func_184206_a(DataParameter<?> arg0)
public static AttributeSupplier$Builder
eT()
createAttributes()
method_26953()
createPiglinAttributes()
func_234420_eI_()
public static boolean
b(aqe<bes> arg0, bry arg1, aqp arg2, fx 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(bsk arg0, aos arg1, aqp arg2, arc arg3, md 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)
func_213386_a(IServerWorld arg0, DifficultyInstance arg1, SpawnReason arg2, ILivingEntityData arg3, CompoundNBT arg4)
prepare(WorldAccess 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(aos arg0)
populateDefaultEquipmentSlots(DifficultyInstance arg0)
method_5964(class_1266 arg0)
initEquipment(LocalDifficulty arg0)
func_180481_a(DifficultyInstance arg0)
private void
d(aqf arg0, bmb 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>
cK()
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>
cJ()
getBrain()
method_18868()
getBrain()
func_213375_cj()
getBehaviorController()
public InteractionResult
b(bfw arg0, aot 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(aqx arg0, aqb 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
bc()
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)
setBaby(boolean arg0)
public boolean
w_()
isBaby()
method_6109()
isBaby()
func_70631_g_()
isBaby()
private void
v(boolean arg0)
setCannotHunt(boolean arg0)
method_26954(boolean arg0)
setCannotHunt(boolean cannotHunt)
func_234443_v_(boolean arg0)
protected boolean
m()
canHunt()
method_26952()
canHunt()
func_234422_eK_()
protected void
N()
customServerAiStep()
method_5958()
mobTick()
func_70619_bc()
mobTick()
protected int
d(bfw arg0)
getExperienceReward(Player arg0)
method_6110(class_1657 arg0)
getXpToDrop(PlayerEntity arg0)
func_70693_a(PlayerEntity arg0)
getExpValue(EntityHuman arg0)
protected void
c(aag arg0)
finishConversion(ServerLevel arg0)
method_24694(class_3218 arg0)
zombify(ServerWorld arg0)
func_234416_a_(ServerWorld arg0)
private ItemStack
eV()
createSpawnWeapon()
method_24702()
makeInitialWeapon()
func_234432_eW_()
private boolean
eW()
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
U_()
onCrossbowAttackPerformed()
method_24651()
postShoot()
func_230283_U__()
public PiglinArmPose
eN()
getArmPose()
method_24705()
getActivity()
func_234424_eM_()
public boolean
eU()
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)
public boolean
a(apk 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(aqm 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(aqm arg0, bmb arg1, bgm 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(bmo arg0)
canFireProjectileWeapon(ProjectileWeaponItem arg0)
method_25938(class_1811 arg0)
canUseRangedWeapon(RangedWeaponItem arg0)
func_230280_a_(ShootableItem arg0)
protected void
m(bmb arg0)
holdInMainHand(ItemStack arg0)
method_24844(class_1799 arg0)
equipToMainHand(ItemStack stack)
func_234438_m_(ItemStack arg0)
protected void
n(bmb arg0)
holdInOffHand(ItemStack arg0)
method_24845(class_1799 arg0)
equipToOffHand(ItemStack stack)
func_234439_n_(ItemStack arg0)
public boolean
i(bmb arg0)
wantsToPickUp(ItemStack arg0)
method_20820(class_1799 arg0)
canGather(ItemStack arg0)
func_230293_i_(ItemStack arg0)
protected boolean
o(bmb arg0)
canReplaceCurrentItem(ItemStack arg0)
method_24846(class_1799 arg0)
canEquipStack(ItemStack stack)
func_234440_o_(ItemStack arg0)
protected boolean
a(bmb arg0, bmb 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(bcv arg0)
pickUpItem(ItemEntity arg0)
method_5949(class_1542 arg0)
loot(ItemEntity arg0)
func_175445_a(ItemEntity arg0)
public boolean
a(aqa 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(aqa 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(apk arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
func_184601_bQ(DamageSource arg0)
getSoundHurt(DamageSource arg0)
protected SoundEvent
dq()
getDeathSound()
method_6002()
getDeathSound()
func_184615_bR()
getSoundDeath()
protected void
b(fx arg0, ceh 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(adp arg0)
playSound(SoundEvent arg0)
method_30086(class_3414 arg0)
playSound(SoundEvent sound)
func_241417_a_(SoundEvent arg0)
protected void
eP()
playConvertedSound()
method_30238()
playZombificationSound()
func_241848_eP()