Skip to content

Commit a0ef5e6

Browse files
committed
add Keys.DEATH_PROTECTION_EFFECTS
1 parent c0b74b5 commit a0ef5e6

File tree

1 file changed

+5
-0
lines changed
  • src/main/java/org/spongepowered/api/data

1 file changed

+5
-0
lines changed

src/main/java/org/spongepowered/api/data/Keys.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,11 @@ public final class Keys {
928928
*/
929929
public static final Key<Value<Double>> DAMAGE_PER_BLOCK = Keys.key(ResourceKey.sponge("damage_per_block"), Double.class);
930930

931+
/**
932+
* The {@link ConsumeEffect}s an {@link ItemStack} will apply on death.
933+
*/
934+
public static final Key<ListValue<ConsumeEffect>> DEATH_PROTECTION_EFFECTS = Keys.listKey(ResourceKey.sponge("death_protection_effects"), ConsumeEffect.class);
935+
931936
/**
932937
* The distance at which a {@link BlockState} will decay.
933938
* This usually applies to leaves, for example {@link BlockTypes#OAK_LEAVES}.

0 commit comments

Comments
 (0)