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()
void
void
boolean
void
fadeColors
(Integer... colors) void
fadeColors
(List<Integer> colors) int
hashCode()
boolean
hasTrail()
void
hasTrail
(boolean hasTrail) boolean
void
hasTwinkle
(boolean hasTwinkle) void
readJSON
(JSONHelper json) Reads JSON data and populates this explosion data.shape()
void
org.json.simple.JSONObject
toJSON()
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
-