net.minecraft.world.entity.monster.piglin

public class Piglin

extends AbstractPiglin implements CrossbowAttackMob, InventoryCarrier

All mapped superinterfaces:

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

col
net.minecraft.world.entity.monster.piglin.Piglin
net.minecraft.class_4836
net.minecraft.entity.mob.PiglinEntity
net.minecraft.world.entity.monster.piglin.EntityPiglin

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
ca
DATA_BABY_ID
field_22377
BABY
private static final EntityDataAccessor<Boolean>
cb
DATA_IS_CHARGING_CROSSBOW
field_22378
CHARGING
private static final EntityDataAccessor<Boolean>
cc
DATA_IS_DANCING
field_25164
DANCING
private static final ResourceLocation
cd
SPEED_MODIFIER_BABY_ID
field_22379
BABY_SPEED_BOOST_ID
private static final AttributeModifier
ce
SPEED_MODIFIER_BABY
field_22380
BABY_SPEED_BOOST
private static final int
cf
MAX_HEALTH
field_30548
field_30548
private static final float
cg
MOVEMENT_SPEED_WHEN_FIGHTING
field_30549
field_30549
private static final int
ch
ATTACK_DAMAGE
field_30550
field_30550
private static final float
ci
CHANCE_OF_WEARING_EACH_ARMOUR_ITEM
field_30552
field_30552
private static final int
cj
MAX_PASSENGERS_ON_ONE_HOGLIN
field_30553
field_30553
private static final float
ck
PROBABILITY_OF_SPAWNING_AS_BABY
field_30554
field_30554
private static final EntityDimensions
cl
BABY_DIMENSIONS
field_47818
BABY_BASE_DIMENSIONS
private static final double
cm
PROBABILITY_OF_SPAWNING_WITH_CROSSBOW_INSTEAD_OF_SWORD
field_30556
field_30556
private final SimpleContainer
cn
inventory
field_22371
inventory
private boolean
co
cannotHunt
field_23738
cannotHunt
protected static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super Piglin>>>
d
SENSOR_TYPES
field_22376
SENSOR_TYPES
protected static final com.google.common.collect.ImmutableList<MemoryModuleType<?>>
bZ
MEMORY_TYPES
field_22381
MEMORY_MODULE_TYPES

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public SimpleContainer
t()
getInventory()
method_35199()
getInventory()
protected void
a(ash arg0, bua arg1, boolean arg2)
dropCustomDeathLoot(ServerLevel arg0, DamageSource arg1, boolean arg2)
method_6099(class_3218 arg0, class_1282 arg1, boolean arg2)
dropEquipment(ServerWorld arg0, DamageSource arg1, boolean arg2)
protected ItemStack
i(cxp arg0)
addToInventory(ItemStack arg0)
method_24711(class_1799 arg0)
addItem(ItemStack stack)
protected boolean
j(cxp arg0)
canAddToInventory(ItemStack arg0)
method_27085(class_1799 arg0)
canInsertIntoInventory(ItemStack stack)
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
a(alc<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public static AttributeSupplier$Builder
gu()
createAttributes()
method_26953()
createPiglinAttributes()
public static boolean
b(bvr<col> arg0, dhj arg1, bvq arg2, jh arg3, bam arg4)
checkPiglinSpawnRules(EntityType<Piglin> arg0, LevelAccessor arg1, EntitySpawnReason arg2, BlockPos arg3, RandomSource arg4)
method_24695(class_1299<class_4836> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<PiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
public SpawnGroupData
a(dhz arg0, bth arg1, bvq arg2, bwz arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, EntitySpawnReason arg2, SpawnGroupData arg3)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
protected boolean
X()
shouldDespawnInPeaceful()
method_23734()
isDisallowedInPeaceful()
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
protected void
a(bam arg0, bth arg1)
populateDefaultEquipmentSlots(RandomSource arg0, DifficultyInstance arg1)
method_5964(class_5819 arg0, class_1266 arg1)
initEquipment(Random arg0, LocalDifficulty arg1)
private void
a(bvs arg0, cxp arg1, bam arg2)
maybeWearArmor(EquipmentSlot arg0, ItemStack arg1, RandomSource arg2)
method_24696(class_1304 arg0, class_1799 arg1, class_5819 arg2)
equipAtChance(EquipmentSlot slot, ItemStack stack, Random random)
protected Brain$Provider<Piglin>
ed()
brainProvider()
method_28306()
createBrainProfile()
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)
public Brain<Piglin>
ec()
getBrain()
method_18868()
getBrain()
public InteractionResult
b(cpx arg0, bti arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public EntityDimensions
e(bws arg0)
getDefaultDimensions(Pose arg0)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
public void
a(boolean arg0)
setBaby(boolean arg0)
method_7217(boolean arg0)
setBaby(boolean arg0)
public boolean
e_()
isBaby()
method_6109()
isBaby()
private void
z(boolean arg0)
setCannotHunt(boolean arg0)
method_26954(boolean arg0)
setCannotHunt(boolean cannotHunt)
protected boolean
m()
canHunt()
method_26952()
canHunt()
protected void
a(ash arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
protected int
e(ash arg0)
getBaseExperienceReward(ServerLevel arg0)
method_6110(class_3218 arg0)
getXpToDrop(ServerWorld arg0)
protected void
g(ash arg0)
finishConversion(ServerLevel arg0)
method_24694(class_3218 arg0)
zombify(ServerWorld arg0)
private ItemStack
gw()
createSpawnWeapon()
method_24702()
makeInitialWeapon()
private boolean
gx()
isChargingCrossbow()
method_24703()
isCharging()
public void
b(boolean arg0)
setChargingCrossbow(boolean arg0)
method_7110(boolean arg0)
setCharging(boolean arg0)
public void
a()
onCrossbowAttackPerformed()
method_24651()
postShoot()
public PiglinArmPose
gp()
getArmPose()
method_24705()
getActivity()
public boolean
gv()
isDancing()
method_29272()
isDancing()
public void
y(boolean arg0)
setDancing(boolean arg0)
method_29274(boolean arg0)
setDancing(boolean dancing)
public boolean
a(ash arg0, bua arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public void
a(bwg arg0, float arg1)
performRangedAttack(LivingEntity arg0, float arg1)
method_7105(class_1309 arg0, float arg1)
shootAt(LivingEntity arg0, float arg1)
public boolean
a(cyl arg0)
canFireProjectileWeapon(ProjectileWeaponItem arg0)
method_25938(class_1811 arg0)
canUseRangedWeapon(RangedWeaponItem arg0)
protected void
k(cxp arg0)
holdInMainHand(ItemStack arg0)
method_24844(class_1799 arg0)
equipToMainHand(ItemStack stack)
protected void
l(cxp arg0)
holdInOffHand(ItemStack arg0)
method_24845(class_1799 arg0)
equipToOffHand(ItemStack stack)
public boolean
c(ash arg0, cxp arg1)
wantsToPickUp(ServerLevel arg0, ItemStack arg1)
method_20820(class_3218 arg0, class_1799 arg1)
canGather(ServerWorld arg0, ItemStack arg1)
protected boolean
m(cxp arg0)
canReplaceCurrentItem(ItemStack arg0)
method_24846(class_1799 arg0)
canEquipStack(ItemStack stack)
protected boolean
a(cxp arg0, cxp arg1, bvs arg2)
canReplaceCurrentItem(ItemStack arg0, ItemStack arg1, EquipmentSlot arg2)
method_5955(class_1799 arg0, class_1799 arg1, class_1304 arg2)
prefersNewEquipment(ItemStack arg0, ItemStack arg1, EquipmentSlot arg2)
protected void
a(ash arg0, cmb arg1)
pickUpItem(ServerLevel arg0, ItemEntity arg1)
method_5949(class_3218 arg0, class_1542 arg1)
loot(ServerWorld arg0, ItemEntity arg1)
public boolean
a(bvk arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
method_5873(class_1297 arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
private Entity
b(bvk arg0, int arg1)
getTopPassenger(Entity arg0, int arg1)
method_26089(class_1297 arg0, int arg1)
getTopMostPassenger(Entity entity, int maxLevel)
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(bua arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
protected void
b(jh arg0, dxv arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
protected void
gr()
playConvertedSound()
method_30238()
playZombificationSound()