Class SUMobStat
java.lang.Object
io.github.thecsdev.betterstats.api.util.stats.SUStat<net.minecraft.entity.EntityType<?>>
io.github.thecsdev.betterstats.api.util.stats.SUMobStat
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
protected final net.minecraft.entity.EntityType
<?> protected final boolean
final int
Fields inherited from class io.github.thecsdev.betterstats.api.util.stats.SUStat
ID_NULL, statId, statIdSQ, statLabel, statLabelSQ, statsProvider
-
Constructor Summary
ConstructorDescriptionSUMobStat
(IStatsProvider statsProvider, net.minecraft.entity.EntityType<?> entityType) -
Method Summary
Modifier and TypeMethodDescriptionfinal net.minecraft.entity.EntityType
<?> Returns theEntityType
corresponding with thisSUMobStat
.getMobStats
(IStatsProvider statsProvider, @Nullable Predicate<SUMobStat> filter) Obtains all "mob"Stat
s, in form ofSUMobStat
.getMobStatsByModGroups
(IStatsProvider statsProvider, @Nullable Predicate<SUMobStat> filter) getMobStatsByModGroupsB
(IStatsProvider statsProvider, @Nullable Predicate<SUMobStat> filter) Same asgetMobStatsByModGroups(IStatsProvider, Predicate)
, but theMap
keys representText
ual names of the mods.static final net.minecraft.text.Text
getMobStatText
(net.minecraft.entity.EntityType<?> entityType) Returns theText
that should correspond to a givenSUMobStat
.final boolean
isEmpty()
Methods inherited from class io.github.thecsdev.betterstats.api.util.stats.SUStat
getStatID, getStatLabel, getStatsProvider, matchesSearchQuery
-
Field Details
-
entityType
protected final net.minecraft.entity.EntityType<?> entityType -
isEmpty
protected final boolean isEmpty -
kills
public final int kills -
deaths
public final int deaths
-
-
Constructor Details
-
SUMobStat
-
-
Method Details
-
getEntityType
public final net.minecraft.entity.EntityType<?> getEntityType()Returns theEntityType
corresponding with thisSUMobStat
. -
isEmpty
public final boolean isEmpty()Description copied from class:SUStat
-
getMobStatText
public static final net.minecraft.text.Text getMobStatText(net.minecraft.entity.EntityType<?> entityType) Returns theText
that should correspond to a givenSUMobStat
. -
getMobStats
public static List<SUMobStat> getMobStats(IStatsProvider statsProvider, @Nullable @Nullable Predicate<SUMobStat> filter) Obtains all "mob"Stat
s, in form ofSUMobStat
.- Parameters:
statsProvider
- TheIStatsProvider
.filter
- Optional. APredicate
used to filter out any unwantedSUMobStat
s.
-
getMobStatsByModGroups
public static Map<String,List<SUMobStat>> getMobStatsByModGroups(IStatsProvider statsProvider, @Nullable @Nullable Predicate<SUMobStat> filter) Obtains all "mob"Stat
s, in form ofSUMobStat
, grouped into "mod groups" using aMap
. TheMap
keys represent "mod IDs".- Parameters:
statsProvider
- TheIStatsProvider
.filter
- Optional. APredicate
used to filter out any unwantedSUMobStat
s.
-
getMobStatsByModGroupsB
public static Map<net.minecraft.text.Text,List<SUMobStat>> getMobStatsByModGroupsB(IStatsProvider statsProvider, @Nullable @Nullable Predicate<SUMobStat> filter) Same asgetMobStatsByModGroups(IStatsProvider, Predicate)
, but theMap
keys representText
ual names of the mods.- Parameters:
statsProvider
- TheIStatsProvider
.filter
- Optional. APredicate
used to filter out any unwantedSUMobStat
s.
-