Get title of broken inventory block

Discussion in 'Plugin Development' started by thechrisanator, Dec 22, 2019.

Thread Status:
Not open for further replies.
  1. Offline

    thechrisanator

    How would I go about getting the title of a broken inventory block? ie: chest,dropper.
     
  2. Offline

    KarimAKL

    @thechrisanator Broken how? In the BlockBreakEvent, or after it's been broken for some time?
    Either way, you'll have to check if the block is an instanceof Container, then cast it to Container and use getCustomName() on that.
     
Thread Status:
Not open for further replies.

Share This Page