From c94e6be86620d7621b39ac75bbd2b5be8b38c12c Mon Sep 17 00:00:00 2001 From: TomTom <93038247+AverageGithub@users.noreply.github.com> Date: Thu, 1 Aug 2024 09:21:16 +0200 Subject: [PATCH] Make effects final --- .../actions/effects/implementation/AddToContainerEffect.java | 2 +- .../minions/actions/effects/implementation/BreakEffect.java | 2 +- .../actions/effects/implementation/DamageEntityEffect.java | 2 +- .../actions/effects/implementation/DropAtMinionEffect.java | 2 +- .../minions/actions/effects/implementation/SmeltEffect.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/AddToContainerEffect.java b/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/AddToContainerEffect.java index 8b68261..e1ed196 100644 --- a/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/AddToContainerEffect.java +++ b/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/AddToContainerEffect.java @@ -8,7 +8,7 @@ import org.bukkit.inventory.ItemStack; import java.util.Map; -public class AddToContainerEffect extends Effect { +public final class AddToContainerEffect extends Effect { public AddToContainerEffect(Map configuration) { super(configuration); diff --git a/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/BreakEffect.java b/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/BreakEffect.java index 0963d2d..b5edf1d 100644 --- a/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/BreakEffect.java +++ b/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/BreakEffect.java @@ -8,7 +8,7 @@ import org.bukkit.Location; import java.util.Map; -public class BreakEffect extends Effect { +public final class BreakEffect extends Effect { public BreakEffect(Map configuration) { super(configuration); diff --git a/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/DamageEntityEffect.java b/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/DamageEntityEffect.java index c1eb69d..2188ede 100644 --- a/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/DamageEntityEffect.java +++ b/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/DamageEntityEffect.java @@ -15,7 +15,7 @@ import org.bukkit.entity.Player; import java.util.Map; -public class DamageEntityEffect extends Effect { +public final class DamageEntityEffect extends Effect { private static final Player dummyPlayer = NMSHandlers.getNmsHandler().dummyPlayer(); public DamageEntityEffect(Map configuration) { diff --git a/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/DropAtMinionEffect.java b/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/DropAtMinionEffect.java index 32c3cdb..2d38419 100644 --- a/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/DropAtMinionEffect.java +++ b/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/DropAtMinionEffect.java @@ -9,7 +9,7 @@ import org.bukkit.inventory.ItemStack; import java.util.Map; -public class DropAtMinionEffect extends Effect { +public final class DropAtMinionEffect extends Effect { public DropAtMinionEffect(Map configuration) { super(configuration); diff --git a/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/SmeltEffect.java b/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/SmeltEffect.java index 00bf8cf..1265ead 100644 --- a/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/SmeltEffect.java +++ b/src/main/java/com/artillexstudios/axminions/minions/actions/effects/implementation/SmeltEffect.java @@ -15,7 +15,7 @@ import org.bukkit.inventory.Recipe; import java.util.Iterator; import java.util.Map; -public class SmeltEffect extends Effect { +public final class SmeltEffect extends Effect { private static final Object2ObjectLinkedOpenHashMap recipes = new Object2ObjectLinkedOpenHashMap<>(); static {