net.minecraft.world.entity.animal

public class Pig

extends Animal implements ItemSteerable, Saddleable

All mapped superinterfaces:

Nameable, CommandSource, ItemSteerable, Saddleable

ayy
net.minecraft.world.entity.animal.Pig
net.minecraft.class_1452
net.minecraft.entity.passive.PigEntity
net.minecraft.entity.passive.PigEntity
net.minecraft.server.v1_16_R1.EntityPig

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
bv
DATA_SADDLE_ID
field_6816
SADDLED
field_184763_bv
private static final EntityDataAccessor<Integer>
bw
DATA_BOOST_TIME
field_6815
BOOST_TIME
field_191520_bx
private static final Ingredient
bx
FOOD_ITEMS
field_6817
BREEDING_INGREDIENT
field_184764_bw
private final ItemBasedSteering
by
steering
field_23230
saddledComponent
field_234214_bx_
saddleStorage

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
o()
registerGoals()
method_5959()
initGoals()
func_184651_r()
initPathfinder()
public static AttributeSupplier$Builder
eL()
createAttributes()
method_26890()
createPigAttributes()
func_234215_eI_()
public Entity
cl()
getControllingPassenger()
method_5642()
getPrimaryPassenger()
func_184179_bs()
getRidingPassenger()
public boolean
es()
canBeControlledByRider()
method_5956()
canBeControlledByRider()
func_82171_bF()
public void
a(tq<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
func_184206_a(DataParameter<?> arg0)
protected void
e()
defineSynchedData()
method_5693()
initDataTracker()
func_70088_a()
initDatawatcher()
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 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)
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)
public boolean
M_()
isSaddleable()
method_6765()
canBeSaddled()
func_230264_L__()
canSaddle()
protected void
dm()
dropEquipment()
method_16078()
dropInventory()
func_213337_cE()
dropInventory()
public boolean
N_()
isSaddled()
method_6725()
isSaddled()
func_110257_ck()
hasSaddle()
public void
a(acm arg0)
equipSaddle(SoundSource arg0)
method_6576(class_3419 arg0)
saddle(SoundCategory arg0)
func_230266_a_(SoundCategory arg0)
saddle(SoundCategory arg0)
public Vec3
c(aoy arg0)
getDismountLocationForPassenger(LivingEntity arg0)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
func_230268_c_(LivingEntity arg0)
public void
a(aox arg0)
thunderHit(LightningBolt arg0)
method_5800(class_1538 arg0)
onStruckByLightning(LightningEntity arg0)
func_70077_a(LightningBoltEntity arg0)
onLightningStrike(EntityLightning arg0)
public void
f(dem arg0)
travel(Vec3 arg0)
method_6091(class_243 arg0)
travel(Vec3d arg0)
func_213352_e(Vector3d arg0)
public float
O_()
getSteeringSpeed()
method_26316()
getSaddledSpeed()
func_230265_N__()
public void
a_(dem arg0)
travelWithInput(Vec3 arg0)
method_26315(class_243 arg0)
setMovementInput(Vec3d arg0)
func_230267_a__(Vector3d arg0)
public boolean
P_()
boost()
method_6577()
consumeOnAStickItem()
func_184762_da()
public Pig
b(aok arg0)
getBreedOffspring(AgableMob arg0)
method_6574(class_1296 arg0)
createChild(PassiveEntity arg0)
func_90011_a(AgeableEntity arg0)
createChild(EntityAgeable arg0)
public boolean
k(bki arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
func_70877_b(ItemStack arg0)
public Vec3
ce()
getLeashOffset()
method_29919()
method_29919()
func_241205_ce_()