-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
started moving things, gonna leave it here for tonight
- Loading branch information
1 parent
6447b69
commit cc1e4a5
Showing
9 changed files
with
30 additions
and
23 deletions.
There are no files selected for viewing
7 changes: 4 additions & 3 deletions
7
Common/src/main/java/dev/cammiescorner/arcanus/api/entities/Targetable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
Common/src/main/java/dev/cammiescorner/arcanus/common/MainDuck.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
package dev.cammiescorner.arcanus.common; | ||
|
||
import net.minecraft.world.entity.Entity; | ||
|
||
public interface MainDuck { | ||
boolean isFakePlayer(Entity entity); | ||
} |
7 changes: 6 additions & 1 deletion
7
Common/src/main/java/dev/cammiescorner/arcanus/common/MainHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
package dev.cammiescorner.arcanus.common; | ||
|
||
import dev.upcraft.sparkweave.api.platform.Services; | ||
import net.minecraft.world.entity.Entity; | ||
|
||
public class MainHelper { | ||
private static final MainDuck MAIN_DUCK = Services.getService(MainDuck.class); | ||
private static final MainDuck mainDuck = Services.getService(MainDuck.class); | ||
|
||
public static boolean isFakePlayer(Entity entity) { | ||
return mainDuck.isFakePlayer(entity); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
Fabric/src/main/java/dev/cammiescorner/arcanus/fabric/common/FabricMainDuck.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
package dev.cammiescorner.arcanus.fabric.common; | ||
|
||
import dev.cammiescorner.arcanus.common.MainDuck; | ||
import net.fabricmc.fabric.api.entity.FakePlayer; | ||
import net.minecraft.world.entity.Entity; | ||
|
||
public class FabricMainDuck implements MainDuck { | ||
@Override | ||
public boolean isFakePlayer(Entity entity) { | ||
return entity instanceof FakePlayer;; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
Fabric/src/main/java/dev/cammiescorner/arcanus/fabric/common/util/PlayerHelper.java
This file was deleted.
Oops, something went wrong.