Skip to content

Commit

Permalink
Remove WeatherEffect and duplicate keys methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMorpheus authored and Faithcaio committed Jun 28, 2024
1 parent 5f1bbba commit 4233b08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 58 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/spongepowered/api/data/Keys.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@
import org.spongepowered.api.entity.vehicle.minecart.Minecart;
import org.spongepowered.api.entity.vehicle.minecart.MinecartLike;
import org.spongepowered.api.entity.weather.LightningBolt;
import org.spongepowered.api.entity.weather.WeatherEffect;
import org.spongepowered.api.event.cause.entity.damage.source.DamageSources;
import org.spongepowered.api.fluid.FluidStackSnapshot;
import org.spongepowered.api.fluid.FluidTypes;
Expand Down Expand Up @@ -1652,7 +1651,7 @@ public final class Keys {
public static final Key<Value<Boolean>> IS_EATING = Keys.key(ResourceKey.sponge("is_eating"), Boolean.class);

/**
* Whether a {@link WeatherEffect} like {@link LightningBolt} is harmful to other {@link Entity entities}.
* Whether a {@link LightningBolt} is harmful to other {@link Entity entities}.
* Readonly
*/
public static final Key<Value<Boolean>> IS_EFFECT_ONLY = Keys.key(ResourceKey.sponge("is_effect_only"), Boolean.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@

import org.spongepowered.api.data.Keys;
import org.spongepowered.api.data.value.Value;
import org.spongepowered.api.entity.Entity;
import org.spongepowered.api.util.Ticks;

/**
* Represents a Lighting Bolt.
*/
public interface LightningBolt extends WeatherEffect {
public interface LightningBolt extends Entity {

/**
* {@link Keys#DESPAWN_DELAY}
Expand Down

This file was deleted.

0 comments on commit 4233b08

Please sign in to comment.