Update to Minecraft 1.17

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2021-06-11 15:00:00 +10:00
parent 2e1a3720cf
commit 153752dfac
44 changed files with 3379 additions and 958 deletions

View File

@@ -82,6 +82,23 @@ public enum Particle {
LANDING_OBSIDIAN_TEAR,
REVERSE_PORTAL,
WHITE_ASH,
LIGHT,
DUST_COLOR_TRANSITION(DustTransition.class),
VIBRATION(Vibration.class),
FALLING_SPORE_BLOSSOM,
SPORE_BLOSSOM_AIR,
SMALL_FLAME,
SNOWFLAKE,
DRIPPING_DRIPSTONE_LAVA,
FALLING_DRIPSTONE_LAVA,
DRIPPING_DRIPSTONE_WATER,
FALLING_DRIPSTONE_WATER,
GLOW_SQUID_INK,
GLOW,
WAX_ON,
WAX_OFF,
ELECTRIC_SPARK,
SCRAPE,
// ----- Legacy Separator -----
LEGACY_BLOCK_CRACK(MaterialData.class),
LEGACY_BLOCK_DUST(MaterialData.class),
@@ -140,4 +157,29 @@ public enum Particle {
return size;
}
}
/**
* Options which can be applied to a color transitioning dust particles.
*/
public static class DustTransition extends DustOptions {
private final Color toColor;
public DustTransition(@NotNull Color fromColor, @NotNull Color toColor, float size) {
super(fromColor, size);
Preconditions.checkArgument(toColor != null, "toColor");
this.toColor = toColor;
}
/**
* The final of the particles to be displayed.
*
* @return final particle color
*/
@NotNull
public Color getToColor() {
return toColor;
}
}
}