From 5a9d70f82708be7ab079ae102882a8313bd7f0f9 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Tue, 9 Feb 2021 20:38:50 +0100 Subject: [PATCH] Adds a warning against treating BlockLocation as a Location --- src/main/java/net/knarcraft/stargate/BlockLocation.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/knarcraft/stargate/BlockLocation.java b/src/main/java/net/knarcraft/stargate/BlockLocation.java index e8f969b..49d9db2 100644 --- a/src/main/java/net/knarcraft/stargate/BlockLocation.java +++ b/src/main/java/net/knarcraft/stargate/BlockLocation.java @@ -33,7 +33,9 @@ import org.bukkit.block.data.type.WallSign; /** * This class represents a block location * - *

The BlockLocation class is basically a Location with some extra functionality.

+ *

The BlockLocation class is basically a Location with some extra functionality. + * Warning: Because of differences in the equals methods between Location and BlockLocation, a BlockLocation which + * equals another BlockLocation does not necessarily equal the name BlockLocation if treated as a Location.

*/ public class BlockLocation extends Location {