Ease of access.

This commit is contained in:
Brianna 2021-06-13 13:23:21 -05:00
parent f86e35c7a2
commit 76ea7f128f

View File

@ -1,5 +1,6 @@
package com.songoda.core.world;
import com.songoda.core.compatibility.CompatibleHand;
import com.songoda.core.compatibility.CompatibleSound;
import com.songoda.core.compatibility.ServerVersion;
import com.songoda.core.nms.NmsManager;
@ -20,6 +21,11 @@ public class SItemStack {
this.sItem = NmsManager.getWorld().getItemStack(item);
}
public SItemStack(CompatibleHand hand, Player player) {
this.item = hand.getItem(player);
this.sItem = NmsManager.getWorld().getItemStack(item);
}
/**
* Damage the selected item
*