# IDecayManager
> Manages block decay, allowing blocks to be marked for automatic removal after a period of time.
`gg.lode.observerapi.api.manager`
---
## Signature
```java
public interface IDecayManager
```
---
## Methods
### markBlockForDecay
```java
void markBlockForDecay(World world, int x, int y, int z)
```
Marks a block at the given coordinates for decay using the default decay time.
| Parameter | Type | Description |
|-----------|------|-------------|
| `world` | `World` | The world |
| `x` | `int` | X coordinate |
| `y` | `int` | Y coordinate |
| `z` | `int` | Z coordinate |
---
### markBlockForDecay (Location)
```java
void markBlockForDecay(Location location)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `location` | `Location` | The block location |
---
### markBlockForDecay (Block)
```java
void markBlockForDecay(Block block)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `block` | `Block` | The block to mark |
---
### markBlockForDecay (Block, int)
```java
void markBlockForDecay(Block block, int decayTime)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `block` | `Block` | The block to mark |
| `decayTime` | `int` | Custom decay time |
---
### markBlockForDecay (World, int, int, int, int)
```java
void markBlockForDecay(World world, int x, int y, int z, int decayTime)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `world` | `World` | The world |
| `x` | `int` | X coordinate |
| `y` | `int` | Y coordinate |
| `z` | `int` | Z coordinate |
| `decayTime` | `int` | Custom decay time |
---
### markBlockForDecay (Location, int)
```java
void markBlockForDecay(Location location, int decayTime)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `location` | `Location` | The block location |
| `decayTime` | `int` | Custom decay time |
---
### unmarkBlockForDecay
```java
void unmarkBlockForDecay(World world, int x, int y, int z)
```
Removes a block from the decay queue.
| Parameter | Type | Description |
|-----------|------|-------------|
| `world` | `World` | The world |
| `x` | `int` | X coordinate |
| `y` | `int` | Y coordinate |
| `z` | `int` | Z coordinate |
---
### unmarkBlockForDecay (Location)
```java
void unmarkBlockForDecay(Location location)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `location` | `Location` | The block location |
---
### unmarkBlockForDecay (Block)
```java
void unmarkBlockForDecay(Block block)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `block` | `Block` | The block to unmark |
---
### isMarkedForDecay
```java
boolean isMarkedForDecay(World world, int x, int y, int z)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `world` | `World` | The world |
| `x` | `int` | X coordinate |
| `y` | `int` | Y coordinate |
| `z` | `int` | Z coordinate |
**Returns:** `boolean` - `true` if the block is marked for decay
---
### isMarkedForDecay (Location)
```java
boolean isMarkedForDecay(Location location)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `location` | `Location` | The block location |
**Returns:** `boolean` - `true` if the block is marked for decay
---
## Related Pages
- [[IMechanicsManager]]