How can i get the clicked slot from ClickInventoryEvent?
You can get the SlotTransactions from the event since it extends AffectSlotEvent.
Thanks! I trying to test but on finalize my code i get this error on try to open the player inventory:
java.lang.AbstractMethodError: Method net/minecraft/entity/player/EntityPlayerMP.openInventory(Lorg/spongepowered/api/item/inventory/Inventory;Lorg/spongepowered/api/event/cause/Cause;)V is abstract
My code:
public void open(){
this.player.openInventory(this.inv, null);
}
I trying to make a custom inventory and send to player.
EDIT: And this error:
java.lang.IllegalArgumentException: Could not find a Supplier for the provided class: org.spongepowered.api.item.inventory.custom.CustomInventory.Builder
Custom inventories are not available for use currently.

Thanks. When will this be implemented?
Soon™
2 Likes