From 34d43d4933cc0b8cbf9c56399d3c239eb686faf1 Mon Sep 17 00:00:00 2001 From: Slqmy <90862990+Slqmy@users.noreply.github.com> Date: Tue, 13 Aug 2024 16:15:23 +0100 Subject: [PATCH] Parametrise return value --- .../custom_entity/AbstractCustomEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/slqmy/template_paper_plugin/custom_entity/AbstractCustomEntity.java b/src/main/java/net/slqmy/template_paper_plugin/custom_entity/AbstractCustomEntity.java index 8aedda45..f8030c36 100644 --- a/src/main/java/net/slqmy/template_paper_plugin/custom_entity/AbstractCustomEntity.java +++ b/src/main/java/net/slqmy/template_paper_plugin/custom_entity/AbstractCustomEntity.java @@ -27,7 +27,7 @@ protected AbstractCustomEntity(TemplatePaperPlugin plugin, CustomEntityManager c customEntityManager.addCustomEntity(entityId, this); } - protected abstract Entity generateCustomEntity(E baseEntity); + protected abstract E generateCustomEntity(E baseEntity); public Entity getCustomEntity(Location spawnLocation) { E entity = (E) spawnLocation.getWorld().spawnEntity(spawnLocation, entityType);