Skip to content

Commit

Permalink
Parametrise return value
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Aug 13, 2024
1 parent d9a8fa4 commit 34d43d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 34d43d4

Please sign in to comment.