Uses of Enum Class
net.minecraft.util.Unit
Packages that use 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
Fields in net.minecraft.client with type parameters of type UnitModifier and TypeFieldDescriptionprivate static final CompletableFuture<Unit> MinecraftClient.COMPLETED_UNIT_FUTURE -
Uses of Unit in net.minecraft.component
Fields in net.minecraft.component with type parameters of type UnitModifier and TypeFieldDescriptionstatic final ComponentType<Unit> DataComponentTypes.CREATIVE_SLOT_LOCKstatic final ComponentType<Unit> DataComponentTypes.GLIDERstatic final ComponentType<Unit> DataComponentTypes.INTANGIBLE_PROJECTILEstatic final ComponentType<Unit> EnchantmentEffectComponentTypes.PREVENT_ARMOR_CHANGEstatic final ComponentType<Unit> EnchantmentEffectComponentTypes.PREVENT_EQUIPMENT_DROPstatic final ComponentType<Unit> DataComponentTypes.UNBREAKABLE -
Uses of Unit in net.minecraft.enchantment
Method parameters in net.minecraft.enchantment with type arguments of type Unit -
Uses of Unit in net.minecraft.entity.ai.brain
Fields in net.minecraft.entity.ai.brain with type parameters of type UnitModifier and TypeFieldDescriptionstatic final MemoryModuleType<Unit> MemoryModuleType.BREEZE_JUMP_COOLDOWNstatic final MemoryModuleType<Unit> MemoryModuleType.BREEZE_JUMP_INHALINGstatic final MemoryModuleType<Unit> MemoryModuleType.BREEZE_LEAVING_WATERstatic final MemoryModuleType<Unit> MemoryModuleType.BREEZE_SHOOTstatic final MemoryModuleType<Unit> MemoryModuleType.BREEZE_SHOOT_CHARGINGstatic final MemoryModuleType<Unit> MemoryModuleType.BREEZE_SHOOT_COOLDOWNstatic final MemoryModuleType<Unit> MemoryModuleType.BREEZE_SHOOT_RECOVERstatic final MemoryModuleType<Unit> MemoryModuleType.DIG_COOLDOWNstatic final MemoryModuleType<Unit> MemoryModuleType.IS_EMERGINGstatic final MemoryModuleType<Unit> MemoryModuleType.IS_IN_WATERstatic final MemoryModuleType<Unit> MemoryModuleType.IS_PREGNANTstatic final MemoryModuleType<Unit> MemoryModuleType.IS_SNIFFINGstatic final MemoryModuleType<Unit> MemoryModuleType.RECENT_PROJECTILEstatic final MemoryModuleType<Unit> MemoryModuleType.ROAR_SOUND_COOLDOWNstatic final MemoryModuleType<Unit> MemoryModuleType.ROAR_SOUND_DELAYstatic final MemoryModuleType<Unit> MemoryModuleType.SNIFF_COOLDOWNstatic final MemoryModuleType<Unit> MemoryModuleType.SONIC_BOOM_COOLDOWNstatic final MemoryModuleType<Unit> MemoryModuleType.SONIC_BOOM_SOUND_COOLDOWNstatic final MemoryModuleType<Unit> MemoryModuleType.SONIC_BOOM_SOUND_DELAYstatic final MemoryModuleType<Unit> MemoryModuleType.TOUCH_COOLDOWNstatic final MemoryModuleType<Unit> MemoryModuleType.VIBRATION_COOLDOWN -
Uses of Unit in net.minecraft.entity.player
Methods in net.minecraft.entity.player that return types with arguments of type UnitModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason, Unit> Tries to start sleeping on a block. -
Uses of Unit in net.minecraft.item
Methods in net.minecraft.item that return types with arguments of type UnitModifier and TypeMethodDescriptionstatic com.mojang.serialization.DataResult<Unit> ItemStack.validateComponents(ComponentMap components) -
Uses of Unit in net.minecraft.network.state
Method parameters in net.minecraft.network.state with type arguments of type UnitModifier and TypeMethodDescriptionprivate static <L extends PacketListener,B extends ByteBuf>
NetworkStateFactory<L, B> NetworkStateBuilder.build(NetworkPhase type, NetworkSide side, Consumer<NetworkStateBuilder<L, B, Unit>> registrar) static <T extends ServerPacketListener,B extends ByteBuf>
NetworkStateFactory<T, B> NetworkStateBuilder.c2s(NetworkPhase type, Consumer<NetworkStateBuilder<T, B, Unit>> registrar) static <T extends ClientPacketListener,B extends ByteBuf>
NetworkStateFactory<T, B> NetworkStateBuilder.s2c(NetworkPhase type, Consumer<NetworkStateBuilder<T, B, Unit>> registrar) -
Uses of Unit in net.minecraft.resource
Fields in net.minecraft.resource with type parameters of type UnitModifier and TypeFieldDescription(package private) final CompletableFuture<Unit> SimpleResourceReload.prepareStageFutureMethod parameters in net.minecraft.resource with type arguments of type UnitModifier and TypeMethodDescriptionstatic ResourceReloadSimpleResourceReload.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 givenpacksand start a reload.static ResourceReloadProfiledResourceReload.start(ResourceManager manager, List<ResourceReloader> reloaders, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage) static ResourceReloadSimpleResourceReload.start(ResourceManager manager, List<ResourceReloader> reloaders, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage, boolean profiled) Starts a resource reload with the content from themanagersupplied to thereloaders. -
Uses of Unit in net.minecraft.server
Fields in net.minecraft.server with type parameters of type UnitModifier and TypeFieldDescriptionprivate static final CompletableFuture<Unit> DataPackContents.COMPLETED_UNIT -
Uses of Unit in net.minecraft.server.network
Methods in net.minecraft.server.network that return types with arguments of type UnitModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either<PlayerEntity.SleepFailureReason, Unit> Tries to start sleeping on a block. -
Uses of Unit in net.minecraft.text
Fields in net.minecraft.text with type parameters of type UnitModifier and TypeFieldDescriptionStringVisitable.TERMINATE_VISITConvenience object indicating the termination of a string visit. -
Uses of Unit in net.minecraft.util
Fields in net.minecraft.util with type parameters of type UnitModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Unit> Unit.CODECstatic final PacketCodec<ByteBuf, Unit> Unit.PACKET_CODECMethods in net.minecraft.util that return Unit -
Uses of Unit in net.minecraft.util.dynamic
Methods in net.minecraft.util.dynamic that return UnitModifier and TypeMethodDescriptionprotected Unitprotected UnitNullOps.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 UnitNullOps.NullListBuilder.initBuilder()protected UnitNullOps.NullMapBuilder.initBuilder()Methods in net.minecraft.util.dynamic that return types with arguments of type UnitModifier and TypeMethodDescriptionprotected com.mojang.serialization.DataResult<Unit> protected 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.ListBuilder<Unit> NullOps.listBuilder()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) Methods in net.minecraft.util.dynamic with parameters of type UnitModifier and TypeMethodDescriptionprotected Unitprotected Unitprotected com.mojang.serialization.DataResult<Unit> protected com.mojang.serialization.DataResult<Unit> <U> Ucom.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) Method parameters in net.minecraft.util.dynamic with type arguments of type UnitModifier 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) Constructor parameters in net.minecraft.util.dynamic with type arguments of type UnitModifierConstructorDescriptionNullListBuilder(com.mojang.serialization.DynamicOps<Unit> ops) NullMapBuilder(com.mojang.serialization.DynamicOps<Unit> ops)