mirror of https://github.com/PaperMC/Paper.git
Update message
This commit is contained in:
parent
fd7c5df8ff
commit
ab437fa3cd
|
@ -1450,16 +1450,17 @@ index 07c3dff4d6190ef388d9c1e1c36f67f00a3e8e66..597a18a767b68b47e81454b7d44613c7
|
|||
* @param input The input choice.
|
||||
* @return The changed recipe, so you can chain calls.
|
||||
diff --git a/src/main/java/org/bukkit/inventory/meta/BlockStateMeta.java b/src/main/java/org/bukkit/inventory/meta/BlockStateMeta.java
|
||||
index e7d905b1146b2bdd2da5bdeb6bf3541fb181d59e..6271395ac91062c6a3b1a459df21c12b419e1742 100644
|
||||
index e7d905b1146b2bdd2da5bdeb6bf3541fb181d59e..c7d3041221742f6655155f19ef2addcaf2401015 100644
|
||||
--- a/src/main/java/org/bukkit/inventory/meta/BlockStateMeta.java
|
||||
+++ b/src/main/java/org/bukkit/inventory/meta/BlockStateMeta.java
|
||||
@@ -32,6 +32,10 @@ public interface BlockStateMeta extends ItemMeta {
|
||||
@@ -32,6 +32,11 @@ public interface BlockStateMeta extends ItemMeta {
|
||||
* @param blockState the block state to attach to the block.
|
||||
* @throws IllegalArgumentException if the blockState is null
|
||||
* or invalid for this item.
|
||||
+ *
|
||||
+ * @apiNote As of 1.20.5 the block state carries a copy of the item's data.
|
||||
+ * As such, setting the block state via this method will reset any changes previously applied to this meta instance.
|
||||
+ * @apiNote As of 1.20.5 the block state carries a copy of the item's data deviations.
|
||||
+ * As such, setting the block state via this method will reset secondary deviations of the item meta.
|
||||
+ * This can manifest in the addition to an existing lore failing or a change of a previously added display name.
|
||||
+ * It is hence recommended to first mutate the block state, set it back, and then mutate the item meta.
|
||||
*/
|
||||
void setBlockState(@NotNull BlockState blockState);
|
||||
|
|
Loading…
Reference in New Issue