Uses of Enum Class
net.minecraft.util.Unit
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
Provides resources to Minecraft, including resource access, provision, and reloading.
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of Unit in net.minecraft.client
Modifier and TypeFieldDescriptionprivate static final CompletableFuture
<Unit> MinecraftClient.COMPLETED_UNIT_FUTURE
-
Uses of Unit in net.minecraft.component
Modifier and TypeFieldDescriptionstatic final DataComponentType
<Unit> DataComponentTypes.CREATIVE_SLOT_LOCK
static final DataComponentType
<Unit> DataComponentTypes.FIRE_RESISTANT
static final DataComponentType
<Unit> DataComponentTypes.HIDE_ADDITIONAL_TOOLTIP
static final DataComponentType
<Unit> DataComponentTypes.HIDE_TOOLTIP
static final DataComponentType
<Unit> DataComponentTypes.INTANGIBLE_PROJECTILE
-
Uses of Unit in net.minecraft.entity.ai.brain
Modifier and TypeFieldDescriptionstatic final MemoryModuleType
<Unit> MemoryModuleType.BREEZE_JUMP_COOLDOWN
static final MemoryModuleType
<Unit> MemoryModuleType.BREEZE_JUMP_INHALING
static final MemoryModuleType
<Unit> MemoryModuleType.BREEZE_LEAVING_WATER
static final MemoryModuleType
<Unit> MemoryModuleType.BREEZE_SHOOT
static final MemoryModuleType
<Unit> MemoryModuleType.BREEZE_SHOOT_CHARGING
static final MemoryModuleType
<Unit> MemoryModuleType.BREEZE_SHOOT_COOLDOWN
static final MemoryModuleType
<Unit> MemoryModuleType.BREEZE_SHOOT_RECOVER
static final MemoryModuleType
<Unit> MemoryModuleType.DIG_COOLDOWN
static final MemoryModuleType
<Unit> MemoryModuleType.IS_EMERGING
static final MemoryModuleType
<Unit> MemoryModuleType.IS_IN_WATER
static final MemoryModuleType
<Unit> MemoryModuleType.IS_PREGNANT
static final MemoryModuleType
<Unit> MemoryModuleType.IS_SNIFFING
static final MemoryModuleType
<Unit> MemoryModuleType.RECENT_PROJECTILE
static final MemoryModuleType
<Unit> MemoryModuleType.ROAR_SOUND_COOLDOWN
static final MemoryModuleType
<Unit> MemoryModuleType.ROAR_SOUND_DELAY
static final MemoryModuleType
<Unit> MemoryModuleType.SNIFF_COOLDOWN
static final MemoryModuleType
<Unit> MemoryModuleType.SONIC_BOOM_COOLDOWN
static final MemoryModuleType
<Unit> MemoryModuleType.SONIC_BOOM_SOUND_COOLDOWN
static final MemoryModuleType
<Unit> MemoryModuleType.SONIC_BOOM_SOUND_DELAY
static final MemoryModuleType
<Unit> MemoryModuleType.TOUCH_COOLDOWN
static final MemoryModuleType
<Unit> MemoryModuleType.VIBRATION_COOLDOWN
-
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.item
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.DataResult
<Unit> ItemStack.validateComponents
(ComponentMap components) -
Uses of Unit in net.minecraft.resource
Modifier and TypeFieldDescriptionprotected final CompletableFuture
<Unit> SimpleResourceReload.prepareStageFuture
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.ReloadableResourceManagerImpl.reload
(Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage, List<ResourcePack> packs) Swaps the active resource manager with another one backed by the givenpacks
and start a reload.static ResourceReload
SimpleResourceReload.start
(ResourceManager manager, List<ResourceReloader> reloaders, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage, boolean profiled) Starts a resource reload with the content from themanager
supplied to thereloaders
.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
Modifier and TypeFieldDescriptionprivate static final CompletableFuture
<Unit> DataPackContents.COMPLETED_UNIT
-
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
-
Uses of Unit in net.minecraft.util.dynamic
Modifier and TypeMethodDescriptionprotected Unit
NullOps.createBoolean
(boolean bool) NullOps.createByte
(byte byte2) NullOps.createByteList
(ByteBuffer byteBuffer) NullOps.createDouble
(double double2) NullOps.createFloat
(float float2) NullOps.createInt
(int int2) NullOps.createIntList
(IntStream intStream) NullOps.createList
(Stream<Unit> stream) NullOps.createLong
(long long2) NullOps.createLongList
(LongStream longStream) NullOps.createNumeric
(Number number) NullOps.createShort
(short short2) NullOps.createString
(String string) NullOps.empty()
NullOps.emptyList()
NullOps.emptyMap()
protected Unit
NullOps.NullMapBuilder.initBuilder()
Modifier and TypeMethodDescriptionprotected com.mojang.serialization.DataResult
<Unit> com.mojang.serialization.DataResult
<com.mojang.serialization.MapLike<Unit>> com.mojang.serialization.DataResult
<Consumer<BiConsumer<Unit, Unit>>> NullOps.getMapEntries
(Unit unit) com.mojang.serialization.DataResult
<Consumer<BiConsumer<Unit, Unit>>> NullOps.getMapEntries
(Unit unit) NullOps.getMapValues
(Unit unit) NullOps.getMapValues
(Unit unit) com.mojang.serialization.RecordBuilder
<Unit> NullOps.mapBuilder()
com.mojang.serialization.DataResult
<Unit> NullOps.mergeToList
(Unit unit, List<Unit> list) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToList
(Unit unit, Unit unit2) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit unit, com.mojang.serialization.MapLike<Unit> mapLike) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit unit, Map<Unit, Unit> map) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit unit, Unit unit2, Unit unit3) Modifier and TypeMethodDescriptionprotected Unit
protected com.mojang.serialization.DataResult
<Unit> <U> U
com.mojang.serialization.DataResult
<Boolean> NullOps.getBooleanValue
(Unit unit) com.mojang.serialization.DataResult
<ByteBuffer> NullOps.getByteBuffer
(Unit unit) com.mojang.serialization.DataResult
<IntStream> NullOps.getIntStream
(Unit unit) com.mojang.serialization.DataResult
<LongStream> NullOps.getLongStream
(Unit unit) com.mojang.serialization.DataResult
<com.mojang.serialization.MapLike<Unit>> com.mojang.serialization.DataResult
<Consumer<BiConsumer<Unit, Unit>>> NullOps.getMapEntries
(Unit unit) NullOps.getMapValues
(Unit unit) com.mojang.serialization.DataResult
<Number> NullOps.getNumberValue
(Unit unit) com.mojang.serialization.DataResult
<String> NullOps.getStringValue
(Unit unit) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToList
(Unit unit, List<Unit> list) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToList
(Unit unit, Unit unit2) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit unit, com.mojang.serialization.MapLike<Unit> mapLike) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit unit, Map<Unit, Unit> map) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit unit, Unit unit2, Unit unit3) Modifier and TypeMethodDescriptionNullOps.createList
(Stream<Unit> stream) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToList
(Unit unit, List<Unit> list) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit unit, com.mojang.serialization.MapLike<Unit> mapLike) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit unit, Map<Unit, Unit> map) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit unit, Map<Unit, Unit> map) ModifierConstructorDescriptionNullMapBuilder
(com.mojang.serialization.DynamicOps<Unit> dynamicOps)