Uses of Enum Class
net.minecraft.util.Unit
Package
Description
Provides resources to Minecraft, including resource access and provision.
-
Uses of Unit in net.minecraft.client
Modifier and TypeFieldDescriptionprivate static final CompletableFuture<Unit>
MinecraftClient.COMPLETED_UNIT_FUTURE
-
Uses of Unit in net.minecraft.entity.player
Modifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason,
Unit> Tries to start sleeping on a block. -
Uses of Unit in net.minecraft.resource
Modifier and TypeFieldDescriptionprivate static final CompletableFuture<Unit>
ServerResourceManager.COMPLETED_UNIT
private final CompletableFuture<Unit>
ReloadableResourceManagerImpl.FailedReload.future
protected final CompletableFuture<Unit>
SimpleResourceReload.prepareStageFuture
Modifier and TypeMethodDescriptiondefault CompletableFuture<Unit>
ReloadableResourceManager.reload
(Executor prepareExecutor, Executor applyExecutor, List<ResourcePack> packs, CompletableFuture<Unit> initialStage) Performs a reload.ReloadableResourceManagerImpl.FailedReload.whenComplete()
Returns a future for the reload.ResourceReload.whenComplete()
Returns a future for the reload.SimpleResourceReload.whenComplete()
Returns a future for the reload.Modifier and TypeMethodDescriptionstatic SimpleResourceReload<Void>
SimpleResourceReload.create
(ResourceManager manager, List<ResourceReloader> reloaders, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage) Creates a simple resource reload without additional results.ReloadableResourceManager.reload
(Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage, List<ResourcePack> packs) Performs a reload.default CompletableFuture<Unit>
ReloadableResourceManager.reload
(Executor prepareExecutor, Executor applyExecutor, List<ResourcePack> packs, CompletableFuture<Unit> initialStage) Performs a reload.ReloadableResourceManagerImpl.reload
(Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage, List<ResourcePack> packs) Performs a reload.ModifierConstructorDescriptionProfiledResourceReload
(ResourceManager manager, List<ResourceReloader> reloaders, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage) protected
SimpleResourceReload
(Executor prepareExecutor, Executor applyExecutor, ResourceManager manager, List<ResourceReloader> reloaders, SimpleResourceReload.Factory<S> factory, CompletableFuture<Unit> initialStage) -
Uses of Unit in net.minecraft.server.network
Modifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason,
Unit> Tries to start sleeping on a block. -
Uses of Unit in net.minecraft.server.world
Modifier and TypeFieldDescriptionstatic final ChunkTicketType<Unit>
ChunkTicketType.DRAGON
Used by the ender dragon to load the central end island during the boss battle.private final Map<MessageListener<?>,
LevelPrioritizedQueue<? extends Function<MessageListener<Unit>, ?>>> ChunkTaskPrioritySystem.queues
static final ChunkTicketType<Unit>
ChunkTicketType.START
(package private) final Function<MessageListener<Unit>,
T> ChunkTaskPrioritySystem.Task.taskFunction
Modifier and TypeMethodDescriptionprivate <T> LevelPrioritizedQueue<Function<MessageListener<Unit>,
T>> ChunkTaskPrioritySystem.getQueue
(MessageListener<T> actor) Modifier and TypeMethodDescriptionstatic <T> ChunkTaskPrioritySystem.Task<T>
ChunkTaskPrioritySystem.createTask
(Function<MessageListener<Unit>, T> taskFunction, long pos, IntSupplier lastLevelUpdatedToProvider) static <T> ChunkTaskPrioritySystem.Task<T>
ChunkTaskPrioritySystem.createTask
(ChunkHolder holder, Function<MessageListener<Unit>, T> taskFunction) private <T> void
ChunkTaskPrioritySystem.enqueueChunk
(MessageListener<T> actor, Function<MessageListener<Unit>, T> task, long chunkPos, IntSupplier lastLevelUpdatedToProvider, boolean addBlocker) private <T> void
ChunkTaskPrioritySystem.enqueueExecution
(LevelPrioritizedQueue<Function<MessageListener<Unit>, T>> queue, MessageListener<T> actor) ModifierConstructorDescription(package private)
Task
(Function<MessageListener<Unit>, T> taskFunction, long pos, IntSupplier lastLevelUpdatedToProvider) -
Uses of Unit in net.minecraft.text
Modifier and TypeFieldDescriptionStringVisitable.TERMINATE_VISIT
Convenience object indicating the termination of a string visit. -
Uses of Unit in net.minecraft.util