net.minecraft.world.entity.animal

public class MushroomCow

extends Cow implements Shearable

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Attackable, EquipmentUser, Leashable, Targeting, Shearable

cjb
net.minecraft.world.entity.animal.MushroomCow
net.minecraft.class_1438
net.minecraft.entity.passive.MooshroomEntity

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
bF
DATA_TYPE
field_18105
VARIANT
private static final int
bG
MUTATE_CHANCE
field_30339
MUTATION_CHANCE
private static final String
bH
TAG_STEW_EFFECTS
field_45751
STEW_EFFECTS_NBT_KEY
private SuspiciousStewEffects
bJ
stewEffects
field_45752
stewEffects
private UUID
bK
lastLightningBoltUUID
field_18108
lightningId

Constructor summary

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

Method summary

Modifier and TypeMethod
public float
a(iu arg0, dis arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
public static boolean
c(bwj<cjb> arg0, diq arg1, bwi arg2, iu arg3, azt arg4)
checkMushroomSpawnRules(EntityType<MushroomCow> arg0, LevelAccessor arg1, EntitySpawnReason arg2, BlockPos arg3, RandomSource arg4)
method_20665(class_1299<class_1438> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<MooshroomEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
public void
a(aro arg0, bwy arg1)
thunderHit(ServerLevel arg0, LightningBolt arg1)
method_5800(class_3218 arg0, class_1538 arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
protected void
a(akl$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public InteractionResult
b(cqs arg0, btx arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public void
a(aro arg0, awm arg1, cys arg2)
shear(ServerLevel arg0, SoundSource arg1, ItemStack arg2)
method_6636(class_3218 arg0, class_3419 arg1, class_1799 arg2)
sheared(ServerWorld arg0, SoundCategory arg1, ItemStack arg2)
public boolean
a()
readyForShearing()
method_27072()
isShearable()
public void
b(tx arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tx arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
private Optional<SuspiciousStewEffects>
j(cys arg0)
getEffectsFromItemStack(ItemStack arg0)
method_18436(class_1799 arg0)
getStewEffectFrom(ItemStack flower)
private void
a(cjb$a arg0)
setVariant(MushroomCow$Variant arg0)
method_47846(class_1438$class_4053 arg0)
setVariant(MooshroomEntity$Variant variant)
public MushroomCow$Variant
t()
getVariant()
method_47847()
getVariant()
public <T> T
a(ki<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
a(ke arg0)
applyImplicitComponents(DataComponentGetter arg0)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
b(ki<T> arg0, T arg1)
applyImplicitComponent(DataComponentType<T> arg0, T arg1)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
public MushroomCow
c(aro arg0, bvq arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_6495(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
private MushroomCow$Variant
a(cjb arg0)
getOffspringVariant(MushroomCow arg0)
method_18434(class_1438 arg0)
chooseBabyVariant(MooshroomEntity mooshroom)