Class MannequinConfigHolder
java.lang.Object
com.wildfire.common.entities.EntityConfigHolder<AvatarConfig>
com.wildfire.common.entities.avatars.AbstractAvatarConfigHolder
com.wildfire.common.entities.avatars.MannequinConfigHolder
-
Field Summary
Fields inherited from class EntityConfigHolder
breastPhysics, config, forceSimplifiedPhysics, uuid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEdit(net.minecraft.server.level.ServerPlayer player) voidsetConfig(AvatarConfig config) Sets the config stored on this holdervoidsetConfigAndSync(net.minecraft.world.entity.decoration.Mannequin mannequin, AvatarConfig config, @Nullable net.minecraft.server.level.ServerPlayer except) Convenience method that sets the config stored on this holder, saves it to the providedMannequinentity, and syncs it to nearby players.voidsync(net.minecraft.world.entity.decoration.Mannequin mannequin, @Nullable net.minecraft.server.level.ServerPlayer except) Saves the current config to the providedMannequinentity and syncs it to all nearby playersvoidupdateFromPacket(AvatarConfig config) Methods inherited from class AbstractAvatarConfigHolder
getDebugInfo, showBreastsInArmor, sounds, tryPlayHurtSound, updateFromJsonMethods inherited from class EntityConfigHolder
breastPhysics, breasts, config, gender, toString, uvs
-
Constructor Details
-
MannequinConfigHolder
-
-
Method Details
-
updateFromPacket
- Specified by:
updateFromPacketin classAbstractAvatarConfigHolder
-
canEdit
public boolean canEdit(net.minecraft.server.level.ServerPlayer player) -
setConfig
Sets the config stored on this holder -
sync
@Internal public void sync(net.minecraft.world.entity.decoration.Mannequin mannequin, @Nullable @Nullable net.minecraft.server.level.ServerPlayer except) Saves the current config to the providedMannequinentity and syncs it to all nearby players- Parameters:
mannequin- TheMannequinentity to save this config onexcept- Optional player to skip syncing this config to- Throws:
IllegalArgumentException- If the providedMannequinis not on the logical server
-
setConfigAndSync
@Internal public void setConfigAndSync(net.minecraft.world.entity.decoration.Mannequin mannequin, AvatarConfig config, @Nullable @Nullable net.minecraft.server.level.ServerPlayer except) Convenience method that sets the config stored on this holder, saves it to the providedMannequinentity, and syncs it to nearby players.- Parameters:
mannequin- TheMannequinentity to save toconfig- The new config to set on this holderexcept- Optional player to skip syncing the new config to- Throws:
IllegalArgumentException- If the providedMannequinis not on the logical server- See Also:
-