Skip to content

Commit

Permalink
fix javadoc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMorpheus committed May 8, 2022
1 parent 44f1788 commit 7a52f59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/spongepowered/api/entity/Entity.java
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ default Value.Mutable<VanishState> vanishState() {
* @return Whether the entity is vanished
* @deprecated Use {@link #vanishState() VanishState} instead
*/
@Deprecated
default Value.Mutable<Boolean> vanish() {
return this.requireValue(Keys.VANISH).asMutable();
}
Expand All @@ -633,6 +634,7 @@ default Value.Mutable<Boolean> vanish() {
* @return Whether the entity ignores collision with other entities
* @deprecated Use {@link #vanishState()} instead
*/
@Deprecated
default Value.Mutable<Boolean> vanishIgnoresCollision() {
return this.requireValue(Keys.VANISH_IGNORES_COLLISION).asMutable();
}
Expand All @@ -643,6 +645,7 @@ default Value.Mutable<Boolean> vanishIgnoresCollision() {
* @return Whether the entity can be targeted for attack by another entity
* @deprecated Use {@link #vanishState()} instead
*/
@Deprecated
default Value.Mutable<Boolean> vanishPreventsTargeting() {
return this.requireValue(Keys.VANISH_PREVENTS_TARGETING).asMutable();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,24 +168,28 @@ public final class EventContextKeys {
* Used when leaves decay.
* @deprecated Use {@link BlockTransaction#operation()} instead.
*/
@Deprecated
public static final EventContextKey<ServerWorld> LEAVES_DECAY = EventContextKeys.key(ResourceKey.sponge("leaves_decay"), ServerWorld.class);

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

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

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

/**
Expand Down

0 comments on commit 7a52f59

Please sign in to comment.