Comments (1)
I'm just going to comment on this.
PlayerInteractManager has a method that returns EnumInteractionResult which is the method that calls "PlayerInteractEvent". Later after this event call it handles the interaction of the block clicked(IBlockData#interact) that gives a result which I would need to determine if the right click is an attempt to equip armor or to interact with a block.
Looks like its not doable within the current spigot API.
Also found this post from 2016 with same issue and same workaround. https://www.spigotmc.org/threads/check-if-player-right-clicked-a-block-that-he-she-can-interact-with.159415/
from armorequipevent.
Related Issues (20)
- (sorry) Thanks for removing EchoPet without warning :( HOT 25
- InventoryDragEvent is not being handled HOT 1
- PUMPKIN event does not work fully HOT 1
- Bug, Event fired when looking in players inventories. HOT 2
- Even doesn't fire in 1.14.4 it seems HOT 3
- Bug in InventoryClickEvent of ArmorListener HOT 30
- Items lost in creative mode
- Even don't fire in 1.14.4 HOT 2
- Event not firing in rightclick HOT 1
- Applying items onto armor pieces invokes ArmorEquipEvent HOT 4
- 1.16 Support HOT 3
- Not working on 1.16.1 HOT 1
- Dispensers can sometimes call ArmorEquipEvent when not in range HOT 5
- Detection for heads (Other than player)
- Elytra issue
- 1.7.2 isn't recognizing the netherite material HOT 1
- Event not firing when switching armor. HOT 7
- Echopet Question HOT 4
- Echopet HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from armorequipevent.