Interface IPlatformHelper
public interface IPlatformHelper
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAllow scrolling to increase/decrease the angle of text fieldsbooleanCheck if nametag rendering is set to direct onlyGet the mod versionDeprecated.Gets a list of players that are allowed to use restricted features while they are restricted to ops onlyGet the user preset folderbooleanisRestrictedToOPS(String feature) Check if a feature is restricted to ops onlybooleanCheck if name based features are enabledintGet the nametag render distancevoidrenameArmorStand(net.minecraft.world.entity.decoration.ArmorStand armorStand, String newName) Update Armor Stand NamevoidswapSlots(net.minecraft.world.entity.decoration.ArmorStand armorStand, SwapData.Action action) Update Armor Stand EntityvoidupdateEntity(net.minecraft.world.entity.decoration.ArmorStand armorStand, net.minecraft.nbt.CompoundTag compound) Update Armor Stand Entity
-
Method Details
-
updateEntity
void updateEntity(net.minecraft.world.entity.decoration.ArmorStand armorStand, net.minecraft.nbt.CompoundTag compound) Update Armor Stand Entity -
swapSlots
Update Armor Stand Entity -
renameArmorStand
Update Armor Stand Name -
allowScrolling
boolean allowScrolling()Allow scrolling to increase/decrease the angle of text fields -
getUserPresetFolder
Path getUserPresetFolder()Get the user preset folder- Returns:
- The user preset folder
-
isRestrictedToOPS
Check if a feature is restricted to ops only- Parameters:
feature- The feature to check- Returns:
- If the feature is restricted to ops only
-
nameBasedFeatures
boolean nameBasedFeatures()Check if name based features are enabled- Returns:
- If name based features are enabled
-
getResizeWhitelist
Deprecated.Gets a list of players that are allowed to resize the Armor Stand while restrictResizeToOP is enabled- Returns:
- The resize whitelist
-
getRestrictWhitelist
Gets a list of players that are allowed to use restricted features while they are restricted to ops only- Returns:
- The restrict whitelist
-
getModVersion
String getModVersion()Get the mod version- Returns:
- The mod version
-
directNametagOnly
boolean directNametagOnly()Check if nametag rendering is set to direct only- Returns:
- If nametag rendering is direct only
-
nametagRenderDistance
int nametagRenderDistance()Get the nametag render distance- Returns:
- The nametag render distance
-