From 2d3013d1d35a2bcba63cffd9012898defff26f93 Mon Sep 17 00:00:00 2001 From: changyong guo Date: Sun, 24 Jun 2018 17:24:10 +0800 Subject: Support swap item between main hand and offhand by press key "F" (#4241) Hi, I found cuberite don't support to press key "F" to swap items on main hand and offhand, so I implemented this feature. Best regards Changyong --- Server/Plugins/APIDump/APIDesc.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Server/Plugins/APIDump') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index eed6bd40f..ee1ed0d04 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -3317,6 +3317,16 @@ local Hash = cCryptoHash.sha1HexString("DataToHash") }, Notes = "Returns the weapon that the entity has equipped. Returns an empty cItem if no weapon equipped or not applicable.", }, + GetOffHandEquipedItem = + { + Returns = + { + { + Type = "cItem", + }, + }, + Notes = "Returns the item that the entity has equipped on off-hand. Returns an empty cItem if no item equipped or not applicable.", + }, GetGravity = { Returns = -- cgit v1.2.3