Add entity API for getting the combined gene of a Panda (#9891)

This commit is contained in:
booky10
2023-11-04 21:28:23 +01:00
parent 5a34a7c895
commit d1c10d63dc
2 changed files with 19 additions and 2 deletions

View File

@@ -705,6 +705,17 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ */
+ @Override
+ boolean isSitting();
+
+ /**
+ * Gets this Panda's combined gene.
+ * <p>
+ * The combined gene can be modified using
+ * {@link #setMainGene(Gene)} or {@link #setHiddenGene(Gene)}.
+ *
+ * @return combined gene
+ */
+ @NotNull
+ Gene getCombinedGene();
+ // Paper end - Panda API
+
public enum Gene {