net.minecraft.world.entity.animal

public class Pig

extends Animal

All mapped superinterfaces:

Nameable, CommandSource

arn
net.minecraft.world.entity.animal.Pig
net.minecraft.class_1452
net.minecraft.entity.passive.PigEntity
net.minecraft.entity.passive.PigEntity
net.minecraft.server.v1_14_R1.EntityPig

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
bz
DATA_SADDLE_ID
field_6816
SADDLED
field_184763_bv
private static final EntityDataAccessor<Integer>
bA
DATA_BOOST_TIME
field_6815
field_191520_bx
private static final Ingredient
bB
FOOD_ITEMS
field_6817
BREEDING_INGREDIENT
field_184764_bw
private boolean
bC
boosting
field_6814
field_184765_bx
private int
bD
boostTime
field_6812
field_184766_bz
private int
bE
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
cl()
registerAttributes()
method_6001()
initAttributes()
func_110147_ax()
initAttributes()
public Entity
bV()
getControllingPassenger()
method_5642()
getPrimaryPassenger()
func_184179_bs()
getRidingPassenger()
public boolean
dD()
canBeControlledByRider()
method_5956()
canBeControlledByRider()
func_82171_bF()
public void
a(qk<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
func_184206_a(DataParameter<?> arg0)
protected void
u_()
defineSynchedData()
method_5693()
initDataTracker()
func_70088_a()
initDatawatcher()
public void
b(id arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToTag(CompoundTag arg0)
func_213281_b(CompoundNBT arg0)
public void
a(id 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(ahx arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
func_184601_bQ(DamageSource arg0)
getSoundHurt(DamageSource arg0)
protected SoundEvent
cH()
getDeathSound()
method_6002()
getDeathSound()
func_184615_bR()
getSoundDeath()
protected void
a(ew arg0, bvt 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(awg arg0, ahi 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
cF()
dropEquipment()
method_16078()
dropInventory()
func_213337_cE()
public boolean
dV()
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(atu arg0)
thunderHit(LightningBolt arg0)
method_5800(class_1538 arg0)
onStruckByLightning(LightningEntity arg0)
func_70077_a(LightningBoltEntity arg0)
onLightningStrike(EntityLightning arg0)
public void
e(csi arg0)
travel(Vec3 arg0)
method_6091(class_243 arg0)
travel(Vec3d arg0)
func_213352_e(Vec3d arg0)
public boolean
dW()
boost()
method_6577()
func_184762_da()
public Pig
b(aim arg0)
getBreedOffspring(AgableMob arg0)
method_6574(class_1296 arg0)
createChild(PassiveEntity arg0)
func_90011_a(AgeableEntity arg0)
createChild(EntityAgeable arg0)
public boolean
i(bcj arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
func_70877_b(ItemStack arg0)