-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add EntityUndeadComponent (#432)
- Loading branch information
1 parent
c69c4bc
commit 8e235c7
Showing
16 changed files
with
40 additions
and
15 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
api/src/main/java/org/allaymc/api/entity/component/EntityUndeadComponent.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.allaymc.api.entity.component; | ||
|
||
public interface EntityUndeadComponent extends EntityComponent { | ||
/** | ||
* Check if the entity will catch fire under sunlight. | ||
* | ||
* @return {@code true} if the entity will catch fire under sunlight, otherwise {@code false}. | ||
*/ | ||
default boolean getCatchesFireUnderSunlight() { return true; }; | ||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntityBogged.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,7 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntityBogged extends Entity { | ||
public interface EntityBogged extends Entity, EntityUndeadComponent { | ||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntityDrowned.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntityDrowned extends Entity { | ||
public interface EntityDrowned extends Entity, EntityUndeadComponent { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntityHusk.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntityHusk extends Entity { | ||
public interface EntityHusk extends Entity, EntityUndeadComponent { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntityPhantom.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntityPhantom extends Entity { | ||
public interface EntityPhantom extends Entity, EntityUndeadComponent { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntitySkeleton.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntitySkeleton extends Entity { | ||
public interface EntitySkeleton extends Entity, EntityUndeadComponent { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntitySkeletonHorse.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntitySkeletonHorse extends Entity { | ||
public interface EntitySkeletonHorse extends Entity, EntityUndeadComponent { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntityStray.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntityStray extends Entity { | ||
public interface EntityStray extends Entity, EntityUndeadComponent { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntityWither.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntityWither extends Entity { | ||
public interface EntityWither extends Entity, EntityUndeadComponent { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntityWitherSkeleton.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntityWitherSkeleton extends Entity { | ||
public interface EntityWitherSkeleton extends Entity, EntityUndeadComponent { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntityZoglin.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntityZoglin extends Entity { | ||
public interface EntityZoglin extends Entity, EntityUndeadComponent { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntityZombie.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntityZombie extends Entity { | ||
public interface EntityZombie extends Entity, EntityUndeadComponent { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntityZombieHorse.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntityZombieHorse extends Entity { | ||
public interface EntityZombieHorse extends Entity, EntityUndeadComponent { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntityZombiePigman.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntityZombiePigman extends Entity { | ||
public interface EntityZombiePigman extends Entity, EntityUndeadComponent { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntityZombieVillager.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntityZombieVillager extends Entity { | ||
public interface EntityZombieVillager extends Entity, EntityUndeadComponent { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
api/src/main/java/org/allaymc/api/entity/interfaces/EntityZombieVillagerV2.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,8 @@ | ||
package org.allaymc.api.entity.interfaces; | ||
|
||
import org.allaymc.api.entity.Entity; | ||
import org.allaymc.api.entity.component.EntityUndeadComponent; | ||
|
||
public interface EntityZombieVillagerV2 extends Entity { | ||
public interface EntityZombieVillagerV2 extends Entity, EntityUndeadComponent { | ||
|
||
} |