Check Shulker itemstack of any color

Discussion in 'Plugin Development' started by lecreep, Apr 3, 2021.

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

    lecreep

    Must be a simple way sure
    ItemStack item=""""Any item stack of any inventory"""
    if(item.getType()==Material.WHITE_SHULKER_BOX || item.getType()==Material.RED_SHULKER_BOX || item.getType()==Material.GREEN_SHULKER_BOX || ... )
     
  2. Offline

    Wick

    I believe you can get all shulker boxes by the shulker box tag.

    Code:java
    1. Set<Material> shulkerBoxes = Tag.SHULKER_BOXES.getValues();
     
    KarimAKL likes this.
Thread Status:
Not open for further replies.

Share This Page