Package net.minestom.testing
Interface Env
public interface Env
-
Method Summary
Modifier and TypeMethodDescription@NotNull TestConnectiondefault @NotNull net.minestom.server.instance.Instancedefault @NotNull net.minestom.server.instance.InstancecreateFlatInstance(net.minestom.server.instance.IChunkLoader chunkLoader) default @NotNull net.minestom.server.entity.PlayercreatePlayer(@NotNull net.minestom.server.instance.Instance instance, @NotNull net.minestom.server.coordinate.Pos pos) default voiddestroyInstance(net.minestom.server.instance.Instance instance) <E extends net.minestom.server.event.Event>
@NotNull FlexibleListener<E> @NotNull net.minestom.server.ServerProcessprocess()default voidtick()default booleantickWhile(BooleanSupplier condition, Duration timeout) <E extends net.minestom.server.event.Event,H>
@NotNull Collector<E> trackEvent(@NotNull Class<E> eventType, @NotNull net.minestom.server.event.EventFilter<? super E, H> filter, H actor)
-
Method Details
-
process
@NotNull @NotNull net.minestom.server.ServerProcess process() -
createConnection
-
trackEvent
-
listen
@NotNull <E extends net.minestom.server.event.Event> @NotNull FlexibleListener<E> listen(@NotNull @NotNull Class<E> eventType) -
tick
default void tick() -
tickWhile
-
createPlayer
@NotNull default @NotNull net.minestom.server.entity.Player createPlayer(@NotNull @NotNull net.minestom.server.instance.Instance instance, @NotNull @NotNull net.minestom.server.coordinate.Pos pos) -
createFlatInstance
@NotNull default @NotNull net.minestom.server.instance.Instance createFlatInstance() -
createFlatInstance
@NotNull default @NotNull net.minestom.server.instance.Instance createFlatInstance(net.minestom.server.instance.IChunkLoader chunkLoader) -
destroyInstance
default void destroyInstance(net.minestom.server.instance.Instance instance)
-