Package com.mrbysco.armorposer.platform
Class FabricPlatformHelper
java.lang.Object
com.mrbysco.armorposer.platform.FabricPlatformHelper
- All Implemented Interfaces:
IPlatformHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAllow scrolling to increase/decrease the angle of text fieldsGet the mod versionGets a list of players that are allowed to resize the Armor Stand while restrictResizeToOP is enabledGet the user preset folderbooleanCheck if the resize is restricted to OPsbooleanCheck if name based features are enabledvoidrenameArmorStand(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
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
updateEntity
public void updateEntity(net.minecraft.world.entity.decoration.ArmorStand armorStand, net.minecraft.nbt.CompoundTag compound) Description copied from interface:IPlatformHelperUpdate Armor Stand Entity- Specified by:
updateEntityin interfaceIPlatformHelper
-
swapSlots
public void swapSlots(net.minecraft.world.entity.decoration.ArmorStand armorStand, SwapData.Action action) Description copied from interface:IPlatformHelperUpdate Armor Stand Entity- Specified by:
swapSlotsin interfaceIPlatformHelper
-
renameArmorStand
public void renameArmorStand(net.minecraft.world.entity.decoration.ArmorStand armorStand, String newName) Description copied from interface:IPlatformHelperUpdate Armor Stand Name- Specified by:
renameArmorStandin interfaceIPlatformHelper
-
allowScrolling
public boolean allowScrolling()Description copied from interface:IPlatformHelperAllow scrolling to increase/decrease the angle of text fields- Specified by:
allowScrollingin interfaceIPlatformHelper
-
getUserPresetFolder
Description copied from interface:IPlatformHelperGet the user preset folder- Specified by:
getUserPresetFolderin interfaceIPlatformHelper- Returns:
- The user preset folder
-
isResizeRestrictedToOPS
public boolean isResizeRestrictedToOPS()Description copied from interface:IPlatformHelperCheck if the resize is restricted to OPs- Specified by:
isResizeRestrictedToOPSin interfaceIPlatformHelper- Returns:
- If the resize is restricted to OPs
-
getResizeWhitelist
Description copied from interface:IPlatformHelperGets a list of players that are allowed to resize the Armor Stand while restrictResizeToOP is enabled- Specified by:
getResizeWhitelistin interfaceIPlatformHelper- Returns:
- The resize whitelist
-
nameBasedFeatures
public boolean nameBasedFeatures()Description copied from interface:IPlatformHelperCheck if name based features are enabled- Specified by:
nameBasedFeaturesin interfaceIPlatformHelper- Returns:
- If name based features are enabled
-
getModVersion
Description copied from interface:IPlatformHelperGet the mod version- Specified by:
getModVersionin interfaceIPlatformHelper- Returns:
- The mod version
-