net.minecraft.world.entity.animal

public class Pig

extends Animal implements ItemSteerable, Saddleable

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, CommandSource, ScoreHolder, Attackable, EquipmentUser, Targeting, ItemSteerable, Saddleable

cfy
net.minecraft.world.entity.animal.Pig
net.minecraft.class_1452
net.minecraft.unmapped.C_svwchvcj
net.minecraft.entity.passive.PigEntity
net.minecraft.entity.passive.PigEntity
net.minecraft.src.C_879_
net.minecraft.world.entity.animal.EntityPig

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
bY
DATA_SADDLE_ID
field_6816
f_nmxsdcqa
SADDLED
SADDLED
f_29456_
private static final EntityDataAccessor<Integer>
bZ
DATA_BOOST_TIME
field_6815
f_nosaypiw
BOOST_TIME
BOOST_TIME
f_29457_
private final ItemBasedSteering
cb
steering
field_23230
f_iqofkmwg
saddledComponent
saddledComponent
f_29459_

Constructor summary

ModifierConstructor
public (EntityType<? extends Pig> p_29463_, Level world)

Method summary

Modifier and TypeMethod
protected void
z()
registerGoals()
method_5959()
m_itjttsuo()
initGoals()
initGoals()
m_8099_()
public static AttributeSupplier$Builder
s()
createAttributes()
method_26890()
m_pxotskdy()
createPigAttributes()
createAttributes()
m_29503_()
public LivingEntity
cQ()
getControllingPassenger()
method_5642()
m_cvqrfbej()
getControllingPassenger()
getPrimaryPassenger()
m_6688_()
public void
a(akk<?> 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)
protected void
a(ako$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
b(us 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(us 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)
protected SoundEvent
v()
getAmbientSound()
method_5994()
m_jjefzxbm()
getAmbientSound()
getAmbientSound()
m_7515_()
protected SoundEvent
d(brp 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
o_()
getDeathSound()
method_6002()
m_axkhmdzu()
getDeathSound()
getDeathSound()
m_5592_()
protected void
b(iz arg0, dse 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_29493_, C_2064_ arg1)
public InteractionResult
b(cmz arg0, bqv 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_29490_, C_470_ arg1)
public boolean
f()
isSaddleable()
method_6765()
m_glykbwde()
canBeSaddled()
canBeSaddled()
m_6741_()
protected void
eD()
dropEquipment()
method_16078()
m_whvujbsh()
dropInventory()
dropInventory()
m_5907_()
public boolean
i()
isSaddled()
method_6725()
m_cxbwxsec()
isSaddled()
isSaddled()
m_6254_()
public void
a(awb arg0)
equipSaddle(SoundSource arg0)
method_6576(class_3419 arg0)
m_kexbjetg(C_pqzizukq arg0)
saddle(SoundCategory arg0)
saddle(SoundCategory arg0)
m_5853_(C_125_ arg0)
public Vec3
b(btr arg0)
getDismountLocationForPassenger(LivingEntity arg0)
method_24829(class_1309 arg0)
m_uoqfuwph(C_usxaxydn arg0)
updatePassengerForDismount(LivingEntity arg0)
updatePassengerForDismount(LivingEntity arg0)
m_7688_(C_524_ arg0)
public void
a(arf arg0, btq arg1)
thunderHit(ServerLevel arg0, LightningBolt arg1)
method_5800(class_3218 arg0, class_1538 arg1)
m_vindekkr(C_bdwnwhiu arg0, C_kbpqznyn arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
m_8038_(C_12_ p_29474_, C_523_ arg1)
protected void
a(cmz arg0, evt arg1)
tickRidden(Player arg0, Vec3 arg1)
method_49481(class_1657 arg0, class_243 arg1)
m_uhjfbatb(C_jzrpycqo arg0, C_vgpupfxx arg1)
tickControlled(PlayerEntity arg0, Vec3d arg1)
tickControlled(PlayerEntity arg0, Vec3d arg1)
m_274498_(C_1141_ p_278267_, C_3046_ arg1)
protected Vec3
b(cmz arg0, evt arg1)
getRiddenInput(Player arg0, Vec3 arg1)
method_49482(class_1657 arg0, class_243 arg1)
m_mzepiaxw(C_jzrpycqo arg0, C_vgpupfxx arg1)
getControlledMovementInput(PlayerEntity arg0, Vec3d arg1)
getControlledMovementInput(PlayerEntity arg0, Vec3d arg1)
m_274312_(C_1141_ p_275479_, C_3046_ arg1)
protected float
e(cmz arg0)
getRiddenSpeed(Player arg0)
method_49485(class_1657 arg0)
m_swoeftqi(C_jzrpycqo arg0)
getSaddledSpeed(PlayerEntity arg0)
getRiddenSpeed(PlayerEntity arg0)
m_245547_(C_1141_ arg0)
public boolean
a()
boost()
method_6577()
m_hibdwtrq()
consumeOnAStickItem()
consumeOnAStickItem()
m_6746_()
public Pig
b(arf arg0, bsq arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_6574(class_3218 arg0, class_1296 arg1)
m_gpfvcldw(C_bdwnwhiu arg0, C_jvojbnla arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
createChild(ServerWorld world, PassiveEntity arg1)
m_142606_(C_12_ p_149002_, C_141062_ arg1)
public boolean
o(cur arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
m_njyokwrm(C_sddaxwyk arg0)
isBreedingItem(ItemStack arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
public Vec3
cM()
getLeashOffset()
method_29919()
m_gxfczhkq()
getLeashOffset()
getLeashOffset()
m_7939_()