Uses of Record Class
net.minecraft.world.clock.WorldClock
Packages that use WorldClock
Package
Description
-
Uses of WorldClock in net.minecraft.client
Fields in net.minecraft.client with type parameters of type WorldClockModifier and TypeFieldDescriptionprivate final Map<Holder<WorldClock>, ClientClockManager.ClockInstance> ClientClockManager.clocksMethod parameters in net.minecraft.client with type arguments of type WorldClockModifier and TypeMethodDescriptionprivate ClientClockManager.ClockInstanceClientClockManager.getInstance(Holder<WorldClock> definition) longClientClockManager.getTotalTicks(Holder<WorldClock> definition) voidClientClockManager.handleUpdates(long gameTime, Map<Holder<WorldClock>, ClockState> updates) -
Uses of WorldClock in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return types with arguments of type WorldClockModifier and TypeMethodDescriptionstatic Holder.Reference<WorldClock> ResourceArgument.getClock(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) -
Uses of WorldClock in net.minecraft.core.registries
Fields in net.minecraft.core.registries with type parameters of type WorldClockModifier and TypeFieldDescriptionstatic final ResourceKey<Registry<WorldClock>> Registries.WORLD_CLOCK -
Uses of WorldClock in net.minecraft.gametest.framework
Fields in net.minecraft.gametest.framework with type parameters of type WorldClockModifier and TypeFieldDescriptionprivate final Holder<WorldClock> TestEnvironmentDefinition.ClockTime.clockThe field for theclockrecord component.Methods in net.minecraft.gametest.framework that return types with arguments of type WorldClockModifier and TypeMethodDescriptionTestEnvironmentDefinition.ClockTime.clock()Returns the value of theclockrecord component.Constructor parameters in net.minecraft.gametest.framework with type arguments of type WorldClockModifierConstructorDescriptionClockTime(Holder<WorldClock> clock, int time) Creates an instance of aClockTimerecord class. -
Uses of WorldClock in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game with type parameters of type WorldClockModifier and TypeFieldDescriptionprivate final Map<Holder<WorldClock>, ClockState> ClientboundSetTimePacket.clockUpdatesThe field for theclockUpdatesrecord component.Methods in net.minecraft.network.protocol.game that return types with arguments of type WorldClockModifier and TypeMethodDescriptionClientboundSetTimePacket.clockUpdates()Returns the value of theclockUpdatesrecord component.Constructor parameters in net.minecraft.network.protocol.game with type arguments of type WorldClockModifierConstructorDescriptionClientboundSetTimePacket(long gameTime, Map<Holder<WorldClock>, ClockState> clockUpdates) Creates an instance of aClientboundSetTimePacketrecord class. -
Uses of WorldClock in net.minecraft.server.commands
Methods in net.minecraft.server.commands that return types with arguments of type WorldClockModifier and TypeMethodDescriptionTimeCommand.ClockGetter.getClock(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) private static Holder<WorldClock> TimeCommand.getDefaultClock(CommandSourceStack source) Method parameters in net.minecraft.server.commands with type arguments of type WorldClockModifier and TypeMethodDescriptionprivate static intTimeCommand.addTime(CommandSourceStack source, Holder<WorldClock> clock, int time) private static intTimeCommand.queryTime(CommandSourceStack source, Holder<WorldClock> clock) private static intTimeCommand.queryTimelineRepetitions(CommandSourceStack source, Holder<WorldClock> clock, Holder<Timeline> timeline) private static intTimeCommand.queryTimelineTicks(CommandSourceStack source, Holder<WorldClock> clock, Holder<Timeline> timeline) private static intTimeCommand.setPaused(CommandSourceStack source, Holder<WorldClock> clock, boolean paused) private static intTimeCommand.setTimeToTimeMarker(CommandSourceStack source, Holder<WorldClock> clock, ResourceKey<ClockTimeMarker> timeMarkerId) private static intTimeCommand.setTotalTicks(CommandSourceStack source, Holder<WorldClock> clock, int totalTicks) private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> TimeCommand.suggestTimelines(CommandSourceStack source, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Holder<WorldClock> clock) private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> TimeCommand.suggestTimeMarkers(CommandSourceStack source, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Holder<WorldClock> clock) -
Uses of WorldClock in net.minecraft.world.clock
Fields in net.minecraft.world.clock with type parameters of type WorldClockModifier and TypeFieldDescriptionprivate final Holder<WorldClock> ClockTimeMarker.clockThe field for theclockrecord component.private final Map<Holder<WorldClock>, ClockState> PackedClockStates.clocksThe field for theclocksrecord component.private final Map<Holder<WorldClock>, ServerClockManager.ClockInstance> ServerClockManager.clocksstatic final com.mojang.serialization.Codec<Holder<WorldClock>> WorldClock.CODECstatic final com.mojang.serialization.Codec<WorldClock> WorldClock.DIRECT_CODECstatic final ResourceKey<WorldClock> WorldClocks.OVERWORLDstatic final StreamCodec<RegistryFriendlyByteBuf, Holder<WorldClock>> WorldClock.STREAM_CODECstatic final ResourceKey<WorldClock> WorldClocks.THE_ENDMethods in net.minecraft.world.clock that return types with arguments of type WorldClockModifier and TypeMethodDescriptionClockTimeMarker.clock()Returns the value of theclockrecord component.PackedClockStates.clocks()Returns the value of theclocksrecord component.private static ResourceKey<WorldClock> Method parameters in net.minecraft.world.clock with type arguments of type WorldClockModifier and TypeMethodDescriptionvoidServerClockManager.addTicks(Holder<WorldClock> clock, int ticks) static voidWorldClocks.bootstrap(BootstrapContext<WorldClock> context) ServerClockManager.commandTimeMarkersForClock(Holder<WorldClock> clock) default floatClockManager.getFractionalTick(Holder<WorldClock> definition) floatServerClockManager.getFractionalTick(Holder<WorldClock> definition) private ServerClockManager.ClockInstanceServerClockManager.getInstance(Holder<WorldClock> definition) floatServerClockManager.getSpeed(Holder<WorldClock> definition) Returns the current ratio between game ticks and clock ticks.longClockManager.getTotalTicks(Holder<WorldClock> definition) longServerClockManager.getTotalTicks(Holder<WorldClock> definition) booleanServerClockManager.isAtTimeMarker(Holder<WorldClock> clock, ResourceKey<ClockTimeMarker> timeMarkerId) private voidServerClockManager.modifyClock(Holder<WorldClock> clock, Consumer<? super ServerClockManager.ClockInstance> action) voidServerClockManager.setPaused(Holder<WorldClock> clock, boolean paused) default voidClockManager.setSpeed(Holder<WorldClock> definition, float speed) voidServerClockManager.setSpeed(Holder<WorldClock> definition, float speed) This allows mods to set the rate at which a specific clock advances relative to game time.voidServerClockManager.setTotalTicks(Holder<WorldClock> clock, long totalTicks) booleanServerClockManager.skipToTimeMarker(Holder<WorldClock> clock, ResourceKey<ClockTimeMarker> timeMarkerId) Constructor parameters in net.minecraft.world.clock with type arguments of type WorldClockModifierConstructorDescriptionClockTimeMarker(Holder<WorldClock> clock, int ticks, Optional<Integer> periodTicks, boolean showInCommands) Creates an instance of aClockTimeMarkerrecord class.PackedClockStates(Map<Holder<WorldClock>, ClockState> clocks) Creates an instance of aPackedClockStatesrecord class. -
Uses of WorldClock in net.minecraft.world.level
Method parameters in net.minecraft.world.level with type arguments of type WorldClockModifier and TypeMethodDescriptionprivate longLevel.getClockTimeTicks(Optional<? extends Holder<WorldClock>> clock) -
Uses of WorldClock in net.minecraft.world.level.dimension
Fields in net.minecraft.world.level.dimension with type parameters of type WorldClockModifier and TypeFieldDescriptionprivate final Optional<Holder<WorldClock>> DimensionType.defaultClockThe field for thedefaultClockrecord component.Methods in net.minecraft.world.level.dimension that return types with arguments of type WorldClockModifier and TypeMethodDescriptionDimensionType.defaultClock()Returns the value of thedefaultClockrecord component.Constructor parameters in net.minecraft.world.level.dimension with type arguments of type WorldClockModifierConstructorDescriptionDimensionType(boolean hasFixedTime, boolean hasSkyLight, boolean hasCeiling, boolean hasEnderDragonFight, double coordinateScale, int minY, int height, int logicalHeight, TagKey<Block> infiniburn, float ambientLight, DimensionType.MonsterSettings monsterSettings, DimensionType.Skybox skybox, DimensionType.CardinalLightType cardinalLightType, EnvironmentAttributeMap attributes, HolderSet<Timeline> timelines, Optional<Holder<WorldClock>> defaultClock) Creates an instance of aDimensionTyperecord class. -
Uses of WorldClock in net.minecraft.world.level.storage.loot.predicates
Fields in net.minecraft.world.level.storage.loot.predicates with type parameters of type WorldClockModifier and TypeFieldDescriptionprivate final Holder<WorldClock> TimeCheck.Builder.clockprivate final Holder<WorldClock> TimeCheck.clockThe field for theclockrecord component.Methods in net.minecraft.world.level.storage.loot.predicates that return types with arguments of type WorldClockModifier and TypeMethodDescriptionTimeCheck.clock()Returns the value of theclockrecord component.Method parameters in net.minecraft.world.level.storage.loot.predicates with type arguments of type WorldClockModifier and TypeMethodDescriptionstatic TimeCheck.BuilderTimeCheck.time(Holder<WorldClock> clock, IntRange value) Constructor parameters in net.minecraft.world.level.storage.loot.predicates with type arguments of type WorldClockModifierConstructorDescriptionBuilder(Holder<WorldClock> clock, IntRange value) Creates an instance of aTimeCheckrecord class. -
Uses of WorldClock in net.minecraft.world.timeline
Fields in net.minecraft.world.timeline with type parameters of type WorldClockModifier and TypeFieldDescriptionprivate final Holder<WorldClock> AttributeTrackSampler.clockprivate final Holder<WorldClock> Timeline.Builder.clockprivate final Holder<WorldClock> Timeline.clockMethods in net.minecraft.world.timeline that return types with arguments of type WorldClockMethod parameters in net.minecraft.world.timeline with type arguments of type WorldClockModifier and TypeMethodDescriptionAttributeTrack.bakeSampler(EnvironmentAttribute<Value> attribute, Holder<WorldClock> clock, Optional<Integer> periodTicks, ClockManager clockManager) static Timeline.BuilderTimeline.builder(Holder<WorldClock> clock) Constructor parameters in net.minecraft.world.timeline with type arguments of type WorldClockModifierConstructorDescriptionAttributeTrackSampler(Holder<WorldClock> clock, Optional<Integer> periodTicks, AttributeModifier<Value, Argument> modifier, KeyframeTrack<Argument> argumentTrack, LerpFunction<Argument> argumentLerp, ClockManager clockManager) privateBuilder(Holder<WorldClock> clock) privateTimeline(Holder<WorldClock> clock, Optional<Integer> periodTicks, Map<EnvironmentAttribute<?>, AttributeTrack<?, ?>> tracks, Map<ResourceKey<ClockTimeMarker>, Timeline.TimeMarkerInfo> timeMarkers) -
Uses of WorldClock in net.neoforged.neoforge.common.util
Method parameters in net.neoforged.neoforge.common.util with type arguments of type WorldClockModifier and TypeMethodDescriptionvoidClockAdjustment.Absolute.apply(ServerClockManager clockManager, Holder<WorldClock> clock) voidClockAdjustment.apply(ServerClockManager clockManager, Holder<WorldClock> clock) voidClockAdjustment.Marker.apply(ServerClockManager clockManager, Holder<WorldClock> clock) voidClockAdjustment.Relative.apply(ServerClockManager clockManager, Holder<WorldClock> clock)