net.minecraft.world.entity.animal

public class MushroomCow

extends Cow implements Shearable

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, Shearable

bej
net.minecraft.world.entity.animal.MushroomCow
net.minecraft.class_1438
net.minecraft.entity.passive.MooshroomEntity
net.minecraft.src.C_859_
net.minecraft.world.entity.animal.EntityMushroomCow

Field summary

Modifier and TypeField
private static final EntityDataAccessor<String>
bT
DATA_TYPE
field_18105
TYPE
f_28908_
private static final int
bU
MUTATE_CHANCE
field_30339
MUTATION_CHANCE
f_148934_
private MobEffect
bW
effect
field_18106
stewEffect
f_28909_
private int
bX
effectDuration
field_18107
stewEffectDuration
f_28910_
private UUID
bY
lastLightningBoltUUID
field_18108
lightningId
f_28911_

Constructor summary

ModifierConstructor
public (EntityType<? extends MushroomCow> p_28915_, Level arg1)

Method summary

Modifier and TypeMethod
public float
a(gg arg0, bwt arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
m_5610_(C_4675_ p_28934_, C_1599_ arg1)
public static boolean
c(atk<bej> arg0, bwr arg1, aty arg2, gg arg3, Random arg4)
checkMushroomSpawnRules(EntityType<MushroomCow> arg0, LevelAccessor arg1, MobSpawnType arg2, BlockPos arg3, Random arg4)
method_20665(class_1299<class_1438> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, Random arg4)
canSpawn(EntityType<MooshroomEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
m_28948_(C_513_<C_859_> p_28949_, C_1598_ p_28950_, C_529_ p_28951_, C_4675_ p_28952_, Random p_28953_)
public void
a(abr arg0, att arg1)
thunderHit(ServerLevel arg0, LightningBolt arg1)
method_5800(class_3218 arg0, class_1538 arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
m_8038_(C_12_ p_28922_, C_523_ arg1)
onLightningStrike(WorldServer arg0, EntityLightning arg1)
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
initDatawatcher()
public InteractionResult
b(bke arg0, asa arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_28942_, C_470_ arg1)
public void
a(aff arg0)
shear(SoundSource arg0)
method_6636(class_3419 arg0)
sheared(SoundCategory arg0)
m_5851_(C_125_ arg0)
shear(SoundCategory arg0)
public boolean
a()
readyForShearing()
method_27072()
isShearable()
m_6220_()
canShear()
public void
b(na arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
saveData(NBTTagCompound arg0)
public void
a(na arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
loadData(NBTTagCompound arg0)
private Optional<org.apache.commons.lang3.tuple.Pair<MobEffect, Integer>>
m(bqq arg0)
getEffectFromItemStack(ItemStack arg0)
method_18436(class_1799 arg0)
getStewEffectFrom(ItemStack flower)
m_28956_(C_1391_ arg0)
private void
a(bej$a arg0)
setMushroomType(MushroomCow$MushroomType arg0)
method_18433(class_1438$class_4053 arg0)
setType(MooshroomEntity$Type type)
m_28928_(C_859_$C_860_ arg0)
setVariant(EntityMushroomCow$Type arg0)
public MushroomCow$MushroomType
t()
getMushroomType()
method_18435()
getMooshroomType()
m_28955_()
getVariant()
public MushroomCow
c(abr arg0, ate arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_6495(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_148943_, C_141062_ arg1)
createChild(WorldServer arg0, EntityAgeable arg1)
private MushroomCow$MushroomType
a(bej arg0)
getOffspringType(MushroomCow arg0)
method_18434(class_1438 arg0)
chooseBabyType(MooshroomEntity mooshroom)
m_28930_(C_859_ arg0)