net.minecraft.world.entity.animal

public class Pig

extends Animal

All mapped superinterfaces:

Nameable, CommandSource

atn
net.minecraft.world.entity.animal.Pig
net.minecraft.class_1452
net.minecraft.entity.passive.PigEntity
net.minecraft.entity.passive.PigEntity
net.minecraft.server.v1_15_R1.EntityPig

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
bw
DATA_SADDLE_ID
field_6816
SADDLED
field_184763_bv
private static final EntityDataAccessor<Integer>
bx
DATA_BOOST_TIME
field_6815
field_191520_bx
private static final Ingredient
by
FOOD_ITEMS
field_6817
BREEDING_INGREDIENT
field_184764_bw
private boolean
bz
boosting
field_6814
field_184765_bx
private int
bA
boostTime
field_6812
field_184766_bz
private int
bB
boostTimeTotal
field_6813
field_184767_bA

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
n()
registerGoals()
method_5959()
initGoals()
func_184651_r()
initPathfinder()
protected void
cA()
registerAttributes()
method_6001()
initAttributes()
func_110147_ax()
initAttributes()
public Entity
cd()
getControllingPassenger()
method_5642()
getPrimaryPassenger()
func_184179_bs()
getRidingPassenger()
public boolean
dY()
canBeControlledByRider()
method_5956()
canBeControlledByRider()
func_82171_bF()
public void
a(sb<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
func_184206_a(DataParameter<?> arg0)
protected void
w_()
defineSynchedData()
method_5693()
initDataTracker()
func_70088_a()
initDatawatcher()
public void
b(jt arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToTag(CompoundTag arg0)
func_213281_b(CompoundNBT arg0)
public void
a(jt arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromTag(CompoundTag arg0)
func_70037_a(CompoundNBT arg0)
protected SoundEvent
G()
getAmbientSound()
method_5994()
getAmbientSound()
func_184639_G()
getSoundAmbient()
protected SoundEvent
e(ajw arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
func_184601_bQ(DamageSource arg0)
getSoundHurt(DamageSource arg0)
protected SoundEvent
cX()
getDeathSound()
method_6002()
getDeathSound()
func_184615_bR()
getSoundDeath()
protected void
a(fk arg0, byg 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 boolean
a(ayg arg0, ajh arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
func_184645_a(PlayerEntity arg0, Hand arg1)
protected void
cU()
dropEquipment()
method_16078()
dropInventory()
func_213337_cE()
dropInventory()
public boolean
eq()
hasSaddle()
method_6575()
isSaddled()
func_70901_n()
hasSaddle()
public void
r(boolean arg0)
setSaddle(boolean arg0)
method_6576(boolean arg0)
setSaddled(boolean saddled)
func_70900_e(boolean arg0)
setSaddle(boolean arg0)
public void
a(avv arg0)
thunderHit(LightningBolt arg0)
method_5800(class_1538 arg0)
onStruckByLightning(LightningEntity arg0)
func_70077_a(LightningBoltEntity arg0)
onLightningStrike(EntityLightning arg0)
public void
e(cvi arg0)
travel(Vec3 arg0)
method_6091(class_243 arg0)
travel(Vec3d arg0)
func_213352_e(Vec3d arg0)
public boolean
er()
boost()
method_6577()
func_184762_da()
public Pig
b(akl arg0)
getBreedOffspring(AgableMob arg0)
method_6574(class_1296 arg0)
createChild(PassiveEntity arg0)
func_90011_a(AgeableEntity arg0)
createChild(EntityAgeable arg0)
public boolean
i(bek arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
func_70877_b(ItemStack arg0)