Commits

DerFrZocker authored and md_5 committed aa0d3da263b
#977: Remove legacy Particle values
No tags

src/main/java/org/bukkit/Particle.java

Modified
1 1 package org.bukkit;
2 2
3 3 import com.google.common.base.Preconditions;
4 4 import org.bukkit.block.data.BlockData;
5 5 import org.bukkit.inventory.ItemStack;
6 -import org.bukkit.material.MaterialData;
7 6 import org.jetbrains.annotations.NotNull;
8 7
9 8 public enum Particle implements Keyed {
10 9 EXPLOSION_NORMAL("poof"),
11 10 EXPLOSION_LARGE("explosion"),
12 11 EXPLOSION_HUGE("explosion_emitter"),
13 12 FIREWORKS_SPARK("firework"),
14 13 WATER_BUBBLE("bubble"),
15 14 WATER_SPLASH("splash"),
16 15 WATER_WAKE("fishing"),
160 159 DUST_PILLAR("dust_pillar", BlockData.class),
161 160 @MinecraftExperimental
162 161 OMINOUS_SPAWNING("ominous_spawning"),
163 162 @MinecraftExperimental
164 163 RAID_OMEN("raid_omen"),
165 164 @MinecraftExperimental
166 165 TRIAL_OMEN("trial_omen"),
167 166 /**
168 167 * Uses {@link BlockData} as DataType
169 168 */
170 - BLOCK_MARKER("block_marker", BlockData.class),
171 - // ----- Legacy Separator -----
172 - /**
173 - * Uses {@link MaterialData} as DataType
174 - */
175 - LEGACY_BLOCK_CRACK(null, MaterialData.class, false),
176 - /**
177 - * Uses {@link MaterialData} as DataType
178 - */
179 - LEGACY_BLOCK_DUST(null, MaterialData.class, false),
180 - /**
181 - * Uses {@link MaterialData} as DataType
182 - */
183 - LEGACY_FALLING_DUST(null, MaterialData.class, false);
169 + BLOCK_MARKER("block_marker", BlockData.class);
184 170
185 171 private final NamespacedKey key;
186 172 private final Class<?> dataType;
187 173 final boolean register;
188 174
189 175 Particle(String key) {
190 176 this(key, Void.class);
191 177 }
192 178
193 179 Particle(String key, boolean register) {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut