Gets the Effect associated with the given ID. @param id ID of the Effect to return @return Effect with the given ID @deprecated Magic value
(int id)
| 254 | * @deprecated Magic value |
| 255 | */ |
| 256 | @Deprecated |
| 257 | @Nullable |
| 258 | public static Effect getById(int id) { |
| 259 | return BY_ID.get(id); |
| 260 | } |
| 261 | |
| 262 | static { |
| 263 | for (Effect effect : values()) { |