Uses of Enum Class
net.minecraft.util.Unit
Packages that use Unit
Package
Description
-
Uses of Unit in net.minecraft.client
Fields in net.minecraft.client with type parameters of type UnitModifier and TypeFieldDescriptionprivate static final CompletableFuture
<Unit> Minecraft.RESOURCE_RELOAD_INITIAL_TASK
-
Uses of Unit in net.minecraft.core.component
Fields in net.minecraft.core.component with type parameters of type UnitModifier and TypeFieldDescriptionstatic final DataComponentType
<Unit> DataComponents.CREATIVE_SLOT_LOCK
static final DataComponentType
<Unit> DataComponents.FIRE_RESISTANT
static final DataComponentType
<Unit> DataComponents.HIDE_ADDITIONAL_TOOLTIP
static final DataComponentType
<Unit> DataComponents.HIDE_TOOLTIP
static final DataComponentType
<Unit> DataComponents.INTANGIBLE_PROJECTILE
-
Uses of Unit in net.minecraft.network.chat
Fields in net.minecraft.network.chat with type parameters of type Unit -
Uses of Unit in net.minecraft.server
Fields in net.minecraft.server with type parameters of type UnitModifier and TypeFieldDescriptionprivate static final CompletableFuture
<Unit> ReloadableServerResources.DATA_RELOAD_INITIAL_TASK
-
Uses of Unit in net.minecraft.server.level
Fields in net.minecraft.server.level with type parameters of type UnitModifier and TypeFieldDescriptionstatic final TicketType
<Unit> TicketType.DRAGON
private final Map
<ProcessorHandle<?>, ChunkTaskPriorityQueue<? extends Function<ProcessorHandle<Unit>, ?>>> ChunkTaskPriorityQueueSorter.queues
static final TicketType
<Unit> TicketType.START
(package private) final Function
<ProcessorHandle<Unit>, T> ChunkTaskPriorityQueueSorter.Message.task
Methods in net.minecraft.server.level that return types with arguments of type UnitModifier and TypeMethodDescriptionprivate <T> ChunkTaskPriorityQueue
<Function<ProcessorHandle<Unit>, T>> ChunkTaskPriorityQueueSorter.getQueue
(ProcessorHandle<T> processor) com.mojang.datafixers.util.Either
<Player.BedSleepingProblem, Unit> ServerPlayer.startSleepInBed
(BlockPos at) Method parameters in net.minecraft.server.level with type arguments of type UnitModifier and TypeMethodDescriptionstatic <T> ChunkTaskPriorityQueueSorter.Message
<T> ChunkTaskPriorityQueueSorter.message
(Function<ProcessorHandle<Unit>, T> task, long pos, IntSupplier level) static <T> ChunkTaskPriorityQueueSorter.Message
<T> ChunkTaskPriorityQueueSorter.message
(GenerationChunkHolder chunk, Function<ProcessorHandle<Unit>, T> task) private <T> void
ChunkTaskPriorityQueueSorter.pollTask
(ChunkTaskPriorityQueue<Function<ProcessorHandle<Unit>, T>> queue, ProcessorHandle<T> processor) private <T> void
ChunkTaskPriorityQueueSorter.submit
(ProcessorHandle<T> processor, Function<ProcessorHandle<Unit>, T> task, long chunkPos, IntSupplier level, boolean flush) Constructor parameters in net.minecraft.server.level with type arguments of type UnitModifierConstructorDescription(package private)
Message
(Function<ProcessorHandle<Unit>, T> task, long pos, IntSupplier level) -
Uses of Unit in net.minecraft.server.packs.resources
Fields in net.minecraft.server.packs.resources with type parameters of type UnitModifier and TypeFieldDescriptionprotected final CompletableFuture
<Unit> SimpleReloadInstance.allPreparations
Method parameters in net.minecraft.server.packs.resources with type arguments of type UnitModifier and TypeMethodDescriptionstatic ReloadInstance
SimpleReloadInstance.create
(ResourceManager resourceManager, List<PreparableReloadListener> listeners, Executor backgroundExecutor, Executor gameExecutor, CompletableFuture<Unit> alsoWaitedFor, boolean profiled) ReloadableResourceManager.createReload
(Executor backgroundExecutor, Executor gameExecutor, CompletableFuture<Unit> waitingFor, List<PackResources> resourcePacks) static SimpleReloadInstance
<Void> SimpleReloadInstance.of
(ResourceManager resourceManager, List<PreparableReloadListener> listeners, Executor backgroundExecutor, Executor gameExecutor, CompletableFuture<Unit> alsoWaitedFor) Constructor parameters in net.minecraft.server.packs.resources with type arguments of type UnitModifierConstructorDescriptionProfiledReloadInstance
(ResourceManager resourceManager, List<PreparableReloadListener> listeners, Executor backgroundExecutor, Executor gameExecutor, CompletableFuture<Unit> alsoWaitedFor) protected
SimpleReloadInstance
(Executor backgroundExecutor, Executor gameExecutor, ResourceManager resourceManager, List<PreparableReloadListener> listeners, SimpleReloadInstance.StateFactory<S> stateFactory, CompletableFuture<Unit> alsoWaitedFor) -
Uses of Unit in net.minecraft.util
Fields in net.minecraft.util with type parameters of type UnitMethods in net.minecraft.util that return UnitModifier and TypeMethodDescriptionprotected Unit
NullOps.createBoolean
(boolean value) NullOps.createByte
(byte value) NullOps.createByteList
(ByteBuffer input) NullOps.createDouble
(double value) NullOps.createFloat
(float value) NullOps.createInt
(int value) NullOps.createIntList
(IntStream input) NullOps.createList
(Stream<Unit> input) NullOps.createLong
(long value) NullOps.createLongList
(LongStream input) NullOps.createNumeric
(Number value) NullOps.createShort
(short value) NullOps.createString
(String value) NullOps.empty()
NullOps.emptyList()
NullOps.emptyMap()
protected Unit
NullOps.NullMapBuilder.initBuilder()
static Unit
Returns the enum constant of this class with the specified name.static Unit[]
Unit.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.minecraft.util that return types with arguments of type UnitModifier 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 input) com.mojang.serialization.DataResult
<Consumer<BiConsumer<Unit, Unit>>> NullOps.getMapEntries
(Unit input) NullOps.getMapValues
(Unit input) NullOps.getMapValues
(Unit input) com.mojang.serialization.RecordBuilder
<Unit> NullOps.mapBuilder()
com.mojang.serialization.DataResult
<Unit> NullOps.mergeToList
(Unit list, List<Unit> values) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToList
(Unit list, Unit value) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit map, com.mojang.serialization.MapLike<Unit> values) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit map, Map<Unit, Unit> values) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit map, Unit key, Unit value) Methods in net.minecraft.util with parameters of type UnitModifier and TypeMethodDescriptionprotected Unit
protected com.mojang.serialization.DataResult
<Unit> <U> U
com.mojang.serialization.DataResult
<Boolean> NullOps.getBooleanValue
(Unit input) com.mojang.serialization.DataResult
<ByteBuffer> NullOps.getByteBuffer
(Unit input) com.mojang.serialization.DataResult
<IntStream> NullOps.getIntStream
(Unit input) com.mojang.serialization.DataResult
<LongStream> NullOps.getLongStream
(Unit input) com.mojang.serialization.DataResult
<com.mojang.serialization.MapLike<Unit>> com.mojang.serialization.DataResult
<Consumer<BiConsumer<Unit, Unit>>> NullOps.getMapEntries
(Unit input) NullOps.getMapValues
(Unit input) com.mojang.serialization.DataResult
<Number> NullOps.getNumberValue
(Unit input) com.mojang.serialization.DataResult
<String> NullOps.getStringValue
(Unit input) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToList
(Unit list, List<Unit> values) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToList
(Unit list, Unit value) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit map, com.mojang.serialization.MapLike<Unit> values) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit map, Map<Unit, Unit> values) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit map, Unit key, Unit value) Method parameters in net.minecraft.util with type arguments of type UnitModifier and TypeMethodDescriptionNullOps.createList
(Stream<Unit> input) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToList
(Unit list, List<Unit> values) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit map, com.mojang.serialization.MapLike<Unit> values) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit map, Map<Unit, Unit> values) com.mojang.serialization.DataResult
<Unit> NullOps.mergeToMap
(Unit map, Map<Unit, Unit> values) Constructor parameters in net.minecraft.util with type arguments of type Unit -
Uses of Unit in net.minecraft.world.entity.ai.memory
Fields in net.minecraft.world.entity.ai.memory with type parameters of type UnitModifier 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_RECOVERING
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.world.entity.player
Methods in net.minecraft.world.entity.player that return types with arguments of type UnitModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either
<Player.BedSleepingProblem, Unit> Player.startSleepInBed
(BlockPos bedPos) -
Uses of Unit in net.minecraft.world.item
Methods in net.minecraft.world.item that return types with arguments of type UnitModifier and TypeMethodDescriptionstatic com.mojang.serialization.DataResult
<Unit> ItemStack.validateComponents
(DataComponentMap components) -
Uses of Unit in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment with type parameters of type UnitModifier and TypeFieldDescriptionstatic final DataComponentType
<Unit> EnchantmentEffectComponents.PREVENT_ARMOR_CHANGE
static final DataComponentType
<Unit> EnchantmentEffectComponents.PREVENT_EQUIPMENT_DROP
Method parameters in net.minecraft.world.item.enchantment with type arguments of type UnitModifier and TypeMethodDescriptionEnchantment.Builder.withEffect
(DataComponentType<Unit> componentType) -
Uses of Unit in net.neoforged.neoforge.client.model.renderable
Methods in net.neoforged.neoforge.client.model.renderable that return types with arguments of type UnitModifier and TypeMethodDescriptionBakedModelRenderable.withContext
(ModelData modelData) default IRenderable
<Unit> IRenderable.withContext
(T context) Wraps the current renderable along with a context. -
Uses of Unit in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event that return types with arguments of type UnitModifier and TypeMethodDescriptionstatic com.mojang.datafixers.util.Either
<Player.BedSleepingProblem, Unit> EventHooks.canPlayerStartSleeping
(ServerPlayer player, BlockPos pos, com.mojang.datafixers.util.Either<Player.BedSleepingProblem, Unit> vanillaResult) Method parameters in net.neoforged.neoforge.event with type arguments of type UnitModifier and TypeMethodDescriptionstatic com.mojang.datafixers.util.Either
<Player.BedSleepingProblem, Unit> EventHooks.canPlayerStartSleeping
(ServerPlayer player, BlockPos pos, com.mojang.datafixers.util.Either<Player.BedSleepingProblem, Unit> vanillaResult)