net.minecraft.world.entity.animal

public class Pig

extends Animal implements ItemSteerable, Saddleable

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, ItemSteerable, Saddleable

bqf
net.minecraft.world.entity.animal.Pig
net.minecraft.class_1452
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>
bX
DATA_SADDLE_ID
field_6816
SADDLED
f_29456_
private static final EntityDataAccessor<Integer>
bY
DATA_BOOST_TIME
field_6815
BOOST_TIME
f_29457_
private static final Ingredient
ca
FOOD_ITEMS
field_6817
BREEDING_INGREDIENT
f_29458_
private final ItemBasedSteering
cb
steering
field_23230
saddledComponent
f_29459_

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
u()
registerGoals()
method_5959()
initGoals()
m_8099_()
public static AttributeSupplier$Builder
p()
createAttributes()
method_26890()
createPigAttributes()
m_29503_()
public Entity
cL()
getControllingPassenger()
method_5642()
getPrimaryPassenger()
m_6688_()
private boolean
a(bdr arg0)
canBeControlledBy(Entity arg0)
method_5956(class_1297 arg0)
canBeControlledByRider(Entity arg0)
m_218247_(C_507_ arg0)
public void
a(abn<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
m_7350_(C_5225_<?> arg0)
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
public void
b(qp arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(qp arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
protected SoundEvent
r()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
protected SoundEvent
c(bcz arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
c_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
protected void
b(gp arg0, cyt arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
m_7355_(C_4675_ p_29493_, C_2064_ arg1)
public InteractionResult
b(bwp arg0, bcl arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_29490_, C_470_ arg1)
public boolean
d()
isSaddleable()
method_6765()
canBeSaddled()
m_6741_()
protected void
en()
dropEquipment()
method_16078()
dropInventory()
m_5907_()
public boolean
g()
isSaddled()
method_6725()
isSaddled()
m_6254_()
public void
a(alp arg0)
equipSaddle(SoundSource arg0)
method_6576(class_3419 arg0)
saddle(SoundCategory arg0)
m_5853_(C_125_ arg0)
public Vec3
b(beg arg0)
getDismountLocationForPassenger(LivingEntity arg0)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
m_7688_(C_524_ arg0)
public void
a(ahm arg0, bef arg1)
thunderHit(ServerLevel arg0, LightningBolt arg1)
method_5800(class_3218 arg0, class_1538 arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
m_8038_(C_12_ p_29474_, C_523_ arg1)
public void
h(eae arg0)
travel(Vec3 arg0)
method_6091(class_243 arg0)
travel(Vec3d arg0)
m_7023_(C_3046_ arg0)
public float
b()
getSteeringSpeed()
method_26316()
getSaddledSpeed()
m_6748_()
public void
a(eae arg0)
travelWithInput(Vec3 arg0)
method_26315(class_243 arg0)
setMovementInput(Vec3d arg0)
m_7760_(C_3046_ arg0)
public boolean
a()
boost()
method_6577()
consumeOnAStickItem()
m_6746_()
public Pig
b(ahm arg0, bdo arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_6574(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_149002_, C_141062_ arg1)
public boolean
n(cdt arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
public Vec3
cG()
getLeashOffset()
method_29919()
getLeashOffset()
m_7939_()