mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-27 12:35:12 +01:00
Ease of access.
This commit is contained in:
parent
f86e35c7a2
commit
76ea7f128f
@ -1,5 +1,6 @@
|
|||||||
package com.songoda.core.world;
|
package com.songoda.core.world;
|
||||||
|
|
||||||
|
import com.songoda.core.compatibility.CompatibleHand;
|
||||||
import com.songoda.core.compatibility.CompatibleSound;
|
import com.songoda.core.compatibility.CompatibleSound;
|
||||||
import com.songoda.core.compatibility.ServerVersion;
|
import com.songoda.core.compatibility.ServerVersion;
|
||||||
import com.songoda.core.nms.NmsManager;
|
import com.songoda.core.nms.NmsManager;
|
||||||
@ -20,6 +21,11 @@ public class SItemStack {
|
|||||||
this.sItem = NmsManager.getWorld().getItemStack(item);
|
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
|
* Damage the selected item
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user