Add missing extends Entity to EntityType entity class

This commit is contained in:
DerFrZocker 2024-06-05 20:48:31 +02:00
parent 2abfcc4958
commit 214a725c18
No known key found for this signature in database
GPG key ID: 713F71FFFE1DDF91

View file

@ -38,7 +38,7 @@ public abstract class EntityType implements OldEnum<EntityType>, Keyed, Translat
*
* @param <E> the generic data type of the entity that represents the entity type.
*/
public abstract static class Typed<E> extends EntityType {
public abstract static class Typed<E extends Entity> extends EntityType {
/**
* Gets the Entity class of this EntityType
@ -373,7 +373,7 @@ public abstract class EntityType implements OldEnum<EntityType>, Keyed, Translat
public abstract boolean isAlive();
@Nullable
public abstract Class<?> getEntityClass();
public abstract Class<? extends Entity> getEntityClass();
/**
* Gets if this EntityType is enabled by feature in a world.