Class StatsHudItemEntry
java.lang.Object
io.github.thecsdev.tcdcommons.api.client.gui.screen.TWidgetHudScreen.WidgetEntry<io.github.thecsdev.tcdcommons.api.client.gui.TElement>
io.github.thecsdev.betterstats.client.gui.screen.hud.entry.StatsHudItemEntry
public final class StatsHudItemEntry
extends io.github.thecsdev.tcdcommons.api.client.gui.screen.TWidgetHudScreen.WidgetEntry<io.github.thecsdev.tcdcommons.api.client.gui.TElement>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final @Nullable net.minecraft.block.Block
protected final net.minecraft.item.Item
protected net.minecraft.stat.StatType
<?> protected IStatsProvider
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.screen.TWidgetHudScreen.WidgetEntry
anchorX, anchorY
-
Constructor Summary
ConstructorDescriptionStatsHudItemEntry
(IStatsProvider statsProvider, net.minecraft.item.Item item) StatsHudItemEntry
(SUItemStat stat) -
Method Summary
Modifier and TypeMethodDescriptionfinal io.github.thecsdev.tcdcommons.api.client.gui.TElement
Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.screen.TWidgetHudScreen.WidgetEntry
getHudScreen, refreshEntry, removeEntry
-
Field Details
-
statsProvider
-
item
protected final net.minecraft.item.Item item -
block
@Nullable protected final @Nullable net.minecraft.block.Block block -
mode
protected net.minecraft.stat.StatType<?> mode
-
-
Constructor Details
-
StatsHudItemEntry
- Throws:
NullPointerException
-
StatsHudItemEntry
public StatsHudItemEntry(IStatsProvider statsProvider, net.minecraft.item.Item item) throws NullPointerException - Throws:
NullPointerException
-
-
Method Details
-
createWidget
public final io.github.thecsdev.tcdcommons.api.client.gui.TElement createWidget()- Specified by:
createWidget
in classio.github.thecsdev.tcdcommons.api.client.gui.screen.TWidgetHudScreen.WidgetEntry<io.github.thecsdev.tcdcommons.api.client.gui.TElement>
-