Crosshair
Replace the default Minecraft crosshair with a customizable crosshair.
Integration
How to toggle the mod
public void toggleCrosshairExample(Player viewer, boolean value) {
Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
apolloPlayerOpt.ifPresent(apolloPlayer -> this.modSettingModule.getOptions().set(apolloPlayer, ModCrosshair.ENABLED, value));
}
Available options
-
ENABLED
- Config Key:
enabled
- Values
- Type:
Boolean
- Default:
false
- Type:
- Config Key:
-
CROSSHAIR_THICKNESS
- Config Key:
crosshair-thickness
- Values
- Type:
Integer
- Default:
1
- Minimum:
1
- Maximum:
5
- Type:
- Config Key:
-
CROSSHAIR_SIZE
- Config Key:
crosshair-size
- Values
- Type:
Integer
- Default:
4
- Minimum:
0
- Maximum:
8
- Type:
- Config Key:
-
CROSSHAIR_GAP
- Config Key:
crosshair-gap
- Values
- Type:
Integer
- Default:
0
- Minimum:
0
- Maximum:
8
- Type:
- Config Key:
-
CROSSHAIR_DOT
- Config Key:
crosshair-dot
- Values
- Type:
Boolean
- Default:
true
- Type:
- Config Key:
-
CROSSHAIR_OUTLINE
- Config Key:
crosshair-outline
- Values
- Type:
Boolean
- Default:
false
- Type:
- Config Key:
-
OUTLINE_THICKNESS
- Config Key:
outline-thickness
- Values
- Type:
Float
- Default:
0.5F
- Minimum:
0.0F
- Maximum:
1.0F
- Type:
- Config Key:
-
OUTLINE_COLOR
- Config Key:
outline-color
- Values
- Type:
String
- Default:
#88000000
- Type:
- Config Key:
-
CUSTOM_SCALE
- Config Key:
custom-scale
- Values
- Type:
Boolean
- Default:
false
- Type:
- Config Key:
-
COLOR
- Config Key:
color
- Values
- Type:
String
- Default:
#FFFFFFFF
- Type:
- Config Key:
-
FRIENDLY_COLOR
- Config Key:
friendly-color
- Values
- Type:
String
- Default:
#FF33FF33
- Type:
- Config Key:
-
ENEMY_COLOR
- Config Key:
enemy-color
- Values
- Type:
String
- Default:
#FFFF3333
- Type:
- Config Key: