Skip to content

Commit 682c3a2

Browse files
committed
Deprecate old EventContextKeys
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
1 parent 6bf979b commit 682c3a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/spongepowered/api/event/EventContextKeys.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,21 +166,25 @@ public final class EventContextKeys {
166166

167167
/**
168168
* Used when leaves decay.
169+
* @deprecated Use {@link BlockTransaction#operation()} instead.
169170
*/
170171
public static final EventContextKey<ServerWorld> LEAVES_DECAY = EventContextKeys.key(ResourceKey.sponge("leaves_decay"), ServerWorld.class);
171172

172173
/**
173174
* Used when flowing liquid causing another block to break.
175+
* @deprecated Use {@link BlockTransaction#operation()} instead.
174176
*/
175177
public static final EventContextKey<ServerWorld> LIQUID_BREAK = EventContextKeys.key(ResourceKey.sponge("liquid_break"), ServerWorld.class);
176178

177179
/**
178180
* Used when flowing liquid moves to another location.
181+
* @deprecated Use {@link BlockTransaction#operation()} instead.
179182
*/
180183
public static final EventContextKey<ServerWorld> LIQUID_FLOW = EventContextKeys.key(ResourceKey.sponge("liquid_flow"), ServerWorld.class);
181184

182185
/**
183186
* Used when liquid changes state.
187+
* @deprecated Use {@link BlockTransaction#operation()} instead.
184188
*/
185189
public static final EventContextKey<ServerWorld> LIQUID_MIX = EventContextKeys.key(ResourceKey.sponge("liquid_mix"), ServerWorld.class);
186190

0 commit comments

Comments
 (0)