Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- adaptLocation(Object) - Method in interface com.jtprince.coordinateoffset.api.CoordinateOffsetAPI
-
Adapt a platform-specific location object (such as a Bukkit
Location) into anOffsetLocation. - adaptPlayer(Object) - Method in interface com.jtprince.coordinateoffset.api.CoordinateOffsetAPI
-
Adapt a platform-specific player object (such as a Bukkit
Player) into anOffsetPlayer. - affectedProvider() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.SetCommand
-
Returns the value of the
affectedProviderrecord component. - align(int, int) - Static method in interface com.jtprince.coordinateoffset.Offset
-
Align offset components to the nearest N chunks and create a new
ScalableOffset. - align(int, int, int) - Static method in interface com.jtprince.coordinateoffset.Offset
-
Deprecated, for removal: This API element is subject to removal in a future version.
- ALIGN_DEFAULT_OVERWORLD - Static variable in interface com.jtprince.coordinateoffset.Offset
-
Deprecated, for removal: This API element is subject to removal in a future version.Alignment is now a server configuration,
offsetsAreMultiplesOfBlocks. Check the configured value withCoordinateOffset.api().getConfig().getOffsetsAreMultiplesOf();instead of using this hardcoded constant. - alignComponent(int, int) - Static method in interface com.jtprince.coordinateoffset.Offset
-
Align a single component (X- or Z-value) to the nearest multiple of 16*2^N chunks.
- alignComponentToConfiguredMultiple(int) - Static method in interface com.jtprince.coordinateoffset.Offset
-
Align a single component (X- or Z-value) to the nearest multiple of the
offsetsAreMultiplesOfBlocksvalue that has been configured globally for the server. - api() - Static method in class com.jtprince.coordinateoffset.api.CoordinateOffset
-
Get the singleton instance of the CoordinateOffsetAPI.
- appliesTo(OffsetProviderContext) - Method in interface com.jtprince.coordinateoffset.config.OffsetProviderOverrideConfig
- apply(FixedOffset) - Method in interface com.jtprince.coordinateoffset.adapter.OffsetLocation
-
Apply an offset to this location.
- apply(T) - Method in record class com.jtprince.coordinateoffset.FixedOffset
- apply(T) - Method in interface com.jtprince.coordinateoffset.Offset
-
Apply this offset to a location.
- apply(T) - Method in record class com.jtprince.coordinateoffset.ScalableOffset
- audience() - Method in record class com.jtprince.coordinateoffset.command.OffsetCommandSender
-
Returns the value of the
audiencerecord component. - audiences() - Method in record class com.jtprince.coordinateoffset.command.OffsetCommandSender
B
- BedrockBypass() - Constructor for record class com.jtprince.coordinateoffset.OffsetData.Source.BedrockBypass
-
Creates an instance of a
BedrockBypassrecord class.
C
- chunkX() - Method in record class com.jtprince.coordinateoffset.FixedOffset
- chunkZ() - Method in record class com.jtprince.coordinateoffset.FixedOffset
- com.jtprince.coordinateoffset - package com.jtprince.coordinateoffset
- com.jtprince.coordinateoffset.adapter - package com.jtprince.coordinateoffset.adapter
- com.jtprince.coordinateoffset.api - package com.jtprince.coordinateoffset.api
- com.jtprince.coordinateoffset.command - package com.jtprince.coordinateoffset.command
- com.jtprince.coordinateoffset.config - package com.jtprince.coordinateoffset.config
- com.jtprince.coordinateoffset.provider - package com.jtprince.coordinateoffset.provider
- command() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.SetCommand
-
Returns the value of the
commandrecord component. - COMMAND_REGENERATE - Enum constant in enum class com.jtprince.coordinateoffset.provider.OffsetProviderContext.ProvideReason
-
A player's offset is being regenerated immediately because someone executed a command (such as
/offset regenerate). - COMMAND_SET - Enum constant in enum class com.jtprince.coordinateoffset.provider.OffsetProviderContext.ProvideReason
-
A player's offset is being set immediately because someone executed a command (such as
/offset set). - context() - Method in record class com.jtprince.coordinateoffset.OffsetData
-
Returns the value of the
contextrecord component. - CoordinateOffset - Class in com.jtprince.coordinateoffset.api
-
Singleton holder for the CoordinateOffsetAPI instance.
- CoordinateOffset() - Constructor for class com.jtprince.coordinateoffset.api.CoordinateOffset
- CoordinateOffsetAPI - Interface in com.jtprince.coordinateoffset.api
-
API for the CoordinateOffset plugin.
- CoordinateOffsetConfig - Interface in com.jtprince.coordinateoffset.config
-
Configuration interface for CoordinateOffset.
- CoordinateOffsetProviderConfig - Interface in com.jtprince.coordinateoffset.config
-
Configuration interface for Offset Providers in CoordinateOffset.
D
- DEATH_RESPAWN - Enum constant in enum class com.jtprince.coordinateoffset.provider.OffsetProviderContext.ProvideReason
-
A player's offset is being generated because they died and are about to respawn.
E
- equals(Object) - Method in record class com.jtprince.coordinateoffset.command.OffsetCommandSender
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jtprince.coordinateoffset.FixedOffset
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jtprince.coordinateoffset.OffsetChange
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jtprince.coordinateoffset.OffsetData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.BedrockBypass
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.PermissionBypass
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.PluginSet
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.Provider
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.SetCommand
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jtprince.coordinateoffset.provider.OffsetProviderContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.jtprince.coordinateoffset.ScalableOffset
-
Indicates whether some other object is "equal to" this one.
F
- fixed(int, int) - Static method in interface com.jtprince.coordinateoffset.Offset
-
Create a new fixed offset with the given components.
- FixedOffset - Record Class in com.jtprince.coordinateoffset
-
Amount by which a player's clientside X and Z coordinates will appear shifted compared to their real position in a world.
- FixedOffset(int, int) - Constructor for record class com.jtprince.coordinateoffset.FixedOffset
-
Creates an instance of a
FixedOffsetrecord class.
G
- getAllOffsetProviderConfigs() - Method in interface com.jtprince.coordinateoffset.config.CoordinateOffsetProviderConfig
- getAllPermissions() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetPlayer
- getBypassByPermission() - Method in interface com.jtprince.coordinateoffset.config.CoordinateOffsetConfig
- getCommandSender() - Method in interface com.jtprince.coordinateoffset.command.OffsetCommand
-
Get who sent this command.
- getCommandSender() - Method in class com.jtprince.coordinateoffset.command.OffsetSetCommand
- getConfig() - Method in interface com.jtprince.coordinateoffset.api.CoordinateOffsetAPI
-
Get running configuration of the CoordinateOffset plugin.
- getConfigSection() - Method in interface com.jtprince.coordinateoffset.provider.OffsetProviderConfig
- getConfigVersion() - Method in interface com.jtprince.coordinateoffset.config.CoordinateOffsetConfig
- getCoordinateScale() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetWorld
-
Get the scaling factor for this world.
- getDefaultOffsetProviderConfig() - Method in interface com.jtprince.coordinateoffset.config.CoordinateOffsetProviderConfig
- getDistance(OffsetLocation) - Method in interface com.jtprince.coordinateoffset.adapter.OffsetLocation
-
Get the distance between two locations.
- getFixCollisionBamboo() - Method in interface com.jtprince.coordinateoffset.config.CoordinateOffsetConfig
- getFixCollisionDripstone() - Method in interface com.jtprince.coordinateoffset.config.CoordinateOffsetConfig
- getKey() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetWorld
-
Get the key of the world.
- getLocation() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetPlayer
- getName() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetPlayer
- getName() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetWorld
-
Get the name of the world.
- getObfuscateDebugPropertySubscriptions() - Method in interface com.jtprince.coordinateoffset.config.CoordinateOffsetConfig
- getObfuscateWorldBorder() - Method in interface com.jtprince.coordinateoffset.config.CoordinateOffsetConfig
- getOffset() - Method in class com.jtprince.coordinateoffset.command.OffsetSetCommand
-
Get the offset that was specified in the command.
- getOffset(OffsetPlayer) - Method in interface com.jtprince.coordinateoffset.api.CoordinateOffsetAPI
-
Get the currently active coordinate
Offsetfor a player. - getOffsetData(OffsetPlayer) - Method in interface com.jtprince.coordinateoffset.api.CoordinateOffsetAPI
-
Get information about a player's current offset, including the source from where the offset came and the context from which the offset was generated.
- getOffsetIsNotPersistentForProvider(OffsetPlayer) - Method in class com.jtprince.coordinateoffset.command.OffsetSetCommand
-
Check if the offset provider affected by this command has called
OffsetSetCommand.warnOffsetIsNotPersistentInProvider(com.jtprince.coordinateoffset.provider.OffsetProvider, com.jtprince.coordinateoffset.adapter.OffsetPlayer). - getOffsetProvider() - Method in interface com.jtprince.coordinateoffset.config.OffsetProviderOverrideConfig
-
The offset provider configuration to use when this override matches.
- getOffsetProviderOverrides() - Method in interface com.jtprince.coordinateoffset.config.CoordinateOffsetProviderConfig
- getOffsetsAreMultiplesOfBlocks() - Method in interface com.jtprince.coordinateoffset.config.CoordinateOffsetConfig
- getPermission() - Method in interface com.jtprince.coordinateoffset.config.OffsetProviderOverrideConfig
-
The permission node to match, or null to match any player.
- getPlatformLocationObject() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetLocation
-
Get the underlying platform-specific location object, for example a Bukkit Location.
- getPlatformPlayerObject() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetPlayer
-
Get the underlying platform-specific player object, for example a Bukkit Player.
- getPlatformPlayerObject() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetWorld
-
Get the underlying platform-specific player object, for example a Bukkit World.
- getPlayer() - Method in interface com.jtprince.coordinateoffset.config.OffsetProviderOverrideConfig
-
The name or UUID of a specific player to match, or null to match any player.
- getPlayer(UUID) - Method in interface com.jtprince.coordinateoffset.api.CoordinateOffsetAPI
-
Get an
OffsetPlayerinstance for a player currently connected to the server by their UUID. - getProviderClassName() - Method in interface com.jtprince.coordinateoffset.provider.OffsetProviderConfig
- getProviderConfig() - Method in interface com.jtprince.coordinateoffset.api.CoordinateOffsetAPI
-
Get Offset Providers configured in the CoordinateOffset configuration.
- getTargets() - Method in class com.jtprince.coordinateoffset.command.OffsetSetCommand
-
Get an immutable list of the player(s) whose offset is being set by a command.
- getUserDefinedProviderName() - Method in interface com.jtprince.coordinateoffset.provider.OffsetProviderConfig
- getUuid() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetPlayer
- getUuid() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetWorld
- getVerbose() - Method in interface com.jtprince.coordinateoffset.config.CoordinateOffsetConfig
- getWarnScaling(OffsetPlayer) - Method in class com.jtprince.coordinateoffset.command.OffsetSetCommand
-
Retrieve the scaling factor that will be applied to the offset for the specified player.
- getWorld() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetLocation
- getWorld() - Method in interface com.jtprince.coordinateoffset.config.OffsetProviderOverrideConfig
-
The name, key, or UUID of a world to match, or null to match any world.
- getWorldCoordinateScaleOverrides() - Method in interface com.jtprince.coordinateoffset.config.CoordinateOffsetConfig
- getWorldName() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetLocation
-
Deprecated.Use
OffsetLocation.getWorld()instead. - getX() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetLocation
- getY() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetLocation
- getZ() - Method in interface com.jtprince.coordinateoffset.adapter.OffsetLocation
H
- hashCode() - Method in record class com.jtprince.coordinateoffset.command.OffsetCommandSender
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jtprince.coordinateoffset.FixedOffset
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jtprince.coordinateoffset.OffsetChange
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jtprince.coordinateoffset.OffsetData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.BedrockBypass
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.PermissionBypass
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.PluginSet
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.Provider
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.SetCommand
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jtprince.coordinateoffset.provider.OffsetProviderContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.jtprince.coordinateoffset.ScalableOffset
-
Returns a hash code value for this object.
- hasPermission(String) - Method in interface com.jtprince.coordinateoffset.adapter.OffsetPlayer
I
- isPlayer(OffsetPlayer) - Method in record class com.jtprince.coordinateoffset.command.OffsetCommandSender
- isZero() - Method in record class com.jtprince.coordinateoffset.FixedOffset
- isZero() - Method in interface com.jtprince.coordinateoffset.Offset
-
Check if both components of this offset are zero, resulting in no coordinate offset.
- isZero() - Method in record class com.jtprince.coordinateoffset.ScalableOffset
J
- JOIN - Enum constant in enum class com.jtprince.coordinateoffset.provider.OffsetProviderContext.ProvideReason
-
A player's offset is being generated because they are joining the server.
N
- name - Variable in class com.jtprince.coordinateoffset.provider.OffsetProvider
- name() - Method in record class com.jtprince.coordinateoffset.command.OffsetCommandSender
-
Returns the value of the
namerecord component. - negate() - Method in record class com.jtprince.coordinateoffset.FixedOffset
- negate() - Method in interface com.jtprince.coordinateoffset.Offset
-
Get a new Offset with the inverse components as this one (x -> -x, z -> -z).
- negate() - Method in record class com.jtprince.coordinateoffset.ScalableOffset
- newOffsetData() - Method in record class com.jtprince.coordinateoffset.OffsetChange
-
Returns the value of the
newOffsetDatarecord component.
O
- offset() - Method in record class com.jtprince.coordinateoffset.OffsetData
-
Returns the value of the
offsetrecord component. - Offset - Interface in com.jtprince.coordinateoffset
-
An offset is the amount by which a player's clientside X and Z coordinates will appear shifted compared to their real position in a world.
- OFFSET_MAX - Static variable in class com.jtprince.coordinateoffset.provider.OffsetProvider
- OffsetChange - Record Class in com.jtprince.coordinateoffset
-
Container for all data associated with a player's offset changing.
- OffsetChange(OffsetData, OffsetData) - Constructor for record class com.jtprince.coordinateoffset.OffsetChange
-
Creates an instance of a
OffsetChangerecord class. - offsetChanged() - Method in record class com.jtprince.coordinateoffset.OffsetChange
- OffsetCommand - Interface in com.jtprince.coordinateoffset.command
- OffsetCommandSender - Record Class in com.jtprince.coordinateoffset.command
-
Adapter interface representing a command sender in a Minecraft server.
- OffsetCommandSender(Audience, String, OffsetPlayer) - Constructor for record class com.jtprince.coordinateoffset.command.OffsetCommandSender
-
Creates an instance of a
OffsetCommandSenderrecord class. - OffsetData - Record Class in com.jtprince.coordinateoffset
-
Container for an offset which was generated for a specific context, and where the offset came from.
- OffsetData(FixedOffset, OffsetData.Source, OffsetProviderContext) - Constructor for record class com.jtprince.coordinateoffset.OffsetData
-
Creates an instance of a
OffsetDatarecord class. - OffsetData.Source - Interface in com.jtprince.coordinateoffset
- OffsetData.Source.BedrockBypass - Record Class in com.jtprince.coordinateoffset
-
This offset is zero and was generated because the player is using Bedrock edition through Geyser.
- OffsetData.Source.PermissionBypass - Record Class in com.jtprince.coordinateoffset
-
This offset is zero and was generated because the player has permission to bypass offsets.
- OffsetData.Source.PluginSet - Record Class in com.jtprince.coordinateoffset
-
This offset was directly set by a third-party plugin (NOT a provider defined by the plugin).
- OffsetData.Source.Provider - Record Class in com.jtprince.coordinateoffset
-
This offset was generated by a configured OffsetProvider class.
- OffsetData.Source.SetCommand - Record Class in com.jtprince.coordinateoffset
-
This offset was explicitly set by a command.
- OffsetLocation - Interface in com.jtprince.coordinateoffset.adapter
-
Adapter interface representing a location in a Minecraft world with X, Y, Z coordinates.
- OffsetPlayer - Interface in com.jtprince.coordinateoffset.adapter
-
Adapter interface representing a player in a Minecraft server.
- OffsetProvider - Class in com.jtprince.coordinateoffset.provider
-
An OffsetProvider is responsible for generating
Offsetsfor players in worlds. - OffsetProvider(String) - Constructor for class com.jtprince.coordinateoffset.provider.OffsetProvider
- OffsetProviderConfig - Interface in com.jtprince.coordinateoffset.provider
- OffsetProviderContext - Record Class in com.jtprince.coordinateoffset.provider
-
Container for relevant information when calculating a new
Offset. - OffsetProviderContext(OffsetPlayer, OffsetLocation, OffsetLocation, Offset, OffsetProviderContext.ProvideReason) - Constructor for record class com.jtprince.coordinateoffset.provider.OffsetProviderContext
-
Creates an instance of a
OffsetProviderContextrecord class. - OffsetProviderContext.ProvideReason - Enum Class in com.jtprince.coordinateoffset.provider
- OffsetProviderOverrideConfig - Interface in com.jtprince.coordinateoffset.config
-
Container for a single line in the
offsetProviderOverrideslist in the CoordinateOffset configuration. - OffsetSetCommand - Class in com.jtprince.coordinateoffset.command
-
Container for data and response methods for "/offset set" commands.
- OffsetSetCommand(OffsetCommandSender, List<? extends OffsetPlayer>, ScalableOffset) - Constructor for class com.jtprince.coordinateoffset.command.OffsetSetCommand
- OffsetWorld - Interface in com.jtprince.coordinateoffset.adapter
-
Adapter interface representing a world in a Minecraft server.
- onOffsetSetByCommand(OffsetSetCommand, OffsetPlayer) - Method in class com.jtprince.coordinateoffset.provider.OffsetProvider
-
Callback for a player's offset being set by a command.
- onPlayerDisconnect(UUID) - Method in class com.jtprince.coordinateoffset.provider.OffsetProvider
-
Called on this provider when a player's connection is closed.
- onPlayerQuit(OffsetPlayer) - Method in class com.jtprince.coordinateoffset.provider.OffsetProvider
-
Called on this provider whenever a player leaves.
- overrideRuleIndex() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.Provider
-
Returns the value of the
overrideRuleIndexrecord component.
P
- PermissionBypass() - Constructor for record class com.jtprince.coordinateoffset.OffsetData.Source.PermissionBypass
-
Creates an instance of a
PermissionBypassrecord class. - player() - Method in record class com.jtprince.coordinateoffset.command.OffsetCommandSender
-
Returns the value of the
playerrecord component. - player() - Method in record class com.jtprince.coordinateoffset.provider.OffsetProviderContext
-
Returns the value of the
playerrecord component. - playerLocation() - Method in record class com.jtprince.coordinateoffset.provider.OffsetProviderContext
-
Returns the value of the
playerLocationrecord component. - PLUGIN_REGENERATE - Enum constant in enum class com.jtprince.coordinateoffset.provider.OffsetProviderContext.ProvideReason
-
A player's offset is being generated immediately because a third-party plugin requested it.
- PLUGIN_SET - Enum constant in enum class com.jtprince.coordinateoffset.provider.OffsetProviderContext.ProvideReason
-
A player's offset is being set immediately because a third-party plugin called a method to set it.
- PluginSet() - Constructor for record class com.jtprince.coordinateoffset.OffsetData.Source.PluginSet
-
Creates an instance of a
PluginSetrecord class. - previousLocation() - Method in record class com.jtprince.coordinateoffset.provider.OffsetProviderContext
-
Returns the value of the
previousLocationrecord component. - previousOffset() - Method in record class com.jtprince.coordinateoffset.provider.OffsetProviderContext
-
Returns the value of the
previousOffsetrecord component. - previousOffsetData() - Method in record class com.jtprince.coordinateoffset.OffsetChange
-
Returns the value of the
previousOffsetDatarecord component. - provideOffset(OffsetProviderContext) - Method in class com.jtprince.coordinateoffset.provider.OffsetProvider
-
Generate a coordinate
Offsetfor a specific player in a world. - provider() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.Provider
-
Returns the value of the
providerrecord component. - Provider(OffsetProvider, Integer) - Constructor for record class com.jtprince.coordinateoffset.OffsetData.Source.Provider
-
Creates an instance of a
Providerrecord class.
R
- random(int) - Static method in interface com.jtprince.coordinateoffset.Offset
-
Create a new random
ScalableOffsetwith components between negative and positive values of the given bound. - random(int, int) - Static method in interface com.jtprince.coordinateoffset.Offset
-
Deprecated, for removal: This API element is subject to removal in a future version.Configuration now allows the user to specify the desired chunk alignment with
offsetsAreMultiplesOfBlocks. UseOffset.random(int)instead for automatic alignment based on the configured value. - reason() - Method in record class com.jtprince.coordinateoffset.provider.OffsetProviderContext
-
Returns the value of the
reasonrecord component. - regenerateOffset(OffsetPlayer) - Method in interface com.jtprince.coordinateoffset.api.CoordinateOffsetAPI
-
Immediately regenerate the player's current offset by selecting a new offset from the applicably configured offset provider.
- registerOffsetProviderClass(String, Function<OffsetProviderConfig, OffsetProvider>) - Method in interface com.jtprince.coordinateoffset.api.CoordinateOffsetAPI
-
Register a new OffsetProvider class that can be used in the CoordinateOffset configuration.
S
- scalable(int, int) - Static method in interface com.jtprince.coordinateoffset.Offset
-
Create a new scalable offset with the given components.
- ScalableOffset - Record Class in com.jtprince.coordinateoffset
-
Amount by which a player's clientside X and Z coordinates will appear shifted compared to their real position in a world.
- ScalableOffset(int, int) - Constructor for record class com.jtprince.coordinateoffset.ScalableOffset
-
Creates an instance of a
ScalableOffsetrecord class. - scaleDownAndRound(double) - Method in record class com.jtprince.coordinateoffset.ScalableOffset
-
Scale the components of this offset down by the specified divisor, then round to the nearest configured
offsetsAreMultiplesOfBlocksvalue, returning aFixedOffset. - scaleDownBy(double) - Method in record class com.jtprince.coordinateoffset.ScalableOffset
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
scaleDownAndRound(double)instead to ensure offsets are always multiples of the configuredoffsetsAreMultiplesOfBlocksvalue. - scaleToWorld(OffsetWorld) - Method in record class com.jtprince.coordinateoffset.ScalableOffset
-
Scale the components of this offset to the coordinate scale of the specified world.
- serialize() - Method in class com.jtprince.coordinateoffset.provider.OffsetProvider
-
Serialize this offset provider.
- SetCommand(OffsetSetCommand, OffsetProvider) - Constructor for record class com.jtprince.coordinateoffset.OffsetData.Source.SetCommand
-
Creates an instance of a
SetCommandrecord class. - setOffset(OffsetPlayer, Offset) - Method in interface com.jtprince.coordinateoffset.api.CoordinateOffsetAPI
-
Immediately set the player's current offset.
- source() - Method in record class com.jtprince.coordinateoffset.OffsetData
-
Returns the value of the
sourcerecord component.
T
- TELEPORT - Enum constant in enum class com.jtprince.coordinateoffset.provider.OffsetProviderContext.ProvideReason
-
A player's offset is being generated because they are teleporting within the same world.
- toString() - Method in record class com.jtprince.coordinateoffset.command.OffsetCommandSender
-
Returns a string representation of this record class.
- toString() - Method in record class com.jtprince.coordinateoffset.FixedOffset
-
Returns a string representation of this record class.
- toString() - Method in record class com.jtprince.coordinateoffset.OffsetChange
-
Returns a string representation of this record class.
- toString() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.BedrockBypass
-
Returns a string representation of this record class.
- toString() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.PermissionBypass
-
Returns a string representation of this record class.
- toString() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.PluginSet
-
Returns a string representation of this record class.
- toString() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.Provider
-
Returns a string representation of this record class.
- toString() - Method in record class com.jtprince.coordinateoffset.OffsetData.Source.SetCommand
-
Returns a string representation of this record class.
- toString() - Method in record class com.jtprince.coordinateoffset.OffsetData
-
Returns a string representation of this record class.
- toString() - Method in record class com.jtprince.coordinateoffset.provider.OffsetProviderContext
-
Returns a string representation of this record class.
- toString() - Method in record class com.jtprince.coordinateoffset.ScalableOffset
-
Returns a string representation of this record class.
U
- unapply(FixedOffset) - Method in interface com.jtprince.coordinateoffset.adapter.OffsetLocation
-
Reverses the application of the given offset from this location, effectively restoring the "real" coordinates before the offset was applied.
- unapply(T) - Method in record class com.jtprince.coordinateoffset.FixedOffset
- unapply(T) - Method in interface com.jtprince.coordinateoffset.Offset
-
Unapply this offset from a location.
- unapply(T) - Method in record class com.jtprince.coordinateoffset.ScalableOffset
V
- valueOf(String) - Static method in enum class com.jtprince.coordinateoffset.provider.OffsetProviderContext.ProvideReason
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.jtprince.coordinateoffset.provider.OffsetProviderContext.ProvideReason
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- warnOffsetIsNotPersistentInProvider(OffsetProvider, OffsetPlayer) - Method in class com.jtprince.coordinateoffset.command.OffsetSetCommand
-
Print a warning message to the sender that the specified offset will be lost the next time an offset can change for a given player.
- warnScaling(OffsetPlayer, double) - Method in class com.jtprince.coordinateoffset.command.OffsetSetCommand
-
Print a warning message to the sender that the specified offset will be scaled by the specified factor since the targeted player is in a world with a non-unit scaling factor.
- WORLD_CHANGE - Enum constant in enum class com.jtprince.coordinateoffset.provider.OffsetProviderContext.ProvideReason
-
A player's offset is being generated because they are changing worlds, either through a Nether portal, End portal, or any teleport across worlds.
- worldName() - Method in record class com.jtprince.coordinateoffset.provider.OffsetProviderContext
-
Deprecated.Use
OffsetProviderContext.playerLocation()-OffsetLocation.getWorld()instead.
X
- x() - Method in record class com.jtprince.coordinateoffset.FixedOffset
-
Returns the value of the
xrecord component. - x() - Method in record class com.jtprince.coordinateoffset.ScalableOffset
-
Returns the value of the
xrecord component.
Z
- z() - Method in record class com.jtprince.coordinateoffset.FixedOffset
-
Returns the value of the
zrecord component. - z() - Method in record class com.jtprince.coordinateoffset.ScalableOffset
-
Returns the value of the
zrecord component. - ZERO - Static variable in interface com.jtprince.coordinateoffset.Offset
-
The "zero" or identity offset.
All Classes and Interfaces|All Packages|Constant Field Values
offsetsAreMultiplesOfBlocks. UseOffset.align(int, int)instead for automatic alignment based on the configured value.