Package net.tnemc.item.component.helper
Class ExplosionData
java.lang.Object
net.tnemc.item.component.helper.ExplosionData
ExplosionData
- Since:
- 0.2.0.0
- Author:
- creatorfromhell
-
Constructor Summary
ConstructorsConstructorDescriptionExplosionData(String shape, boolean hasTrail, boolean hasTwinkle) ExplosionData(String shape, boolean hasTrail, boolean hasTwinkle, List<Integer> colors, List<Integer> fadeColors) -
Method Summary
Modifier and TypeMethodDescriptionclone()colors()voidvoidbooleanvoidfadeColors(Integer... colors) voidfadeColors(List<Integer> colors) inthashCode()booleanhasTrail()voidhasTrail(boolean hasTrail) booleanvoidhasTwinkle(boolean hasTwinkle) voidreadJSON(JSONHelper json) Reads JSON data and populates this explosion data.shape()voidorg.json.simple.JSONObjecttoJSON()Converts this explosion data to a JSON object.
-
Constructor Details
-
ExplosionData
public ExplosionData() -
ExplosionData
-
ExplosionData
-
-
Method Details
-
toJSON
Converts this explosion data to a JSON object.- Returns:
- The JSONObject representing this explosion data.
- Since:
- 0.2.0.0
-
readJSON
Reads JSON data and populates this explosion data.- Parameters:
json- The JSONHelper instance of the JSON data.- Since:
- 0.2.0.0
-
equals
-
hashCode
-
shape
-
shape
-
colors
-
colors
-
colors
-
fadeColors
-
fadeColors
-
fadeColors
-
hasTrail
-
hasTrail
-
hasTwinkle
-
hasTwinkle
-
clone
- Throws:
CloneNotSupportedException
-