Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 38 additions & 2 deletions src/main/java/com/darkblade12/particleeffect/ParticleEffect.java
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,43 @@ public enum ParticleEffect {
* <li>The offset values have no influence on this particle effect
* </ul>
*/
MOB_APPEARANCE("mobappearance", 41, 8);
MOB_APPEARANCE("mobappearance", 41, 8),
/**
* A particle effect which is displayed by ender dragon:
* <ul>
* <li>It looks like witch spell
* <li>The speed value has no influence on this particle effect
* <li>The offset values have no influence on this particle effect
* </ul>
*/
DRAGON_BREATH("dragonbreath", 42, 9),
/**
* A particle effect which is displayed by skulker bullets and end rods:
* <ul>
* <li>It looks like slow falling snow
* <li>The speed value has no influence on this particle effect
* <li>The offset values have no influence on this particle effect
* </ul>
*/
END_ROD("endRod", 43, 9),
/**
* A particle effect which is displayed by mobs when damaged:
* <ul>
* <li>It looks like small hearts
* <li>The speed value has no influence on this particle effect
* <li>The offset values have no influence on this particle effect
* </ul>
*/
DAMAGE_INDICATOR("damageIndicator", 44, 9),
/**
* A particle effect which is displayed by swinging a sword:
* <ul>
* <li>It looks like a sword being swung
* <li>The speed value has no influence on this particle effect
* <li>The offset values have no influence on this particle effect
* </ul>
*/
SWEEP_ATTACK("sweepAttack", 45, 9);

private static final Map<String, ParticleEffect> NAME_MAP = new HashMap<String, ParticleEffect>();
private static final Map<Integer, ParticleEffect> ID_MAP = new HashMap<Integer, ParticleEffect>();
Expand Down Expand Up @@ -1403,7 +1439,7 @@ public static void initialize() throws VersionIncompatibleException {
return;
}
try {
version = Integer.parseInt(Character.toString(PackageType.getServerVersion().charAt(3)));
version = Integer.parseInt(PackageType.getServerVersion().split("_")[1]);
if (version > 7) {
enumParticle = PackageType.MINECRAFT_SERVER.getClass("EnumParticle");
}
Expand Down