Package net.glowstone.constants
Class GlowEffect
java.lang.Object
net.glowstone.constants.GlowEffect
Conversion of data classes to raw values for Effects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> int
getDataValue
(org.bukkit.Effect effect, T data) Get the raw data value for an Effect and its data object.
-
Method Details
-
getDataValue
public static <T> int getDataValue(org.bukkit.Effect effect, T data) Get the raw data value for an Effect and its data object.- Type Parameters:
T
- the type of data- Parameters:
effect
- the Effect whose data to calculatedata
- the original data- Returns:
- the raw data value
-