Skip to content

Commit

Permalink
Move ClickType to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
d0by1 committed Oct 12, 2023
1 parent 0c7e6b6 commit e23700c
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package eu.decentsoftware.holograms.api.hologram;

import eu.decentsoftware.holograms.api.util.ClickType;
import lombok.NonNull;
import org.bukkit.entity.Player;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package eu.decentsoftware.holograms.api.hologram;
package eu.decentsoftware.holograms.api.util;

import eu.decentsoftware.holograms.api.hologram.HologramClickHandler;
import lombok.NonNull;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.Nullable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package eu.decentsoftware.holograms.nms.event;

import eu.decentsoftware.holograms.api.event.DecentHologramsEvent;
import eu.decentsoftware.holograms.api.hologram.ClickType;
import eu.decentsoftware.holograms.api.util.ClickType;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package eu.decentsoftware.holograms.nms;

import com.mojang.datafixers.util.Pair;
import eu.decentsoftware.holograms.api.hologram.ClickType;
import eu.decentsoftware.holograms.api.util.ClickType;
import eu.decentsoftware.holograms.nms.event.PacketPlayInUseEntityEvent;
import eu.decentsoftware.holograms.nms.utils.ReflectField;
import eu.decentsoftware.holograms.nms.utils.ReflectUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

package eu.decentsoftware.holograms.nms;

import eu.decentsoftware.holograms.api.hologram.ClickType;
import eu.decentsoftware.holograms.api.util.ClickType;
import eu.decentsoftware.holograms.nms.event.PacketPlayInUseEntityEvent;
import eu.decentsoftware.holograms.nms.utils.ReflectField;
import eu.decentsoftware.holograms.nms.utils.ReflectUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

package eu.decentsoftware.holograms.nms;

import eu.decentsoftware.holograms.api.hologram.ClickType;
import eu.decentsoftware.holograms.api.util.ClickType;
import eu.decentsoftware.holograms.nms.event.PacketPlayInUseEntityEvent;
import eu.decentsoftware.holograms.nms.utils.ReflectField;
import eu.decentsoftware.holograms.nms.utils.ReflectUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package eu.decentsoftware.holograms.actions;

import com.google.common.collect.ImmutableList;
import eu.decentsoftware.holograms.api.hologram.ClickType;
import eu.decentsoftware.holograms.api.util.ClickType;
import eu.decentsoftware.holograms.utils.SchedulerUtil;
import lombok.NonNull;
import org.bukkit.entity.Player;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import eu.decentsoftware.holograms.actions.Action;
import eu.decentsoftware.holograms.actions.ActionType;
import eu.decentsoftware.holograms.actions.ClickActionHolder;
import eu.decentsoftware.holograms.api.hologram.ClickType;
import eu.decentsoftware.holograms.api.util.ClickType;
import lombok.NonNull;

import java.lang.reflect.Type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package eu.decentsoftware.holograms.api.hologram;

import eu.decentsoftware.holograms.DecentHolograms;
import eu.decentsoftware.holograms.api.util.ClickType;
import eu.decentsoftware.holograms.api.util.DecentLocation;
import eu.decentsoftware.holograms.core.CoreHologram;
import eu.decentsoftware.holograms.core.CoreHologramPage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package eu.decentsoftware.holograms.conditions;

import com.google.common.collect.ImmutableList;
import eu.decentsoftware.holograms.api.hologram.ClickType;
import eu.decentsoftware.holograms.api.util.ClickType;
import lombok.NonNull;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.Contract;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package eu.decentsoftware.holograms.conditions.serialization;

import com.google.gson.*;
import eu.decentsoftware.holograms.api.hologram.ClickType;
import eu.decentsoftware.holograms.api.util.ClickType;
import eu.decentsoftware.holograms.conditions.ClickConditionHolder;
import eu.decentsoftware.holograms.conditions.Condition;
import eu.decentsoftware.holograms.conditions.ConditionType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import eu.decentsoftware.holograms.Config;
import eu.decentsoftware.holograms.DecentHolograms;
import eu.decentsoftware.holograms.api.hologram.ClickType;
import eu.decentsoftware.holograms.api.util.ClickType;
import eu.decentsoftware.holograms.api.util.DecentLocation;
import eu.decentsoftware.holograms.conditions.ConditionHolder;
import eu.decentsoftware.holograms.core.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package eu.decentsoftware.holograms.nms;

import eu.decentsoftware.holograms.DecentHolograms;
import eu.decentsoftware.holograms.api.hologram.ClickType;
import eu.decentsoftware.holograms.api.util.ClickType;
import eu.decentsoftware.holograms.core.CoreHologram;
import eu.decentsoftware.holograms.core.CoreHologramPage;
import eu.decentsoftware.holograms.core.line.CoreHologramLine;
Expand Down

0 comments on commit e23700c

Please sign in to comment.