mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-02 17:00:41 +01:00
Removed unused method
This commit is contained in:
parent
2577307da0
commit
9c99cb9b2e
@ -1,7 +1,6 @@
|
||||
package net.minestom.server.acquirable;
|
||||
|
||||
import net.minestom.server.entity.Entity;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.stream.Stream;
|
||||
@ -10,19 +9,6 @@ class AcquirableImpl<T> implements Acquirable<T> {
|
||||
|
||||
protected static final ThreadLocal<Stream<Entity>> CURRENT_ENTITIES = ThreadLocal.withInitial(Stream::empty);
|
||||
|
||||
/**
|
||||
* Changes the stream returned by {@link #currentEntities()}.
|
||||
* <p>
|
||||
* Mostly for internal use, external calls are unrecommended as they could lead
|
||||
* to unexpected behavior.
|
||||
*
|
||||
* @param entities the new entity stream
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
static void refreshEntities(@NotNull Stream<@NotNull Entity> entities) {
|
||||
AcquirableImpl.CURRENT_ENTITIES.set(entities);
|
||||
}
|
||||
|
||||
private final T value;
|
||||
private final Acquirable.Handler handler;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user