Check Shulker itemstack of any color

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

  1. Offline


    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


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

    1. Set<Material> shulkerBoxes = Tag.SHULKER_BOXES.getValues();
    KarimAKL likes this.

Share This Page