2016-03-01 08:30:03 +11:00
|
|
|
package org.bukkit;
|
|
|
|
|
|
|
|
import org.bukkit.inventory.ItemStack;
|
|
|
|
import org.bukkit.material.MaterialData;
|
|
|
|
|
|
|
|
public enum Particle {
|
|
|
|
EXPLOSION_NORMAL,
|
|
|
|
EXPLOSION_LARGE,
|
|
|
|
EXPLOSION_HUGE,
|
|
|
|
FIREWORKS_SPARK,
|
|
|
|
WATER_BUBBLE,
|
|
|
|
WATER_SPLASH,
|
|
|
|
WATER_WAKE,
|
|
|
|
SUSPENDED,
|
|
|
|
SUSPENDED_DEPTH,
|
|
|
|
CRIT,
|
|
|
|
CRIT_MAGIC,
|
|
|
|
SMOKE_NORMAL,
|
|
|
|
SMOKE_LARGE,
|
|
|
|
SPELL,
|
|
|
|
SPELL_INSTANT,
|
|
|
|
SPELL_MOB,
|
|
|
|
SPELL_MOB_AMBIENT,
|
|
|
|
SPELL_WITCH,
|
|
|
|
DRIP_WATER,
|
|
|
|
DRIP_LAVA,
|
|
|
|
VILLAGER_ANGRY,
|
|
|
|
VILLAGER_HAPPY,
|
|
|
|
TOWN_AURA,
|
|
|
|
NOTE,
|
|
|
|
PORTAL,
|
|
|
|
ENCHANTMENT_TABLE,
|
|
|
|
FLAME,
|
|
|
|
LAVA,
|
|
|
|
FOOTSTEP,
|
|
|
|
CLOUD,
|
|
|
|
REDSTONE,
|
|
|
|
SNOWBALL,
|
|
|
|
SNOW_SHOVEL,
|
|
|
|
SLIME,
|
|
|
|
HEART,
|
|
|
|
BARRIER,
|
|
|
|
ITEM_CRACK(ItemStack.class),
|
|
|
|
BLOCK_CRACK(MaterialData.class),
|
|
|
|
BLOCK_DUST(MaterialData.class),
|
|
|
|
WATER_DROP,
|
|
|
|
ITEM_TAKE,
|
|
|
|
MOB_APPEARANCE,
|
|
|
|
DRAGON_BREATH,
|
|
|
|
END_ROD,
|
|
|
|
DAMAGE_INDICATOR,
|
2016-06-09 11:43:40 +10:00
|
|
|
SWEEP_ATTACK,
|
2016-06-13 08:50:19 +10:00
|
|
|
FALLING_DUST(MaterialData.class);
|
2016-03-01 08:30:03 +11:00
|
|
|
|
|
|
|
private final Class<?> dataType;
|
|
|
|
|
|
|
|
Particle() {
|
|
|
|
dataType = Void.class;
|
|
|
|
}
|
|
|
|
|
|
|
|
Particle(Class<?> data) {
|
|
|
|
dataType = data;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the required data type for the particle
|
|
|
|
* @return the required data type
|
|
|
|
*/
|
|
|
|
public Class<?> getDataType() {
|
|
|
|
return dataType;
|
|
|
|
}
|
|
|
|
}
|