use of io.github.bananapuncher714.crafters.display.VirtualItemDisplay in project PublicCrafters by BananaPuncher714.
the class PlayerListener method onItemDisplayCreateEvent.
@EventHandler(priority = EventPriority.HIGHEST)
private void onItemDisplayCreateEvent(ItemDisplayCreateEvent event) {
if (!plugin.isVirtual()) {
return;
}
ItemDisplay display = event.getItemDisplay();
VirtualItemDisplay vDisplay = new VirtualItemDisplay(display.getCraftDisplay(), display.getLocation(), display.getItem(), display.getSlot());
event.setItemDisplay(vDisplay);
}
Aggregations