Package dev.latvian.mods.kubejs.player
Class PlayerStatsJS
java.lang.Object
dev.latvian.mods.kubejs.player.PlayerStatsJS
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlayerStatsJS(net.minecraft.world.entity.player.Player p, net.minecraft.stats.StatsCounter s) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(net.minecraft.stats.Stat<?> stat, int value) intget(net.minecraft.resources.ResourceLocation rl) intget(net.minecraft.stats.Stat<?> stat) intintgetBlocksMined(net.minecraft.world.level.block.Block block) intintintintintintintintintintintgetItemsBroken(net.minecraft.world.item.Item item) intgetItemsCrafted(net.minecraft.world.item.Item item) intgetItemsDropped(net.minecraft.world.item.Item item) intgetItemsPickedUp(net.minecraft.world.item.Item item) intgetItemsUsed(net.minecraft.world.item.Item item) intgetJumps()intgetKilled(net.minecraft.world.entity.EntityType<?> entity) intgetKilledBy(net.minecraft.world.entity.EntityType<?> entity) intintintintintintintintintvoidset(net.minecraft.stats.Stat<?> stat, int value) static net.minecraft.stats.Stat<?>
-
Field Details
-
player
public final net.minecraft.world.entity.player.Player player
-
-
Constructor Details
-
PlayerStatsJS
public PlayerStatsJS(net.minecraft.world.entity.player.Player p, net.minecraft.stats.StatsCounter s)
-
-
Method Details
-
wrapStat
-
get
public int get(net.minecraft.stats.Stat<?> stat) -
get
@HideFromJS public int get(net.minecraft.resources.ResourceLocation rl) -
getPlayTime
public int getPlayTime() -
getTimeSinceDeath
public int getTimeSinceDeath() -
getTimeSinceRest
public int getTimeSinceRest() -
getTimeCrouchTime
public int getTimeCrouchTime() -
getJumps
public int getJumps() -
getWalkDistance
public int getWalkDistance() -
getSprintDistance
public int getSprintDistance() -
getSwimDistance
public int getSwimDistance() -
getCrouchDistance
public int getCrouchDistance() -
getDamageDealt
public int getDamageDealt() -
getDamageDealt_absorbed
public int getDamageDealt_absorbed() -
getDamageDealt_resisted
public int getDamageDealt_resisted() -
getDamageTaken
public int getDamageTaken() -
getDamageBlocked_by_shield
public int getDamageBlocked_by_shield() -
getDamageAbsorbed
public int getDamageAbsorbed() -
getDamageResisted
public int getDamageResisted() -
getDeaths
public int getDeaths() -
getMobKills
public int getMobKills() -
getAnimalsBred
public int getAnimalsBred() -
getPlayerKills
public int getPlayerKills() -
getFishCaught
public int getFishCaught() -
set
public void set(net.minecraft.stats.Stat<?> stat, int value) -
add
public void add(net.minecraft.stats.Stat<?> stat, int value) -
getBlocksMined
public int getBlocksMined(net.minecraft.world.level.block.Block block) -
getItemsCrafted
public int getItemsCrafted(net.minecraft.world.item.Item item) -
getItemsUsed
public int getItemsUsed(net.minecraft.world.item.Item item) -
getItemsBroken
public int getItemsBroken(net.minecraft.world.item.Item item) -
getItemsPickedUp
public int getItemsPickedUp(net.minecraft.world.item.Item item) -
getItemsDropped
public int getItemsDropped(net.minecraft.world.item.Item item) -
getKilled
public int getKilled(net.minecraft.world.entity.EntityType<?> entity) -
getKilledBy
public int getKilledBy(net.minecraft.world.entity.EntityType<?> entity)
-