mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
[ci skip] Add missing nullability annotation to sendEquipmentChange method (#12112)
Marked ItemStack parameter as `@Nullable` to explicitly indicate it can be null. This improves clarity, avoids nullability problems, and aligns with the method's documented behavior for handling null values.
This commit is contained in:
@@ -1061,7 +1061,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|||||||
* @param items the slots to change, where the values are the items to which
|
* @param items the slots to change, where the values are the items to which
|
||||||
* the slot should be changed. null values will set the slot to air, empty map is not allowed
|
* the slot should be changed. null values will set the slot to air, empty map is not allowed
|
||||||
*/
|
*/
|
||||||
public void sendEquipmentChange(LivingEntity entity, Map<EquipmentSlot, ItemStack> items);
|
public void sendEquipmentChange(LivingEntity entity, Map<EquipmentSlot, @Nullable ItemStack> items);
|
||||||
|
|
||||||
// Paper start
|
// Paper start
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user