Interface DecoratedPot

All Superinterfaces:
BlockState, Metadatable, PersistentDataHolder, TileState

@MinecraftExperimental @Experimental public interface DecoratedPot extends TileState
Represents a captured state of a decorated pot.
  • Method Details

    • getShards

      @NotNull List<Material> getShards()
      Gets the shards which will be dropped when this pot is broken.
      Returns:
      shards
    • addShard

      void addShard(@NotNull Material material)
      Add a shard item which will be dropped when this pot is broken.
      Parameters:
      material - shard item
    • setShards

      void setShards(@Nullable List<Material> shard)
      Set the shards which will be dropped when this pot is broken.
      Parameters:
      shard - list of items