Skip to content

Commit

Permalink
feat: add EntityUndeadComponent (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
heyhey123-git authored Oct 10, 2024
1 parent c69c4bc commit 8e235c7
Show file tree
Hide file tree
Showing 16 changed files with 40 additions and 15 deletions.
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; };
}
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 {
}
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 {

}
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 {

}
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 {

}
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 {

}
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 {

}
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 {

}
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 {

}
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 {

}
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 {

}
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 {

}
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 {

}
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 {

}
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 {

}
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 {

}

0 comments on commit 8e235c7

Please sign in to comment.