Skip to content

Commit c3dec13

Browse files
committed
try wildcard for getData
1 parent 490cbe4 commit c3dec13

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SimpAPI v4.3.0
1+
# SimpAPI v4.3.2
22
****
33
SimpAPI, finally a good API that can make coding MC Plugins much easier and less painful.
44
This API includes all of my primary utilities like *Menu Manager*, *Command Manager*, *ColorTranslator*, and more.
@@ -25,7 +25,7 @@ JavaDocs: https://kodysimpson.github.io/SimpAPI/index.html
2525
<dependency>
2626
<groupId>com.github.KodySimpson</groupId>
2727
<artifactId>SimpAPI</artifactId>
28-
<version>4.3.0</version>
28+
<version>4.3.2</version>
2929
</dependency>
3030
```
3131

@@ -51,7 +51,7 @@ repositories {
5151
Groovy/Kotlin:
5252
```groovy
5353
dependencies {
54-
implementation 'com.github.KodySimpson:SimpAPI:4.3.0'
54+
implementation 'com.github.KodySimpson:SimpAPI:4.3.2'
5555
}
5656
```
5757

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>me.kodysimpson</groupId>
88
<artifactId>SimpAPI</artifactId>
9-
<version>4.3.1</version>
9+
<version>4.3.2</version>
1010
<packaging>jar</packaging>
1111

1212
<name>SimpAPI</name>

src/main/java/me/kodysimpson/simpapi/menu/PaginatedMenu.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ public PaginatedMenu(PlayerMenuUtility playerMenuUtility) {
2727
}
2828

2929
/**
30-
* @param <T> The datatype of the data in the list
3130
* @return A list of the data being paginated. usually this is a list of items but it can be anything
3231
*/
33-
public abstract <T> List<T> getData();
32+
public abstract List<?> getData();
3433

3534
/**
3635
* @param object A single element of the data list that you do something with. It is recommended that you turn this into an item if it is not already and then put it into the inventory as you would with a normal Menu. You can execute any other logic in here as well.
@@ -86,7 +85,7 @@ public void setMenuItems() {
8685

8786
addMenuBorder();
8887

89-
List<Object> data = getData();
88+
List<Object> data = (List<Object>) getData();
9089

9190
if (data != null && !data.isEmpty()) {
9291
for (int i = 0; i < getMaxItemsPerPage(); i++) {

0 commit comments

Comments
 (0)