Class TimeMarker.Builder
java.lang.Object
dev.wyck.level.dimension.clock.TimeMarker.Builder
- Enclosing interface:
TimeMarker
Builder for
TimeMarker.- Since:
- 3.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the time marker.key(ResourceKey key) Sets the key of the time marker.showInCommands(boolean showInCommands) Sets whether the time marker should be shown in the /time command.ticks(int ticks) Sets the number of ticks the time marker represents.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
key
Sets the key of the time marker.- Parameters:
key- the key of the time marker- Returns:
- this builder
- Since:
- 3.2.0
-
ticks
Sets the number of ticks the time marker represents.- Parameters:
ticks- the number of ticks the time marker represents- Returns:
- this builder
- Since:
- 3.2.0
-
showInCommands
Sets whether the time marker should be shown in the /time command.- Parameters:
showInCommands- whether the time marker should be shown in the /time command- Returns:
- this builder
- Since:
- 3.2.0
-
build
Builds the time marker.- Returns:
- the time marker
- Since:
- 3.2.0
-