Class RandomStatsProvider
java.lang.Object
com.thecsdev.commonmc.api.stats.RandomStatsProvider
- All Implemented Interfaces:
IStatsProvider
A
IStatsProvider that always returns random statistics.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RandomStatsProviderThe main instance ofRandomStatsProvider. -
Method Summary
Modifier and TypeMethodDescriptionfinal <T> intgetIntValue(net.minecraft.stats.Stat<T> stat) Returns theIntegervalue of a givenStat.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IStatsProvider
getIntValue
-
Field Details
-
INSTANCE
The main instance ofRandomStatsProvider.
-
-
Method Details
-
getIntValue
public final <T> int getIntValue(net.minecraft.stats.Stat<T> stat) Description copied from interface:IStatsProviderReturns theIntegervalue of a givenStat.- Specified by:
getIntValuein interfaceIStatsProvider- Parameters:
stat- TheStatwhose value is to be obtained.- See Also:
-