Class MannequinConfigHolder


public class MannequinConfigHolder extends AbstractAvatarConfigHolder
  • Constructor Details

    • MannequinConfigHolder

      public MannequinConfigHolder(UUID uuid)
  • Method Details

    • updateFromPacket

      public void updateFromPacket(AvatarConfig config)
      Specified by:
      updateFromPacket in class AbstractAvatarConfigHolder
    • canEdit

      public boolean canEdit(net.minecraft.server.level.ServerPlayer player)
    • setConfig

      @Internal public void setConfig(AvatarConfig config)
      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 provided Mannequin entity and syncs it to all nearby players
      Parameters:
      mannequin - The Mannequin entity to save this config on
      except - Optional player to skip syncing this config to
      Throws:
      IllegalArgumentException - If the provided Mannequin is 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 provided Mannequin entity, and syncs it to nearby players.
      Parameters:
      mannequin - The Mannequin entity to save to
      config - The new config to set on this holder
      except - Optional player to skip syncing the new config to
      Throws:
      IllegalArgumentException - If the provided Mannequin is not on the logical server
      See Also: