PlayersMapMarkerConfig class
Пакет: com.hypixel.hytale.server.core.asset.type.gameplay.worldmap
Файл: com/hypixel/hytale/server/core/asset/type/gameplay/worldmap/PlayersMapMarkerConfig.java
Поля (1)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
BuilderCodec<PlayersMapMarkerConfig> |
CODEC |
Методы (3)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
public |
String |
getAboveIconString getAboveIcon() |
public |
String |
getBelowIconString getBelowIcon() |
public |
int |
getIconSwapHeightDeltaint getIconSwapHeightDelta() |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.asset.type.gameplay.worldmap;
class="kw">import com.hypixel.hytale.codec.Codec;
class="kw">import com.hypixel.hytale.codec.KeyedCodec;
class="kw">import com.hypixel.hytale.codec.builder.BuilderCodec;
class="kw">public class PlayersMapMarkerConfig {
class="kw">public class="kw">static class="kw">final BuilderCodec<PlayersMapMarkerConfig> CODEC = BuilderCodec.builder(PlayersMapMarkerConfig.class, PlayersMapMarkerConfig::new)
.append(new KeyedCodec<>("IconSwapHeightDelta", Codec.INTEGER), (var0, var1) -> var0.iconSwapHeightDelta = var1, var0 -> var0.iconSwapHeightDelta)
.documentation("When seeing other players' icons on the map, what the Y difference between you and them need to be in order to swap their icon.")
.add()
.<String>append(new KeyedCodec<>("BelowIcon", Codec.STRING), (var0, var1) -> var0.belowIcon = var1, var0 -> var0.belowIcon)
.documentation("The icon when a player is below you. Find Player.png in the assets for the folder where to see/add available icons.")
.add()
.<String>append(new KeyedCodec<>("AboveIcon", Codec.STRING), (var0, var1) -> var0.aboveIcon = var1, var0 -> var0.aboveIcon)
.documentation("The icon when a player is above you. Find Player.png in the assets for the folder where to see/add available icons.")
.add()
.build();
class="kw">private int iconSwapHeightDelta = 12;
class="kw">private String belowIcon = "PlayerBelow.png";
class="kw">private String aboveIcon = "PlayerAbove.png";
class="kw">public PlayersMapMarkerConfig() {
}
class="kw">public int getIconSwapHeightDelta() {
class="kw">return this.iconSwapHeightDelta;
}
class="kw">public String getBelowIcon() {
class="kw">return this.belowIcon;
}
class="kw">public String getAboveIcon() {
class="kw">return this.aboveIcon;
}
}