Implement feedback

This commit is contained in:
DerFrZocker 2023-06-08 20:33:21 +02:00
parent af8ffd60a5
commit 4ee82e4ea5
No known key found for this signature in database
GPG key ID: 713F71FFFE1DDF91
3 changed files with 7 additions and 5 deletions

View file

@ -210,10 +210,11 @@ public interface RegionAccessor {
* *
* @param location The location to spawn the entity * @param location The location to spawn the entity
* @param type The entity to spawn * @param type The entity to spawn
* @param <E> The class of the {@link Entity} to spawn
* @return Resulting Entity of this method * @return Resulting Entity of this method
*/ */
@NotNull @NotNull
Entity spawnEntity(@NotNull Location location, @NotNull EntityType<?> type); <E extends Entity> E spawnEntity(@NotNull Location location, @NotNull EntityType<E> type);
/** /**
* Creates a new entity at the given {@link Location}. * Creates a new entity at the given {@link Location}.
@ -236,10 +237,11 @@ public interface RegionAccessor {
* randomisation logic for their spawn. * randomisation logic for their spawn.
* This parameter is hence useless for any other type * This parameter is hence useless for any other type
* of entity. * of entity.
* @param <E> the class of the {@link Entity} to spawn
* @return the spawned entity instance. * @return the spawned entity instance.
*/ */
@NotNull @NotNull
public Entity spawnEntity(@NotNull Location loc, @NotNull EntityType<?> type, boolean randomizeData); public <E extends Entity> E spawnEntity(@NotNull Location loc, @NotNull EntityType<E> type, boolean randomizeData);
/** /**
* Get a list of all entities in this RegionAccessor * Get a list of all entities in this RegionAccessor

View file

@ -335,8 +335,8 @@ public interface Block extends Metadatable, Translatable {
/** /**
* Checks if this block is empty. * Checks if this block is empty.
* <p> * <p>
* A block is considered empty when {@link #getType()} returns {@link * A block is considered empty when {@link #getType()} returns a block type for which
* BlockType#AIR}. * {@link BlockType#isAir()} is true.
* *
* @return true if this block is empty * @return true if this block is empty
*/ */

View file

@ -117,7 +117,7 @@ public interface Minecart extends Vehicle {
* Sets the display block for this minecart. * Sets the display block for this minecart.
* Passing a null value will set the minecart to have no display block. * Passing a null value will set the minecart to have no display block.
* *
* @param blockData the block type to set as display block. * @param blockData the block data to set as display block.
*/ */
public void setDisplayBlockData(@Nullable BlockData blockData); public void setDisplayBlockData(@Nullable BlockData blockData);