aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/handlers/sbentities/SkyBlockEntity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/handlers/sbentities/SkyBlockEntity.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/handlers/sbentities/SkyBlockEntity.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/handlers/sbentities/SkyBlockEntity.java b/src/main/java/com/thatgravyboat/skyblockhud/handlers/sbentities/SkyBlockEntity.java
index ca10b53..ee8c3a7 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/handlers/sbentities/SkyBlockEntity.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/handlers/sbentities/SkyBlockEntity.java
@@ -1,24 +1,25 @@
package com.thatgravyboat.skyblockhud.handlers.sbentities;
-import net.minecraft.entity.Entity;
-
import java.util.function.Predicate;
+import net.minecraft.entity.Entity;
public class SkyBlockEntity {
private final String name;
private final Predicate<Entity> predicate;
- public static SkyBlockEntity of(String name, Predicate<Entity> predicate){
+ public static SkyBlockEntity of(String name, Predicate<Entity> predicate) {
return new SkyBlockEntity(name, predicate);
}
- private SkyBlockEntity(String name, Predicate<Entity> predicate){
+ private SkyBlockEntity(String name, Predicate<Entity> predicate) {
this.name = name;
this.predicate = predicate;
}
- public String getName(){ return name; }
+ public String getName() {
+ return name;
+ }
public boolean isEntity(Entity entity) {
return predicate.test(entity);