Package net.minecraft.world.entity
Class AgeableMob.AgeableMobGroupData
java.lang.Object
net.minecraft.world.entity.AgeableMob.AgeableMobGroupData
- All Implemented Interfaces:
SpawnGroupData
- Direct Known Subclasses:
Axolotl.AxolotlGroupData
,Fox.FoxGroupData
,Horse.HorseGroupData
,Llama.LlamaGroupData
,Rabbit.RabbitGroupData
- Enclosing class:
- AgeableMob
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
private int
private final boolean
-
Constructor Summary
ModifierConstructorDescriptionAgeableMobGroupData
(boolean p_146773_) private
AgeableMobGroupData
(boolean p_146775_, float p_146776_) AgeableMobGroupData
(float p_146771_) -
Method Summary
Modifier and TypeMethodDescriptionfloat
int
void
boolean
-
Field Details
-
groupSize
private int groupSize -
shouldSpawnBaby
private final boolean shouldSpawnBaby -
babySpawnChance
private final float babySpawnChance
-
-
Constructor Details
-
AgeableMobGroupData
private AgeableMobGroupData(boolean p_146775_, float p_146776_) -
AgeableMobGroupData
public AgeableMobGroupData(boolean p_146773_) -
AgeableMobGroupData
public AgeableMobGroupData(float p_146771_)
-
-
Method Details
-
getGroupSize
public int getGroupSize() -
increaseGroupSizeByOne
public void increaseGroupSizeByOne() -
isShouldSpawnBaby
public boolean isShouldSpawnBaby() -
getBabySpawnChance
public float getBabySpawnChance()
-