mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
fix Instruments
This commit is contained in:
parent
2c494f0af9
commit
a4bd0cf67b
1 changed files with 56 additions and 0 deletions
56
patches/api/fix-Instrument-enum.patch
Normal file
56
patches/api/fix-Instrument-enum.patch
Normal file
|
@ -0,0 +1,56 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Jake Potrebic <jake.m.potrebic@gmail.com>
|
||||
Date: Fri, 9 Dec 2022 01:34:03 -0800
|
||||
Subject: [PATCH] fix Instrument enum
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/Instrument.java b/src/main/java/org/bukkit/Instrument.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/Instrument.java
|
||||
+++ b/src/main/java/org/bukkit/Instrument.java
|
||||
@@ -0,0 +0,0 @@ public enum Instrument {
|
||||
/**
|
||||
* Pling is normally played when a note block is on top of a glowstone block.
|
||||
*/
|
||||
- PLING(0xF);
|
||||
+ // Paper start
|
||||
+ PLING(0xF),
|
||||
+ /**
|
||||
+ * Zombie is normally played when a zombie head is on top of a note block.
|
||||
+ */
|
||||
+ @org.jetbrains.annotations.ApiStatus.Experimental
|
||||
+ ZOMBIE(0x10),
|
||||
+ /**
|
||||
+ * Skeleton is normally played when a skeleton skull is on top of a note block.
|
||||
+ */
|
||||
+ @org.jetbrains.annotations.ApiStatus.Experimental
|
||||
+ SKELETON(0x11),
|
||||
+ /**
|
||||
+ * Creeper is normally played when a creeper head is on top of a note block.
|
||||
+ */
|
||||
+ @org.jetbrains.annotations.ApiStatus.Experimental
|
||||
+ CREEPER(0x12),
|
||||
+ /**
|
||||
+ * Dragon is normally played when an Ender Dragon head is on top of a note block.
|
||||
+ */
|
||||
+ @org.jetbrains.annotations.ApiStatus.Experimental
|
||||
+ DRAGON(0x13),
|
||||
+ /**
|
||||
+ * Wither skeleton is normally played when a wither skeleton skull head is on top of a note block.
|
||||
+ */
|
||||
+ @org.jetbrains.annotations.ApiStatus.Experimental
|
||||
+ WITHER_SKELETON(0x14),
|
||||
+ /**
|
||||
+ * Piglin is normally played when a piglin head is on top of a note block.
|
||||
+ */
|
||||
+ @org.jetbrains.annotations.ApiStatus.Experimental
|
||||
+ PIGLIN(0x15),
|
||||
+ /**
|
||||
+ * Custom head is normally played when a player head is on top of a note block.
|
||||
+ */
|
||||
+ @org.jetbrains.annotations.ApiStatus.Experimental
|
||||
+ CUSTOM_HEAD(0x16);
|
||||
+ // Paper end
|
||||
|
||||
private final byte type;
|
||||
private static final Map<Byte, Instrument> BY_DATA = Maps.newHashMap();
|
Loading…
Reference in a new issue